Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
docs: generate openapi spec (#11609)
Tianzhou (天舟)d18a9a58471f
diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yamlindex 8ea7bf4a95..905574299b 100644--- a/proto/buf.gen.yaml+++ b/proto/buf.gen.yaml@@ -28,3 +28,7 @@ plugins:out: gen/grpc-docopt:- html,index.html,source_relative+ - plugin: buf.build/community/google-gnostic-openapi:v0.7.0+ out: gen/grpc-doc+ opt:+ - paths=source_relativediff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlnew file mode 100644index 0000000000..12e0efc69f--- /dev/null+++ b/proto/gen/grpc-doc/openapi.yaml@@ -0,0 +1,13036 @@+# Generated with protoc-gen-openapi+# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi++openapi: 3.0.3+info:+ title: ""+ version: 0.0.1+paths:+ /v1/*/{*}/iamPolicies:batchGet:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_BatchGetIamPolicy+ parameters:+ - name: '*'+ in: path+ description: The * id.+ required: true+ schema:+ type: string+ - name: names+ in: query+ schema:+ type: array+ items:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchGetIamPolicyResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/actuator/cache:+ delete:+ tags:+ - ActuatorService+ operationId: ActuatorService_DeleteCache+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/actuator/debug:+ get:+ tags:+ - ActuatorService+ operationId: ActuatorService_ListDebugLog+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of logs to return. The service may return fewer than+ this value.+ If unspecified, at most 50 logs will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListDebugLog` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDebugLog` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListDebugLogResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/actuator/info:+ get:+ tags:+ - ActuatorService+ operationId: ActuatorService_GetActuatorInfo+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ActuatorInfo'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ActuatorService+ operationId: ActuatorService_UpdateActuatorInfo+ parameters:+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ActuatorInfo'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ActuatorInfo'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/actuator/resources:+ get:+ tags:+ - ActuatorService+ operationId: ActuatorService_GetResourcePackage+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ResourcePackage'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/anomalies:search:+ get:+ tags:+ - AnomalyService+ operationId: AnomalyService_SearchAnomalies+ parameters:+ - name: filter+ in: query+ description: |-+ filter is the filter to apply on the search anomaly request,+ follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+ Only support filter by resource and type for now.+ For example:+ Search the anomalies of a specific resource: 'resource="instances/{instance}".'+ Search the specified types of anomalies: 'type="MIGRATION_SCHEMA".'+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of anomalies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 anomalies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `SearchAnomalies` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `SearchAnomalies` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchAnomaliesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/auth/login:+ post:+ tags:+ - AuthService+ operationId: AuthService_Login+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/LoginRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/LoginResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/auth/logout:+ post:+ tags:+ - AuthService+ operationId: AuthService_Logout+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/LogoutRequest'+ required: true+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/cel/batchDeparse:+ post:+ tags:+ - CelService+ operationId: CelService_BatchDeparse+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchDeparseRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchDeparseResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/cel/batchParse:+ post:+ tags:+ - CelService+ operationId: CelService_BatchParse+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchParseRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchParseResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/databases:search:+ get:+ tags:+ - DatabaseService+ description: Search for databases that the caller has the bb.databases.get permission on, and also satisfy the specified query.+ operationId: DatabaseService_SearchDatabases+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of databases to return. The service may return fewer than+ this value.+ If unspecified, at most 50 databases will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListDatabases` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDatabases` must match+ the call that provided the page token.+ schema:+ type: string+ - name: filter+ in: query+ description: |-+ Filter is used to filter databases returned in the list.+ follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+ The field only support in filter:+ - project with "=" operator, for example:+ - project = "projects/sample-project"+ - project = "projects/-"+ - instance with "=" operator, for example:+ - instance = "instances/mysql"+ - instance = "instances/-"+ for example, we can use project = "projects/sample" && instance = "instances/-" to list all databases in the sample project.+ schema:+ type: string+ - name: permission+ in: query+ description: |-+ By default, the permission "bb.databases.get" is used.+ Alternatively, "bb.databases.query" can be used to retrieve databases with query permissions to.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchDatabasesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/environments:+ get:+ tags:+ - EnvironmentService+ operationId: EnvironmentService_ListEnvironments+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of environments to return. The service may return fewer than+ this value.+ If unspecified, at most 50 environments will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListEnvironments` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListEnvironments` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted environments if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListEnvironmentsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - EnvironmentService+ operationId: EnvironmentService_CreateEnvironment+ parameters:+ - name: environmentId+ in: query+ description: |-+ The ID to use for the environment, which will become the final component of+ the environment's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Environment'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Environment'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/environments/{environment}:+ get:+ tags:+ - EnvironmentService+ operationId: EnvironmentService_GetEnvironment+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Environment'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - EnvironmentService+ operationId: EnvironmentService_DeleteEnvironment+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - EnvironmentService+ operationId: EnvironmentService_UpdateEnvironment+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Environment'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Environment'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/environments/{environment}/policies:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_ListPolicies+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ - name: policyType+ in: query+ schema:+ type: integer+ format: enum+ - name: pageSize+ in: query+ description: |-+ The maximum number of policies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 policies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `GetPolicies` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `GetPolicies` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted policies if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPoliciesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_CreatePolicy+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ - name: type+ in: query+ schema:+ type: integer+ format: enum+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/environments/{environment}/policies/{policy}:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_GetPolicy+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_DeletePolicy+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_UpdatePolicy+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: allowMissing+ in: query+ description: |-+ If set to true, and the policy is not found, a new policy will be created.+ In this situation, `update_mask` is ignored.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/environments/{environment}:undelete:+ post:+ tags:+ - EnvironmentService+ operationId: EnvironmentService_UndeleteEnvironment+ parameters:+ - name: environment+ in: path+ description: The environment id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndeleteEnvironmentRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Environment'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/feature:+ get:+ tags:+ - SubscriptionService+ operationId: SubscriptionService_GetFeatureMatrix+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/FeatureMatrix'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/idps:+ get:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_ListIdentityProviders+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of identity providers to return. The service may return fewer than+ this value.+ If unspecified, at most 50 will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListIdentityProviders` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListIdentityProviders` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted identity providers if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListIdentityProvidersResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_CreateIdentityProvider+ parameters:+ - name: identityProviderId+ in: query+ description: |-+ The ID to use for the identity provider, which will become the final component of+ the identity provider's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IdentityProvider'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IdentityProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/idps/*:test:+ post:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_TestIdentityProvider+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TestIdentityProviderRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TestIdentityProviderResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/idps/{idp}:+ get:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_GetIdentityProvider+ parameters:+ - name: idp+ in: path+ description: The idp id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IdentityProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_DeleteIdentityProvider+ parameters:+ - name: idp+ in: path+ description: The idp id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_UpdateIdentityProvider+ parameters:+ - name: idp+ in: path+ description: The idp id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IdentityProvider'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IdentityProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/idps/{idp}:undelete:+ post:+ tags:+ - IdentityProviderService+ operationId: IdentityProviderService_UndeleteIdentityProvider+ parameters:+ - name: idp+ in: path+ description: The idp id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndeleteIdentityProviderRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IdentityProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances:+ get:+ tags:+ - InstanceService+ operationId: InstanceService_ListInstances+ parameters:+ - name: parent+ in: query+ description: |-+ The parent parameter's value depends on the target resource for the request.+ - instances.list(): An empty string. This method doesn't require a resource; it simply returns all instances the user has access to.+ - projects.instances.list(): projects/{PROJECT_ID}. This method lists all instances that have databases in the project.+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of instances to return. The service may return fewer than+ this value.+ If unspecified, at most 50 instances will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListInstances` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListInstances` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted instances if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListInstancesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - InstanceService+ operationId: InstanceService_CreateInstance+ parameters:+ - name: instanceId+ in: query+ description: |-+ The ID to use for the instance, which will become the final component of+ the instance's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ - name: validateOnly+ in: query+ description: Validate only also tests the data source connection.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:+ get:+ tags:+ - InstanceService+ operationId: InstanceService_GetInstance+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - InstanceService+ operationId: InstanceService_DeleteInstance+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: force+ in: query+ description: If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - InstanceService+ operationId: InstanceService_UpdateInstance+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_ListDatabases+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of databases to return. The service may return fewer than+ this value.+ If unspecified, at most 50 databases will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListDatabases` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDatabases` must match+ the call that provided the page token.+ schema:+ type: string+ - name: filter+ in: query+ description: |-+ Filter is used to filter databases returned in the list.+ For example, "project = projects/{project}" can be used to list databases in a project.+ Note: the project filter will be moved to parent.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListDatabasesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_GetDatabase+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Database'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - DatabaseService+ operationId: DatabaseService_UpdateDatabase+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Database'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Database'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/changeHistories:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_ListChangeHistories+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of change histories to return. The service may return fewer than this value.+ If unspecified, at most 10 change histories will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `ListChangeHistories` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListChangeHistories` must match+ the call that provided the page token.+ schema:+ type: string+ - name: view+ in: query+ schema:+ type: integer+ format: enum+ - name: filter+ in: query+ description: |-+ The filter of the change histories.+ Follow the CEL syntax.+ currently, we have one function for CEL:+ - tableExists(database, schema, table): return true if the table exists in changed resources.++ examples:+ Use+ tableExists("db", "public", "table1")+ to filter the change histories which have the table "table1" in the schema "public" of the database "db".+ For MySQL, the schema is always "", such as tableExists("db", "", "table1").++ Combine multiple functions with "&&" and "||", we MUST use the Disjunctive Normal Form(DNF).+ In other words, the CEL expression consists of several parts connected by OR operators.+ For example, the following expression is valid:+ (+ tableExists("db", "public", "table1") &&+ tableExists("db", "public", "table2")+ ) || (+ tableExists("db", "public", "table3")+ )+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListChangeHistoriesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/changeHistories/{changeHistory}:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_GetChangeHistory+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: changeHistory+ in: path+ description: The changeHistory id.+ required: true+ schema:+ type: string+ - name: view+ in: query+ schema:+ type: integer+ format: enum+ - name: sdlFormat+ in: query+ description: Format the schema dump into SDL format.+ schema:+ type: boolean+ - name: concise+ in: query+ description: When true, the schema dump will be concise.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ChangeHistory'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/changeHistories/{changeHistory}:diffSchema:+ post:+ tags:+ - DatabaseService+ operationId: DatabaseService_DiffSchema+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: changeHistory+ in: path+ description: The changeHistory id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffSchemaRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffSchemaResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/metadata:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_GetDatabaseMetadata+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: view+ in: query+ description: The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC.+ schema:+ type: integer+ format: enum+ - name: filter+ in: query+ description: |-+ The filter used for a specific schema object such as+ "schemas/schema-a/tables/table-a".+ The column masking level will only be returned when a table filter is used.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseMetadata'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - DatabaseService+ operationId: DatabaseService_UpdateDatabaseMetadata+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseMetadata'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseMetadata'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/policies:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_ListPolicies+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: policyType+ in: query+ schema:+ type: integer+ format: enum+ - name: pageSize+ in: query+ description: |-+ The maximum number of policies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 policies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `GetPolicies` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `GetPolicies` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted policies if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPoliciesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_CreatePolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: type+ in: query+ schema:+ type: integer+ format: enum+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/policies/{policy}:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_GetPolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_DeletePolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_UpdatePolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: allowMissing+ in: query+ description: |-+ If set to true, and the policy is not found, a new policy will be created.+ In this situation, `update_mask` is ignored.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/schema:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_GetDatabaseSchema+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: sdlFormat+ in: query+ description: Format the schema dump into SDL format.+ schema:+ type: boolean+ - name: concise+ in: query+ description: |-+ When true, the schema dump will be concise.+ For Oracle, there will be tables and indexes only for Sync Schema.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseSchema'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/secrets:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_ListSecrets+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of databases to return. The service may return fewer than+ this value.+ If unspecified, at most 50 databases will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `ListSecrets` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListSecrets` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListSecretsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/secrets/{secret}:+ delete:+ tags:+ - DatabaseService+ operationId: DatabaseService_DeleteSecret+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: secret+ in: path+ description: The secret id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - DatabaseService+ operationId: DatabaseService_UpdateSecret+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: secret+ in: path+ description: The secret id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The mask of the fields to be updated.+ schema:+ type: string+ format: field-mask+ - name: allowMissing+ in: query+ description: If true, the secret will be created if it does not exist.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Secret'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Secret'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}/slowQueries:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_ListSlowQueries+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: filter+ in: query+ description: |-+ The filter of the slow query log.+ follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+ Support filter by project and start_time in SlowQueryDetails for now.+ For example:+ Search the slow query log of the specific project:+ - the specific project: project = "projects/{project}"+ Search the slow query log that start_time after 2022-01-01T12:00:00.000Z:+ - start_time > "2022-01-01T12:00:00.000Z"+ - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339).+ - Currently we only support filtering down to date granularity.+ schema:+ type: string+ - name: orderBy+ in: query+ description: |-+ The order by of the slow query log.+ Support order by count, latest_log_time, average_query_time, maximum_query_time,+ average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now.+ For example:+ - order by count: order_by = "count"+ - order by latest_log_time desc: order_by = "latest_log_time desc"+ Default: order by average_query_time desc.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListSlowQueriesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:adviseIndex:+ post:+ tags:+ - DatabaseService+ operationId: DatabaseService_AdviseIndex+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ - name: statement+ in: query+ description: The statement to be advised.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AdviseIndexResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:diffSchema:+ post:+ tags:+ - DatabaseService+ operationId: DatabaseService_DiffSchema+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffSchemaRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffSchemaResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:execute:+ post:+ tags:+ - SQLService+ operationId: SQLService_Execute+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExecuteRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExecuteResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:export:+ post:+ tags:+ - SQLService+ operationId: SQLService_Export+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:query:+ post:+ tags:+ - SQLService+ operationId: SQLService_Query+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/QueryRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/QueryResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases/{database}:sync:+ post:+ tags:+ - DatabaseService+ operationId: DatabaseService_SyncDatabase+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: database+ in: path+ description: The database id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SyncDatabaseRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SyncDatabaseResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/databases:batchUpdate:+ post:+ tags:+ - DatabaseService+ operationId: DatabaseService_BatchUpdateDatabases+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchUpdateDatabasesRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchUpdateDatabasesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/policies:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_ListPolicies+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: policyType+ in: query+ schema:+ type: integer+ format: enum+ - name: pageSize+ in: query+ description: |-+ The maximum number of policies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 policies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `GetPolicies` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `GetPolicies` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted policies if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPoliciesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_CreatePolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: type+ in: query+ schema:+ type: integer+ format: enum+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/policies/{policy}:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_GetPolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_DeletePolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_UpdatePolicy+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: allowMissing+ in: query+ description: |-+ If set to true, and the policy is not found, a new policy will be created.+ In this situation, `update_mask` is ignored.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/roles:+ get:+ tags:+ - InstanceRoleService+ operationId: InstanceRoleService_ListInstanceRoles+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of roles to return. The service may return fewer than+ this value.+ If unspecified, at most 50 roles will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ 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.+ schema:+ type: string+ - name: refresh+ in: query+ description: Refresh will refresh and return the latest data.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListInstanceRolesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - InstanceRoleService+ operationId: InstanceRoleService_CreateInstanceRole+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/InstanceRole'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/InstanceRole'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/roles/{role}:+ get:+ tags:+ - InstanceRoleService+ operationId: InstanceRoleService_GetInstanceRole+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: role+ in: path+ description: The role id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/InstanceRole'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - InstanceRoleService+ operationId: InstanceRoleService_DeleteInstanceRole+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: role+ in: path+ description: The role id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - InstanceRoleService+ operationId: InstanceRoleService_UpdateInstanceRole+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: role+ in: path+ description: The role id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/InstanceRole'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/InstanceRole'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}/roles/{role}:undelete:+ post:+ tags:+ - InstanceRoleService+ operationId: InstanceRoleService_UndeleteInstanceRole+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ - name: role+ in: path+ description: The role id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndeleteInstanceRoleRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/InstanceRole'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:addDataSource:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_AddDataSource+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AddDataSourceRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:execute:+ post:+ tags:+ - SQLService+ operationId: SQLService_Execute+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExecuteRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExecuteResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:export:+ post:+ tags:+ - SQLService+ operationId: SQLService_Export+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:query:+ post:+ tags:+ - SQLService+ operationId: SQLService_Query+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/QueryRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/QueryResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:removeDataSource:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_RemoveDataSource+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RemoveDataSourceRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:sync:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_SyncInstance+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SyncInstanceRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SyncInstanceResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:syncSlowQueries:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_SyncSlowQueries+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SyncSlowQueriesRequest'+ required: true+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:undelete:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_UndeleteInstance+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndeleteInstanceRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances/{instance}:updateDataSource:+ patch:+ tags:+ - InstanceService+ operationId: InstanceService_UpdateDataSource+ parameters:+ - name: instance+ in: path+ description: The instance id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UpdateDataSourceRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Instance'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances:batchSync:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_BatchSyncInstance+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchSyncInstanceRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchSyncInstanceResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/instances:search:+ get:+ tags:+ - InstanceService+ operationId: InstanceService_SearchInstances+ parameters:+ - name: parent+ in: query+ description: |-+ The parent parameter's value depends on the target resource for the request.+ - instances.list(): An empty string. This method doesn't require a resource; it simply returns all instances the user has access to.+ - projects.instances.list(): projects/{PROJECT_ID}. This method lists all instances that have databases in the project.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted instances if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchInstancesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/logs/{log}:+ get:+ tags:+ - LoggingService+ operationId: LoggingService_GetLog+ parameters:+ - name: log+ in: path+ description: The log id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/LogEntity'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/logs:export:+ post:+ tags:+ - LoggingService+ operationId: LoggingService_ExportLogs+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportLogsRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportLogsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/logs:search:+ get:+ tags:+ - LoggingService+ operationId: LoggingService_SearchLogs+ parameters:+ - name: filter+ in: query+ description: |-+ filter is the filter to apply on the list logs request,+ follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+ The field only support in filter:+ - creator, example:+ - creator = "users/{email}"+ - resource, example:+ - resource = "projects/{project resource id}"+ - level, example:+ - level = "INFO"+ - level = "ERROR | WARN"+ - action, example:+ - action = "ACTION_MEMBER_CREATE"+ - action = "ACTION_MEMBER_CREATE | ACTION_ISSUE_CREATE"+ - create_time, example:+ - create_time <= "2022-01-01T12:00:00.000Z"+ - create_time >= "2022-01-01T12:00:00.000Z"+ For example:+ List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"'+ schema:+ type: string+ - name: orderBy+ in: query+ description: |-+ The order by of the log.+ Only support order by create_time.+ For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc"+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of logs to return.+ The service may return fewer than this value.+ If unspecified, at most 100 log entries will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `SearchLogs` call.+ Provide this to retrieve the subsequent page.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchLogsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/policies:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_ListPolicies+ parameters:+ - name: parent+ in: query+ description: |-+ The parent, which owns this collection of policies.+ Format: {resource type}/{resource id}+ schema:+ type: string+ - name: policyType+ in: query+ schema:+ type: integer+ format: enum+ - name: pageSize+ in: query+ description: |-+ The maximum number of policies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 policies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `GetPolicies` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `GetPolicies` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted policies if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPoliciesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_CreatePolicy+ parameters:+ - name: parent+ in: query+ description: |-+ The parent resource where this instance will be created.+ Workspace resource name: "".+ Environment resource name: environments/environment-id.+ Instance resource name: instances/instance-id.+ Database resource name: instances/instance-id/databases/database-name.+ schema:+ type: string+ - name: type+ in: query+ schema:+ type: integer+ format: enum+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/policies/{policy}:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_GetPolicy+ parameters:+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_DeletePolicy+ parameters:+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_UpdatePolicy+ parameters:+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: allowMissing+ in: query+ description: |-+ If set to true, and the policy is not found, a new policy will be created.+ In this situation, `update_mask` is ignored.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_ListProjects+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of projects to return. The service may return fewer than+ this value.+ If unspecified, at most 50 projects will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListProjects` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListProjects` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted projects if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListProjectsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - ProjectService+ operationId: ProjectService_CreateProject+ parameters:+ - name: projectId+ in: query+ description: |-+ The ID to use for the project, which will become the final component of+ the project's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_GetProject+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - ProjectService+ operationId: ProjectService_DeleteProject+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: force+ in: query+ description: If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ProjectService+ operationId: ProjectService_UpdateProject+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/branch:+ post:+ tags:+ - BranchService+ operationId: BranchService_CreateBranch+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branchId+ in: query+ description: |-+ The ID to use for the branch, which will become the final component of+ the branch's resource name.+ Format: [a-zA-Z][a-zA-Z0-9-_/]+.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Branch'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Branch'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/branches:+ get:+ tags:+ - BranchService+ operationId: BranchService_ListBranches+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: filter+ in: query+ description: To filter the search result.+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of branches to return. The service may return fewer than+ this value.+ If unspecified, at most 50 branches will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListBranches` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListBranches` must match+ the call that provided the page token.+ schema:+ type: string+ - name: view+ in: query+ schema:+ type: integer+ format: enum+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListBranchesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/branches/{branche}:+ get:+ tags:+ - BranchService+ operationId: BranchService_GetBranch+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branche+ in: path+ description: The branche id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Branch'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - BranchService+ operationId: BranchService_DeleteBranch+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branche+ in: path+ description: The branche id.+ required: true+ schema:+ type: string+ - name: force+ in: query+ description: |-+ By default, server will return `FAILED_PRECONDITION` error+ if delete the branch that is parent of other branches.+ If true, server will delete the branch forcely but will not delete its children branches.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - BranchService+ operationId: BranchService_UpdateBranch+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branche+ in: path+ description: The branche id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: etag+ in: query+ description: |-+ The current etag of the branch.+ If an etag is provided and does not match the current etag of the branch,+ the call will be blocked and an ABORTED error will be returned.+ The etag should be specified for using merged_schema. The etag should be the etag from named branch.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Branch'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Branch'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/branches/{branche}:diffDatabase:+ post:+ tags:+ - BranchService+ description: |-+ DiffDatabase works similar to branch rebase.+ 1) set the base as the schema of a database;+ 2) apply the changes between base and head of branch to the new base (schema of database);+ 3) return the diff DDLs similar to DiffSchema in database service.+ 4) return the conflict schema if conflict needs to be resolved by user. Once resolved, user+ will call DiffSchema() in database service to get diff DDLs.+ operationId: BranchService_DiffDatabase+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branche+ in: path+ description: The branche id.+ required: true+ schema:+ type: string+ - name: database+ in: query+ description: The name of the databsae to merge the branch to.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffDatabaseResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/branches/{branche}:merge:+ post:+ tags:+ - BranchService+ operationId: BranchService_MergeBranch+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branche+ in: path+ description: The branche id.+ required: true+ schema:+ type: string+ - name: headBranch+ in: query+ description: |-+ The head branch to merge from.+ Format: projects/{project}/branches/{branch}+ schema:+ type: string+ - name: etag+ in: query+ description: |-+ The current etag of the branch.+ If an etag is provided and does not match the current etag of the branch,+ the call will be blocked and an ABORTED error will be returned.+ The etag should be the etag from named branch.+ schema:+ type: string+ - name: validateOnly+ in: query+ description: validate_only determines if the merge can occur seamlessly without any conflicts.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Branch'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/branches/{branche}:rebase:+ post:+ tags:+ - BranchService+ operationId: BranchService_RebaseBranch+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: branche+ in: path+ description: The branche id.+ required: true+ schema:+ type: string+ - name: sourceDatabase+ in: query+ description: |-+ The database (remote upstream) used to rebase.+ We use its schema as baseline and reapply the difference between base and head of the named branch.+ Format: instances/{instance}/databases/{database}+ schema:+ type: string+ - name: sourceBranch+ in: query+ description: |-+ The branch (remote upstream) used to rebase. We use its head as baseline.+ We use its head schema as baseline and reapply the difference between base and head of the named branch.+ Format: projects/{project}/branches/{branch}+ schema:+ type: string+ - name: mergedSchema+ in: query+ description: |-+ For failed merge, we will pass in this addition merged schema and use it for head.+ This has to be set together with source_database or source_branch.+ schema:+ type: string+ - name: etag+ in: query+ description: |-+ The current etag of the branch.+ If an etag is provided and does not match the current etag of the branch,+ the call will be blocked and an ABORTED error will be returned.+ The etag should be specified for using merged_schema. The etag should be the etag from named branch.+ schema:+ type: string+ - name: validateOnly+ in: query+ description: validate_only determines if the rebase can occur seamlessly without any conflicts.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RebaseBranchResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/changelists:+ get:+ tags:+ - ChangelistService+ operationId: ChangelistService_ListChangelists+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of databases to return. The service may return fewer than+ this value.+ If unspecified, at most 50 databases will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListDatabases` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDatabases` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListChangelistsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - ChangelistService+ operationId: ChangelistService_CreateChangelist+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: changelistId+ in: query+ description: |-+ The ID to use for the changelist, which will become the final component of+ the changelist's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Changelist'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Changelist'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/changelists/{changelist}:+ get:+ tags:+ - ChangelistService+ operationId: ChangelistService_GetChangelist+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: changelist+ in: path+ description: The changelist id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Changelist'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - ChangelistService+ operationId: ChangelistService_DeleteChangelist+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: changelist+ in: path+ description: The changelist id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ChangelistService+ operationId: ChangelistService_UpdateChangelist+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: changelist+ in: path+ description: The changelist id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to be updated.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Changelist'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Changelist'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/databaseGroups:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_ListDatabaseGroups+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of anomalies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 anomalies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `ListDatabaseGroups` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDatabaseGroups` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListDatabaseGroupsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - ProjectService+ operationId: ProjectService_CreateDatabaseGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroupId+ in: query+ description: |-+ The ID to use for the database group, which will become the final component of+ the database group's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ - name: validateOnly+ in: query+ description: If set, validate the create request and preview the full database group response, but do not actually create it.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseGroup'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseGroup'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/databaseGroups/{databaseGroup}:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_GetDatabaseGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: view+ in: query+ description: The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC.+ schema:+ type: integer+ format: enum+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseGroup'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - ProjectService+ operationId: ProjectService_DeleteDatabaseGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ProjectService+ operationId: ProjectService_UpdateDatabaseGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseGroup'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DatabaseGroup'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/databaseGroups/{databaseGroup}/schemaGroups:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_ListSchemaGroups+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of anomalies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 anomalies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `ListSchemaGroups` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListSchemaGroups` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListSchemaGroupsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - ProjectService+ operationId: ProjectService_CreateSchemaGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: schemaGroupId+ in: query+ description: |-+ The ID to use for the schema group, which will become the final component of+ the schema group's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ - name: validateOnly+ in: query+ description: If set, validate the create request and preview the full schema group response, but do not actually create it.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SchemaGroup'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SchemaGroup'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_GetSchemaGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: schemaGroup+ in: path+ description: The schemaGroup id.+ required: true+ schema:+ type: string+ - name: view+ in: query+ description: The view to return. Defaults to SCHEMA_GROUP_VIEW_BASIC.+ schema:+ type: integer+ format: enum+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SchemaGroup'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - ProjectService+ operationId: ProjectService_DeleteSchemaGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: schemaGroup+ in: path+ description: The schemaGroup id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ProjectService+ operationId: ProjectService_UpdateSchemaGroup+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: databaseGroup+ in: path+ description: The databaseGroup id.+ required: true+ schema:+ type: string+ - name: schemaGroup+ in: path+ description: The schemaGroup id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SchemaGroup'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SchemaGroup'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/databases:+ get:+ tags:+ - DatabaseService+ operationId: DatabaseService_ListDatabases+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of databases to return. The service may return fewer than+ this value.+ If unspecified, at most 50 databases will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListDatabases` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDatabases` must match+ the call that provided the page token.+ schema:+ type: string+ - name: filter+ in: query+ description: |-+ Filter is used to filter databases returned in the list.+ For example, "project = projects/{project}" can be used to list databases in a project.+ Note: the project filter will be moved to parent.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListDatabasesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/deploymentConfigs/{deploymentConfig}:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_GetDeploymentConfig+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: deploymentConfig+ in: path+ description: The deploymentConfig id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DeploymentConfig'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ProjectService+ operationId: ProjectService_UpdateDeploymentConfig+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: deploymentConfig+ in: path+ description: The deploymentConfig id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DeploymentConfig'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DeploymentConfig'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/instances:+ get:+ tags:+ - InstanceService+ operationId: InstanceService_ListInstances+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of instances to return. The service may return fewer than+ this value.+ If unspecified, at most 50 instances will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListInstances` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListInstances` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted instances if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListInstancesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/instances:search:+ get:+ tags:+ - InstanceService+ operationId: InstanceService_SearchInstances+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted instances if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchInstancesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues:+ get:+ tags:+ - IssueService+ operationId: IssueService_ListIssues+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of issues to return. The service may return fewer than+ this value.+ If unspecified, at most 50 issues will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListIssues` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListIssues` must match+ the call that provided the page token.+ schema:+ type: string+ - name: filter+ in: query+ description: Filter is used to filter issues returned in the list.+ schema:+ type: string+ - name: query+ in: query+ description: Query is the query statement.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListIssuesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - IssueService+ operationId: IssueService_CreateIssue+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}:+ get:+ tags:+ - IssueService+ operationId: IssueService_GetIssue+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ - name: force+ in: query+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - IssueService+ operationId: IssueService_UpdateIssue+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}/issueComments:+ get:+ tags:+ - IssueService+ operationId: IssueService_ListIssueComments+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of issues to return. The service may return fewer than+ this value.+ If unspecified, at most 50 issues will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListIssues` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListIssues` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListIssueCommentsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}:approve:+ post:+ tags:+ - IssueService+ operationId: IssueService_ApproveIssue+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ApproveIssueRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}:comment:+ post:+ tags:+ - IssueService+ operationId: IssueService_CreateIssueComment+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IssueComment'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IssueComment'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - IssueService+ operationId: IssueService_UpdateIssueComment+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IssueComment'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IssueComment'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}:export:+ post:+ tags:+ - SQLService+ operationId: SQLService_Export+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExportResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}:reject:+ post:+ tags:+ - IssueService+ operationId: IssueService_RejectIssue+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RejectIssueRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues/{issue}:request:+ post:+ tags:+ - IssueService+ operationId: IssueService_RequestIssue+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: issue+ in: path+ description: The issue id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RequestIssueRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Issue'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues:batchUpdateStatus:+ post:+ tags:+ - IssueService+ operationId: IssueService_BatchUpdateIssuesStatus+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchUpdateIssuesStatusRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchUpdateIssuesStatusResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/issues:search:+ get:+ tags:+ - IssueService+ description: Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.+ operationId: IssueService_SearchIssues+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of issues to return. The service may return fewer than+ this value.+ If unspecified, at most 50 issues will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListIssues` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListIssues` must match+ the call that provided the page token.+ schema:+ type: string+ - name: filter+ in: query+ description: Filter is used to filter issues returned in the list.+ schema:+ type: string+ - name: query+ in: query+ description: Query is the query statement.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchIssuesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/plans:+ get:+ tags:+ - RolloutService+ operationId: RolloutService_ListPlans+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of plans to return. The service may return fewer than+ this value.+ If unspecified, at most 50 plans will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListPlans` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListPlans` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPlansResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - RolloutService+ operationId: RolloutService_CreatePlan+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Plan'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Plan'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/plans/{plan}:+ get:+ tags:+ - RolloutService+ operationId: RolloutService_GetPlan+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: plan+ in: path+ description: The plan id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Plan'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - RolloutService+ operationId: RolloutService_UpdatePlan+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: plan+ in: path+ description: The plan id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Plan'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Plan'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/plans/{plan}/planCheckRuns:+ get:+ tags:+ - RolloutService+ operationId: RolloutService_ListPlanCheckRuns+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: plan+ in: path+ description: The plan id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of plan check runs to return. The service may return fewer than+ this value.+ If unspecified, at most 50 plans will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListPlanCheckRuns` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListPlanCheckRuns` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPlanCheckRunsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/plans/{plan}:runPlanChecks:+ post:+ tags:+ - RolloutService+ operationId: RolloutService_RunPlanChecks+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: plan+ in: path+ description: The plan id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RunPlanChecksRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RunPlanChecksResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/policies:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_ListPolicies+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: policyType+ in: query+ schema:+ type: integer+ format: enum+ - name: pageSize+ in: query+ description: |-+ The maximum number of policies to return. The service may return fewer than+ this value.+ If unspecified, at most 50 policies will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `GetPolicies` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `GetPolicies` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted policies if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListPoliciesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_CreatePolicy+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: type+ in: query+ schema:+ type: integer+ format: enum+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/policies/{policy}:+ get:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_GetPolicy+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_DeletePolicy+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - OrgPolicyService+ operationId: OrgPolicyService_UpdatePolicy+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: policy+ in: path+ description: The policy id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: allowMissing+ in: query+ description: |-+ If set to true, and the policy is not found, a new policy will be created.+ In this situation, `update_mask` is ignored.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Policy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/protectionRules:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_GetProjectProtectionRules+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ProtectionRules'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - ProjectService+ operationId: ProjectService_UpdateProjectProtectionRules+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UpdateProjectProtectionRulesRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ProtectionRules'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/rollouts:+ post:+ tags:+ - RolloutService+ operationId: RolloutService_CreateRollout+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Rollout'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Rollout'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/rollouts/{rollout}:+ get:+ tags:+ - RolloutService+ operationId: RolloutService_GetRollout+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: rollout+ in: path+ description: The rollout id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Rollout'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns:+ get:+ tags:+ - RolloutService+ operationId: RolloutService_ListTaskRuns+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: rollout+ in: path+ description: The rollout id.+ required: true+ schema:+ type: string+ - name: stage+ in: path+ description: The stage id.+ required: true+ schema:+ type: string+ - name: task+ in: path+ description: The task id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of taskRuns to return. The service may return fewer than+ this value.+ If unspecified, at most 50 taskRuns will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListRolloutTaskRuns` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListRolloutTaskRuns` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListTaskRunsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns:batchCancel:+ post:+ tags:+ - RolloutService+ operationId: RolloutService_BatchCancelTaskRuns+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: rollout+ in: path+ description: The rollout id.+ required: true+ schema:+ type: string+ - name: stage+ in: path+ description: The stage id.+ required: true+ schema:+ type: string+ - name: task+ in: path+ description: The task id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchCancelTaskRunsRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchCancelTaskRunsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks:batchRun:+ post:+ tags:+ - RolloutService+ operationId: RolloutService_BatchRunTasks+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: rollout+ in: path+ description: The rollout id.+ required: true+ schema:+ type: string+ - name: stage+ in: path+ description: The stage id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchRunTasksRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchRunTasksResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/rollouts/{rollout}/stages/{stage}/tasks:batchSkip:+ post:+ tags:+ - RolloutService+ operationId: RolloutService_BatchSkipTasks+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: rollout+ in: path+ description: The rollout id.+ required: true+ schema:+ type: string+ - name: stage+ in: path+ description: The stage id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchSkipTasksRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/BatchSkipTasksResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/sheets:+ post:+ tags:+ - SheetService+ operationId: SheetService_CreateSheet+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Sheet'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Sheet'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/sheets/{sheet}:+ get:+ tags:+ - SheetService+ operationId: SheetService_GetSheet+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: sheet+ in: path+ description: The sheet id.+ required: true+ schema:+ type: string+ - name: raw+ in: query+ description: By default, the content of the sheet is cut off, set the `raw` to true to retrieve the full content.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Sheet'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - SheetService+ operationId: SheetService_UpdateSheet+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: sheet+ in: path+ description: The sheet id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: |-+ 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`+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Sheet'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Sheet'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/vcsConnectors:+ get:+ tags:+ - VCSConnectorService+ operationId: VCSConnectorService_ListVCSConnectors+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ The maximum number of databases to return. The service may return fewer than+ this value.+ If unspecified, at most 50 databases will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListDatabases` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListDatabases` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListVCSConnectorsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - VCSConnectorService+ operationId: VCSConnectorService_CreateVCSConnector+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: vcsConnectorId+ in: query+ description: |-+ The ID to use for the vcsConnector, which will become the final component of+ the vcsConnector's resource name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSConnector'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSConnector'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/vcsConnectors/{vcsConnector}:+ get:+ tags:+ - VCSConnectorService+ operationId: VCSConnectorService_GetVCSConnector+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: vcsConnector+ in: path+ description: The vcsConnector id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSConnector'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - VCSConnectorService+ operationId: VCSConnectorService_DeleteVCSConnector+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: vcsConnector+ in: path+ description: The vcsConnector id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - VCSConnectorService+ operationId: VCSConnectorService_UpdateVCSConnector+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: vcsConnector+ in: path+ description: The vcsConnector id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to be updated.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSConnector'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSConnector'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/webhooks/{webhook}:removeWebhook:+ post:+ tags:+ - ProjectService+ operationId: ProjectService_RemoveWebhook+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: webhook+ in: path+ description: The webhook id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/RemoveWebhookRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}/webhooks/{webhook}:updateWebhook:+ post:+ tags:+ - ProjectService+ operationId: ProjectService_UpdateWebhook+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ - name: webhook+ in: path+ description: The webhook id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UpdateWebhookRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:addWebhook:+ post:+ tags:+ - ProjectService+ operationId: ProjectService_AddWebhook+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AddWebhookRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:getIamPolicy:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_GetIamPolicy+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IamPolicy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:previewRollout:+ post:+ tags:+ - RolloutService+ operationId: RolloutService_PreviewRollout+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/PreviewRolloutRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Rollout'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:setIamPolicy:+ post:+ tags:+ - ProjectService+ operationId: ProjectService_SetIamPolicy+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SetIamPolicyRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/IamPolicy'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:syncSlowQueries:+ post:+ tags:+ - InstanceService+ operationId: InstanceService_SyncSlowQueries+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SyncSlowQueriesRequest'+ required: true+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:testWebhook:+ post:+ tags:+ - ProjectService+ operationId: ProjectService_TestWebhook+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TestWebhookRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/TestWebhookResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects/{project}:undelete:+ post:+ tags:+ - ProjectService+ operationId: ProjectService_UndeleteProject+ parameters:+ - name: project+ in: path+ description: The project id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndeleteProjectRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Project'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/projects:search:+ get:+ tags:+ - ProjectService+ operationId: ProjectService_SearchProjects+ parameters:+ - name: showDeleted+ in: query+ description: Show deleted projects if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchProjectsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/queryHistories:search:+ get:+ tags:+ - SQLService+ operationId: SQLService_SearchQueryHistories+ parameters:+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of histories to return.+ The service may return fewer than this value.+ If unspecified, at most 100 history entries will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `ListQueryHistory` call.+ Provide this to retrieve the subsequent page.+ schema:+ type: string+ - name: filter+ in: query+ description: |-+ 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"+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchQueryHistoriesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/risks:+ get:+ tags:+ - RiskService+ operationId: RiskService_ListRisks+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of risks to return. The service may return fewer than+ this value.+ If unspecified, at most 50 risks will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ 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.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListRisksResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - RiskService+ operationId: RiskService_CreateRisk+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Risk'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Risk'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/risks/{risk}:+ delete:+ tags:+ - RiskService+ operationId: RiskService_DeleteRisk+ parameters:+ - name: risk+ in: path+ description: The risk id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - RiskService+ operationId: RiskService_UpdateRisk+ parameters:+ - name: risk+ in: path+ description: The risk id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Risk'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Risk'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/roles:+ get:+ tags:+ - RoleService+ operationId: RoleService_ListRoles+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of roles to return. The service may return fewer than+ this value.+ If unspecified, at most 50 reviews will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ 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.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListRolesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - RoleService+ operationId: RoleService_CreateRole+ parameters:+ - name: roleId+ in: query+ description: |-+ 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]/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Role'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Role'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/roles/{role}:+ delete:+ tags:+ - RoleService+ operationId: RoleService_DeleteRole+ parameters:+ - name: role+ in: path+ description: The role id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - RoleService+ operationId: RoleService_UpdateRole+ parameters:+ - name: role+ in: path+ description: The role id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Role'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Role'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/schemaDesign:diffMetadata:+ post:+ tags:+ - BranchService+ operationId: BranchService_DiffMetadata+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffMetadataRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DiffMetadataResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/schemaDesign:stringifyMetadata:+ post:+ tags:+ - SQLService+ operationId: SQLService_StringifyMetadata+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/StringifyMetadataRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/StringifyMetadataResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/settings:+ get:+ tags:+ - SettingService+ operationId: SettingService_ListSettings+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of settings to return. The service may return fewer than+ this value.+ If unspecified, at most 50 settings will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListSettings` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListSettings` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListSettingsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/settings/{setting}:+ get:+ tags:+ - SettingService+ operationId: SettingService_GetSetting+ parameters:+ - name: setting+ in: path+ description: The setting id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Setting'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - SettingService+ operationId: SettingService_UpdateSetting+ parameters:+ - name: setting+ in: path+ description: The setting id.+ required: true+ schema:+ type: string+ - name: validateOnly+ in: query+ description: |-+ validate_only is a flag to indicate whether to validate the setting value,+ server would not persist the setting value if it is true.+ schema:+ type: boolean+ - name: allowMissing+ in: query+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Setting'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Setting'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/sql/check:+ post:+ tags:+ - SQLService+ operationId: SQLService_Check+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/CheckRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/CheckResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/sql/differPreview:+ post:+ tags:+ - SQLService+ operationId: SQLService_DifferPreview+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DifferPreviewRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/DifferPreviewResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/sql/parseMyBatisMapper:+ post:+ tags:+ - SQLService+ operationId: SQLService_ParseMyBatisMapper+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ParseMyBatisMapperRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ParseMyBatisMapperResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/sql/pretty:+ post:+ tags:+ - SQLService+ operationId: SQLService_Pretty+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/PrettyRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/PrettyResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/subscription:+ get:+ tags:+ - SubscriptionService+ operationId: SubscriptionService_GetSubscription+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Subscription'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - SubscriptionService+ operationId: SubscriptionService_UpdateSubscription+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/PatchSubscription'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Subscription'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/users:+ get:+ tags:+ - AuthService+ operationId: AuthService_ListUsers+ parameters:+ - name: pageSize+ in: query+ description: |-+ The maximum number of users to return. The service may return fewer than+ this value.+ If unspecified, at most 50 users will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ A page token, received from a previous `ListUsers` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `ListUsers` must match+ the call that provided the page token.+ schema:+ type: string+ - name: showDeleted+ in: query+ description: Show deleted users if specified.+ schema:+ type: boolean+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListUsersResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - AuthService+ operationId: AuthService_CreateUser+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/User'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/User'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/users/{user}:+ get:+ tags:+ - AuthService+ operationId: AuthService_GetUser+ parameters:+ - name: user+ in: path+ description: The user id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/User'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - AuthService+ operationId: AuthService_DeleteUser+ parameters:+ - name: user+ in: path+ description: The user id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - AuthService+ operationId: AuthService_UpdateUser+ parameters:+ - name: user+ in: path+ description: The user id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to update.+ schema:+ type: string+ format: field-mask+ - name: otpCode+ in: query+ description: The otp_code is used to verify the user's identity by MFA.+ schema:+ type: string+ - name: regenerateTempMfaSecret+ in: query+ description: |-+ The regenerate_temp_mfa_secret flag means to regenerate temporary MFA secret for user.+ This is used for MFA setup. The temporary MFA secret and recovery codes will be returned in the response.+ schema:+ type: boolean+ - name: regenerateRecoveryCodes+ in: query+ description: The regenerate_recovery_codes flag means to regenerate recovery codes for user.+ schema:+ type: boolean+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/User'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/User'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/users/{user}:undelete:+ post:+ tags:+ - AuthService+ operationId: AuthService_UndeleteUser+ parameters:+ - name: user+ in: path+ description: The user id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/UndeleteUserRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/User'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/vcsProviders:+ get:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_ListVCSProviders+ parameters:+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of vcs provider to return. The service may return fewer than this value.+ If unspecified, at most 100 vcs provider will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `ListVCSProviders` call.+ Provide this to retrieve the subsequent page.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListVCSProvidersResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ post:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_CreateVCSProvider+ parameters:+ - name: vcsProviderId+ in: query+ description: |-+ The ID to use for the VCS provider, which will become the final component of+ the VCS provider's name.++ This value should be 4-63 characters, and valid characters+ are /[a-z][0-9]-/.+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSProvider'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/vcsProviders/{vcsProvider}:+ get:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_GetVCSProvider+ parameters:+ - name: vcsProvider+ in: path+ description: The vcsProvider id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_DeleteVCSProvider+ parameters:+ - name: vcsProvider+ in: path+ description: The vcsProvider id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_UpdateVCSProvider+ parameters:+ - name: vcsProvider+ in: path+ description: The vcsProvider id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: The list of fields to be updated.+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSProvider'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VCSProvider'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/vcsProviders/{vcsProvider}/vcsConnectors:+ get:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_ListVCSConnectorsInProvider+ parameters:+ - name: vcsProvider+ in: path+ description: The vcsProvider id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ListVCSConnectorsInProviderResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/vcsProviders/{vcsProvider}:searchRepositories:+ post:+ tags:+ - VCSProviderService+ operationId: VCSProviderService_SearchVCSProviderRepositories+ parameters:+ - name: vcsProvider+ in: path+ description: The vcsProvider id.+ required: true+ schema:+ type: string+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchVCSProviderRepositoriesRequest'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchVCSProviderRepositoriesResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/worksheets:+ post:+ tags:+ - WorksheetService+ operationId: WorksheetService_CreateWorksheet+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Worksheet'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Worksheet'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/worksheets/{worksheet}:+ get:+ tags:+ - WorksheetService+ operationId: WorksheetService_GetWorksheet+ parameters:+ - name: worksheet+ in: path+ description: The worksheet id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Worksheet'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ delete:+ tags:+ - WorksheetService+ operationId: WorksheetService_DeleteWorksheet+ parameters:+ - name: worksheet+ in: path+ description: The worksheet id.+ required: true+ schema:+ type: string+ responses:+ "200":+ description: OK+ content: {}+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ patch:+ tags:+ - WorksheetService+ operationId: WorksheetService_UpdateWorksheet+ parameters:+ - name: worksheet+ in: path+ description: The worksheet id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: |-+ The list of fields to be updated.+ Fields are specified relative to the worksheet.+ (e.g. `title`, `statement`; *not* `worksheet.title` or `worksheet.statement`)+ Only support update the following fields for now:+ - `title`+ - `statement`+ - `starred`+ - `visibility`+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Worksheet'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Worksheet'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/worksheets/{worksheet}/organizer:+ patch:+ tags:+ - WorksheetService+ operationId: WorksheetService_UpdateWorksheetOrganizer+ parameters:+ - name: worksheet+ in: path+ description: The worksheet id.+ required: true+ schema:+ type: string+ - name: updateMask+ in: query+ description: |-+ The list of fields to be updated.+ Fields are specified relative to the worksheet organizer.+ Only support update the following fields for now:+ - `starred`+ schema:+ type: string+ format: field-mask+ requestBody:+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/WorksheetOrganizer'+ required: true+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/WorksheetOrganizer'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1/worksheets:search:+ get:+ tags:+ - WorksheetService+ operationId: WorksheetService_SearchWorksheets+ parameters:+ - name: filter+ in: query+ description: |-+ To filter the search result.+ Format: only support the following spec for now:+ - `creator = users/{email}`, `creator != users/{email}`+ - `starred = true`, `starred = false`.+ Not support empty filter for now.+ schema:+ type: string+ - name: pageSize+ in: query+ description: |-+ Not used. The maximum number of worksheets to return. The service may return fewer than+ this value.+ If unspecified, at most 50 worksheets will be returned.+ The maximum value is 1000; values above 1000 will be coerced to 1000.+ schema:+ type: integer+ format: int32+ - name: pageToken+ in: query+ description: |-+ Not used. A page token, received from a previous `SearchWorksheets` call.+ Provide this to retrieve the subsequent page.++ When paginating, all other parameters provided to `SearchWorksheets` must match+ the call that provided the page token.+ schema:+ type: string+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/SearchWorksheetsResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+ /v1:adminExecute:+ get:+ tags:+ - SQLService+ operationId: SQLService_AdminExecute+ parameters:+ - name: name+ in: query+ description: |-+ The name is the instance name to execute the query against.+ Format: instances/{instance}/databases/{databaseName}+ schema:+ type: string+ - name: connectionDatabase+ in: query+ schema:+ type: string+ - name: statement+ in: query+ description: The SQL statement to execute.+ schema:+ type: string+ - name: limit+ in: query+ description: The maximum number of rows to return.+ schema:+ type: integer+ format: int32+ - name: timeout+ in: query+ description: The timeout for the request.+ schema:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: Represents a a duration between -315,576,000,000s and 315,576,000,000s (around 10000 years). Precision is in nanoseconds. 1 nanosecond is represented as 0.000000001s+ responses:+ "200":+ description: OK+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AdminExecuteResponse'+ default:+ description: Default error response+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Status'+components:+ schemas:+ ActuatorInfo:+ type: object+ properties:+ version:+ readOnly: true+ type: string+ description: version is the bytebase's server version+ gitCommit:+ readOnly: true+ type: string+ description: git_commit is the git commit hash of the build+ readonly:+ readOnly: true+ type: boolean+ description: readonly flag means if the Bytebase is running in readonly mode.+ saas:+ readOnly: true+ type: boolean+ description: saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users.+ demoName:+ readOnly: true+ type: string+ description: demo_name specifies the demo name, empty string means no demo.+ host:+ readOnly: true+ type: string+ description: host is the Bytebase instance host.+ port:+ readOnly: true+ type: string+ description: port is the Bytebase instance port.+ externalUrl:+ readOnly: true+ type: string+ description: external_url is the URL where user or webhook callback visits Bytebase.+ needAdminSetup:+ readOnly: true+ type: boolean+ description: need_admin_setup flag means the Bytebase instance doesn't have any end users.+ disallowSignup:+ readOnly: true+ type: boolean+ description: disallow_signup is the flag to disable self-service signup.+ lastActiveTime:+ readOnly: true+ type: string+ description: last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value.+ format: date-time+ require2fa:+ readOnly: true+ type: boolean+ description: require_2fa is the flag to require 2FA for all users.+ workspaceId:+ readOnly: true+ type: string+ description: workspace_id is the identifier for the workspace.+ gitopsWebhookUrl:+ readOnly: true+ type: string+ description: gitops_webhook_url is the webhook URL for GitOps.+ debug:+ type: boolean+ description: debug flag means if the debug mode is enabled.+ lsp:+ type: boolean+ description: lsp is the enablement of lsp in SQL Editor.+ preUpdateBackup:+ type: boolean+ description: lsp is the enablement of data backup prior to data update.+ iamGuard:+ type: boolean+ description: iam_guard is the enablement of IAM checks.+ unlicensedFeatures:+ type: array+ items:+ type: string+ description: |-+ ServerInfo is the API message for server info.+ Actuator concept is similar to the Spring Boot Actuator.+ AddDataSourceRequest:+ required:+ - instance+ - dataSource+ type: object+ properties:+ instance:+ type: string+ description: |-+ The name of the instance to add a data source to.+ Format: instances/{instance}+ dataSource:+ allOf:+ - $ref: '#/components/schemas/DataSource'+ description: |-+ Identified by data source ID.+ Only READ_ONLY data source can be added.+ validateOnly:+ type: boolean+ description: Validate only also tests the data source connection.+ AddWebhookRequest:+ required:+ - project+ - webhook+ type: object+ properties:+ project:+ type: string+ description: |-+ The name of the project to add the webhook to.+ Format: projects/{project}+ webhook:+ allOf:+ - $ref: '#/components/schemas/Webhook'+ description: The webhook to add.+ AdminExecuteResponse:+ type: object+ properties:+ results:+ type: array+ items:+ $ref: '#/components/schemas/QueryResult'+ description: The query results.+ Advice:+ type: object+ properties:+ status:+ type: integer+ description: The advice status.+ format: enum+ code:+ type: integer+ description: The advice code.+ format: int32+ title:+ type: string+ description: The advice title.+ content:+ type: string+ description: The advice content.+ line:+ type: integer+ description: The advice line number in the SQL statement.+ format: int32+ column:+ type: integer+ description: The advice column number in the SQL statement.+ format: int32+ detail:+ type: string+ description: The advice detail.+ AdviseIndexResponse:+ type: object+ properties:+ currentIndex:+ type: string+ description: The current index of the statement used.+ suggestion:+ type: string+ description: The suggested index of the statement.+ createIndexStatement:+ type: string+ description: The create index statement of the suggested index.+ description: AdviseIndexResponse is the response of advising index.+ AgentPluginSetting:+ type: object+ properties:+ url:+ type: string+ description: The URL for the agent API.+ token:+ type: string+ description: The token for the agent.+ Algorithm_FullMask:+ type: object+ properties:+ substitution:+ type: string+ description: |-+ substitution is the string used to replace the original value, the+ max length of the string is 16 bytes.+ Algorithm_MD5Mask:+ type: object+ properties:+ salt:+ type: string+ description: salt is the salt value to generate a different hash that with the word alone.+ Algorithm_RangeMask:+ type: object+ properties:+ slices:+ type: array+ items:+ $ref: '#/components/schemas/RangeMask_Slice'+ description: |-+ We store it as a repeated field to face the fact that the original value may have multiple parts should be masked.+ But frontend can be started with a single rule easily.+ Announcement:+ type: object+ properties:+ level:+ type: integer+ description: The alert level of announcemnt+ format: enum+ text:+ type: string+ description: The text of announcemnt+ link:+ type: string+ description: The optional link, user can follow the link to check extra details+ Anomaly:+ required:+ - resource+ type: object+ properties:+ resource:+ type: string+ description: |-+ The resource that is the target of the operation.+ Format:+ - Instance: instnaces/{instance}+ - Database: instnaces/{instance}/databases/{database}+ type:+ type: integer+ description: type is the type of the anomaly.+ format: enum+ severity:+ type: integer+ description: severity is the severity of the anomaly.+ format: enum+ instanceConnectionDetail:+ $ref: '#/components/schemas/Anomaly_InstanceConnectionDetail'+ databaseConnectionDetail:+ $ref: '#/components/schemas/Anomaly_DatabaseConnectionDetail'+ databaseSchemaDriftDetail:+ $ref: '#/components/schemas/Anomaly_DatabaseSchemaDriftDetail'+ createTime:+ readOnly: true+ type: string+ format: date-time+ updateTime:+ readOnly: true+ type: string+ format: date-time+ Anomaly_DatabaseConnectionDetail:+ type: object+ properties:+ detail:+ type: string+ description: detail is the detail of the database connection failure.+ description: |-+ Database level anomaly detial.++ DatbaaseConnectionDetail is the detail for database connection anomaly.+ Anomaly_DatabaseSchemaDriftDetail:+ type: object+ properties:+ recordVersion:+ type: string+ description: record_version is the record version of the database schema drift.+ expectedSchema:+ type: string+ description: expected_schema is the expected schema in the database.+ actualSchema:+ type: string+ description: actual_schema is the actual schema in the database.+ description: DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.+ Anomaly_InstanceConnectionDetail:+ type: object+ properties:+ detail:+ type: string+ description: detail is the detail of the instance connection failure.+ description: |-+ Instance level anomaly detail.++ InstanceConnectionDetail is the detail for instance connection anomaly.+ AppIMSetting:+ type: object+ properties:+ imType:+ type: integer+ format: enum+ appId:+ type: string+ appSecret:+ type: string+ externalApproval:+ $ref: '#/components/schemas/AppIMSetting_ExternalApproval'+ AppIMSetting_ExternalApproval:+ type: object+ properties:+ enabled:+ type: boolean+ approvalDefinitionId:+ type: string+ ApprovalFlow:+ type: object+ properties:+ steps:+ type: array+ items:+ $ref: '#/components/schemas/ApprovalStep'+ ApprovalNode:+ type: object+ properties:+ type:+ type: integer+ format: enum+ groupValue:+ type: integer+ format: enum+ role:+ type: string+ description: 'Format: roles/{role}'+ externalNodeId:+ type: string+ ApprovalStep:+ type: object+ properties:+ type:+ type: integer+ format: enum+ nodes:+ type: array+ items:+ $ref: '#/components/schemas/ApprovalNode'+ ApprovalTemplate:+ type: object+ properties:+ flow:+ $ref: '#/components/schemas/ApprovalFlow'+ title:+ type: string+ description:+ type: string+ creator:+ type: string+ description: |-+ The name of the creator in users/{email} format.+ TODO: we should mark it as OUTPUT_ONLY, but currently the frontend will post the approval setting with creator.+ ApproveIssueRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the issue to add an approver.+ Format: projects/{project}/issues/{issue}+ comment:+ type: string+ BatchCancelTaskRunsRequest:+ type: object+ properties:+ parent:+ type: string+ description: |-+ 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.+ taskRuns:+ type: array+ items:+ type: string+ description: |-+ The taskRuns to cancel.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+ reason:+ type: string+ BatchCancelTaskRunsResponse:+ type: object+ properties: {}+ BatchDeparseRequest:+ type: object+ properties:+ expressions:+ type: array+ items:+ $ref: '#/components/schemas/ParsedExpr'+ BatchDeparseResponse:+ type: object+ properties:+ expressions:+ type: array+ items:+ type: string+ BatchGetIamPolicyResponse:+ type: object+ properties:+ policyResults:+ type: array+ items:+ $ref: '#/components/schemas/BatchGetIamPolicyResponse_PolicyResult'+ BatchGetIamPolicyResponse_PolicyResult:+ type: object+ properties:+ project:+ type: string+ policy:+ $ref: '#/components/schemas/IamPolicy'+ BatchParseRequest:+ type: object+ properties:+ expressions:+ type: array+ items:+ type: string+ BatchParseResponse:+ type: object+ properties:+ expressions:+ type: array+ items:+ $ref: '#/components/schemas/ParsedExpr'+ BatchRunTasksRequest:+ type: object+ properties:+ parent:+ type: string+ description: |-+ The name of the parent of the tasks.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ tasks:+ type: array+ items:+ type: string+ description: |-+ The tasks to run.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ reason:+ type: string+ BatchRunTasksResponse:+ type: object+ properties: {}+ BatchSkipTasksRequest:+ type: object+ properties:+ parent:+ type: string+ description: |-+ The name of the parent of the tasks.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}+ tasks:+ type: array+ items:+ type: string+ description: |-+ The tasks to skip.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ reason:+ type: string+ BatchSkipTasksResponse:+ type: object+ properties: {}+ BatchSyncInstanceRequest:+ required:+ - requests+ type: object+ properties:+ requests:+ type: array+ items:+ $ref: '#/components/schemas/SyncInstanceRequest'+ description: |-+ The request message specifying the instances to sync.+ A maximum of 1000 instances can be synced in a batch.+ BatchSyncInstanceResponse:+ type: object+ properties: {}+ BatchUpdateDatabasesRequest:+ required:+ - requests+ type: object+ properties:+ parent:+ type: string+ description: |-+ The parent resource shared by all databases being updated.+ Format: instances/{instance}+ If the operation spans parents, a dash (-) may be accepted as a wildcard.+ We only support updating the project of databases for now.+ requests:+ type: array+ items:+ $ref: '#/components/schemas/UpdateDatabaseRequest'+ description: |-+ The request message specifying the resources to update.+ A maximum of 1000 databases can be modified in a batch.+ BatchUpdateDatabasesResponse:+ type: object+ properties:+ databases:+ type: array+ items:+ $ref: '#/components/schemas/Database'+ description: Databases updated.+ BatchUpdateIssuesStatusRequest:+ type: object+ properties:+ parent:+ type: string+ description: |-+ The parent resource shared by all issues being updated.+ Format: projects/{project}+ If the operation spans parents, a dash (-) may be accepted as a wildcard.+ We only support updating the status of databases for now.+ issues:+ type: array+ items:+ type: string+ description: |-+ The list of issues to update.+ Format: projects/{project}/issues/{issue}+ status:+ type: integer+ description: The new status.+ format: enum+ reason:+ type: string+ BatchUpdateIssuesStatusResponse:+ type: object+ properties: {}+ Binding:+ type: object+ properties:+ role:+ type: string+ description: |-+ Role that is assigned to the list of members.+ Format: roles/{role}+ members:+ type: array+ items:+ type: string+ description: |-+ Specifies the principals requesting access for a Bytebase resource.+ `members` can have the following values:++ * `allUsers`: A special identifier that represents anyone.+ * `user:{emailid}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.+ condition:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ The condition that is associated with this binding.+ If the condition evaluates to true, then this binding applies to the current request.+ If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.+ description: 'Reference: https://cloud.google.com/pubsub/docs/reference/rpc/google.iam.v1#binding'+ Branch:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the branch.+ Format: projects/{project}/branches/{branch}+ {branch} should be the id of a sheet.+ branchId:+ type: string+ description: The branch ID.+ schema:+ readOnly: true+ type: string+ description: The schema of branch. AKA sheet's statement.+ schemaMetadata:+ allOf:+ - $ref: '#/components/schemas/DatabaseMetadata'+ description: The metadata of the current editing schema.+ baselineSchema:+ readOnly: true+ type: string+ description: The baseline schema.+ baselineSchemaMetadata:+ readOnly: true+ allOf:+ - $ref: '#/components/schemas/DatabaseMetadata'+ description: The metadata of the baseline schema.+ engine:+ type: integer+ description: The database engine of the branch.+ format: enum+ baselineDatabase:+ type: string+ description: |-+ The name of the baseline database.+ Format: instances/{instance}/databases/{database}+ parentBranch:+ type: string+ description: |-+ The name of the parent branch.+ For main branch, it's empty.+ For child branch, its format will be: projects/{project}/branches/{branch}+ etag:+ type: string+ description: The etag of the branch.+ creator:+ readOnly: true+ type: string+ description: |-+ The creator of the branch.+ Format: users/{email}+ updater:+ readOnly: true+ type: string+ description: |-+ The updater of the branch.+ Format: users/{email}+ createTime:+ readOnly: true+ type: string+ description: The timestamp when the branch was created.+ format: date-time+ updateTime:+ readOnly: true+ type: string+ description: The timestamp when the branch was last updated.+ format: date-time+ ChangeDatabaseConfig_PreUpdateBackupDetail:+ type: object+ properties:+ database:+ type: string+ description: |-+ The database for keeping the backup data.+ Format: instances/{instance}/databases/{database}+ ChangeDatabaseConfig_RollbackDetail:+ type: object+ properties:+ rollbackFromTask:+ type: string+ description: |-+ rollback_from_task is the task from which the rollback SQL statement is generated for this task.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ rollbackFromIssue:+ type: string+ description: |-+ rollback_from_issue is the issue containing the original task from which the rollback SQL statement is generated for this task.+ Format: projects/{project}/issues/{issue}+ ChangeHistory:+ type: object+ properties:+ name:+ type: string+ description: 'Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}'+ uid:+ type: string+ creator:+ type: string+ description: 'Format: users/[email protected]'+ updater:+ type: string+ description: 'Format: users/[email protected]'+ createTime:+ type: string+ format: date-time+ updateTime:+ type: string+ format: date-time+ releaseVersion:+ type: string+ description: release version of Bytebase+ source:+ type: integer+ format: enum+ type:+ type: integer+ format: enum+ status:+ type: integer+ format: enum+ version:+ type: string+ description:+ type: string+ statement:+ type: string+ description: The statement is used for preview purpose.+ statementSize:+ type: string+ statementSheet:+ type: string+ description: |-+ The name of the sheet resource.+ Format: projects/{project}/sheets/{sheet}+ schema:+ type: string+ schemaSize:+ type: string+ prevSchema:+ type: string+ prevSchemaSize:+ type: string+ executionDuration:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ issue:+ type: string+ description: 'Format: projects/{project}/issues/{issue}'+ changedResources:+ $ref: '#/components/schemas/ChangedResources'+ ChangedResourceDatabase:+ type: object+ properties:+ name:+ type: string+ schemas:+ type: array+ items:+ $ref: '#/components/schemas/ChangedResourceSchema'+ ChangedResourceSchema:+ type: object+ properties:+ name:+ type: string+ tables:+ type: array+ items:+ $ref: '#/components/schemas/ChangedResourceTable'+ ChangedResourceTable:+ type: object+ properties:+ name:+ type: string+ ChangedResources:+ type: object+ properties:+ databases:+ type: array+ items:+ $ref: '#/components/schemas/ChangedResourceDatabase'+ Changelist:+ type: object+ properties:+ description:+ type: string+ changes:+ type: array+ items:+ $ref: '#/components/schemas/Changelist_Change'+ Changelist_Change:+ type: object+ properties:+ sheet:+ type: string+ description: The name of a sheet.+ source:+ type: string+ description: |-+ The source of origin.+ 1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}.+ 2) branch: projects/{project}/branches/{branch}.+ 3) raw SQL if empty.+ version:+ type: string+ description: The migration version for a change.+ CheckRequest:+ required:+ - database+ type: object+ properties:+ statement:+ type: string+ database:+ type: string+ description: |-+ The database name to check against.+ Format: instances/{instance}/databases/{databaseName}+ metadata:+ allOf:+ - $ref: '#/components/schemas/DatabaseMetadata'+ description: |-+ 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.+ changeType:+ type: integer+ format: enum+ CheckResponse:+ type: object+ properties:+ advices:+ type: array+ items:+ $ref: '#/components/schemas/Advice'+ ColumnConfig:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of a column.+ semanticTypeId:+ type: string+ labels:+ type: object+ additionalProperties:+ type: string+ description: The user labels for a column.+ ColumnMetadata:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of a column.+ position:+ type: integer+ description: The position is the position in columns.+ format: int32+ hasDefault:+ type: boolean+ defaultNull:+ type: boolean+ defaultString:+ type: string+ defaultExpression:+ type: string+ onUpdate:+ type: string+ description: |-+ The on_update is the on update action of a column.+ For MySQL like databases, it's only supported for TIMESTAMP columns with CURRENT_TIMESTAMP as on update value.+ nullable:+ type: boolean+ description: The nullable is the nullable of a column.+ type:+ type: string+ description: The type is the type of a column.+ characterSet:+ type: string+ description: The character_set is the character_set of a column.+ collation:+ type: string+ description: The collation is the collation of a column.+ comment:+ type: string+ description: |-+ The comment is the comment of a column.+ classification and user_comment is parsed from the comment.+ classification:+ type: string+ description: The classification is the classification of a column parsed from the comment.+ userComment:+ type: string+ description: The user_comment is the user comment of a column parsed from the comment.+ effectiveMaskingLevel:+ type: integer+ description: |-+ The effective_masking_level is the effective masking level of the column, evaluate from the+ column masking data and global masking rules.+ format: enum+ description: ColumnMetadata is the metadata for columns.+ Constant:+ type: object+ properties:+ nullValue:+ type: integer+ description: null value.+ format: enum+ boolValue:+ type: boolean+ description: boolean value.+ int64Value:+ type: string+ description: int64 value.+ uint64Value:+ type: string+ description: uint64 value.+ doubleValue:+ type: number+ description: double value.+ format: double+ stringValue:+ type: string+ description: string value.+ bytesValue:+ type: string+ description: bytes value.+ format: bytes+ durationValue:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: |-+ protobuf.Duration value.++ Deprecated: duration is no longer considered a builtin cel type.+ timestampValue:+ type: string+ description: |-+ protobuf.Timestamp value.++ Deprecated: timestamp is no longer considered a builtin cel type.+ format: date-time+ description: |-+ Represents a primitive literal.++ Named 'Constant' here for backwards compatibility.++ This is similar as the primitives supported in the well-known type+ `google.protobuf.Value`, but richer so it can represent CEL's full range of+ primitives.++ Lists and structs are not included as constants as these aggregate types may+ contain [Expr][google.api.expr.v1alpha1.Expr] elements which require evaluation and are thus not constant.++ Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`,+ `true`, `null`.+ CreateStruct_Entry:+ type: object+ properties:+ id:+ type: string+ description: |-+ Required. An id assigned to this node by the parser which is unique+ in a given expression tree. This is used to associate type+ information and other attributes to the node.+ fieldKey:+ type: string+ description: The field key for a message creator statement.+ mapKey:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: The key expression for a map creation statement.+ value:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ Required. The value assigned to the key.++ If the optional_entry field is true, the expression must resolve to an+ optional-typed value. If the optional value is present, the key will be+ set; however, if the optional value is absent, the key will be unset.+ optionalEntry:+ type: boolean+ description: Whether the key-value pair is optional.+ description: Represents an entry.+ DataClassificationConfig_DataClassification:+ type: object+ properties:+ id:+ type: string+ description: id is the classification id in [0-9]+-[0-9]+-[0-9]+ format.+ title:+ type: string+ description:+ type: string+ levelId:+ type: string+ DataClassificationConfig_Level:+ type: object+ properties:+ id:+ type: string+ title:+ type: string+ description:+ type: string+ DataClassificationSetting:+ type: object+ properties:+ configs:+ type: array+ items:+ $ref: '#/components/schemas/DataClassificationSetting_DataClassificationConfig'+ DataClassificationSetting_DataClassificationConfig:+ type: object+ properties:+ id:+ type: string+ description: |-+ id is the uuid for classification. Each project can chose one+ classification config.+ title:+ type: string+ levels:+ type: array+ items:+ $ref: '#/components/schemas/DataClassificationConfig_Level'+ description: |-+ levels is user defined level list for classification.+ The order for the level decides its priority.+ classification:+ type: object+ additionalProperties:+ $ref: '#/components/schemas/DataClassificationConfig_DataClassification'+ description: |-+ classification is the id - DataClassification map.+ The id should in [0-9]+-[0-9]+-[0-9]+ format.+ DataSource:+ type: object+ properties:+ id:+ type: string+ type:+ type: integer+ format: enum+ username:+ type: string+ password:+ writeOnly: true+ type: string+ sslCa:+ writeOnly: true+ type: string+ sslCert:+ writeOnly: true+ type: string+ sslKey:+ writeOnly: true+ type: string+ host:+ type: string+ port:+ type: string+ database:+ type: string+ srv:+ type: boolean+ description: srv and authentication_database are used for MongoDB.+ authenticationDatabase:+ type: string+ sid:+ type: string+ description: sid and service_name are used for Oracle.+ serviceName:+ type: string+ sshHost:+ type: string+ description: |-+ Connection over SSH.+ The hostname of the SSH server agent.+ Required.+ sshPort:+ type: string+ description: |-+ The port of the SSH server agent. It's 22 typically.+ Required.+ sshUser:+ type: string+ description: |-+ The user to login the server.+ Required.+ sshPassword:+ writeOnly: true+ type: string+ description: The password to login the server. If it's empty string, no password is required.+ sshPrivateKey:+ writeOnly: true+ type: string+ description: The private key to login the server. If it's empty string, we will use the system default private key from os.Getenv("SSH_AUTH_SOCK").+ authenticationPrivateKey:+ writeOnly: true+ type: string+ description: |-+ PKCS#8 private key in PEM format. If it's empty string, no private key is required.+ Used for authentication when connecting to the data source.+ externalSecret:+ $ref: '#/components/schemas/DataSourceExternalSecret'+ DataSourceExternalSecret:+ type: object+ properties:+ secretType:+ type: integer+ format: enum+ url:+ type: string+ authType:+ type: integer+ format: enum+ appRole:+ $ref: '#/components/schemas/DataSourceExternalSecret_AppRoleAuthOption'+ token:+ type: string+ engineName:+ type: string+ description: engine name is the name for secret engine.+ secretName:+ type: string+ description: the secret name in the engine to store the password.+ passwordKeyName:+ type: string+ description: the key name for the password.+ DataSourceExternalSecret_AppRoleAuthOption:+ type: object+ properties:+ roleId:+ writeOnly: true+ type: string+ secretId:+ writeOnly: true+ type: string+ description: the secret id for the role without ttl.+ type:+ type: integer+ format: enum+ mountPath:+ type: string+ description: The path where the approle auth method is mounted.+ Database:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the database.+ Format: instances/{instance}/databases/{database}+ {database} is the database name in the instance.+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ syncState:+ readOnly: true+ type: integer+ description: The existence of a database on latest sync.+ format: enum+ successfulSyncTime:+ readOnly: true+ type: string+ description: The latest synchronization time.+ format: date-time+ project:+ type: string+ description: |-+ The project for a database.+ Format: projects/{project}+ schemaVersion:+ readOnly: true+ type: string+ description: The version of database schema.+ environment:+ type: string+ description: |-+ The environment resource.+ Format: environments/prod where prod is the environment resource ID.+ effectiveEnvironment:+ readOnly: true+ type: string+ description: |-+ The effective environment based on environment tag above and environment tag on the instance.+ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-overview.+ labels:+ type: object+ additionalProperties:+ type: string+ description: Labels will be used for deployment and policy control.+ instanceResource:+ readOnly: true+ allOf:+ - $ref: '#/components/schemas/InstanceResource'+ description: The instance resource.+ DatabaseConfig:+ type: object+ properties:+ name:+ type: string+ schemaConfigs:+ type: array+ items:+ $ref: '#/components/schemas/SchemaConfig'+ description: The schema_configs is the list of configs for schemas in a database.+ DatabaseGroup:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the database group.+ Format: projects/{project}/databaseGroups/{databaseGroup}+ databasePlaceholder:+ type: string+ description: |-+ The short name used in actual databases specified by users.+ For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1".+ databaseExpr:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: The condition that is associated with this database group.+ matchedDatabases:+ readOnly: true+ type: array+ items:+ $ref: '#/components/schemas/DatabaseGroup_Database'+ description: The list of databases that match the database group condition.+ unmatchedDatabases:+ readOnly: true+ type: array+ items:+ $ref: '#/components/schemas/DatabaseGroup_Database'+ description: The list of databases that match the database group condition.+ DatabaseGroup_Database:+ type: object+ properties:+ name:+ type: string+ description: |-+ The resource name of the database.+ Format: instances/{instance}/databases/{database}+ DatabaseMetadata:+ type: object+ properties:+ labels:+ type: object+ additionalProperties:+ type: string+ lastSyncTime:+ type: string+ format: date-time+ description: DatabaseMetadata is the metadata for databases.+ DatabaseSchema:+ type: object+ properties:+ schema:+ type: string+ description: The schema dump from database.+ description: DatabaseSchema is the metadata for databases.+ DebugLog:+ type: object+ properties:+ recordTime:+ type: string+ format: date-time+ requestPath:+ type: string+ role:+ type: string+ error:+ type: string+ stackTrace:+ type: string+ DeploymentConfig:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the resource.+ Format: projects/{project}/deploymentConfigs/default.+ title:+ type: string+ description: The title of the deployment config.+ schedule:+ $ref: '#/components/schemas/Schedule'+ DeploymentSpec:+ type: object+ properties:+ labelSelector:+ $ref: '#/components/schemas/LabelSelector'+ DiffDatabaseResponse:+ type: object+ properties:+ diff:+ type: string+ description: The schema diff when merge occurs seamlessly.+ schema:+ type: string+ description: The merged schema if there is no conflict.+ conflictSchema:+ type: string+ description: |-+ The conflict schema when rebase has conflicts.+ The conflict section is enclosed by the following.+ <<<<< HEAD+ ====+ >>>>> main+ DiffMetadataRequest:+ required:+ - sourceMetadata+ - targetMetadata+ type: object+ properties:+ sourceMetadata:+ allOf:+ - $ref: '#/components/schemas/DatabaseMetadata'+ description: The metadata of the source schema.+ targetMetadata:+ allOf:+ - $ref: '#/components/schemas/DatabaseMetadata'+ description: The metadata of the target schema.+ engine:+ type: integer+ description: The database engine of the schema.+ format: enum+ DiffMetadataResponse:+ type: object+ properties:+ diff:+ type: string+ description: The diff of the metadata.+ DiffSchemaRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the database or change history.+ Format:+ database: instances/{instance}/databases/{database}+ change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ schema:+ type: string+ description: The target schema.+ changeHistory:+ type: string+ description: |-+ The resource name of the change history+ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ sdlFormat:+ type: boolean+ description: Format the schema dump into SDL format.+ DiffSchemaResponse:+ type: object+ properties:+ diff:+ type: string+ DifferPreviewRequest:+ type: object+ properties:+ engine:+ type: integer+ format: enum+ oldSchema:+ type: string+ newMetadata:+ $ref: '#/components/schemas/DatabaseMetadata'+ DifferPreviewResponse:+ type: object+ properties:+ schema:+ type: string+ DisableCopyDataPolicy:+ type: object+ properties:+ active:+ type: boolean+ Environment:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the environment.+ Format: environments/{environment}+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ state:+ type: integer+ format: enum+ title:+ type: string+ order:+ type: integer+ format: int32+ tier:+ type: integer+ format: enum+ ExecuteRequest:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name is the instance name to execute the query against.+ Format: instances/{instance}/databases/{databaseName}+ statement:+ type: string+ description: The SQL statement to execute.+ limit:+ type: integer+ description: The maximum number of rows to return.+ format: int32+ timeout:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The timeout for the request.+ ExecuteResponse:+ type: object+ properties:+ results:+ type: array+ items:+ $ref: '#/components/schemas/QueryResult'+ description: The execute results.+ advices:+ type: array+ items:+ $ref: '#/components/schemas/Advice'+ description: The execute advices.+ ExecutionDetail_Position:+ type: object+ properties:+ line:+ type: integer+ description: The line number, starting from 0.+ format: int32+ column:+ type: integer+ description: The column number, starting from 0.+ format: int32+ ExportLogsRequest:+ type: object+ properties:+ filter:+ type: string+ description: |-+ Consistent with filter and order by in ListLogs.+ filter is the filter to apply on the list logs request,+ follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+ The field only support in filter:+ - creator, example:+ - creator = "users/{email}"+ - resource, example:+ - resource = "projects/{project resource id}"+ - level, example:+ - level = "INFO"+ - level = "ERROR | WARN"+ - action, example:+ - action = "ACTION_MEMBER_CREATE" | "ACTION_ISSUE_CREATE"+ - create_time, example:+ - create_time <= "2022-01-01T12:00:00.000Z"+ - create_time >= "2022-01-01T12:00:00.000Z"+ For example:+ List the logs of type 'ACTION_ISSUE_COMMENT_CREATE' in issue/123: 'action="ACTION_ISSUE_COMMENT_CREATE", resource="issue/123"'+ orderBy:+ type: string+ description: |-+ The order by of the log.+ Only support order by create_time.+ For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc"+ format:+ type: integer+ description: The export format.+ format: enum+ ExportLogsResponse:+ type: object+ properties:+ content:+ type: string+ format: bytes+ ExportRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name is the instance name to execute the query against.+ Format: instances/{instance}/databases/{databaseName}+ connectionDatabase:+ type: string+ statement:+ type: string+ description: The SQL statement to execute.+ limit:+ type: integer+ description: The maximum number of rows to return.+ format: int32+ format:+ type: integer+ description: The export format.+ format: enum+ admin:+ type: boolean+ description: |-+ The admin is used for workspace owner and DBA for exporting data from SQL Editor Admin mode.+ The exported data is not masked.+ password:+ type: string+ description: The zip password provide by users.+ ExportResponse:+ type: object+ properties:+ content:+ type: string+ description: The export file content.+ format: bytes+ Expr:+ type: object+ properties:+ id:+ type: string+ description: |-+ Required. An id assigned to this node by the parser which is unique in a+ given expression tree. This is used to associate type information and other+ attributes to a node in the parse tree.+ constExpr:+ allOf:+ - $ref: '#/components/schemas/Constant'+ description: A literal expression.+ identExpr:+ allOf:+ - $ref: '#/components/schemas/Expr_Ident'+ description: An identifier expression.+ selectExpr:+ allOf:+ - $ref: '#/components/schemas/Expr_Select'+ description: A field selection expression, e.g. `request.auth`.+ callExpr:+ allOf:+ - $ref: '#/components/schemas/Expr_Call'+ description: A call expression, including calls to predefined functions and operators.+ listExpr:+ allOf:+ - $ref: '#/components/schemas/Expr_CreateList'+ description: A list creation expression.+ structExpr:+ allOf:+ - $ref: '#/components/schemas/Expr_CreateStruct'+ description: A map or message creation expression.+ comprehensionExpr:+ allOf:+ - $ref: '#/components/schemas/Expr_Comprehension'+ description: A comprehension expression.+ description: |-+ An abstract representation of a common expression.++ Expressions are abstractly represented as a collection of identifiers,+ select statements, function calls, literals, and comprehensions. All+ operators with the exception of the '.' operator are modelled as function+ calls. This makes it easy to represent new operators into the existing AST.++ All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at+ type-check for an expression to be valid. A reference may either be a bare+ identifier `name` or a qualified identifier `google.api.name`. References+ may either refer to a value or a function declaration.++ For example, the expression `google.api.name.startsWith('expr')` references+ the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and+ the function declaration `startsWith`.+ Expr_Call:+ type: object+ properties:+ target:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ The target of an method call-style expression. For example, `x` in+ `x.f()`.+ function:+ type: string+ description: Required. The name of the function or method being called.+ args:+ type: array+ items:+ $ref: '#/components/schemas/Expr'+ description: The arguments.+ description: |-+ A call expression, including calls to predefined functions and operators.++ For example, `value == 10`, `size(map_value)`.+ Expr_Comprehension:+ type: object+ properties:+ iterVar:+ type: string+ description: The name of the iteration variable.+ iterRange:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: The range over which var iterates.+ accuVar:+ type: string+ description: The name of the variable used for accumulation of the result.+ accuInit:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: The initial value of the accumulator.+ loopCondition:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ An expression which can contain iter_var and accu_var.++ Returns false when the result has been computed and may be used as+ a hint to short-circuit the remainder of the comprehension.+ loopStep:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ An expression which can contain iter_var and accu_var.++ Computes the next value of accu_var.+ result:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ An expression which can contain accu_var.++ Computes the result.+ description: |-+ A comprehension expression applied to a list or map.++ Comprehensions are not part of the core syntax, but enabled with macros.+ A macro matches a specific call signature within a parsed AST and replaces+ the call with an alternate AST block. Macro expansion happens at parse+ time.++ The following macros are supported within CEL:++ Aggregate type macros may be applied to all elements in a list or all keys+ in a map:++ * `all`, `exists`, `exists_one` - test a predicate expression against+ the inputs and return `true` if the predicate is satisfied for all,+ any, or only one value `list.all(x, x < 10)`.+ * `filter` - test a predicate expression against the inputs and return+ the subset of elements which satisfy the predicate:+ `payments.filter(p, p > 1000)`.+ * `map` - apply an expression to all elements in the input and return the+ output aggregate type: `[1, 2, 3].map(i, i * i)`.++ The `has(m.x)` macro tests whether the property `x` is present in struct+ `m`. The semantics of this macro depend on the type of `m`. For proto2+ messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the+ macro tests whether the property is set to its default. For map and struct+ types, the macro tests whether the property `x` is defined on `m`.+ Expr_CreateList:+ type: object+ properties:+ elements:+ type: array+ items:+ $ref: '#/components/schemas/Expr'+ description: The elements part of the list.+ optionalIndices:+ type: array+ items:+ type: integer+ format: int32+ description: |-+ The indices within the elements list which are marked as optional+ elements.++ When an optional-typed value is present, the value it contains+ is included in the list. If the optional-typed value is absent, the list+ element is omitted from the CreateList result.+ description: |-+ A list creation expression.++ Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g.+ `dyn([1, 'hello', 2.0])`+ Expr_CreateStruct:+ type: object+ properties:+ messageName:+ type: string+ description: |-+ The type name of the message to be created, empty when creating map+ literals.+ entries:+ type: array+ items:+ $ref: '#/components/schemas/CreateStruct_Entry'+ description: The entries in the creation expression.+ description: |-+ A map or message creation expression.++ Maps are constructed as `{'key_name': 'value'}`. Message construction is+ similar, but prefixed with a type name and composed of field ids:+ `types.MyType{field_id: 'value'}`.+ Expr_Ident:+ type: object+ properties:+ name:+ type: string+ description: |-+ Required. Holds a single, unqualified identifier, possibly preceded by a+ '.'.++ Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.+ description: An identifier expression. e.g. `request`.+ Expr_Select:+ type: object+ properties:+ operand:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ Required. The target of the selection expression.++ For example, in the select expression `request.auth`, the `request`+ portion of the expression is the `operand`.+ field:+ type: string+ description: |-+ Required. The name of the field to select.++ For example, in the select expression `request.auth`, the `auth` portion+ of the expression would be the `field`.+ testOnly:+ type: boolean+ description: |-+ Whether the select is to be interpreted as a field presence test.++ This results from the macro `has(request.auth)`.+ description: A field selection expression. e.g. `request.auth`.+ ExternalApprovalSetting:+ type: object+ properties:+ nodes:+ type: array+ items:+ $ref: '#/components/schemas/ExternalApprovalSetting_Node'+ ExternalApprovalSetting_Node:+ type: object+ properties:+ id:+ type: string+ description: |-+ A unique identifier for a node in UUID format.+ We will also include the id in the message sending to the external relay+ service to identify the node.+ title:+ type: string+ description: The title of the node.+ endpoint:+ type: string+ description: The external endpoint for the relay service, e.g. "http://hello:1234".+ Feature:+ type: object+ properties:+ name:+ type: string+ description: Name is the feature name.+ matrix:+ type: object+ additionalProperties:+ type: boolean+ description: Matrix is the feature matrix for different plan. The key is the plan enum in string value.+ FeatureMatrix:+ type: object+ properties:+ features:+ type: array+ items:+ $ref: '#/components/schemas/Feature'+ FieldMapping:+ type: object+ properties:+ identifier:+ type: string+ description: Identifier is the field name of the unique identifier in 3rd-party idp user info. Required.+ displayName:+ type: string+ description: DisplayName is the field name of display name in 3rd-party idp user info.+ email:+ type: string+ description: Email is the field name of primary email in 3rd-party idp user info.+ phone:+ type: string+ description: Phone is the field name of primary phone in 3rd-party idp user info.+ description: |-+ FieldMapping saves the field names from user info API of identity provider.+ As we save all raw json string of user info response data into `principal.idp_user_info`,+ we can extract the relevant data based with `FieldMapping`.++ e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.+ Then the identifier of FieldMapping will be `login`, display_name will be `name`,+ and email will be `email`.+ reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user+ ForeignKeyMetadata:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of a foreign key.+ columns:+ type: array+ items:+ type: string+ description: The columns are the ordered referencing columns of a foreign key.+ referencedSchema:+ type: string+ description: |-+ The referenced_schema is the referenced schema name of a foreign key.+ It is an empty string for databases without such concept such as MySQL.+ referencedTable:+ type: string+ description: The referenced_table is the referenced table name of a foreign key.+ referencedColumns:+ type: array+ items:+ type: string+ description: The referenced_columns are the ordered referenced columns of a foreign key.+ onDelete:+ type: string+ description: The on_delete is the on delete action of a foreign key.+ onUpdate:+ type: string+ description: The on_update is the on update action of a foreign key.+ matchType:+ type: string+ description: |-+ The match_type is the match type of a foreign key.+ The match_type is the PostgreSQL specific field.+ It's empty string for other databases.+ description: ForeignKeyMetadata is the metadata for foreign keys.+ GoogleProtobufAny:+ type: object+ properties:+ '@type':+ type: string+ description: The type of the serialized message.+ additionalProperties: true+ description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.+ GoogleProtobufValue:+ description: Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.+ GrantRequest:+ type: object+ properties:+ role:+ type: string+ description: |-+ The requested role.+ Format: roles/EXPORTER.+ user:+ type: string+ description: |-+ The user to be granted.+ Format: users/{email}.+ condition:+ $ref: '#/components/schemas/Expr'+ expiration:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ IamPolicy:+ type: object+ properties:+ bindings:+ type: array+ items:+ $ref: '#/components/schemas/Binding'+ description: Collection of binding.+ IdentityProvider:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the identity provider.+ Format: idps/{identity_provider}+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ state:+ type: integer+ format: enum+ title:+ type: string+ domain:+ type: string+ type:+ type: integer+ format: enum+ config:+ $ref: '#/components/schemas/IdentityProviderConfig'+ IdentityProviderConfig:+ type: object+ properties:+ oauth2Config:+ $ref: '#/components/schemas/OAuth2IdentityProviderConfig'+ oidcConfig:+ $ref: '#/components/schemas/OIDCIdentityProviderConfig'+ ldapConfig:+ $ref: '#/components/schemas/LDAPIdentityProviderConfig'+ IdentityProviderContext:+ type: object+ properties:+ oauth2Context:+ $ref: '#/components/schemas/OAuth2IdentityProviderContext'+ oidcContext:+ $ref: '#/components/schemas/OIDCIdentityProviderContext'+ IndexMetadata:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of an index.+ expressions:+ type: array+ items:+ type: string+ description: |-+ The expressions are the ordered columns or expressions of an index.+ This could refer to a column or an expression.+ keyLength:+ type: array+ items:+ type: string+ description: |-+ The key_lengths are the ordered key lengths of an index.+ If the key length is not specified, it's -1.+ type:+ type: string+ description: The type is the type of an index.+ unique:+ type: boolean+ description: The unique is whether the index is unique.+ primary:+ type: boolean+ description: The primary is whether the index is a primary key index.+ visible:+ type: boolean+ description: The visible is whether the index is visible.+ comment:+ type: string+ description: The comment is the comment of an index.+ definition:+ type: string+ description: The definition of an index.+ description: IndexMetadata is the metadata for indexes.+ Instance:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the instance.+ Format: instances/{instance}+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ state:+ type: integer+ format: enum+ title:+ type: string+ engine:+ type: integer+ format: enum+ engineVersion:+ readOnly: true+ type: string+ externalLink:+ type: string+ dataSources:+ type: array+ items:+ $ref: '#/components/schemas/DataSource'+ environment:+ type: string+ description: |-+ The environment resource.+ Format: environments/prod where prod is the environment resource ID.+ activation:+ type: boolean+ options:+ $ref: '#/components/schemas/InstanceOptions'+ InstanceOptions:+ type: object+ properties:+ schemaTenantMode:+ type: boolean+ description: |-+ The schema tenant mode is used to determine whether the instance is in schema tenant mode.+ For Oracle schema tenant mode, the instance a Oracle database and the database is the Oracle schema.+ syncInterval:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: How often the instance is synced.+ maximumConnections:+ type: integer+ description: |-+ The maximum number of connections.+ The default is 10 if the value is unset or zero.+ format: int32+ description: InstanceOptions is the option for instances.+ InstanceResource:+ type: object+ properties:+ title:+ type: string+ engine:+ type: integer+ format: enum+ engineVersion:+ readOnly: true+ type: string+ dataSources:+ type: array+ items:+ $ref: '#/components/schemas/DataSource'+ activation:+ type: boolean+ InstanceRole:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the role.+ Format: instances/{instance}/roles/{role name}+ The role name is the unique name for the role.+ roleName:+ type: string+ description: The role name. It's unique within the instance.+ password:+ writeOnly: true+ type: string+ description: The role password.+ connectionLimit:+ type: integer+ description: The connection count limit for this role.+ format: int32+ validUntil:+ type: string+ description: The expiration for the role's password.+ attribute:+ type: string+ description: |-+ The role attribute.+ For PostgreSQL, it containt super_user, no_inherit, create_role, create_db, can_login, replication and bypass_rls. Docs: https://www.postgresql.org/docs/current/role-attributes.html+ For MySQL, it's the global privileges as GRANT statements, which means it only contains "GRANT ... ON *.* TO ...". Docs: https://dev.mysql.com/doc/refman/8.0/en/grant.html+ description: InstanceRole is the API message for instance role.+ Issue:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the issue.+ Format: projects/{project}/issues/{issue}+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ title:+ type: string+ description:+ type: string+ type:+ type: integer+ format: enum+ status:+ type: integer+ format: enum+ assignee:+ type: string+ description: 'Format: users/[email protected]'+ assigneeAttention:+ type: boolean+ approvers:+ type: array+ items:+ $ref: '#/components/schemas/Issue_Approver'+ approvalTemplates:+ type: array+ items:+ $ref: '#/components/schemas/ApprovalTemplate'+ approvalFindingDone:+ type: boolean+ description: |-+ If the value is `false`, it means that the backend is still finding matching approval templates.+ If `true`, approval_templates & approvers & approval_finding_error are available.+ approvalFindingError:+ type: string+ subscribers:+ type: array+ items:+ type: string+ description: |-+ The subscribers.+ Format: users/[email protected]+ creator:+ readOnly: true+ type: string+ description: 'Format: users/[email protected]'+ createTime:+ readOnly: true+ type: string+ format: date-time+ updateTime:+ readOnly: true+ type: string+ format: date-time+ plan:+ type: string+ description: |-+ The plan associated with the issue.+ Can be empty.+ Format: projects/{project}/plans/{plan}+ rollout:+ type: string+ description: |-+ The rollout associated with the issue.+ Can be empty.+ Format: projects/{project}/rollouts/{rollout}+ grantRequest:+ allOf:+ - $ref: '#/components/schemas/GrantRequest'+ description: Used if the issue type is GRANT_REQUEST.+ releasers:+ type: array+ items:+ type: string+ description: |-+ The releasers of the pending stage of the issue rollout, judging+ from the rollout policy.+ If the policy is auto rollout, the releasers are the project owners and the issue creator.+ Format:+ - roles/workspaceOwner+ - roles/workspaceDBA+ - roles/projectOwner+ - roles/projectReleaser+ - users/{email}+ riskLevel:+ type: integer+ format: enum+ taskStatusCount:+ type: object+ additionalProperties:+ type: integer+ format: int32+ description: |-+ The status count of the issue.+ Keys are the following:+ - NOT_STARTED+ - SKIPPED+ - PENDING+ - RUNNING+ - DONE+ - FAILED+ - CANCELED+ IssueComment:+ type: object+ properties:+ uid:+ readOnly: true+ type: string+ comment:+ type: string+ payload:+ type: string+ description: 'TODO: use struct message instead.'+ createTime:+ readOnly: true+ type: string+ format: date-time+ updateTime:+ readOnly: true+ type: string+ format: date-time+ name:+ type: string+ description: 'Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid}'+ creator:+ type: string+ description: 'Format: users/{email}'+ approval:+ $ref: '#/components/schemas/IssueComment_Approval'+ issueUpdate:+ $ref: '#/components/schemas/IssueComment_IssueUpdate'+ stageEnd:+ $ref: '#/components/schemas/IssueComment_StageEnd'+ taskUpdate:+ $ref: '#/components/schemas/IssueComment_TaskUpdate'+ taskPriorBackup:+ $ref: '#/components/schemas/IssueComment_TaskPriorBackup'+ IssueComment_Approval:+ type: object+ properties:+ status:+ type: integer+ format: enum+ IssueComment_IssueUpdate:+ type: object+ properties:+ fromTitle:+ type: string+ toTitle:+ type: string+ fromDescription:+ type: string+ toDescription:+ type: string+ fromStatus:+ type: integer+ format: enum+ toStatus:+ type: integer+ format: enum+ fromAssignee:+ type: string+ description: 'Format: users/{email}'+ toAssignee:+ type: string+ description: 'Format: users/{email}'+ IssueComment_StageEnd:+ type: object+ properties:+ stage:+ type: string+ IssueComment_TaskPriorBackup:+ type: object+ properties:+ task:+ type: string+ tables:+ type: array+ items:+ $ref: '#/components/schemas/TaskPriorBackup_Table'+ IssueComment_TaskUpdate:+ type: object+ properties:+ tasks:+ type: array+ items:+ type: string+ fromSheet:+ type: string+ description: 'Format: projects/{project}/sheets/{sheet}'+ toSheet:+ type: string+ description: 'Format: projects/{project}/sheets/{sheet}'+ fromEarliestAllowedTime:+ type: string+ format: date-time+ toEarliestAllowedTime:+ type: string+ format: date-time+ toStatus:+ type: integer+ format: enum+ Issue_Approver:+ type: object+ properties:+ status:+ type: integer+ description: The new status.+ format: enum+ principal:+ type: string+ description: 'Format: users/[email protected]'+ LDAPIdentityProviderConfig:+ type: object+ properties:+ host:+ type: string+ description: |-+ Host is the hostname or IP address of the LDAP server, e.g.+ "ldap.example.com".+ port:+ type: integer+ description: |-+ Port is the port number of the LDAP server, e.g. 389. When not set, the+ default port of the corresponding security protocol will be used, i.e. 389+ for StartTLS and 636 for LDAPS.+ format: int32+ skipTlsVerify:+ type: boolean+ description: SkipTLSVerify controls whether to skip TLS certificate verification.+ bindDn:+ type: string+ description: |-+ BindDN is the DN of the user to bind as a service account to perform+ search requests.+ bindPassword:+ type: string+ description: BindPassword is the password of the user to bind as a service account.+ baseDn:+ type: string+ description: BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com".+ userFilter:+ type: string+ description: UserFilter is the filter to search for users, e.g. "(uid=%s)".+ securityProtocol:+ type: string+ description: |-+ SecurityProtocol is the security protocol to be used for establishing+ connections with the LDAP server. It should be either StartTLS or LDAPS, and+ cannot be empty.+ fieldMapping:+ allOf:+ - $ref: '#/components/schemas/FieldMapping'+ description: |-+ FieldMapping is the mapping of the user attributes returned by the LDAP+ server.+ description: LDAPIdentityProviderConfig is the structure for LDAP identity provider config.+ LabelSelector:+ type: object+ properties:+ matchExpressions:+ type: array+ items:+ $ref: '#/components/schemas/LabelSelectorRequirement'+ LabelSelectorRequirement:+ type: object+ properties:+ key:+ type: string+ operator:+ type: integer+ format: enum+ values:+ type: array+ items:+ type: string+ ListBranchesResponse:+ type: object+ properties:+ branches:+ type: array+ items:+ $ref: '#/components/schemas/Branch'+ description: The branches from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListChangeHistoriesResponse:+ type: object+ properties:+ changeHistories:+ type: array+ items:+ $ref: '#/components/schemas/ChangeHistory'+ description: The list of change histories.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListChangelistsResponse:+ type: object+ properties:+ changelists:+ type: array+ items:+ $ref: '#/components/schemas/Changelist'+ description: The changelists from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListDatabaseGroupsResponse:+ type: object+ properties:+ databaseGroups:+ type: array+ items:+ $ref: '#/components/schemas/DatabaseGroup'+ description: database_groups is the list of database groups.+ nextPageToken:+ type: string+ description: |-+ Not used. A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListDatabasesResponse:+ type: object+ properties:+ databases:+ type: array+ items:+ $ref: '#/components/schemas/Database'+ description: The databases from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListDebugLogResponse:+ type: object+ properties:+ logs:+ type: array+ items:+ $ref: '#/components/schemas/DebugLog'+ description: The logs from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListEnvironmentsResponse:+ type: object+ properties:+ environments:+ type: array+ items:+ $ref: '#/components/schemas/Environment'+ description: The environments from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListIdentityProvidersResponse:+ type: object+ properties:+ identityProviders:+ type: array+ items:+ $ref: '#/components/schemas/IdentityProvider'+ description: The identity providers from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListInstanceRolesResponse:+ type: object+ properties:+ roles:+ type: array+ items:+ $ref: '#/components/schemas/InstanceRole'+ description: The roles from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListInstancesResponse:+ type: object+ properties:+ instances:+ type: array+ items:+ $ref: '#/components/schemas/Instance'+ description: The instances from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListIssueCommentsResponse:+ type: object+ properties:+ issueComments:+ type: array+ items:+ $ref: '#/components/schemas/IssueComment'+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListIssuesResponse:+ type: object+ properties:+ issues:+ type: array+ items:+ $ref: '#/components/schemas/Issue'+ description: The issues from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListPlanCheckRunsResponse:+ type: object+ properties:+ planCheckRuns:+ type: array+ items:+ $ref: '#/components/schemas/PlanCheckRun'+ description: The plan check runs from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListPlansResponse:+ type: object+ properties:+ plans:+ type: array+ items:+ $ref: '#/components/schemas/Plan'+ description: The plans from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListPoliciesResponse:+ type: object+ properties:+ policies:+ type: array+ items:+ $ref: '#/components/schemas/Policy'+ description: The policies from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListProjectsResponse:+ type: object+ properties:+ projects:+ type: array+ items:+ $ref: '#/components/schemas/Project'+ description: The projects from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListRisksResponse:+ type: object+ properties:+ risks:+ type: array+ items:+ $ref: '#/components/schemas/Risk'+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListRolesResponse:+ type: object+ properties:+ roles:+ type: array+ items:+ $ref: '#/components/schemas/Role'+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListSchemaGroupsResponse:+ type: object+ properties:+ schemaGroups:+ type: array+ items:+ $ref: '#/components/schemas/SchemaGroup'+ description: schema_groups is the list of schema groups.+ nextPageToken:+ type: string+ description: |-+ Not used. A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListSecretsResponse:+ type: object+ properties:+ secrets:+ type: array+ items:+ $ref: '#/components/schemas/Secret'+ description: The list of secrets.+ nextPageToken:+ type: string+ description: |-+ Not used. A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListSettingsResponse:+ type: object+ properties:+ settings:+ type: array+ items:+ $ref: '#/components/schemas/Setting'+ description: The settings from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListSlowQueriesResponse:+ type: object+ properties:+ slowQueryLogs:+ type: array+ items:+ $ref: '#/components/schemas/SlowQueryLog'+ description: The slow query logs.+ description: ListSlowQueriesResponse is the response of listing slow query.+ ListTaskRunsResponse:+ type: object+ properties:+ taskRuns:+ type: array+ items:+ $ref: '#/components/schemas/TaskRun'+ description: The taskRuns from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListUsersResponse:+ type: object+ properties:+ users:+ type: array+ items:+ $ref: '#/components/schemas/User'+ description: The users from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListVCSConnectorsInProviderResponse:+ type: object+ properties:+ vcsConnectors:+ type: array+ items:+ $ref: '#/components/schemas/VCSConnector'+ description: The vcsConnectors from the specified request.+ ListVCSConnectorsResponse:+ type: object+ properties:+ vcsConnectors:+ type: array+ items:+ $ref: '#/components/schemas/VCSConnector'+ description: The vcsConnectors from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ ListVCSProvidersResponse:+ type: object+ properties:+ vcsProviders:+ type: array+ items:+ $ref: '#/components/schemas/VCSProvider'+ description: The list of vcs providers.+ nextPageToken:+ type: string+ description: |-+ Not used. A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ LogEntity:+ required:+ - action+ - level+ - resource+ - payload+ type: object+ properties:+ name:+ readOnly: true+ type: string+ description: |-+ The name of the log.+ Format: logs/{uid}+ creator:+ readOnly: true+ type: string+ description: |-+ The creator of the log entity.+ Format: users/{email}+ createTime:+ readOnly: true+ type: string+ format: date-time+ updateTime:+ readOnly: true+ type: string+ format: date-time+ action:+ type: integer+ format: enum+ level:+ type: integer+ format: enum+ resource:+ type: string+ description: |-+ The name of the resource associated with this log entity. For example, the resource user associated with log entity type of "ACTION_MEMBER_CREATE".+ Format:+ For ACTION_MEMBER_*: users/{email}+ For ACTION_ISSUE_*: issues/{issue uid}+ For ACTION_PIPELINE_*: pipelines/{pipeline uid}+ For ACTION_PROJECT_*: projects/{project resource id}+ For ACTION_DATABASE_*: instances/{instance resource id}+ payload:+ type: string+ description: |-+ The payload of the log entity.+ TODO: use oneof+ comment:+ type: string+ LoginRequest:+ required:+ - idpName+ type: object+ properties:+ email:+ type: string+ password:+ type: string+ web:+ type: boolean+ description: If web is set, we will set access token, refresh token, and user to the cookie.+ idpName:+ type: string+ description: |-+ The name of the identity provider.+ Format: idps/{idp}+ idpContext:+ allOf:+ - $ref: '#/components/schemas/IdentityProviderContext'+ description: The idp_context is using to get the user information from identity provider.+ otpCode:+ type: string+ description: The otp_code is used to verify the user's identity by MFA.+ recoveryCode:+ type: string+ description: The recovery_code is used to recovery the user's identity with MFA.+ mfaTempToken:+ type: string+ description: The mfa_temp_token is used to verify the user's identity by MFA.+ LoginResponse:+ type: object+ properties:+ token:+ type: string+ mfaTempToken:+ type: string+ LogoutRequest:+ type: object+ properties: {}+ MaskData:+ type: object+ properties:+ schema:+ type: string+ table:+ type: string+ column:+ type: string+ maskingLevel:+ type: integer+ format: enum+ fullMaskingAlgorithmId:+ type: string+ partialMaskingAlgorithmId:+ type: string+ MaskingAlgorithmSetting:+ type: object+ properties:+ algorithms:+ type: array+ items:+ $ref: '#/components/schemas/MaskingAlgorithmSetting_Algorithm'+ description: algorithms is the list of masking algorithms.+ MaskingAlgorithmSetting_Algorithm:+ type: object+ properties:+ id:+ type: string+ description: id is the uuid for masking algorithm.+ title:+ type: string+ description: title is the title for masking algorithm.+ description:+ type: string+ description: description is the description for masking algorithm.+ category:+ type: string+ description: |-+ Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASKING and HASHING.+ The range of accepted Payload is decided by the category.+ Mask: FullMask, RangeMask+ Hash: MD5Mask+ fullMask:+ $ref: '#/components/schemas/Algorithm_FullMask'+ rangeMask:+ $ref: '#/components/schemas/Algorithm_RangeMask'+ md5Mask:+ $ref: '#/components/schemas/Algorithm_MD5Mask'+ MaskingExceptionPolicy:+ type: object+ properties:+ maskingExceptions:+ type: array+ items:+ $ref: '#/components/schemas/MaskingExceptionPolicy_MaskingException'+ description: MaskingExceptionPolicy is the allowlist of users who can access sensitive data.+ MaskingExceptionPolicy_MaskingException:+ type: object+ properties:+ action:+ type: integer+ description: action is the action that the user can access sensitive data.+ format: enum+ maskingLevel:+ type: integer+ description: Level is the masking level that the user can access sensitive data.+ format: enum+ member:+ type: string+ description: |-+ Member is the principal who bind to this exception policy instance.++ * `user:{emailid}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.+ condition:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: The condition that is associated with this exception policy instance.+ MaskingPolicy:+ type: object+ properties:+ maskData:+ type: array+ items:+ $ref: '#/components/schemas/MaskData'+ MaskingRulePolicy:+ type: object+ properties:+ rules:+ type: array+ items:+ $ref: '#/components/schemas/MaskingRulePolicy_MaskingRule'+ MaskingRulePolicy_MaskingRule:+ type: object+ properties:+ id:+ type: string+ description: A unique identifier for a node in UUID format.+ condition:+ $ref: '#/components/schemas/Expr'+ maskingLevel:+ type: integer+ format: enum+ OAuth2IdentityProviderConfig:+ type: object+ properties:+ authUrl:+ type: string+ tokenUrl:+ type: string+ userInfoUrl:+ type: string+ clientId:+ type: string+ clientSecret:+ type: string+ scopes:+ type: array+ items:+ type: string+ fieldMapping:+ $ref: '#/components/schemas/FieldMapping'+ skipTlsVerify:+ type: boolean+ authStyle:+ type: integer+ format: enum+ description: OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.+ OAuth2IdentityProviderContext:+ type: object+ properties:+ code:+ type: string+ OAuth2IdentityProviderTestRequestContext:+ type: object+ properties:+ code:+ type: string+ description: Authorize code from website.+ OIDCIdentityProviderConfig:+ type: object+ properties:+ issuer:+ type: string+ clientId:+ type: string+ clientSecret:+ type: string+ scopes:+ type: array+ items:+ type: string+ fieldMapping:+ $ref: '#/components/schemas/FieldMapping'+ skipTlsVerify:+ type: boolean+ authStyle:+ type: integer+ format: enum+ description: OIDCIdentityProviderConfig is the structure for OIDC identity provider config.+ OIDCIdentityProviderContext:+ type: object+ properties: {}+ ParseMyBatisMapperRequest:+ type: object+ properties:+ content:+ type: string+ format: bytes+ ParseMyBatisMapperResponse:+ type: object+ properties:+ statements:+ type: array+ items:+ type: string+ ParsedExpr:+ type: object+ properties:+ expr:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: The parsed expression.+ sourceInfo:+ allOf:+ - $ref: '#/components/schemas/SourceInfo'+ description: The source info derived from input that generated the parsed `expr`.+ description: An expression together with source information as returned by the parser.+ PatchSubscription:+ type: object+ properties:+ license:+ type: string+ Plan:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the plan.+ `plan` is a system generated ID.+ Format: projects/{project}/plans/{plan}+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ issue:+ type: string+ description: |-+ The resource name of the issue associated with this plan.+ Format: projects/{project}/issues/{issue}+ title:+ type: string+ description:+ type: string+ steps:+ type: array+ items:+ $ref: '#/components/schemas/Plan_Step'+ vcsSource:+ $ref: '#/components/schemas/Plan_VCSSource'+ creator:+ readOnly: true+ type: string+ description: 'Format: users/[email protected]'+ createTime:+ readOnly: true+ type: string+ format: date-time+ PlanCheckRun:+ type: object+ properties:+ name:+ type: string+ description: 'Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun}'+ uid:+ type: string+ description: The system-assigned, unique identifier for a resource.+ type:+ type: integer+ format: enum+ status:+ type: integer+ format: enum+ target:+ type: string+ description: 'Format: instances/{instance}/databases/{database}'+ sheet:+ type: string+ description: 'Format: project/{project}/sheets/{sheet}'+ results:+ type: array+ items:+ $ref: '#/components/schemas/PlanCheckRun_Result'+ error:+ type: string+ description: error is set if the Status is FAILED.+ createTime:+ readOnly: true+ type: string+ format: date-time+ PlanCheckRun_Result:+ type: object+ properties:+ status:+ type: integer+ format: enum+ title:+ type: string+ content:+ type: string+ code:+ type: integer+ format: int32+ sqlSummaryReport:+ $ref: '#/components/schemas/Result_SqlSummaryReport'+ sqlReviewReport:+ $ref: '#/components/schemas/Result_SqlReviewReport'+ Plan_ChangeDatabaseConfig:+ type: object+ properties:+ target:+ type: string+ description: |-+ The resource name of the target.+ Format: instances/{instance-id}/databases/{database-name}.+ Format: projects/{project}/databaseGroups/{databaseGroup}.+ Format: projects/{project}/deploymentConfigs/default. The plan should+ have a single step and single spec for the deployment configuration type.+ sheet:+ type: string+ description: |-+ The resource name of the sheet.+ Format: projects/{project}/sheets/{sheet}+ type:+ type: integer+ format: enum+ schemaVersion:+ type: string+ description: |-+ schema_version is parsed from VCS file name.+ It is automatically generated in the UI workflow.+ rollbackEnabled:+ type: boolean+ description: If RollbackEnabled, build the RollbackSheetID of the task after the task is completed.+ rollbackDetail:+ $ref: '#/components/schemas/ChangeDatabaseConfig_RollbackDetail'+ ghostFlags:+ type: object+ additionalProperties:+ type: string+ preUpdateBackupDetail:+ allOf:+ - $ref: '#/components/schemas/ChangeDatabaseConfig_PreUpdateBackupDetail'+ description: If set, a backup of the modified data will be created automatically before any changes are applied.+ Plan_CreateDatabaseConfig:+ required:+ - target+ - database+ type: object+ properties:+ target:+ type: string+ description: |-+ The resource name of the instance on which the database is created.+ Format: instances/{instance}+ database:+ type: string+ description: The name of the database to create.+ table:+ type: string+ description: |-+ table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+ For example, in MongoDB, it only creates the database when we first store data in that database.+ characterSet:+ type: string+ description: character_set is the character set of the database.+ collation:+ type: string+ description: collation is the collation of the database.+ cluster:+ type: string+ description: cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>".+ owner:+ type: string+ description: owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>".+ environment:+ type: string+ description: |-+ The environment resource.+ Format: environments/prod where prod is the environment resource ID.+ labels:+ type: object+ additionalProperties:+ type: string+ description: labels of the database.+ Plan_ExportDataConfig:+ type: object+ properties:+ target:+ type: string+ description: |-+ The resource name of the target.+ Format: instances/{instance-id}/databases/{database-name}+ sheet:+ type: string+ description: |-+ The resource name of the sheet.+ Format: projects/{project}/sheets/{sheet}+ format:+ type: integer+ description: The format of the exported file.+ format: enum+ password:+ type: string+ description: |-+ The zip password provide by users.+ Leave it empty if no needs to encrypt the zip file.+ Plan_Spec:+ type: object+ properties:+ earliestAllowedTime:+ type: string+ description: earliest_allowed_time the earliest execution time of the change.+ format: date-time+ id:+ type: string+ description: A UUID4 string that uniquely identifies the Spec.+ dependsOnSpecs:+ type: array+ items:+ type: string+ description: |-+ IDs of the specs that this spec depends on.+ Must be a subset of the specs in the same step.+ createDatabaseConfig:+ $ref: '#/components/schemas/Plan_CreateDatabaseConfig'+ changeDatabaseConfig:+ $ref: '#/components/schemas/Plan_ChangeDatabaseConfig'+ exportDataConfig:+ $ref: '#/components/schemas/Plan_ExportDataConfig'+ Plan_Step:+ type: object+ properties:+ title:+ type: string+ description: 'TODO: implement'+ specs:+ type: array+ items:+ $ref: '#/components/schemas/Plan_Spec'+ Plan_VCSSource:+ type: object+ properties:+ vcsType:+ type: integer+ format: enum+ vcsConnector:+ type: string+ description: |-+ Optional.+ If present, we will update the pull request for rollout status.+ Format: projects/{project-ID}/vcsConnectors/{vcs-connector}+ pullRequestUrl:+ type: string+ Policy:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the policy.+ Format: {resource name}/policies/{policy type}+ Workspace resource name: "".+ Environment resource name: environments/environment-id.+ Instance resource name: instances/instance-id.+ Database resource name: instances/instance-id/databases/database-name.+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ inheritFromParent:+ type: boolean+ type:+ type: integer+ format: enum+ rolloutPolicy:+ $ref: '#/components/schemas/RolloutPolicy'+ maskingPolicy:+ $ref: '#/components/schemas/MaskingPolicy'+ sqlReviewPolicy:+ $ref: '#/components/schemas/SQLReviewPolicy'+ slowQueryPolicy:+ $ref: '#/components/schemas/SlowQueryPolicy'+ disableCopyDataPolicy:+ $ref: '#/components/schemas/DisableCopyDataPolicy'+ maskingRulePolicy:+ $ref: '#/components/schemas/MaskingRulePolicy'+ maskingExceptionPolicy:+ $ref: '#/components/schemas/MaskingExceptionPolicy'+ restrictIssueCreationForSqlReviewPolicy:+ $ref: '#/components/schemas/RestrictIssueCreationForSQLReviewPolicy'+ enforce:+ type: boolean+ resourceType:+ readOnly: true+ type: integer+ description: The resource type for the policy.+ format: enum+ resourceUid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for the resource.+ PrettyRequest:+ type: object+ properties:+ engine:+ type: integer+ format: enum+ currentSchema:+ type: string+ description: |-+ 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.+ expectedSchema:+ type: string+ description: The expected SDL schema. This schema will be checked for correctness and normalized.+ PrettyResponse:+ type: object+ properties:+ currentSchema:+ type: string+ description: The pretty-formatted version of current schema.+ expectedSchema:+ type: string+ description: The expected SDL schema after normalizing.+ PreviewRolloutRequest:+ required:+ - project+ type: object+ properties:+ project:+ type: string+ description: |-+ The name of the project.+ Format: projects/{project}+ plan:+ allOf:+ - $ref: '#/components/schemas/Plan'+ description: The plan used to preview rollout.+ Project:+ type: object+ properties:+ protectionRules:+ type: array+ items:+ $ref: '#/components/schemas/ProtectionRule'+ ProtectionRule:+ type: object+ properties:+ id:+ type: string+ description: A unique identifier for a node in UUID format.+ target:+ type: integer+ format: enum+ nameFilter:+ type: string+ description: The name of the branch/changelist or wildcard.+ allowedRoles:+ type: array+ items:+ type: string+ description: |-+ The roles allowed to create branches or changelists, rebase branches, delete branches.+ Format: roles/projectOwner.+ branchSource:+ type: integer+ format: enum+ ProtectionRules:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the protection rules.+ Format: projects/{project}/protectionRules+ rules:+ type: array+ items:+ $ref: '#/components/schemas/ProtectionRule'+ QueryHistory:+ type: object+ properties:+ name:+ readOnly: true+ type: string+ description: |-+ The name for the query history.+ Format: queryHistories/{uid}+ database:+ readOnly: true+ type: string+ description: |-+ The database name to execute the query.+ Format: instances/{instance}/databases/{databaseName}+ creator:+ readOnly: true+ type: string+ createTime:+ readOnly: true+ type: string+ format: date-time+ statement:+ readOnly: true+ type: string+ error:+ readOnly: true+ type: string+ duration:+ readOnly: true+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ type:+ type: integer+ format: enum+ QueryRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name is the instance name to execute the query against.+ Format: instances/{instance}/databases/{databaseName}+ connectionDatabase:+ type: string+ statement:+ type: string+ description: The SQL statement to execute.+ limit:+ type: integer+ description: The maximum number of rows to return.+ format: int32+ timeout:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The timeout for the request.+ dataSourceId:+ type: string+ description: |-+ 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.+ QueryResponse:+ type: object+ properties:+ results:+ type: array+ items:+ $ref: '#/components/schemas/QueryResult'+ description: The query results.+ advices:+ type: array+ items:+ $ref: '#/components/schemas/Advice'+ description: The query advices.+ allowExport:+ type: boolean+ description: The query is allowed to be exported or not.+ QueryResult:+ type: object+ properties:+ columnNames:+ type: array+ items:+ type: string+ description: Column names of the query result.+ columnTypeNames:+ type: array+ items:+ type: string+ description: |-+ Column types of the query result.+ The types come from the Golang SQL driver.+ rows:+ type: array+ items:+ $ref: '#/components/schemas/QueryRow'+ description: Rows of the query result.+ masked:+ type: array+ items:+ type: boolean+ description: Columns are masked or not.+ sensitive:+ type: array+ items:+ type: boolean+ description: Columns are sensitive or not.+ error:+ type: string+ description: The error message if the query failed.+ latency:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The time it takes to execute the query.+ statement:+ type: string+ description: The query statement for the result.+ QueryRow:+ type: object+ properties:+ values:+ type: array+ items:+ $ref: '#/components/schemas/RowValue'+ description: Row values of the query result.+ RangeMask_Slice:+ type: object+ properties:+ start:+ type: integer+ description: start is the start index of the original value, start from 0 and should be less than stop.+ format: int32+ end:+ type: integer+ description: stop is the stop index of the original value, should be less than the length of the original value.+ format: int32+ substitution:+ type: string+ description: OriginalValue[start:end) would be replaced with replace_with.+ RebaseBranchResponse:+ type: object+ properties:+ branch:+ allOf:+ - $ref: '#/components/schemas/Branch'+ description: The rebased branch when rebase occurs seamlessly.+ conflictSchema:+ type: string+ description: |-+ The conflict schema when rebase has conflicts.+ The conflict section is enclosed by the following.+ <<<<< HEAD+ ====+ >>>>> main+ RejectIssueRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the issue to add an rejection.+ Format: projects/{project}/issues/{issue}+ comment:+ type: string+ RemoveDataSourceRequest:+ required:+ - instance+ - dataSource+ type: object+ properties:+ instance:+ type: string+ description: |-+ The name of the instance to remove a data source from.+ Format: instances/{instance}+ dataSource:+ allOf:+ - $ref: '#/components/schemas/DataSource'+ description: |-+ Identified by data source ID.+ Only READ_ONLY data source can be removed.+ RemoveWebhookRequest:+ required:+ - webhook+ type: object+ properties:+ webhook:+ allOf:+ - $ref: '#/components/schemas/Webhook'+ description: The webhook to remove. Identified by its url.+ RequestIssueRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the issue to request a issue.+ Format: projects/{project}/issues/{issue}+ comment:+ type: string+ ResourcePackage:+ type: object+ properties:+ logo:+ type: string+ description: The branding logo.+ format: bytes+ description: The theme resources.+ RestrictIssueCreationForSQLReviewPolicy:+ type: object+ properties:+ disallow:+ type: boolean+ Result_SqlReviewReport:+ type: object+ properties:+ line:+ type: integer+ format: int32+ column:+ type: integer+ format: int32+ detail:+ type: string+ code:+ type: integer+ description: Code from sql review.+ format: int32+ Result_SqlSummaryReport:+ type: object+ properties:+ code:+ type: integer+ format: int32+ statementTypes:+ type: array+ items:+ type: string+ description: statement_types are the types of statements that are found in the sql.+ affectedRows:+ type: integer+ format: int32+ changedResources:+ $ref: '#/components/schemas/ChangedResources'+ Risk:+ type: object+ properties:+ name:+ type: string+ description: 'Format: risks/{risk}'+ uid:+ readOnly: true+ type: string+ description: system-generated unique identifier.+ source:+ type: integer+ format: enum+ title:+ type: string+ level:+ type: integer+ format: int32+ active:+ type: boolean+ condition:+ $ref: '#/components/schemas/Expr'+ Role:+ type: object+ properties:+ name:+ type: string+ description: 'Format: roles/{role}'+ title:+ type: string+ description:+ type: string+ permissions:+ type: array+ items:+ type: string+ Rollout:+ required:+ - plan+ type: object+ properties:+ name:+ type: string+ description: |-+ The resource name of the rollout.+ Format: projects/{project}/rollouts/{rollout}+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ plan:+ type: string+ description: |-+ The plan that this rollout is based on.+ Format: projects/{project}/plans/{plan}+ title:+ type: string+ stages:+ type: array+ items:+ $ref: '#/components/schemas/Stage'+ description: stages and thus tasks of the rollout.+ RolloutPolicy:+ type: object+ properties:+ automatic:+ type: boolean+ workspaceRoles:+ type: array+ items:+ type: string+ projectRoles:+ type: array+ items:+ type: string+ issueRoles:+ type: array+ items:+ type: string+ description: |-+ roles/LAST_APPROVER+ roles/CREATOR+ RowValue:+ type: object+ properties:+ nullValue:+ type: integer+ format: enum+ boolValue:+ type: boolean+ bytesValue:+ type: string+ format: bytes+ doubleValue:+ type: number+ format: double+ floatValue:+ type: number+ format: float+ int32Value:+ type: integer+ format: int32+ int64Value:+ type: string+ stringValue:+ type: string+ uint32Value:+ type: integer+ format: uint32+ uint64Value:+ type: string+ valueValue:+ allOf:+ - $ref: '#/components/schemas/GoogleProtobufValue'+ description: value_value is used for Spanner and TUPLE ARRAY MAP in Clickhouse only.+ RunPlanChecksRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The plan to run plan checks.+ Format: projects/{project}/plans/{plan}+ RunPlanChecksResponse:+ type: object+ properties: {}+ SMTPMailDeliverySettingValue:+ type: object+ properties:+ server:+ type: string+ description: The SMTP server address.+ port:+ type: integer+ description: The SMTP server port.+ format: int32+ encryption:+ type: integer+ description: The SMTP server encryption.+ format: enum+ ca:+ type: string+ description: |-+ The CA, KEY, and CERT for the SMTP server.+ Not used.+ key:+ type: string+ cert:+ type: string+ authentication:+ type: integer+ format: enum+ username:+ type: string+ password:+ type: string+ description: If not specified, server will use the existed password.+ from:+ type: string+ description: The sender email address.+ to:+ type: string+ description: The recipient email address, used with validate_only to send test email.+ SQLReviewPolicy:+ type: object+ properties:+ name:+ type: string+ rules:+ type: array+ items:+ $ref: '#/components/schemas/SQLReviewRule'+ SQLReviewRule:+ type: object+ properties:+ type:+ type: string+ level:+ type: integer+ format: enum+ payload:+ type: string+ engine:+ type: integer+ format: enum+ comment:+ type: string+ Schedule:+ type: object+ properties:+ deployments:+ type: array+ items:+ $ref: '#/components/schemas/ScheduleDeployment'+ ScheduleDeployment:+ type: object+ properties:+ title:+ type: string+ description: The title of the deployment (stage) in a schedule.+ spec:+ $ref: '#/components/schemas/DeploymentSpec'+ SchemaConfig:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name is the schema name.+ It is an empty string for databases without such concept such as MySQL.+ tableConfigs:+ type: array+ items:+ $ref: '#/components/schemas/TableConfig'+ description: The table_configs is the list of configs for tables in a schema.+ SchemaGroup:+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the schema group.+ Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}+ tableExpr:+ allOf:+ - $ref: '#/components/schemas/Expr'+ description: |-+ The table condition that is associated with this schema group.+ The table_placeholder in the sheet script will be rendered to the actual table name.+ tablePlaceholder:+ type: string+ description: |-+ The table placeholder used for rendering. For example, if set to "tbl", all the table name+ "tbl" in the SQL script will be rendered to the actual table name.+ matchedTables:+ readOnly: true+ type: array+ items:+ $ref: '#/components/schemas/SchemaGroup_Table'+ description: The list of databases that match the database group condition.+ unmatchedTables:+ readOnly: true+ type: array+ items:+ $ref: '#/components/schemas/SchemaGroup_Table'+ description: The list of databases that match the database group condition.+ SchemaGroup_Table:+ type: object+ properties:+ database:+ type: string+ description: |-+ The resource name of the database.+ Format: instances/{instance}/databases/{database}+ schema:+ type: string+ table:+ type: string+ description: |-+ In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.+ Its keyword will be {{SCHEMA}}.+ All the expressions will be used to filter the schema objects in DatabaseSchema.+ SchemaTemplateSetting:+ type: object+ properties:+ fieldTemplates:+ type: array+ items:+ $ref: '#/components/schemas/SchemaTemplateSetting_FieldTemplate'+ columnTypes:+ type: array+ items:+ $ref: '#/components/schemas/SchemaTemplateSetting_ColumnType'+ tableTemplates:+ type: array+ items:+ $ref: '#/components/schemas/SchemaTemplateSetting_TableTemplate'+ SchemaTemplateSetting_ColumnType:+ type: object+ properties:+ engine:+ type: integer+ format: enum+ enabled:+ type: boolean+ types:+ type: array+ items:+ type: string+ SchemaTemplateSetting_FieldTemplate:+ type: object+ properties:+ id:+ type: string+ engine:+ type: integer+ format: enum+ category:+ type: string+ column:+ $ref: '#/components/schemas/ColumnMetadata'+ config:+ $ref: '#/components/schemas/ColumnConfig'+ SchemaTemplateSetting_TableTemplate:+ type: object+ properties:+ id:+ type: string+ engine:+ type: integer+ format: enum+ category:+ type: string+ table:+ $ref: '#/components/schemas/TableMetadata'+ config:+ $ref: '#/components/schemas/TableConfig'+ SearchAnomaliesResponse:+ type: object+ properties:+ anomalies:+ type: array+ items:+ $ref: '#/components/schemas/Anomaly'+ description: anomalies is the list of anomalies.+ nextPageToken:+ type: string+ description: |-+ Not used. A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ SearchDatabasesResponse:+ type: object+ properties:+ databases:+ type: array+ items:+ $ref: '#/components/schemas/Database'+ description: The databases from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ SearchInstancesResponse:+ type: object+ properties:+ instances:+ type: array+ items:+ $ref: '#/components/schemas/Instance'+ description: The instances from the specified request.+ SearchIssuesResponse:+ type: object+ properties:+ issues:+ type: array+ items:+ $ref: '#/components/schemas/Issue'+ description: The issues from the specified request.+ nextPageToken:+ type: string+ description: |-+ A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ SearchLogsResponse:+ type: object+ properties:+ logEntities:+ readOnly: true+ type: array+ items:+ $ref: '#/components/schemas/LogEntity'+ description: The list of log entities.+ nextPageToken:+ type: string+ description: |-+ A token to retrieve next page of log entities.+ Pass this value in the page_token field in the subsequent call to `SearchLogs` method+ to retrieve the next page of log entities.+ SearchProjectsResponse:+ type: object+ properties:+ projects:+ type: array+ items:+ $ref: '#/components/schemas/Project'+ description: The projects from the specified request.+ SearchQueryHistoriesResponse:+ type: object+ properties:+ queryHistories:+ readOnly: true+ type: array+ items:+ $ref: '#/components/schemas/QueryHistory'+ description: The list of history.+ nextPageToken:+ type: string+ description: |-+ 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.+ SearchVCSProviderRepositoriesRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the vcs provider to retrieve the vcs provider repositories.+ Format: vcsProviders/{vcsProvider}+ SearchVCSProviderRepositoriesResponse:+ type: object+ properties:+ repositories:+ type: array+ items:+ $ref: '#/components/schemas/VCSRepository'+ description: The list of repositories in vcs provider.+ SearchWorksheetsResponse:+ type: object+ properties:+ worksheets:+ type: array+ items:+ $ref: '#/components/schemas/Worksheet'+ description: The worksheets that matched the search criteria.+ nextPageToken:+ type: string+ description: |-+ Not used. A token, which can be sent as `page_token` to retrieve the next page.+ If this field is omitted, there are no subsequent pages.+ Secret:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ name is the unique name of the secret, which is specified by the client.+ Format:+ instances/{instance}/databases/{database}/secrets/{secret}+ createdTime:+ readOnly: true+ type: string+ description: Not used. The timestamp when the secret resource was created initially.+ format: date-time+ updatedTime:+ readOnly: true+ type: string+ description: Not used. The timestamp when the secret resource was updated.+ format: date-time+ value:+ writeOnly: true+ type: string+ description: The value of the secret.+ description:+ type: string+ description: The description of the secret.+ description: Secret is the secret of the database now.+ SemanticTypeSetting:+ type: object+ properties:+ types:+ type: array+ items:+ $ref: '#/components/schemas/SemanticTypeSetting_SemanticType'+ SemanticTypeSetting_SemanticType:+ type: object+ properties:+ id:+ type: string+ description: id is the uuid for semantic type.+ title:+ type: string+ description: the title of the semantic type, it should not be empty.+ description:+ type: string+ description: the description of the semantic type, it can be empty.+ partialMaskAlgorithmId:+ type: string+ description: |-+ the partial mask algorithm id for the semantic type, if it is empty,+ should use the default partial mask algorithm.+ fullMaskAlgorithmId:+ type: string+ description: |-+ the full mask algorithm id for the semantic type, if it is empty, should+ use the default full mask algorithm.+ SetIamPolicyRequest:+ required:+ - project+ - policy+ type: object+ properties:+ project:+ type: string+ description: |-+ The name of the project to set the IAM policy.+ Format: projects/{project}+ policy:+ $ref: '#/components/schemas/IamPolicy'+ Setting:+ type: object+ properties:+ name:+ type: string+ description: |-+ The resource name of the setting. Must be one of the following forms:++ - `setting/{setting_name}`+ For example, "settings/bb.branding.logo"+ value:+ allOf:+ - $ref: '#/components/schemas/Value'+ description: The value of the setting.+ description: The schema of setting.+ Sheet:+ required:+ - name+ - title+ - content+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the sheet resource, generated by the server.+ Canonical parent is project.+ Format: projects/{project}/sheets/{sheet}+ database:+ type: string+ description: |-+ The database resource name.+ Format: instances/{instance}/databases/{database}+ If the database parent doesn't exist, the database field is empty.+ title:+ type: string+ description: The title of the sheet.+ creator:+ readOnly: true+ type: string+ description: |-+ The creator of the Sheet.+ Format: users/{email}+ createTime:+ readOnly: true+ type: string+ description: The create time of the sheet.+ format: date-time+ updateTime:+ readOnly: true+ type: string+ description: The last update time of the sheet.+ format: date-time+ content:+ type: string+ description: |-+ 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.+ format: bytes+ contentSize:+ readOnly: true+ type: string+ description: content_size is the full size of the content, may not match the size of the `content` field.+ payload:+ $ref: '#/components/schemas/SheetPayload'+ SheetPayload:+ type: object+ properties:+ type:+ type: integer+ format: enum+ databaseConfig:+ allOf:+ - $ref: '#/components/schemas/DatabaseConfig'+ description: 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.+ baselineDatabaseConfig:+ allOf:+ - $ref: '#/components/schemas/DatabaseConfig'+ description: The snapshot of the baseline database config when creating the sheet.+ SlowQueryDetails:+ type: object+ properties:+ startTime:+ type: string+ description: The start time of the slow query log.+ format: date-time+ queryTime:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The query time of the slow query log.+ lockTime:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The lock time of the slow query log.+ rowsSent:+ type: integer+ description: The rows sent of the slow query log.+ format: int32+ rowsExamined:+ type: integer+ description: The rows examined of the slow query log.+ format: int32+ sqlText:+ type: string+ description: The sql text of the slow query log.+ description: SlowQueryDetails is the details of the slow query log.+ SlowQueryLog:+ required:+ - resource+ type: object+ properties:+ resource:+ type: string+ description: |-+ The resource of the slow query log.+ The format is "instances/{instance}/databases/{database}".+ project:+ type: string+ description: |-+ The project of the slow query log.+ The format is "projects/{project}".+ statistics:+ allOf:+ - $ref: '#/components/schemas/SlowQueryStatistics'+ description: The statistics of the slow query log.+ description: SlowQueryLog is the slow query log.+ SlowQueryPolicy:+ type: object+ properties:+ active:+ type: boolean+ SlowQueryStatistics:+ type: object+ properties:+ sqlFingerprint:+ type: string+ description: The fingerprint of the slow query log.+ count:+ type: integer+ description: The count of the slow query log.+ format: int32+ latestLogTime:+ type: string+ description: The latest log time of the slow query log.+ format: date-time+ averageQueryTime:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The average query time of the slow query log.+ maximumQueryTime:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The maximum query time of the slow query log.+ averageRowsSent:+ type: integer+ description: The average rows sent of the slow query log.+ format: int32+ maximumRowsSent:+ type: integer+ description: The maximum rows sent of the slow query log.+ format: int32+ averageRowsExamined:+ type: integer+ description: The average rows examined of the slow query log.+ format: int32+ maximumRowsExamined:+ type: integer+ description: The maximum rows examined of the slow query log.+ format: int32+ queryTimePercent:+ type: number+ description: The percentage of the query time.+ format: double+ countPercent:+ type: number+ description: The percentage of the count.+ format: double+ samples:+ type: array+ items:+ $ref: '#/components/schemas/SlowQueryDetails'+ description: Samples are details of the sample slow query logs with the same fingerprint.+ description: SlowQueryStatistics is the statistics of the slow query log.+ SourceInfo:+ type: object+ properties:+ syntaxVersion:+ type: string+ description: The syntax version of the source, e.g. `cel1`.+ location:+ type: string+ description: |-+ The location name. All position information attached to an expression is+ relative to this location.++ The location could be a file, UI element, or similar. For example,+ `acme/app/AnvilPolicy.cel`.+ lineOffsets:+ type: array+ items:+ type: integer+ format: int32+ description: |-+ Monotonically increasing list of code point offsets where newlines+ `\n` appear.++ The line number of a given position is the index `i` where for a given+ `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The+ column may be derivd from `id_positions[id] - line_offsets[i]`.+ positions:+ type: object+ additionalProperties:+ type: integer+ format: int32+ description: |-+ A map from the parse node id (e.g. `Expr.id`) to the code point offset+ within the source.+ macroCalls:+ type: object+ additionalProperties:+ $ref: '#/components/schemas/Expr'+ description: |-+ A map from the parse node id where a macro replacement was made to the+ call `Expr` that resulted in a macro expansion.++ For example, `has(value.field)` is a function call that is replaced by a+ `test_only` field selection in the AST. Likewise, the call+ `list.exists(e, e > 10)` translates to a comprehension expression. The key+ in the map corresponds to the expression id of the expanded macro, and the+ value is the call `Expr` that was replaced.+ description: Source information collected at parse time.+ Stage:+ type: object+ properties:+ name:+ type: string+ description: 'Format: projects/{project}/rollouts/{rollout}/stages/{stage}'+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ title:+ type: string+ tasks:+ type: array+ items:+ $ref: '#/components/schemas/Task'+ Status:+ type: object+ properties:+ code:+ type: integer+ description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].+ format: int32+ message:+ type: string+ description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.+ details:+ type: array+ items:+ $ref: '#/components/schemas/GoogleProtobufAny'+ description: A list of messages that carry the error details. There is a common set of message types for APIs to use.+ description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'+ StringifyMetadataRequest:+ required:+ - metadata+ type: object+ properties:+ metadata:+ $ref: '#/components/schemas/DatabaseMetadata'+ engine:+ type: integer+ description: The database engine of the schema string.+ format: enum+ StringifyMetadataResponse:+ type: object+ properties:+ schema:+ readOnly: true+ type: string+ Subscription:+ type: object+ properties:+ instanceCount:+ readOnly: true+ type: integer+ format: int32+ expiresTime:+ readOnly: true+ type: string+ format: date-time+ startedTime:+ readOnly: true+ type: string+ format: date-time+ plan:+ readOnly: true+ type: integer+ format: enum+ trialing:+ readOnly: true+ type: boolean+ orgId:+ readOnly: true+ type: string+ orgName:+ readOnly: true+ type: string+ SyncDatabaseRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the database to sync.+ Format: instances/{instance}/databases/{database}+ SyncDatabaseResponse:+ type: object+ properties: {}+ SyncInstanceRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of instance.+ Format: instances/{instance}+ SyncInstanceResponse:+ type: object+ properties: {}+ SyncSlowQueriesRequest:+ required:+ - parent+ type: object+ properties:+ parent:+ type: string+ description: |-+ The name of the instance to sync slow queries.+ Format: instances/{instance} for one instance+ or projects/{project} for one project.+ TableConfig:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of a table.+ columnConfigs:+ type: array+ items:+ $ref: '#/components/schemas/ColumnConfig'+ description: The column_configs is the ordered list of configs for columns in a table.+ TableMetadata:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of a table.+ columns:+ type: array+ items:+ $ref: '#/components/schemas/ColumnMetadata'+ description: The columns is the ordered list of columns in a table.+ indexes:+ type: array+ items:+ $ref: '#/components/schemas/IndexMetadata'+ description: The indexes is the list of indexes in a table.+ engine:+ type: string+ description: The engine is the engine of a table.+ collation:+ type: string+ description: The collation is the collation of a table.+ rowCount:+ type: string+ description: The row_count is the estimated number of rows of a table.+ dataSize:+ type: string+ description: The data_size is the estimated data size of a table.+ indexSize:+ type: string+ description: The index_size is the estimated index size of a table.+ dataFree:+ type: string+ description: The data_free is the estimated free data size of a table.+ createOptions:+ type: string+ description: The create_options is the create option of a table.+ comment:+ type: string+ description: |-+ The comment is the comment of a table.+ classification and user_comment is parsed from the comment.+ classification:+ type: string+ description: The classification is the classification of a table parsed from the comment.+ userComment:+ type: string+ description: The user_comment is the user comment of a table parsed from the comment.+ foreignKeys:+ type: array+ items:+ $ref: '#/components/schemas/ForeignKeyMetadata'+ description: The foreign_keys is the list of foreign keys in a table.+ partitions:+ type: array+ items:+ $ref: '#/components/schemas/TablePartitionMetadata'+ description: The partitions is the list of partitions in a table.+ description: TableMetadata is the metadata for tables.+ TablePartitionMetadata:+ type: object+ properties:+ name:+ type: string+ description: The name is the name of a table partition.+ type:+ type: integer+ description: The type of a table partition.+ format: enum+ expression:+ type: string+ description: |-+ The expression is the expression of a table partition.+ For PostgreSQL, the expression is the text of {FOR VALUES partition_bound_spec}, see https://www.postgresql.org/docs/current/sql-createtable.html.+ For MySQL, the expression is the `expr` or `column_list` of the following syntax.+ PARTITION BY+ { [LINEAR] HASH(expr)+ | [LINEAR] KEY [ALGORITHM={1 | 2}] (column_list)+ | RANGE{(expr) | COLUMNS(column_list)}+ | LIST{(expr) | COLUMNS(column_list)} }.+ value:+ type: string+ description: |-+ The value is the value of a table partition.+ For MySQL, the value is for RANGE and LIST partition types,+ - For a RANGE partition, it contains the value set in the partition's VALUES LESS THAN clause, which can be either an integer or MAXVALUE.+ - For a LIST partition, this column contains the values defined in the partition's VALUES IN clause, which is a list of comma-separated integer values.+ - For others, it's an empty string.+ useDefault:+ type: string+ description: |-+ The use_default is whether the users use the default partition, it stores the different value for different database engines.+ For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it's equals to number in syntax [SUB]PARTITION {number}.+ subpartitions:+ type: array+ items:+ $ref: '#/components/schemas/TablePartitionMetadata'+ description: The subpartitions is the list of subpartitions in a table partition.+ description: TablePartitionMetadata is the metadata for table partitions.+ Task:+ type: object+ properties:+ name:+ type: string+ description: 'Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}'+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ title:+ type: string+ specId:+ type: string+ description: |-+ A UUID4 string that uniquely identifies the Spec.+ Could be empty if the rollout of the task does not have an associating plan.+ status:+ type: integer+ description: Status is the status of the task.+ format: enum+ skippedReason:+ type: string+ type:+ type: integer+ format: enum+ dependsOnTasks:+ type: array+ items:+ type: string+ description: 'Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}'+ target:+ type: string+ description: |-+ Format: instances/{instance} if the task is DatabaseCreate.+ Format: instances/{instance}/databases/{database}+ databaseCreate:+ $ref: '#/components/schemas/Task_DatabaseCreate'+ databaseSchemaBaseline:+ $ref: '#/components/schemas/Task_DatabaseSchemaBaseline'+ databaseSchemaUpdate:+ $ref: '#/components/schemas/Task_DatabaseSchemaUpdate'+ databaseDataUpdate:+ $ref: '#/components/schemas/Task_DatabaseDataUpdate'+ databaseDataExport:+ $ref: '#/components/schemas/Task_DatabaseDataExport'+ TaskPriorBackup_Table:+ type: object+ properties:+ schema:+ type: string+ table:+ type: string+ TaskRun:+ type: object+ properties:+ name:+ type: string+ description: 'Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}'+ uid:+ readOnly: true+ type: string+ description: The system-assigned, unique identifier for a resource.+ creator:+ type: string+ description: 'Format: user/[email protected]'+ updater:+ type: string+ description: 'Format: user/[email protected]'+ createTime:+ readOnly: true+ type: string+ format: date-time+ updateTime:+ readOnly: true+ type: string+ format: date-time+ title:+ type: string+ status:+ type: integer+ format: enum+ detail:+ type: string+ description: Below are the results of a task run.+ changeHistory:+ type: string+ description: |-+ The resource name of the change history+ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory}+ schemaVersion:+ type: string+ executionStatus:+ type: integer+ format: enum+ executionStatusUpdateTime:+ type: string+ description: Last execution status update timestamp.+ format: date-time+ executionDetail:+ $ref: '#/components/schemas/TaskRun_ExecutionDetail'+ startTime:+ readOnly: true+ type: string+ format: date-time+ exportArchiveStatus:+ type: integer+ format: enum+ TaskRun_ExecutionDetail:+ type: object+ properties:+ commandsTotal:+ type: integer+ description: Currently, the following fields are only used for EXECUTING status.+ format: int32+ commandsCompleted:+ type: integer+ format: int32+ commandStartPosition:+ $ref: '#/components/schemas/ExecutionDetail_Position'+ commandEndPosition:+ $ref: '#/components/schemas/ExecutionDetail_Position'+ Task_DatabaseCreate:+ type: object+ properties:+ project:+ type: string+ description: |-+ The project owning the database.+ Format: projects/{project}+ database:+ type: string+ description: database name+ table:+ type: string+ description: table name+ sheet:+ type: string+ description: 'Format: projects/{project}/sheets/{sheet}'+ characterSet:+ type: string+ collation:+ type: string+ environment:+ type: string+ labels:+ type: object+ additionalProperties:+ type: string+ Task_DatabaseDataExport:+ type: object+ properties:+ target:+ type: string+ description: |-+ The resource name of the target.+ Format: instances/{instance-id}/databases/{database-name}+ sheet:+ type: string+ description: |-+ The resource name of the sheet.+ Format: projects/{project}/sheets/{sheet}+ format:+ type: integer+ description: The format of the exported file.+ format: enum+ password:+ type: string+ description: |-+ The zip password provide by users.+ Leave it empty if no needs to encrypt the zip file.+ Task_DatabaseDataUpdate:+ type: object+ properties:+ sheet:+ type: string+ description: 'Format: projects/{project}/sheets/{sheet}'+ schemaVersion:+ type: string+ rollbackEnabled:+ type: boolean+ description: Build the rollback SQL if rollback_enabled.+ rollbackSqlStatus:+ type: integer+ description: The status of the rollback SQL generation.+ format: enum+ rollbackError:+ type: string+ rollbackSheet:+ type: string+ description: |-+ rollback_sheet is the resource name of+ the sheet that stores the generated rollback SQL statement.+ Format: projects/{project}/sheets/{sheet}+ rollbackFromIssue:+ type: string+ description: |-+ rollback_from_issue is the resource name of the issue that+ the rollback SQL statement is generated from.+ Format: projects/{project}/issues/{issue}+ rollbackFromTask:+ type: string+ description: |-+ rollback_from_task is the resource name of the task that+ the rollback SQL statement is generated from.+ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+ Task_DatabaseSchemaBaseline:+ type: object+ properties:+ schemaVersion:+ type: string+ Task_DatabaseSchemaUpdate:+ type: object+ properties:+ sheet:+ type: string+ description: 'Format: projects/{project}/sheets/{sheet}'+ schemaVersion:+ type: string+ TestIdentityProviderRequest:+ type: object+ properties:+ identityProvider:+ allOf:+ - $ref: '#/components/schemas/IdentityProvider'+ description: The identity provider to test connection including uncreated.+ oauth2Context:+ $ref: '#/components/schemas/OAuth2IdentityProviderTestRequestContext'+ TestIdentityProviderResponse:+ type: object+ properties: {}+ TestWebhookRequest:+ required:+ - project+ - webhook+ type: object+ properties:+ project:+ type: string+ description: |-+ The name of the project which owns the webhook to test.+ Format: projects/{project}+ webhook:+ allOf:+ - $ref: '#/components/schemas/Webhook'+ description: The webhook to test. Identified by its url.+ TestWebhookResponse:+ type: object+ properties:+ error:+ type: string+ description: The result of the test, empty if the test is successful.+ UndeleteEnvironmentRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the deleted environment.+ Format: environments/{environment}+ UndeleteIdentityProviderRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the deleted identity provider.+ Format: idps/{identity_provider}+ UndeleteInstanceRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the deleted instance.+ Format: instances/{instance}+ UndeleteInstanceRoleRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the deleted role.+ Format: instances/{instance}/roles/{role name}+ UndeleteProjectRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the deleted project.+ Format: projects/{project}+ UndeleteUserRequest:+ required:+ - name+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the deleted user.+ Format: users/{user}+ UpdateDataSourceRequest:+ required:+ - instance+ - dataSource+ type: object+ properties:+ instance:+ type: string+ description: |-+ The name of the instance to update a data source.+ Format: instances/{instance}+ dataSource:+ allOf:+ - $ref: '#/components/schemas/DataSource'+ description: Identified by data source ID.+ updateMask:+ type: string+ description: The list of fields to update.+ format: field-mask+ validateOnly:+ type: boolean+ description: Validate only also tests the data source connection.+ UpdateDatabaseRequest:+ required:+ - database+ type: object+ properties:+ database:+ allOf:+ - $ref: '#/components/schemas/Database'+ description: |-+ The database to update.++ The database's `name` field is used to identify the database to update.+ Format: instances/{instance}/databases/{database}+ updateMask:+ type: string+ description: The list of fields to update.+ format: field-mask+ UpdateProjectProtectionRulesRequest:+ required:+ - protectionRules+ type: object+ properties:+ protectionRules:+ $ref: '#/components/schemas/ProtectionRules'+ UpdateWebhookRequest:+ required:+ - webhook+ type: object+ properties:+ webhook:+ allOf:+ - $ref: '#/components/schemas/Webhook'+ description: The webhook to modify.+ updateMask:+ type: string+ description: The list of fields to update.+ format: field-mask+ User:+ type: object+ properties:+ name:+ readOnly: true+ type: string+ description: |-+ The name of the user.+ Format: users/{user}. {user} is a system-generated unique ID.+ state:+ type: integer+ format: enum+ email:+ type: string+ title:+ type: string+ userType:+ type: integer+ format: enum+ password:+ writeOnly: true+ type: string+ serviceKey:+ writeOnly: true+ type: string+ mfaEnabled:+ type: boolean+ description: The mfa_enabled flag means if the user has enabled MFA.+ mfaSecret:+ type: string+ description: The mfa_secret is the temporary secret using in two phase verification.+ recoveryCodes:+ type: array+ items:+ type: string+ description: The recovery_codes is the temporary recovery codes using in two phase verification.+ phone:+ type: string+ description: |-+ Should be a valid E.164 compliant phone number.+ Could be empty.+ roles:+ type: array+ items:+ type: string+ description: |-+ The roles of the user.+ This filed is to supersede the `user_role` field.+ VCSConnector:+ type: object+ properties:+ title:+ type: string+ description: The title or display name of the VCS connector.+ fullPath:+ type: string+ description: |-+ Full path from the corresponding VCS provider.+ For GitLab, this is the project full path. e.g. group1/project-1+ webUrl:+ type: string+ description: |-+ Web url from the corresponding VCS provider.+ For GitLab, this is the project web url. e.g. https://gitlab.example.com/group1/project-1+ branch:+ type: string+ description: Branch to listen to.+ baseDirectory:+ type: string+ description: Base working directory we are interested.+ externalId:+ type: string+ description: |-+ Repository id from the corresponding VCS provider.+ For GitLab, this is the project id. e.g. 123+ externalWebhookId:+ type: string+ description: |-+ Push webhook id from the corresponding VCS provider.+ For GitLab, this is the project webhook id. e.g. 123+ webhookSecretToken:+ type: string+ description: For GitLab, webhook request contains this in the 'X-Gitlab-Token" header and we compare it with the one stored in db to validate it sends to the expected endpoint.+ databaseGroup:+ type: string+ description: |-+ Apply changes to the database group. Optional, if not set, will apply changes to all databases in the project.+ Format: projects/{project}/databaseGroups/{databaseGroup}+ VCSProvider:+ required:+ - title+ - type+ - url+ type: object+ properties:+ name:+ readOnly: true+ type: string+ description: |-+ The name of the vcs provider.+ Format: vcsProviders/{vcsProvider}+ title:+ type: string+ description: The title of the vcs provider. It is used to display in the UI. Specified by the client.+ type:+ type: integer+ format: enum+ url:+ type: string+ description: |-+ The url of the vcs provider. Specified by the client.+ For example: github.com, gitlab.com, gitlab.bytebase.com.+ accessToken:+ writeOnly: true+ type: string+ description: The access token of the vcs provider.+ VCSRepository:+ type: object+ properties:+ id:+ type: string+ description: |-+ The id of the repository in vcs provider.+ e.g. In GitLab, this is the corresponding project id. e.g. 123+ title:+ type: string+ description: |-+ The title of the repository in vcs provider.+ e.g. sample-project+ fullPath:+ type: string+ description: |-+ The full_path of the repository in vcs provider.+ e.g. bytebase/sample-project+ webUrl:+ type: string+ description: |-+ Web url of the repository in vcs provider.+ e.g. http://gitlab.bytebase.com/bytebase/sample-project+ Value:+ type: object+ properties:+ stringValue:+ type: string+ description: Defines this value as being a string value.+ smtpMailDeliverySettingValue:+ $ref: '#/components/schemas/SMTPMailDeliverySettingValue'+ appImSettingValue:+ $ref: '#/components/schemas/AppIMSetting'+ agentPluginSettingValue:+ $ref: '#/components/schemas/AgentPluginSetting'+ workspaceProfileSettingValue:+ $ref: '#/components/schemas/WorkspaceProfileSetting'+ workspaceApprovalSettingValue:+ $ref: '#/components/schemas/WorkspaceApprovalSetting'+ workspaceTrialSettingValue:+ $ref: '#/components/schemas/WorkspaceTrialSetting'+ externalApprovalSettingValue:+ $ref: '#/components/schemas/ExternalApprovalSetting'+ schemaTemplateSettingValue:+ $ref: '#/components/schemas/SchemaTemplateSetting'+ dataClassificationSettingValue:+ $ref: '#/components/schemas/DataClassificationSetting'+ semanticTypeSettingValue:+ $ref: '#/components/schemas/SemanticTypeSetting'+ maskingAlgorithmSettingValue:+ $ref: '#/components/schemas/MaskingAlgorithmSetting'+ description: The data in setting value.+ Webhook:+ required:+ - type+ - title+ - url+ type: object+ properties:+ name:+ type: string+ description: |-+ name is the name of the webhook, generated by the server.+ format: projects/{project}/webhooks/{webhook}+ type:+ type: integer+ description: type is the type of the webhook.+ format: enum+ title:+ type: string+ description: title is the title of the webhook.+ url:+ type: string+ description: url is the url of the webhook, should be unique within the project.+ notificationTypes:+ type: array+ items:+ type: integer+ format: enum+ description: |-+ notification_types is the list of activities types that the webhook is interested in.+ Bytebase will only send notifications to the webhook if the activity type is in the list.+ It should not be empty, and shoule be a subset of the following:+ - TYPE_ISSUE_CREATED+ - TYPE_ISSUE_STATUS_UPDATE+ - TYPE_ISSUE_PIPELINE_STAGE_UPDATE+ - TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE+ - TYPE_ISSUE_FIELD_UPDATE+ - TYPE_ISSUE_COMMENT_CREAT+ Worksheet:+ required:+ - name+ - project+ - title+ - content+ - visibility+ type: object+ properties:+ name:+ type: string+ description: |-+ The name of the worksheet resource, generated by the server.+ Canonical parent is project.+ Format: worksheets/{worksheet}+ project:+ type: string+ description: |-+ The project resource name.+ Format: projects/{project}+ database:+ type: string+ description: |-+ The database resource name.+ Format: instances/{instance}/databases/{database}+ If the database parent doesn't exist, the database field is empty.+ title:+ type: string+ description: The title of the worksheet.+ creator:+ readOnly: true+ type: string+ description: |-+ The creator of the Worksheet.+ Format: users/{email}+ createTime:+ readOnly: true+ type: string+ description: The create time of the worksheet.+ format: date-time+ updateTime:+ readOnly: true+ type: string+ description: The last update time of the worksheet.+ format: date-time+ content:+ type: string+ description: |-+ The content of the worksheet.+ By default, it will be cut off in SearchWorksheet() method. If it doesn't match the `content_size`, you can+ use GetWorksheet() request to retrieve the full content.+ format: bytes+ contentSize:+ readOnly: true+ type: string+ description: content_size is the full size of the content, may not match the size of the `content` field.+ visibility:+ type: integer+ format: enum+ starred:+ readOnly: true+ type: boolean+ description: starred indicates whether the worksheet is starred by the current authenticated user.+ WorksheetOrganizer:+ required:+ - worksheet+ type: object+ properties:+ worksheet:+ type: string+ description: |-+ The name of the worksheet.+ Format: worksheets/{worksheet}+ starred:+ type: boolean+ description: starred means if the worksheet is starred.+ WorkspaceApprovalSetting:+ type: object+ properties:+ rules:+ type: array+ items:+ $ref: '#/components/schemas/WorkspaceApprovalSetting_Rule'+ WorkspaceApprovalSetting_Rule:+ type: object+ properties:+ expression:+ $ref: '#/components/schemas/ParsedExpr'+ template:+ $ref: '#/components/schemas/ApprovalTemplate'+ condition:+ $ref: '#/components/schemas/Expr'+ WorkspaceProfileSetting:+ type: object+ properties:+ externalUrl:+ type: string+ description: |-+ The URL user visits Bytebase.++ The external URL is used for:+ 1. Constructing the correct callback URL when configuring the VCS provider. The callback URL points to the frontend.+ 2. Creating the correct webhook endpoint when configuring the project GitOps workflow. The webhook endpoint points to the backend.+ disallowSignup:+ type: boolean+ description: Disallow self-service signup, users can only be invited by the owner.+ require2fa:+ type: boolean+ description: Require 2FA for all users.+ outboundIpList:+ type: array+ items:+ type: string+ description: outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode.+ gitopsWebhookUrl:+ type: string+ description: The webhook URL for the GitOps workflow.+ tokenDuration:+ pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$+ type: string+ description: The duration for token.+ announcement:+ allOf:+ - $ref: '#/components/schemas/Announcement'+ description: The setting of custom announcement+ WorkspaceTrialSetting:+ type: object+ properties:+ instanceCount:+ type: integer+ format: int32+ expireTime:+ type: string+ format: date-time+ issuedTime:+ type: string+ format: date-time+ subject:+ type: string+ orgName:+ type: string+ plan:+ type: integer+ format: enum+tags:+ - name: ActuatorService+ - name: AnomalyService+ - name: AuthService+ - name: BranchService+ - name: CelService+ - name: ChangelistService+ - name: DatabaseService+ - name: EnvironmentService+ - name: IdentityProviderService+ - name: InstanceRoleService+ - name: InstanceService+ - name: IssueService+ - name: LoggingService+ - name: OrgPolicyService+ - name: ProjectService+ - name: RiskService+ - name: RoleService+ - name: RolloutService+ - name: SQLService+ - name: SettingService+ - name: SheetService+ - name: SubscriptionService+ - name: VCSConnectorService+ - name: VCSProviderService+ - name: WorksheetService