Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: optimize password restriction (#13780)
ecmadao68f2ea46f696
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.goindex f8431cdd21..c10bf2c2d7 100644--- a/backend/api/v1/actuator_service.go+++ b/backend/api/v1/actuator_service.go@@ -93,6 +93,15 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInforeturn nil, status.Errorf(codes.Internal, "failed to find workspace setting: %v", err)}+ passwordRestrictionSetting, err := s.store.GetPasswordRestrictionSetting(ctx)+ if err != nil {+ return nil, status.Errorf(codes.Internal, "failed to find password restriction setting: %v", err)+ }+ passwordSetting := new(v1pb.PasswordRestrictionSetting)+ if err := convertProtoToProto(passwordRestrictionSetting, passwordSetting); err != nil {+ return nil, status.Errorf(codes.Internal, "failed to unmarshal password restriction setting with error: %v", err)+ }+workspaceID, err := s.store.GetWorkspaceID(ctx)if err != nil {return nil, status.Error(codes.Internal, err.Error())@@ -126,6 +135,7 @@ func (s *ActuatorService) getServerInfo(ctx context.Context) (*v1pb.ActuatorInfoPreUpdateBackup: true,UnlicensedFeatures: unlicensedFeaturesString,DisallowPasswordSignin: setting.DisallowPasswordSignin,+ PasswordRestriction: passwordSetting,}return &serverInfo, nildiff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.goindex b282919023..6fa8d76a99 100644--- a/backend/api/v1/instance_service.go+++ b/backend/api/v1/instance_service.go@@ -1052,7 +1052,7 @@ func convertToV1DataSourceExternalSecret(externalSecret *storepb.DataSourceExterreturn nil, nil}secret := new(v1pb.DataSourceExternalSecret)- if err := convertV1PbToStorePb(externalSecret, secret); err != nil {+ if err := convertProtoToProto(externalSecret, secret); err != nil {return nil, status.Errorf(codes.Internal, "failed to convert external secret with error: %v", err.Error())}@@ -1145,7 +1145,7 @@ func convertToStoreDataSourceExternalSecret(externalSecret *v1pb.DataSourceExterreturn nil, nil}secret := new(storepb.DataSourceExternalSecret)- if err := convertV1PbToStorePb(externalSecret, secret); err != nil {+ if err := convertProtoToProto(externalSecret, secret); err != nil {return nil, status.Errorf(codes.Internal, "failed to convert external secret with error: %v", err.Error())}switch secret.SecretType {diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex 6e35d8f7ca..1b9d95d272 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -182,7 +182,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Updatereturn nil, status.Errorf(codes.InvalidArgument, "update mask is required")}payload := new(storepb.WorkspaceProfileSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetWorkspaceProfileSettingValue(), payload); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetWorkspaceProfileSettingValue(), payload); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}oldSetting, err := s.store.GetWorkspaceGeneralSetting(ctx)@@ -313,7 +313,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.UpdatecreatorID = creator.IDflow := new(storepb.ApprovalFlow)- if err := convertV1PbToStorePb(rule.Template.Flow, flow); err != nil {+ if err := convertProtoToProto(rule.Template.Flow, flow); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal approval flow with error: %v", err)}payload.Rules = append(payload.Rules, &storepb.WorkspaceApprovalSetting_Rule{@@ -390,7 +390,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.UpdatestoreSettingValue = request.Setting.Value.GetStringValue()case api.SettingPluginAgent:payload := new(storepb.AgentPluginSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetAgentPluginSettingValue(), payload); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetAgentPluginSettingValue(), payload); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}@@ -402,7 +402,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Updatecase api.SettingAppIM:payload := new(storepb.AppIMSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetAppImSettingValue(), payload); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetAppImSettingValue(), payload); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s, error: %v", apiSettingName, err)}setting, err := s.store.GetAppIMSetting(ctx)@@ -526,7 +526,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.UpdatestoreSettingValue = string(bytes)case api.SettingDataClassification:payload := new(storepb.DataClassificationSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetDataClassificationSettingValue(), payload); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetDataClassificationSettingValue(), payload); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}// it's a temporary solution to limit only 1 classification config before we support manage it in the UX.@@ -543,7 +543,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.UpdatestoreSettingValue = string(bytes)case api.SettingSemanticTypes:storeSemanticTypeSetting := new(storepb.SemanticTypeSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetSemanticTypeSettingValue(), storeSemanticTypeSetting); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetSemanticTypeSettingValue(), storeSemanticTypeSetting); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}idMap := make(map[string]struct{})@@ -576,7 +576,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.UpdateidMap[algorithm.Id] = struct{}{}}storeMaskingAlgorithmSetting := new(storepb.MaskingAlgorithmSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetMaskingAlgorithmSettingValue(), storeMaskingAlgorithmSetting); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetMaskingAlgorithmSettingValue(), storeMaskingAlgorithmSetting); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}bytes, err := protojson.Marshal(storeMaskingAlgorithmSetting)@@ -596,7 +596,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.UpdatestoreSettingValue = request.Setting.Value.GetStringValue()case api.SettingSQLResultSizeLimit:maximumSQLResultSizeSetting := new(storepb.MaximumSQLResultSizeSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetMaximumSqlResultSizeSetting(), maximumSQLResultSizeSetting); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetMaximumSqlResultSizeSetting(), maximumSQLResultSizeSetting); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}if maximumSQLResultSizeSetting.Limit <= 0 {@@ -624,7 +624,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Updatereturn nil, status.Error(codes.PermissionDenied, err.Error())}passwordSetting := new(storepb.PasswordRestrictionSetting)- if err := convertV1PbToStorePb(request.Setting.Value.GetPasswordRestrictionSetting(), passwordSetting); err != nil {+ if err := convertProtoToProto(request.Setting.Value.GetPasswordRestrictionSetting(), passwordSetting); err != nil {return nil, status.Errorf(codes.Internal, "failed to unmarshal setting value for %s with error: %v", apiSettingName, err)}if passwordSetting.MinLength < 8 {@@ -677,7 +677,7 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *v1pb.Updatereturn settingMessage, nil}-func convertV1PbToStorePb(inputPB, outputPB protoreflect.ProtoMessage) error {+func convertProtoToProto(inputPB, outputPB protoreflect.ProtoMessage) error {bytes, err := protojson.Marshal(inputPB)if err != nil {return status.Errorf(codes.Internal, "failed to marshal setting: %v", err)diff --git a/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue b/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vueindex 44a027901b..a39add27fd 100644--- a/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue+++ b/frontend/src/components/GeneralSetting/PasswordRestrictionSetting.vue@@ -16,7 +16,13 @@:placeholder="'Minimum length'":precision="0"@update:value="- (val) => onUpdate({ minLength: val || DEFAULT_MIN_LENGTH })+ (val) =>+ onUpdate({+ minLength: Math.max(+ val || DEFAULT_MIN_LENGTH,+ DEFAULT_MIN_LENGTH+ ),+ })"/><span class="textlabel">@@ -146,12 +152,12 @@:size="'small'":placeholder="'Minimum length'":precision="0"+ @click="(e: MouseEvent) => e.stopPropagation()"@update:value="(val) =>- val &&onUpdate({passwordRotation: Duration.fromPartial({- seconds: val * 24 * 60 * 60,+ seconds: (val || 1) * 24 * 60 * 60,nanos: 0,}),})diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vueindex a425ca0e70..606306eca9 100644--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue@@ -51,8 +51,8 @@</div><EmailInputv-else- :readonly="disallowEditUser"v-model:value="state.user.email"+ :readonly="disallowEditUser":domain="workspaceDomain"/></NFormItem>@@ -85,6 +85,7 @@ref="userPasswordRef"v-model:password="state.user.password"v-model:password-confirm="state.passwordConfirm"+ :password-restriction="passwordRestrictionSetting"/></template></NForm>@@ -223,6 +224,10 @@ const state = reactive<LocalState>({passwordConfirm: "",});+const passwordRestrictionSetting = computed(+ () => settingV1Store.passwordRestriction+);+const workspaceDomain = computed(() => {if (!settingV1Store.workspaceProfileSetting?.enforceIdentityDomain) {return undefined;diff --git a/frontend/src/components/User/Settings/UserPassword.vue b/frontend/src/components/User/Settings/UserPassword.vueindex b5c4292ddf..21fa0d088a 100644--- a/frontend/src/components/User/Settings/UserPassword.vue+++ b/frontend/src/components/User/Settings/UserPassword.vue@@ -1,67 +1,105 @@<template>- <div v-bind="$attrs">- <NFormItem :label="$t('settings.profile.password')">- <div class="w-full space-y-1">+ <div class="space-y-6" v-bind="$attrs">+ <div :label="$t('settings.profile.password')">+ <div class="flex items-center space-x-2">+ <label class="block text-sm font-medium leading-5 text-control">+ {{ $t("settings.profile.password") }}+ </label><span:class="[- 'flex items-center gap-x-1 textinfolabel text-sm',+ 'flex items-center gap-x-1 textinfolabel !text-sm',passwordHint ? '!text-error' : '',]">{{ $t("settings.profile.password-hint") }}<NTooltip><template #trigger>- <CircleHelpIcon class="w-4" />+ <CircleHelpIcon class="w-3" /></template><component :is="passwordRestrictionText" class="text-sm" /></NTooltip><LearnMoreLinkv-if="showLearnMore":external="false"+ class="!text-sm"url="/setting/general#account"/></span>- <NInput- :value="password"- type="password"- :status="passwordHint ? 'error' : undefined"- :input-props="{ autocomplete: 'new-password' }"- :placeholder="$t('common.sensitive-placeholder')"- @update:value="$emit('update:password', $event)"- /></div>- </NFormItem>- <NFormItem :label="$t('settings.profile.password-confirm')">- <div class="w-full flex flex-col justify-start items-start">- <NInput- :value="passwordConfirm"- type="password"- :status="passwordMismatch ? 'error' : undefined"- :input-props="{ autocomplete: 'new-password' }"- :placeholder="$t('settings.profile.password-confirm-placeholder')"- @update:value="$emit('update:passwordConfirm', $event)"- />+ <div class="w-full space-y-1">+ <div class="mt-1 relative flex flex-row items-center">+ <NInput+ :value="password"+ :type="showPassword ? 'text' : 'password'"+ :status="passwordHint ? 'error' : undefined"+ :input-props="{ autocomplete: 'new-password' }"+ :placeholder="$t('common.sensitive-placeholder')"+ @update:value="$emit('update:password', $event)"+ />+ <div+ class="hover:cursor-pointer absolute right-3"+ @click="+ () => {+ showPassword = !showPassword;+ }+ "+ >+ <EyeIcon v-if="showPassword" class="w-4 h-4" />+ <EyeOffIcon v-else class="w-4 h-4" />+ </div>+ </div>+ </div>+ </div>+ <div :label="$t('settings.profile.password-confirm')">+ <label+ for="email"+ class="block text-sm font-medium leading-5 text-control"+ >+ {{ $t("settings.profile.password-confirm") }}+ </label>+ <div class="w-full mt-1 flex flex-col justify-start items-start">+ <div class="w-full relative flex flex-row items-center">+ <NInput+ :value="passwordConfirm"+ :type="showPassword ? 'text' : 'password'"+ :status="passwordMismatch ? 'error' : undefined"+ :input-props="{ autocomplete: 'new-password' }"+ :placeholder="$t('settings.profile.password-confirm-placeholder')"+ @update:value="$emit('update:passwordConfirm', $event)"+ />+ <div+ class="hover:cursor-pointer absolute right-3"+ @click="+ () => {+ showPassword = !showPassword;+ }+ "+ >+ <EyeIcon v-if="showPassword" class="w-4 h-4" />+ <EyeOffIcon v-else class="w-4 h-4" />+ </div>+ </div><span v-if="passwordMismatch" class="text-error text-sm mt-1 pl-1">{{ $t("settings.profile.password-mismatch") }}</span></div>- </NFormItem>+ </div></div></template><script lang="tsx" setup>-import { CircleHelpIcon } from "lucide-vue-next";-import { NFormItem, NInput, NTooltip } from "naive-ui";-import { computed } from "vue";+import { CircleHelpIcon, EyeIcon, EyeOffIcon } from "lucide-vue-next";+import { NInput, NTooltip } from "naive-ui";+import { computed, ref } from "vue";import { useI18n } from "vue-i18n";import LearnMoreLink from "@/components/LearnMoreLink.vue";-import { useSettingV1Store } from "@/store";-import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";+import { type PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";const props = withDefaults(defineProps<{password: string;passwordConfirm: string;+ passwordRestriction: PasswordRestrictionSetting;showLearnMore?: boolean;}>(),{@@ -74,38 +112,32 @@ defineEmits<{(event: "update:passwordConfirm", passwordConfirm: string): void;}>();+const showPassword = ref<boolean>(false);const { t } = useI18n();-const settingV1Store = useSettingV1Store();--const passwordRestrictionSetting = computed(- () =>- settingV1Store.getSettingByName("bb.workspace.password-restriction")?.value- ?.passwordRestrictionSetting ?? PasswordRestrictionSetting.fromPartial({})-);const passwordRestrictionText = computed(() => {const text = [t("settings.general.workspace.password-restriction.min-length", {- min: passwordRestrictionSetting.value.minLength,+ min: props.passwordRestriction.minLength,}),];- if (passwordRestrictionSetting.value.requireNumber) {+ if (props.passwordRestriction.requireNumber) {text.push(t("settings.general.workspace.password-restriction.require-number"));}- if (passwordRestrictionSetting.value.requireUppercaseLetter) {+ if (props.passwordRestriction.requireUppercaseLetter) {text.push(t("settings.general.workspace.password-restriction.require-uppercase-letter"));- } else if (passwordRestrictionSetting.value.requireLetter) {+ } else if (props.passwordRestriction.requireLetter) {text.push(t("settings.general.workspace.password-restriction.require-letter"));}- if (passwordRestrictionSetting.value.requireSpecialCharacter) {+ if (props.passwordRestriction.requireSpecialCharacter) {text.push(t("settings.general.workspace.password-restriction.require-special-character"@@ -127,26 +159,20 @@ const passwordHint = computed(() => {if (!pwd) {return false;}- if (pwd.length < passwordRestrictionSetting.value.minLength) {+ if (pwd.length < props.passwordRestriction.minLength) {return true;}- if (passwordRestrictionSetting.value.requireNumber && !/[0-9]+/.test(pwd)) {+ if (props.passwordRestriction.requireNumber && !/[0-9]+/.test(pwd)) {return true;}- if (- passwordRestrictionSetting.value.requireLetter &&- !/[a-zA-Z]+/.test(pwd)- ) {+ if (props.passwordRestriction.requireLetter && !/[a-zA-Z]+/.test(pwd)) {return true;}- if (- passwordRestrictionSetting.value.requireUppercaseLetter &&- !/[A-Z]+/.test(pwd)- ) {+ if (props.passwordRestriction.requireUppercaseLetter && !/[A-Z]+/.test(pwd)) {return true;}if (- passwordRestrictionSetting.value.requireSpecialCharacter &&+ props.passwordRestriction.requireSpecialCharacter &&// eslint-disable-next-line no-useless-escape!/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(pwd)) {diff --git a/frontend/src/store/modules/v1/actuator.ts b/frontend/src/store/modules/v1/actuator.tsindex f259378ba0..351fa048b2 100644--- a/frontend/src/store/modules/v1/actuator.ts+++ b/frontend/src/store/modules/v1/actuator.ts@@ -16,6 +16,7 @@ import type {ActuatorInfo,ResourcePackage,} from "@/types/proto/v1/actuator_service";+import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";import { semverCompare } from "@/utils";const EXTERNAL_URL_PLACEHOLDER =@@ -95,6 +96,15 @@ export const useActuatorV1Store = defineStore("actuator_v1", {));},+ passwordRestriction: (state) => {+ return (+ state.serverInfo?.passwordRestriction ??+ PasswordRestrictionSetting.fromPartial({+ minLength: 8,+ requireLetter: true,+ })+ );+ },},actions: {setLogo(logo: string) {diff --git a/frontend/src/store/modules/v1/setting.ts b/frontend/src/store/modules/v1/setting.tsindex 682a5742c9..22d65becb4 100644--- a/frontend/src/store/modules/v1/setting.ts+++ b/frontend/src/store/modules/v1/setting.ts@@ -8,6 +8,7 @@ import type {WorkspaceProfileSetting,DataClassificationSetting_DataClassificationConfig,} from "@/types/proto/v1/setting_service";+import { PasswordRestrictionSetting } from "@/types/proto/v1/setting_service";import type { SettingName } from "@/types/setting";import { useActuatorV1Store } from "./actuator";@@ -40,6 +41,18 @@ export const useSettingV1Store = defineStore("setting_v1", {);return setting?.value?.dataClassificationSettingValue?.configs ?? [];},+ passwordRestriction(state): PasswordRestrictionSetting {+ const setting = this.settingMapByName.get(+ `${settingNamePrefix}bb.workspace.password-restriction`+ );+ return (+ setting?.value?.passwordRestrictionSetting ??+ PasswordRestrictionSetting.fromPartial({+ minLength: 8,+ requireLetter: true,+ })+ );+ },},actions: {getProjectClassification(diff --git a/frontend/src/types/proto/v1/actuator_service.ts b/frontend/src/types/proto/v1/actuator_service.tsindex 40ce403f67..50bcf145d7 100644--- a/frontend/src/types/proto/v1/actuator_service.ts+++ b/frontend/src/types/proto/v1/actuator_service.ts@@ -4,6 +4,7 @@ import _m0 from "protobufjs/minimal";import { Empty } from "../google/protobuf/empty";import { FieldMask } from "../google/protobuf/field_mask";import { Timestamp } from "../google/protobuf/timestamp";+import { PasswordRestrictionSetting } from "./setting_service";export const protobufPackage = "bytebase.v1";@@ -78,6 +79,7 @@ export interface ActuatorInfo {unlicensedFeatures: string[];/** disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins) */disallowPasswordSignin: boolean;+ passwordRestriction: PasswordRestrictionSetting | undefined;}function createBaseGetResourcePackageRequest(): GetResourcePackageRequest {@@ -364,6 +366,7 @@ function createBaseActuatorInfo(): ActuatorInfo {iamGuard: false,unlicensedFeatures: [],disallowPasswordSignin: false,+ passwordRestriction: undefined,};}@@ -429,6 +432,9 @@ export const ActuatorInfo = {if (message.disallowPasswordSignin === true) {writer.uint32(160).bool(message.disallowPasswordSignin);}+ if (message.passwordRestriction !== undefined) {+ PasswordRestrictionSetting.encode(message.passwordRestriction, writer.uint32(170).fork()).ldelim();+ }return writer;},@@ -579,6 +585,13 @@ export const ActuatorInfo = {message.disallowPasswordSignin = reader.bool();continue;+ case 21:+ if (tag !== 170) {+ break;+ }++ message.passwordRestriction = PasswordRestrictionSetting.decode(reader, reader.uint32());+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -614,6 +627,9 @@ export const ActuatorInfo = {disallowPasswordSignin: isSet(object.disallowPasswordSignin)? globalThis.Boolean(object.disallowPasswordSignin): false,+ passwordRestriction: isSet(object.passwordRestriction)+ ? PasswordRestrictionSetting.fromJSON(object.passwordRestriction)+ : undefined,};},@@ -679,6 +695,9 @@ export const ActuatorInfo = {if (message.disallowPasswordSignin === true) {obj.disallowPasswordSignin = message.disallowPasswordSignin;}+ if (message.passwordRestriction !== undefined) {+ obj.passwordRestriction = PasswordRestrictionSetting.toJSON(message.passwordRestriction);+ }return obj;},@@ -707,6 +726,9 @@ export const ActuatorInfo = {message.iamGuard = object.iamGuard ?? false;message.unlicensedFeatures = object.unlicensedFeatures?.map((e) => e) || [];message.disallowPasswordSignin = object.disallowPasswordSignin ?? false;+ message.passwordRestriction = (object.passwordRestriction !== undefined && object.passwordRestriction !== null)+ ? PasswordRestrictionSetting.fromPartial(object.passwordRestriction)+ : undefined;return message;},};diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vueindex e56847d623..2845ff613a 100644--- a/frontend/src/views/ProfileDashboard.vue+++ b/frontend/src/views/ProfileDashboard.vue@@ -137,6 +137,7 @@ref="userPasswordRef"v-model:password="state.editingUser.password"v-model:password-confirm="state.passwordConfirm"+ :password-restriction="passwordRestrictionSetting"/></div></dl>@@ -302,6 +303,10 @@ const workspaceDomain = computed(() =>head(settingV1Store.workspaceProfileSetting?.domains));+const passwordRestrictionSetting = computed(+ () => settingV1Store.passwordRestriction+);+const keyboardHandler = (e: KeyboardEvent) => {if (state.editing) {if (e.code === "Escape") {diff --git a/frontend/src/views/auth/PasswordReset.vue b/frontend/src/views/auth/PasswordReset.vueindex 2f4ee5e63f..335deb1e78 100644--- a/frontend/src/views/auth/PasswordReset.vue+++ b/frontend/src/views/auth/PasswordReset.vue@@ -15,6 +15,7 @@v-model:password="state.password"v-model:password-confirm="state.passwordConfirm":show-learn-more="false"+ :password-restriction="passwordRestrictionSetting"/></NForm><NButton@@ -64,6 +65,10 @@ const userPasswordRef = ref<InstanceType<typeof UserPassword>>();const router = useRouter();const settingV1Store = useSettingV1Store();+const passwordRestrictionSetting = computed(+ () => settingV1Store.passwordRestriction+);+onMounted(async () => {if (!authStore.requireResetPassword) {router.replace("/");diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vueindex 02e247315b..b414f0823f 100644--- a/frontend/src/views/auth/Signup.vue+++ b/frontend/src/views/auth/Signup.vue@@ -42,83 +42,13 @@</div></div>- <div>- <label- for="password"- class="block text-sm font-medium leading-5 text-control"- >- {{ $t("common.password") }}- <span class="text-red-600">*</span>- </label>- <div- class="relative flex flex-row items-center mt-1 rounded-md shadow-sm"- >- <BBTextField- v-model:value="state.password"- :type="state.showPassword ? 'text' : 'password'"- :input-props="{ id: 'password', autocomplete: 'off' }"- required- @input="refreshPasswordValidation"- />- <div- class="hover:cursor-pointer absolute right-3"- @click="- () => {- state.showPassword = !state.showPassword;- }- "- >- <heroicons-outline:eye- v-if="state.showPassword"- class="w-4 h-4"- />- <heroicons-outline:eye-slash v-else class="w-4 h-4" />- </div>- </div>- </div>-- <div>- <label- for="password-confirm"- class="block text-sm font-medium leading-5 text-control"- >- {{ $t("auth.sign-up.confirm-password") }}- <span class="text-red-600">- *- {{- state.showPasswordMismatchError- ? $t("auth.sign-up.password-mismatch")- : ""- }}- </span>- </label>- <div- class="relative flex flex-row items-center mt-1 rounded-md shadow-sm"- >- <BBTextField- v-model:value="state.passwordConfirm"- :type="state.showPassword ? 'text' : 'password'"- :input-props="{ id: 'password-confirm', autocomplete: 'off' }"- :placeholder="$t('auth.sign-up.confirm-password-placeholder')"- required- @input="refreshPasswordValidation"- />- <div- class="hover:cursor-pointer absolute right-3"- @click="- () => {- state.showPassword = !state.showPassword;- }- "- >- <heroicons-outline:eye- v-if="state.showPassword"- class="w-4 h-4"- />- <heroicons-outline:eye-slash v-else class="w-4 h-4" />- </div>- </div>- </div>+ <UserPassword+ ref="userPasswordRef"+ v-model:password="state.password"+ v-model:password-confirm="state.passwordConfirm"+ :show-learn-more="false"+ :password-restriction="passwordRestriction"+ /><div><label@@ -216,10 +146,11 @@<script lang="ts" setup>import { NButton, NCheckbox } from "naive-ui";import { storeToRefs } from "pinia";-import { computed, onMounted, onUnmounted, reactive } from "vue";+import { computed, onMounted, reactive, ref } from "vue";import { useRouter } from "vue-router";import { BBTextField } from "@/bbkit";import BytebaseLogo from "@/components/BytebaseLogo.vue";+import UserPassword from "@/components/User/Settings/UserPassword.vue";import { AUTH_SIGNIN_MODULE } from "@/router/auth";import { SETUP_WORKSPACE_MODE_MODULE } from "@/router/setup";import {@@ -227,7 +158,6 @@ import {useAuthStore,useOnboardingStateStore,} from "@/store";-import { TEXT_VALIDATION_DELAY } from "@/types";import type { User } from "@/types/proto/v1/auth_service";import { isValidEmail } from "@/utils";import AuthFooter from "./AuthFooter.vue";@@ -236,81 +166,46 @@ interface LocalState {email: string;password: string;passwordConfirm: string;- passwordValidationTimer?: ReturnType<typeof setTimeout>;- showPasswordMismatchError: boolean;name: string;nameManuallyEdited: boolean;acceptTermsAndPolicy: boolean;- showPassword: boolean;isLoading: boolean;}const actuatorStore = useActuatorV1Store();const router = useRouter();+const userPasswordRef = ref<InstanceType<typeof UserPassword>>();const state = reactive<LocalState>({email: "",password: "",passwordConfirm: "",- showPasswordMismatchError: false,name: "",nameManuallyEdited: false,acceptTermsAndPolicy: true,- showPassword: false,isLoading: false,});-onUnmounted(() => {- if (state.passwordValidationTimer) {- clearInterval(state.passwordValidationTimer);- }-});--const { needAdminSetup, disallowSignup } = storeToRefs(actuatorStore);+const { needAdminSetup, disallowSignup, passwordRestriction } =+ storeToRefs(actuatorStore);const allowSignup = computed(() => {return (isValidEmail(state.email) &&state.password &&- !state.showPasswordMismatchError &&+ !userPasswordRef.value?.passwordHint &&+ !userPasswordRef.value?.passwordMismatch &&state.acceptTermsAndPolicy &&!disallowSignup.value);});-const passwordMatch = computed(() => {- return state.password == state.passwordConfirm;-});-onMounted(() => {if (needAdminSetup.value) {state.acceptTermsAndPolicy = false;}});-const refreshPasswordValidation = () => {- if (state.passwordValidationTimer) {- clearInterval(state.passwordValidationTimer);- }-- if (passwordMatch.value) {- state.showPasswordMismatchError = false;- } else {- state.passwordValidationTimer = setTimeout(() => {- // If error is already displayed, we hide the error only if there is valid input.- // Otherwise, we hide the error if input is either empty or valid.- if (state.showPasswordMismatchError) {- state.showPasswordMismatchError = !passwordMatch.value;- } else {- state.showPasswordMismatchError =- state.password != "" &&- state.passwordConfirm != "" &&- !passwordMatch.value;- }- }, TEXT_VALIDATION_DELAY);- }-};-const onTextEmail = () => {const email = state.email.trim().toLowerCase();state.email = email;@@ -340,35 +235,30 @@ const onTextName = () => {const trySignup = async () => {if (state.isLoading) return;+ state.isLoading = true;- if (!passwordMatch.value) {- state.showPasswordMismatchError = true;- } else {- state.isLoading = true;-- try {- const signupInfo: Partial<User> = {- email: state.email,- password: state.password,- name: state.name,- };- await useAuthStore().signup(signupInfo);- if (needAdminSetup.value) {- await actuatorStore.fetchServerInfo();- // When the first time we created an end user, the server-side will- // generate onboarding data.- // We write a flag here to indicate that the workspace is just created- // and we can consume this flag somewhere else if needed.- useOnboardingStateStore().initialize();- router.replace({- name: SETUP_WORKSPACE_MODE_MODULE,- });- } else {- router.replace("/");- }- } finally {- state.isLoading = false;+ try {+ const signupInfo: Partial<User> = {+ email: state.email,+ password: state.password,+ name: state.name,+ };+ await useAuthStore().signup(signupInfo);+ if (needAdminSetup.value) {+ await actuatorStore.fetchServerInfo();+ // When the first time we created an end user, the server-side will+ // generate onboarding data.+ // We write a flag here to indicate that the workspace is just created+ // and we can consume this flag somewhere else if needed.+ useOnboardingStateStore().initialize();+ router.replace({+ name: SETUP_WORKSPACE_MODE_MODULE,+ });+ } else {+ router.replace("/");}+ } finally {+ state.isLoading = false;}};</script>diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 3b4084d00e..20e57e8b85 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -7875,6 +7875,8 @@ components:disallowPasswordSignin:type: booleandescription: disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins)+ passwordRestriction:+ $ref: '#/components/schemas/PasswordRestrictionSetting'description: |-ServerInfo is the API message for server info.Actuator concept is similar to the Spring Boot Actuator.diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 18ce477aa4..e935338213 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -11,29 +11,6 @@- [File-level Extensions](#v1_annotation-proto-extensions)- [File-level Extensions](#v1_annotation-proto-extensions)-- [v1/actuator_service.proto](#v1_actuator_service-proto)- - [ActuatorInfo](#bytebase-v1-ActuatorInfo)- - [DeleteCacheRequest](#bytebase-v1-DeleteCacheRequest)- - [GetActuatorInfoRequest](#bytebase-v1-GetActuatorInfoRequest)- - [GetResourcePackageRequest](#bytebase-v1-GetResourcePackageRequest)- - [ResourcePackage](#bytebase-v1-ResourcePackage)- - [UpdateActuatorInfoRequest](#bytebase-v1-UpdateActuatorInfoRequest)-- - [ActuatorService](#bytebase-v1-ActuatorService)--- [v1/anomaly_service.proto](#v1_anomaly_service-proto)- - [Anomaly](#bytebase-v1-Anomaly)- - [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail)- - [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail)- - [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail)- - [SearchAnomaliesRequest](#bytebase-v1-SearchAnomaliesRequest)- - [SearchAnomaliesResponse](#bytebase-v1-SearchAnomaliesResponse)-- - [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity)- - [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType)-- - [AnomalyService](#bytebase-v1-AnomalyService)-- [v1/common.proto](#v1_common-proto)- [Position](#bytebase-v1-Position)- [Range](#bytebase-v1-Range)@@ -44,50 +21,6 @@- [State](#bytebase-v1-State)- [VCSType](#bytebase-v1-VCSType)-- [v1/iam_policy.proto](#v1_iam_policy-proto)- - [Binding](#bytebase-v1-Binding)- - [BindingDelta](#bytebase-v1-BindingDelta)- - [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest)- - [IamPolicy](#bytebase-v1-IamPolicy)- - [PolicyDelta](#bytebase-v1-PolicyDelta)- - [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest)-- - [BindingDelta.Action](#bytebase-v1-BindingDelta-Action)--- [v1/audit_log_service.proto](#v1_audit_log_service-proto)- - [AuditData](#bytebase-v1-AuditData)- - [AuditLog](#bytebase-v1-AuditLog)- - [ExportAuditLogsRequest](#bytebase-v1-ExportAuditLogsRequest)- - [ExportAuditLogsResponse](#bytebase-v1-ExportAuditLogsResponse)- - [RequestMetadata](#bytebase-v1-RequestMetadata)- - [SearchAuditLogsRequest](#bytebase-v1-SearchAuditLogsRequest)- - [SearchAuditLogsResponse](#bytebase-v1-SearchAuditLogsResponse)-- - [AuditLog.Severity](#bytebase-v1-AuditLog-Severity)-- - [AuditLogService](#bytebase-v1-AuditLogService)--- [v1/auth_service.proto](#v1_auth_service-proto)- - [CreateUserRequest](#bytebase-v1-CreateUserRequest)- - [DeleteUserRequest](#bytebase-v1-DeleteUserRequest)- - [GetUserRequest](#bytebase-v1-GetUserRequest)- - [IdentityProviderContext](#bytebase-v1-IdentityProviderContext)- - [ListUsersRequest](#bytebase-v1-ListUsersRequest)- - [ListUsersResponse](#bytebase-v1-ListUsersResponse)- - [LoginRequest](#bytebase-v1-LoginRequest)- - [LoginResponse](#bytebase-v1-LoginResponse)- - [LogoutRequest](#bytebase-v1-LogoutRequest)- - [OAuth2IdentityProviderContext](#bytebase-v1-OAuth2IdentityProviderContext)- - [OIDCIdentityProviderContext](#bytebase-v1-OIDCIdentityProviderContext)- - [UndeleteUserRequest](#bytebase-v1-UndeleteUserRequest)- - [UpdateUserRequest](#bytebase-v1-UpdateUserRequest)- - [User](#bytebase-v1-User)- - [User.Profile](#bytebase-v1-User-Profile)-- - [UserType](#bytebase-v1-UserType)-- - [AuthService](#bytebase-v1-AuthService)-- [v1/instance_role_service.proto](#v1_instance_role_service-proto)- [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest)- [InstanceRole](#bytebase-v1-InstanceRole)@@ -213,6 +146,183 @@- [DatabaseService](#bytebase-v1-DatabaseService)+- [v1/issue_service.proto](#v1_issue_service-proto)+ - [ApprovalFlow](#bytebase-v1-ApprovalFlow)+ - [ApprovalNode](#bytebase-v1-ApprovalNode)+ - [ApprovalStep](#bytebase-v1-ApprovalStep)+ - [ApprovalTemplate](#bytebase-v1-ApprovalTemplate)+ - [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest)+ - [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest)+ - [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse)+ - [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest)+ - [CreateIssueRequest](#bytebase-v1-CreateIssueRequest)+ - [GetIssueRequest](#bytebase-v1-GetIssueRequest)+ - [GrantRequest](#bytebase-v1-GrantRequest)+ - [Issue](#bytebase-v1-Issue)+ - [Issue.Approver](#bytebase-v1-Issue-Approver)+ - [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry)+ - [IssueComment](#bytebase-v1-IssueComment)+ - [IssueComment.Approval](#bytebase-v1-IssueComment-Approval)+ - [IssueComment.IssueUpdate](#bytebase-v1-IssueComment-IssueUpdate)+ - [IssueComment.StageEnd](#bytebase-v1-IssueComment-StageEnd)+ - [IssueComment.TaskPriorBackup](#bytebase-v1-IssueComment-TaskPriorBackup)+ - [IssueComment.TaskPriorBackup.Table](#bytebase-v1-IssueComment-TaskPriorBackup-Table)+ - [IssueComment.TaskUpdate](#bytebase-v1-IssueComment-TaskUpdate)+ - [ListIssueCommentsRequest](#bytebase-v1-ListIssueCommentsRequest)+ - [ListIssueCommentsResponse](#bytebase-v1-ListIssueCommentsResponse)+ - [ListIssuesRequest](#bytebase-v1-ListIssuesRequest)+ - [ListIssuesResponse](#bytebase-v1-ListIssuesResponse)+ - [RejectIssueRequest](#bytebase-v1-RejectIssueRequest)+ - [RequestIssueRequest](#bytebase-v1-RequestIssueRequest)+ - [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest)+ - [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse)+ - [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest)+ - [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest)++ - [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue)+ - [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type)+ - [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type)+ - [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status)+ - [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel)+ - [Issue.Type](#bytebase-v1-Issue-Type)+ - [IssueComment.Approval.Status](#bytebase-v1-IssueComment-Approval-Status)+ - [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status)+ - [IssueStatus](#bytebase-v1-IssueStatus)++ - [IssueService](#bytebase-v1-IssueService)++- [v1/subscription_service.proto](#v1_subscription_service-proto)+ - [Feature](#bytebase-v1-Feature)+ - [Feature.MatrixEntry](#bytebase-v1-Feature-MatrixEntry)+ - [FeatureMatrix](#bytebase-v1-FeatureMatrix)+ - [GetFeatureMatrixRequest](#bytebase-v1-GetFeatureMatrixRequest)+ - [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest)+ - [PatchSubscription](#bytebase-v1-PatchSubscription)+ - [Subscription](#bytebase-v1-Subscription)+ - [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest)++ - [PlanType](#bytebase-v1-PlanType)++ - [SubscriptionService](#bytebase-v1-SubscriptionService)++- [v1/setting_service.proto](#v1_setting_service-proto)+ - [AgentPluginSetting](#bytebase-v1-AgentPluginSetting)+ - [Announcement](#bytebase-v1-Announcement)+ - [AppIMSetting](#bytebase-v1-AppIMSetting)+ - [AppIMSetting.Feishu](#bytebase-v1-AppIMSetting-Feishu)+ - [AppIMSetting.Slack](#bytebase-v1-AppIMSetting-Slack)+ - [AppIMSetting.Wecom](#bytebase-v1-AppIMSetting-Wecom)+ - [DataClassificationSetting](#bytebase-v1-DataClassificationSetting)+ - [DataClassificationSetting.DataClassificationConfig](#bytebase-v1-DataClassificationSetting-DataClassificationConfig)+ - [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry)+ - [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification)+ - [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level)+ - [ExternalApprovalSetting](#bytebase-v1-ExternalApprovalSetting)+ - [ExternalApprovalSetting.Node](#bytebase-v1-ExternalApprovalSetting-Node)+ - [GetSettingRequest](#bytebase-v1-GetSettingRequest)+ - [GetSettingResponse](#bytebase-v1-GetSettingResponse)+ - [ListSettingsRequest](#bytebase-v1-ListSettingsRequest)+ - [ListSettingsResponse](#bytebase-v1-ListSettingsResponse)+ - [MaskingAlgorithmSetting](#bytebase-v1-MaskingAlgorithmSetting)+ - [MaskingAlgorithmSetting.Algorithm](#bytebase-v1-MaskingAlgorithmSetting-Algorithm)+ - [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask)+ - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask)+ - [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask)+ - [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask)+ - [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice)+ - [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting)+ - [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)+ - [SCIMSetting](#bytebase-v1-SCIMSetting)+ - [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue)+ - [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting)+ - [SchemaTemplateSetting.ColumnType](#bytebase-v1-SchemaTemplateSetting-ColumnType)+ - [SchemaTemplateSetting.FieldTemplate](#bytebase-v1-SchemaTemplateSetting-FieldTemplate)+ - [SchemaTemplateSetting.TableTemplate](#bytebase-v1-SchemaTemplateSetting-TableTemplate)+ - [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting)+ - [SemanticTypeSetting.SemanticType](#bytebase-v1-SemanticTypeSetting-SemanticType)+ - [Setting](#bytebase-v1-Setting)+ - [UpdateSettingRequest](#bytebase-v1-UpdateSettingRequest)+ - [Value](#bytebase-v1-Value)+ - [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting)+ - [WorkspaceApprovalSetting.Rule](#bytebase-v1-WorkspaceApprovalSetting-Rule)+ - [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting)+ - [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting)++ - [Announcement.AlertLevel](#bytebase-v1-Announcement-AlertLevel)+ - [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode)+ - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType)+ - [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication)+ - [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption)++ - [SettingService](#bytebase-v1-SettingService)++- [v1/actuator_service.proto](#v1_actuator_service-proto)+ - [ActuatorInfo](#bytebase-v1-ActuatorInfo)+ - [DeleteCacheRequest](#bytebase-v1-DeleteCacheRequest)+ - [GetActuatorInfoRequest](#bytebase-v1-GetActuatorInfoRequest)+ - [GetResourcePackageRequest](#bytebase-v1-GetResourcePackageRequest)+ - [ResourcePackage](#bytebase-v1-ResourcePackage)+ - [UpdateActuatorInfoRequest](#bytebase-v1-UpdateActuatorInfoRequest)++ - [ActuatorService](#bytebase-v1-ActuatorService)++- [v1/anomaly_service.proto](#v1_anomaly_service-proto)+ - [Anomaly](#bytebase-v1-Anomaly)+ - [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail)+ - [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail)+ - [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail)+ - [SearchAnomaliesRequest](#bytebase-v1-SearchAnomaliesRequest)+ - [SearchAnomaliesResponse](#bytebase-v1-SearchAnomaliesResponse)++ - [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity)+ - [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType)++ - [AnomalyService](#bytebase-v1-AnomalyService)++- [v1/iam_policy.proto](#v1_iam_policy-proto)+ - [Binding](#bytebase-v1-Binding)+ - [BindingDelta](#bytebase-v1-BindingDelta)+ - [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest)+ - [IamPolicy](#bytebase-v1-IamPolicy)+ - [PolicyDelta](#bytebase-v1-PolicyDelta)+ - [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest)++ - [BindingDelta.Action](#bytebase-v1-BindingDelta-Action)++- [v1/audit_log_service.proto](#v1_audit_log_service-proto)+ - [AuditData](#bytebase-v1-AuditData)+ - [AuditLog](#bytebase-v1-AuditLog)+ - [ExportAuditLogsRequest](#bytebase-v1-ExportAuditLogsRequest)+ - [ExportAuditLogsResponse](#bytebase-v1-ExportAuditLogsResponse)+ - [RequestMetadata](#bytebase-v1-RequestMetadata)+ - [SearchAuditLogsRequest](#bytebase-v1-SearchAuditLogsRequest)+ - [SearchAuditLogsResponse](#bytebase-v1-SearchAuditLogsResponse)++ - [AuditLog.Severity](#bytebase-v1-AuditLog-Severity)++ - [AuditLogService](#bytebase-v1-AuditLogService)++- [v1/auth_service.proto](#v1_auth_service-proto)+ - [CreateUserRequest](#bytebase-v1-CreateUserRequest)+ - [DeleteUserRequest](#bytebase-v1-DeleteUserRequest)+ - [GetUserRequest](#bytebase-v1-GetUserRequest)+ - [IdentityProviderContext](#bytebase-v1-IdentityProviderContext)+ - [ListUsersRequest](#bytebase-v1-ListUsersRequest)+ - [ListUsersResponse](#bytebase-v1-ListUsersResponse)+ - [LoginRequest](#bytebase-v1-LoginRequest)+ - [LoginResponse](#bytebase-v1-LoginResponse)+ - [LogoutRequest](#bytebase-v1-LogoutRequest)+ - [OAuth2IdentityProviderContext](#bytebase-v1-OAuth2IdentityProviderContext)+ - [OIDCIdentityProviderContext](#bytebase-v1-OIDCIdentityProviderContext)+ - [UndeleteUserRequest](#bytebase-v1-UndeleteUserRequest)+ - [UpdateUserRequest](#bytebase-v1-UpdateUserRequest)+ - [User](#bytebase-v1-User)+ - [User.Profile](#bytebase-v1-User-Profile)++ - [UserType](#bytebase-v1-UserType)++ - [AuthService](#bytebase-v1-AuthService)+- [v1/branch_service.proto](#v1_branch_service-proto)- [Branch](#bytebase-v1-Branch)- [CreateBranchRequest](#bytebase-v1-CreateBranchRequest)@@ -318,51 +428,6 @@- [IdentityProviderService](#bytebase-v1-IdentityProviderService)-- [v1/issue_service.proto](#v1_issue_service-proto)- - [ApprovalFlow](#bytebase-v1-ApprovalFlow)- - [ApprovalNode](#bytebase-v1-ApprovalNode)- - [ApprovalStep](#bytebase-v1-ApprovalStep)- - [ApprovalTemplate](#bytebase-v1-ApprovalTemplate)- - [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest)- - [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest)- - [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse)- - [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest)- - [CreateIssueRequest](#bytebase-v1-CreateIssueRequest)- - [GetIssueRequest](#bytebase-v1-GetIssueRequest)- - [GrantRequest](#bytebase-v1-GrantRequest)- - [Issue](#bytebase-v1-Issue)- - [Issue.Approver](#bytebase-v1-Issue-Approver)- - [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry)- - [IssueComment](#bytebase-v1-IssueComment)- - [IssueComment.Approval](#bytebase-v1-IssueComment-Approval)- - [IssueComment.IssueUpdate](#bytebase-v1-IssueComment-IssueUpdate)- - [IssueComment.StageEnd](#bytebase-v1-IssueComment-StageEnd)- - [IssueComment.TaskPriorBackup](#bytebase-v1-IssueComment-TaskPriorBackup)- - [IssueComment.TaskPriorBackup.Table](#bytebase-v1-IssueComment-TaskPriorBackup-Table)- - [IssueComment.TaskUpdate](#bytebase-v1-IssueComment-TaskUpdate)- - [ListIssueCommentsRequest](#bytebase-v1-ListIssueCommentsRequest)- - [ListIssueCommentsResponse](#bytebase-v1-ListIssueCommentsResponse)- - [ListIssuesRequest](#bytebase-v1-ListIssuesRequest)- - [ListIssuesResponse](#bytebase-v1-ListIssuesResponse)- - [RejectIssueRequest](#bytebase-v1-RejectIssueRequest)- - [RequestIssueRequest](#bytebase-v1-RequestIssueRequest)- - [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest)- - [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse)- - [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest)- - [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest)-- - [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue)- - [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type)- - [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type)- - [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status)- - [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel)- - [Issue.Type](#bytebase-v1-Issue-Type)- - [IssueComment.Approval.Status](#bytebase-v1-IssueComment-Approval-Status)- - [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status)- - [IssueStatus](#bytebase-v1-IssueStatus)-- - [IssueService](#bytebase-v1-IssueService)-- [v1/org_policy_service.proto](#v1_org_policy_service-proto)- [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest)- [DataSourceQueryPolicy](#bytebase-v1-DataSourceQueryPolicy)@@ -556,71 +621,6 @@- [RolloutService](#bytebase-v1-RolloutService)-- [v1/subscription_service.proto](#v1_subscription_service-proto)- - [Feature](#bytebase-v1-Feature)- - [Feature.MatrixEntry](#bytebase-v1-Feature-MatrixEntry)- - [FeatureMatrix](#bytebase-v1-FeatureMatrix)- - [GetFeatureMatrixRequest](#bytebase-v1-GetFeatureMatrixRequest)- - [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest)- - [PatchSubscription](#bytebase-v1-PatchSubscription)- - [Subscription](#bytebase-v1-Subscription)- - [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest)-- - [PlanType](#bytebase-v1-PlanType)-- - [SubscriptionService](#bytebase-v1-SubscriptionService)--- [v1/setting_service.proto](#v1_setting_service-proto)- - [AgentPluginSetting](#bytebase-v1-AgentPluginSetting)- - [Announcement](#bytebase-v1-Announcement)- - [AppIMSetting](#bytebase-v1-AppIMSetting)- - [AppIMSetting.Feishu](#bytebase-v1-AppIMSetting-Feishu)- - [AppIMSetting.Slack](#bytebase-v1-AppIMSetting-Slack)- - [AppIMSetting.Wecom](#bytebase-v1-AppIMSetting-Wecom)- - [DataClassificationSetting](#bytebase-v1-DataClassificationSetting)- - [DataClassificationSetting.DataClassificationConfig](#bytebase-v1-DataClassificationSetting-DataClassificationConfig)- - [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry)- - [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification)- - [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level)- - [ExternalApprovalSetting](#bytebase-v1-ExternalApprovalSetting)- - [ExternalApprovalSetting.Node](#bytebase-v1-ExternalApprovalSetting-Node)- - [GetSettingRequest](#bytebase-v1-GetSettingRequest)- - [GetSettingResponse](#bytebase-v1-GetSettingResponse)- - [ListSettingsRequest](#bytebase-v1-ListSettingsRequest)- - [ListSettingsResponse](#bytebase-v1-ListSettingsResponse)- - [MaskingAlgorithmSetting](#bytebase-v1-MaskingAlgorithmSetting)- - [MaskingAlgorithmSetting.Algorithm](#bytebase-v1-MaskingAlgorithmSetting-Algorithm)- - [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask)- - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask)- - [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask)- - [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask)- - [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice)- - [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting)- - [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting)- - [SCIMSetting](#bytebase-v1-SCIMSetting)- - [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue)- - [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting)- - [SchemaTemplateSetting.ColumnType](#bytebase-v1-SchemaTemplateSetting-ColumnType)- - [SchemaTemplateSetting.FieldTemplate](#bytebase-v1-SchemaTemplateSetting-FieldTemplate)- - [SchemaTemplateSetting.TableTemplate](#bytebase-v1-SchemaTemplateSetting-TableTemplate)- - [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting)- - [SemanticTypeSetting.SemanticType](#bytebase-v1-SemanticTypeSetting-SemanticType)- - [Setting](#bytebase-v1-Setting)- - [UpdateSettingRequest](#bytebase-v1-UpdateSettingRequest)- - [Value](#bytebase-v1-Value)- - [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting)- - [WorkspaceApprovalSetting.Rule](#bytebase-v1-WorkspaceApprovalSetting-Rule)- - [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting)- - [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting)-- - [Announcement.AlertLevel](#bytebase-v1-Announcement-AlertLevel)- - [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode)- - [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType)- - [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication)- - [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption)-- - [SettingService](#bytebase-v1-SettingService)-- [v1/sheet_service.proto](#v1_sheet_service-proto)- [CreateSheetRequest](#bytebase-v1-CreateSheetRequest)- [GetSheetRequest](#bytebase-v1-GetSheetRequest)@@ -758,693 +758,683 @@-<a name="v1_actuator_service-proto"></a>+<a name="v1_common-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/actuator_service.proto+## v1/common.proto-<a name="bytebase-v1-ActuatorInfo"></a>+<a name="bytebase-v1-Position"></a>++### Position-### ActuatorInfo-ServerInfo is the API message for server info.-Actuator concept is similar to the Spring Boot Actuator.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| version | [string](#string) | | version is the bytebase's server version |-| git_commit | [string](#string) | | git_commit is the git commit hash of the build |-| readonly | [bool](#bool) | | readonly flag means if the Bytebase is running in readonly mode. |-| saas | [bool](#bool) | | saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users. |-| demo_name | [string](#string) | | demo_name specifies the demo name, empty string means no demo. |-| host | [string](#string) | | host is the Bytebase instance host. |-| port | [string](#string) | | port is the Bytebase instance port. |-| external_url | [string](#string) | | external_url is the URL where user or webhook callback visits Bytebase. |-| need_admin_setup | [bool](#bool) | | need_admin_setup flag means the Bytebase instance doesn't have any end users. |-| disallow_signup | [bool](#bool) | | disallow_signup is the flag to disable self-service signup. |-| last_active_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value. |-| require_2fa | [bool](#bool) | | require_2fa is the flag to require 2FA for all users. |-| workspace_id | [string](#string) | | workspace_id is the identifier for the workspace. |-| gitops_webhook_url | [string](#string) | | gitops_webhook_url is the webhook URL for GitOps. |-| debug | [bool](#bool) | | debug flag means if the debug mode is enabled. |-| lsp | [bool](#bool) | | lsp is the enablement of lsp in SQL Editor. |-| pre_update_backup | [bool](#bool) | | pre_update_backup is the enablement of data backup prior to data update. |-| iam_guard | [bool](#bool) | | iam_guard is the enablement of IAM checks. |-| unlicensed_features | [string](#string) | repeated | |-| disallow_password_signin | [bool](#bool) | | disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins) |--+| line | [int32](#int32) | | |+| column | [int32](#int32) | | |-<a name="bytebase-v1-DeleteCacheRequest"></a>-### DeleteCacheRequest+<a name="bytebase-v1-Range"></a>+### Range+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| start | [int32](#int32) | | |+| end | [int32](#int32) | | |-<a name="bytebase-v1-GetActuatorInfoRequest"></a>-### GetActuatorInfoRequest++<a name="bytebase-v1-Engine"></a>+### Engine-<a name="bytebase-v1-GetResourcePackageRequest"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| ENGINE_UNSPECIFIED | 0 | |+| CLICKHOUSE | 1 | |+| MYSQL | 2 | |+| POSTGRES | 3 | |+| SNOWFLAKE | 4 | |+| SQLITE | 5 | |+| TIDB | 6 | |+| MONGODB | 7 | |+| REDIS | 8 | |+| ORACLE | 9 | |+| SPANNER | 10 | |+| MSSQL | 11 | |+| REDSHIFT | 12 | |+| MARIADB | 13 | |+| OCEANBASE | 14 | |+| DM | 15 | |+| RISINGWAVE | 16 | |+| OCEANBASE_ORACLE | 17 | |+| STARROCKS | 18 | |+| DORIS | 19 | |+| HIVE | 20 | |+| ELASTICSEARCH | 21 | |+| BIGQUERY | 22 | |+| DYNAMODB | 23 | |+| DATABRICKS | 24 | |+| COCKROACHDB | 25 | |-### GetResourcePackageRequest-The request message for getting the theme resource.+<a name="bytebase-v1-ExportFormat"></a>+### ExportFormat+| Name | Number | Description |+| ---- | ------ | ----------- |+| FORMAT_UNSPECIFIED | 0 | |+| CSV | 1 | |+| JSON | 2 | |+| SQL | 3 | |+| XLSX | 4 | |-<a name="bytebase-v1-ResourcePackage"></a>-### ResourcePackage-The theme resources.+<a name="bytebase-v1-MaskingLevel"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| logo | [bytes](#bytes) | | The branding logo. |+### MaskingLevel+| Name | Number | Description |+| ---- | ------ | ----------- |+| MASKING_LEVEL_UNSPECIFIED | 0 | |+| NONE | 1 | |+| PARTIAL | 2 | |+| FULL | 3 | |+<a name="bytebase-v1-State"></a>-<a name="bytebase-v1-UpdateActuatorInfoRequest"></a>+### State-### UpdateActuatorInfoRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATE_UNSPECIFIED | 0 | |+| ACTIVE | 1 | |+| DELETED | 2 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| actuator | [ActuatorInfo](#bytebase-v1-ActuatorInfo) | | The actuator to update. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+<a name="bytebase-v1-VCSType"></a>+### VCSType+| Name | Number | Description |+| ---- | ------ | ----------- |+| VCS_TYPE_UNSPECIFIED | 0 | |+| GITHUB | 1 | GitHub type. Using for GitHub community edition(ce). |+| GITLAB | 2 | GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee). |+| BITBUCKET | 3 | BitBucket type. Using for BitBucket cloud or BitBucket server. |+| AZURE_DEVOPS | 4 | Azure DevOps. Using for Azure DevOps GitOps workflow. |---<a name="bytebase-v1-ActuatorService"></a>--### ActuatorService---| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetActuatorInfo | [GetActuatorInfoRequest](#bytebase-v1-GetActuatorInfoRequest) | [ActuatorInfo](#bytebase-v1-ActuatorInfo) | |-| UpdateActuatorInfo | [UpdateActuatorInfoRequest](#bytebase-v1-UpdateActuatorInfoRequest) | [ActuatorInfo](#bytebase-v1-ActuatorInfo) | |-| DeleteCache | [DeleteCacheRequest](#bytebase-v1-DeleteCacheRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| GetResourcePackage | [GetResourcePackageRequest](#bytebase-v1-GetResourcePackageRequest) | [ResourcePackage](#bytebase-v1-ResourcePackage) | |--<a name="v1_anomaly_service-proto"></a>+<a name="v1_instance_role_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/anomaly_service.proto+## v1/instance_role_service.proto-<a name="bytebase-v1-Anomaly"></a>+<a name="bytebase-v1-GetInstanceRoleRequest"></a>-### Anomaly+### GetInstanceRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The resource that is the target of the operation. Format: - Instance: instnaces/{instance} - Database: instnaces/{instance}/databases/{database} |-| type | [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType) | | type is the type of the anomaly. |-| severity | [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity) | | severity is the severity of the anomaly. |-| instance_connection_detail | [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail) | | |-| database_connection_detail | [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail) | | |-| database_schema_drift_detail | [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail) | | |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |-<a name="bytebase-v1-Anomaly-DatabaseConnectionDetail"></a>+<a name="bytebase-v1-InstanceRole"></a>-### Anomaly.DatabaseConnectionDetail-Database level anomaly detial.--DatbaaseConnectionDetail is the detail for database connection anomaly.+### InstanceRole+InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| detail | [string](#string) | | detail is the detail of the database connection failure. |+| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role} The role name is the unique name for the role. |+| role_name | [string](#string) | | The role name. It's unique within the instance. |+| password | [string](#string) | optional | The role password. |+| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |+| valid_until | [string](#string) | optional | The expiration for the role's password. |+| attribute | [string](#string) | optional | 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 |-<a name="bytebase-v1-Anomaly-DatabaseSchemaDriftDetail"></a>+<a name="bytebase-v1-ListInstanceRolesRequest"></a>++### ListInstanceRolesRequest-### Anomaly.DatabaseSchemaDriftDetail-DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| record_version | [string](#string) | | record_version is the record version of the database schema drift. |-| expected_schema | [string](#string) | | expected_schema is the expected schema in the database. |-| actual_schema | [string](#string) | | actual_schema is the actual schema in the database. |+| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| refresh | [bool](#bool) | | Refresh will refresh and return the latest data. |-<a name="bytebase-v1-Anomaly-InstanceConnectionDetail"></a>-### Anomaly.InstanceConnectionDetail-Instance level anomaly detail.+<a name="bytebase-v1-ListInstanceRolesResponse"></a>++### ListInstanceRolesResponse-InstanceConnectionDetail is the detail for instance connection anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| detail | [string](#string) | | detail is the detail of the instance connection failure. |+| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | The roles from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+-<a name="bytebase-v1-SearchAnomaliesRequest"></a>+-### SearchAnomaliesRequest++<a name="bytebase-v1-InstanceRoleService"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| filter | [string](#string) | | 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".' |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | Not used. A page token, received from a previous `SearchAnomalies` call. Provide this to retrieve the subsequent page.+### InstanceRoleService-When paginating, all other parameters provided to `SearchAnomalies` must match the call that provided the page token. |++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |+++<a name="v1_instance_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/instance_service.proto-<a name="bytebase-v1-SearchAnomaliesResponse"></a>-### SearchAnomaliesResponse+<a name="bytebase-v1-AddDataSourceRequest"></a>++### AddDataSourceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| anomalies | [Anomaly](#bytebase-v1-Anomaly) | repeated | anomalies is the list of anomalies. |-| next_page_token | [string](#string) | | 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. |+| name | [string](#string) | | The name of the instance to add a data source to. Format: instances/{instance} |+| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be added. |+| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-+<a name="bytebase-v1-BatchSyncInstancesRequest"></a>-<a name="bytebase-v1-Anomaly-AnomalySeverity"></a>+### BatchSyncInstancesRequest-### Anomaly.AnomalySeverity-AnomalySeverity is the severity of the anomaly.-| Name | Number | Description |-| ---- | ------ | ----------- |-| ANOMALY_SEVERITY_UNSPECIFIED | 0 | Unspecified anomaly severity. |-| MEDIUM | 1 | MEDIUM is the info level anomaly severity. |-| HIGH | 2 | HIGH is the warning level anomaly severity. |-| CRITICAL | 3 | CRITICAL is the critical level anomaly severity. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| requests | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | repeated | The request message specifying the instances to sync. A maximum of 1000 instances can be synced in a batch. |-<a name="bytebase-v1-Anomaly-AnomalyType"></a>-### Anomaly.AnomalyType-AnomalyType is the type of the anomaly.-| Name | Number | Description |-| ---- | ------ | ----------- |-| ANOMALY_TYPE_UNSPECIFIED | 0 | Unspecified anomaly type. |-| INSTANCE_CONNECTION | 1 | Instance level anomaly.-INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down. |-| MIGRATION_SCHEMA | 2 | MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing. |-| DATABASE_CONNECTION | 5 | Database level anomaly.-DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted. |-| DATABASE_SCHEMA_DRIFT | 6 | DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift, e.g. the database schema had been changed without bytebase migration. |+<a name="bytebase-v1-BatchSyncInstancesResponse"></a>+### BatchSyncInstancesResponse---<a name="bytebase-v1-AnomalyService"></a>-### AnomalyService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| SearchAnomalies | [SearchAnomaliesRequest](#bytebase-v1-SearchAnomaliesRequest) | [SearchAnomaliesResponse](#bytebase-v1-SearchAnomaliesResponse) | |+<a name="bytebase-v1-CreateInstanceRequest"></a>-+### CreateInstanceRequest-<a name="v1_common-proto"></a>-<p align="right"><a href="#top">Top</a></p>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| instance | [Instance](#bytebase-v1-Instance) | | The instance to create. |+| instance_id | [string](#string) | | 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]-/. |+| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-## v1/common.proto-<a name="bytebase-v1-Position"></a>-### Position++<a name="bytebase-v1-DataSource"></a>++### DataSource| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| line | [int32](#int32) | | |-| column | [int32](#int32) | | |+| id | [string](#string) | | |+| type | [DataSourceType](#bytebase-v1-DataSourceType) | | |+| username | [string](#string) | | |+| password | [string](#string) | | |+| use_ssl | [bool](#bool) | | Use SSL to connect to the data source. By default, we use system default SSL configuration. |+| ssl_ca | [string](#string) | | |+| ssl_cert | [string](#string) | | |+| ssl_key | [string](#string) | | |+| host | [string](#string) | | |+| port | [string](#string) | | |+| database | [string](#string) | | |+| srv | [bool](#bool) | | srv, authentication_database and replica_set are used for MongoDB. |+| authentication_database | [string](#string) | | |+| sid | [string](#string) | | sid and service_name are used for Oracle. |+| service_name | [string](#string) | | |+| ssh_host | [string](#string) | | Connection over SSH. The hostname of the SSH server agent. Required. |+| ssh_port | [string](#string) | | The port of the SSH server agent. It's 22 typically. Required. |+| ssh_user | [string](#string) | | The user to login the server. Required. |+| ssh_password | [string](#string) | | The password to login the server. If it's empty string, no password is required. |+| ssh_private_key | [string](#string) | | 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"). |+| authentication_private_key | [string](#string) | | 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. |+| external_secret | [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret) | | |+| authentication_type | [DataSource.AuthenticationType](#bytebase-v1-DataSource-AuthenticationType) | | |+| sasl_config | [SASLConfig](#bytebase-v1-SASLConfig) | | |+| additional_addresses | [DataSource.Address](#bytebase-v1-DataSource-Address) | repeated | additional_addresses is used for MongoDB replica set. |+| replica_set | [string](#string) | | replica_set is used for MongoDB replica set. |+| direct_connection | [bool](#bool) | | direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. |+| region | [string](#string) | | region is the location of where the DB is, works for AWS RDS. For example, us-east-1. |+| warehouse_id | [string](#string) | | warehouse_id is used by Databricks. |+| master_name | [string](#string) | | master_name is the master name used by connecting redis-master via redis sentinel. |+| master_username | [string](#string) | | master_username and master_password are master credentials used by redis sentinel mode. |+| master_password | [string](#string) | | |+| redis_type | [DataSource.RedisType](#bytebase-v1-DataSource-RedisType) | | |+| cluster | [string](#string) | | Cluster is the cluster name for the data source. Used by CockroachDB. |-<a name="bytebase-v1-Range"></a>+<a name="bytebase-v1-DataSource-Address"></a>-### Range+### DataSource.Address| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start | [int32](#int32) | | |-| end | [int32](#int32) | | |+| host | [string](#string) | | |+| port | [string](#string) | | |-+<a name="bytebase-v1-DataSourceExternalSecret"></a>-<a name="bytebase-v1-Engine"></a>+### DataSourceExternalSecret-### Engine-| Name | Number | Description |-| ---- | ------ | ----------- |-| ENGINE_UNSPECIFIED | 0 | |-| CLICKHOUSE | 1 | |-| MYSQL | 2 | |-| POSTGRES | 3 | |-| SNOWFLAKE | 4 | |-| SQLITE | 5 | |-| TIDB | 6 | |-| MONGODB | 7 | |-| REDIS | 8 | |-| ORACLE | 9 | |-| SPANNER | 10 | |-| MSSQL | 11 | |-| REDSHIFT | 12 | |-| MARIADB | 13 | |-| OCEANBASE | 14 | |-| DM | 15 | |-| RISINGWAVE | 16 | |-| OCEANBASE_ORACLE | 17 | |-| STARROCKS | 18 | |-| DORIS | 19 | |-| HIVE | 20 | |-| ELASTICSEARCH | 21 | |-| BIGQUERY | 22 | |-| DYNAMODB | 23 | |-| DATABRICKS | 24 | |-| COCKROACHDB | 25 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| secret_type | [DataSourceExternalSecret.SecretType](#bytebase-v1-DataSourceExternalSecret-SecretType) | | |+| url | [string](#string) | | |+| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType) | | |+| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption) | | |+| token | [string](#string) | | |+| engine_name | [string](#string) | | engine name is the name for secret engine. |+| secret_name | [string](#string) | | the secret name in the engine to store the password. |+| password_key_name | [string](#string) | | the key name for the password. |-<a name="bytebase-v1-ExportFormat"></a>-### ExportFormat-| Name | Number | Description |-| ---- | ------ | ----------- |-| FORMAT_UNSPECIFIED | 0 | |-| CSV | 1 | |-| JSON | 2 | |-| SQL | 3 | |-| XLSX | 4 | |+<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption"></a>+### DataSourceExternalSecret.AppRoleAuthOption-<a name="bytebase-v1-MaskingLevel"></a>-### MaskingLevel+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role_id | [string](#string) | | |+| secret_id | [string](#string) | | the secret id for the role without ttl. |+| type | [DataSourceExternalSecret.AppRoleAuthOption.SecretType](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType) | | |+| mount_path | [string](#string) | | The path where the approle auth method is mounted. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| MASKING_LEVEL_UNSPECIFIED | 0 | |-| NONE | 1 | |-| PARTIAL | 2 | |-| FULL | 3 | |-<a name="bytebase-v1-State"></a>-### State+<a name="bytebase-v1-DeleteInstanceRequest"></a>+### DeleteInstanceRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATE_UNSPECIFIED | 0 | |-| ACTIVE | 1 | |-| DELETED | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the instance to delete. Format: instances/{instance} |+| force | [bool](#bool) | | 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. |-<a name="bytebase-v1-VCSType"></a>-### VCSType-| Name | Number | Description |-| ---- | ------ | ----------- |-| VCS_TYPE_UNSPECIFIED | 0 | |-| GITHUB | 1 | GitHub type. Using for GitHub community edition(ce). |-| GITLAB | 2 | GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee). |-| BITBUCKET | 3 | BitBucket type. Using for BitBucket cloud or BitBucket server. |-| AZURE_DEVOPS | 4 | Azure DevOps. Using for Azure DevOps GitOps workflow. |-+<a name="bytebase-v1-GetInstanceRequest"></a>-+### GetInstanceRequest-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the instance to retrieve. Format: instances/{instance} |-<a name="v1_iam_policy-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/iam_policy.proto-<a name="bytebase-v1-Binding"></a>-### Binding+<a name="bytebase-v1-Instance"></a>++### Instance| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [string](#string) | | The role that is assigned to the members. Format: roles/{role} |-| members | [string](#string) | repeated | Specifies the principals requesting access for a Bytebase resource. For users, the member should be: user:{email} For groups, the member should be: group:{email} |-| condition | [google.type.Expr](#google-type-Expr) | | 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. |-| parsed_expr | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | | The parsed expression of the condition. |+| name | [string](#string) | | The name of the instance. Format: instances/{instance} |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| engine_version | [string](#string) | | |+| external_link | [string](#string) | | |+| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| activation | [bool](#bool) | | |+| options | [InstanceOptions](#bytebase-v1-InstanceOptions) | | |+| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | |-<a name="bytebase-v1-BindingDelta"></a>+<a name="bytebase-v1-InstanceOptions"></a>-### BindingDelta-One delta entry for Binding. Each individual change (only one member in each-entry) to a binding will be a separate entry.+### InstanceOptions+InstanceOptions is the option for instances.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| action | [BindingDelta.Action](#bytebase-v1-BindingDelta-Action) | | The action that was performed on a Binding. |-| role | [string](#string) | | Role that is assigned to `members`. For example, `roles/projectOwner`. |-| member | [string](#string) | | Follows the same format of Binding.members. |-| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this binding. |+| sync_interval | [google.protobuf.Duration](#google-protobuf-Duration) | | How often the instance is synced. |+| maximum_connections | [int32](#int32) | | The maximum number of connections. The default is 10 if the value is unset or zero. |-<a name="bytebase-v1-GetIamPolicyRequest"></a>+<a name="bytebase-v1-InstanceResource"></a>-### GetIamPolicyRequest+### InstanceResource| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The name of the resource to get the IAM policy. Format: projects/{project} Format: workspaces/{workspace} |+| title | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| engine_version | [string](#string) | | |+| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |+| activation | [bool](#bool) | | |+| name | [string](#string) | | The name of the instance. Format: instances/{instance} |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | |-<a name="bytebase-v1-IamPolicy"></a>+<a name="bytebase-v1-KerberosConfig"></a>-### IamPolicy+### KerberosConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| bindings | [Binding](#bytebase-v1-Binding) | repeated | Collection of binding. A binding binds one or more project members to a single project role. |-| etag | [string](#string) | | The current etag of the policy. If an etag is provided and does not match the current etag of the poliy, the call will be blocked and an ABORTED error will be returned. |+| primary | [string](#string) | | |+| instance | [string](#string) | | |+| realm | [string](#string) | | |+| keytab | [bytes](#bytes) | | |+| kdc_host | [string](#string) | | |+| kdc_port | [string](#string) | | |+| kdc_transport_protocol | [string](#string) | | |-<a name="bytebase-v1-PolicyDelta"></a>+<a name="bytebase-v1-ListInstancesRequest"></a>++### ListInstancesRequest-### PolicyDelta-The difference delta between two policies.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| binding_deltas | [BindingDelta](#bytebase-v1-BindingDelta) | repeated | The delta for Bindings between two policies. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| show_deleted | [bool](#bool) | | Show deleted instances if specified. |-<a name="bytebase-v1-SetIamPolicyRequest"></a>-### SetIamPolicyRequest+<a name="bytebase-v1-ListInstancesResponse"></a>++### ListInstancesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The name of the resource to set the IAM policy. Format: projects/{project} Format: workspaces/{workspace} |-| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |-| etag | [string](#string) | | The current etag of the policy. |----+| instances | [Instance](#bytebase-v1-Instance) | repeated | The instances from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |--<a name="bytebase-v1-BindingDelta-Action"></a>-### BindingDelta.Action-The type of action performed on a Binding in a policy.-| Name | Number | Description |-| ---- | ------ | ----------- |-| ACTION_UNSPECIFIED | 0 | |-| ADD | 1 | |-| REMOVE | 2 | |+<a name="bytebase-v1-RemoveDataSourceRequest"></a>-+### RemoveDataSourceRequest--+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the instance to remove a data source from. Format: instances/{instance} |+| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be removed. |-<a name="v1_audit_log_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/audit_log_service.proto-<a name="bytebase-v1-AuditData"></a>+<a name="bytebase-v1-SASLConfig"></a>-### AuditData+### SASLConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| policy_delta | [PolicyDelta](#bytebase-v1-PolicyDelta) | | |+| krb_config | [KerberosConfig](#bytebase-v1-KerberosConfig) | | |-<a name="bytebase-v1-AuditLog"></a>+<a name="bytebase-v1-SyncInstanceRequest"></a>-### AuditLog+### SyncInstanceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the log. Formats: - projects/{project}/auditLogs/{uid} - workspaces/{workspace}/auditLogs/{uid} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| user | [string](#string) | | Format: users/[email protected] |-| method | [string](#string) | | e.g. `/bytebase.v1.SQLService/Query`, `bb.project.repository.push` |-| severity | [AuditLog.Severity](#bytebase-v1-AuditLog-Severity) | | |-| resource | [string](#string) | | The associated resource. |-| request | [string](#string) | | JSON-encoded request. |-| response | [string](#string) | | JSON-encoded response. Some fields are omitted because they are too large or contain sensitive information. |-| status | [google.rpc.Status](#google-rpc-Status) | | |-| service_data | [google.protobuf.Any](#google-protobuf-Any) | | service-specific data about the request, response, and other activities. |-| request_metadata | [RequestMetadata](#bytebase-v1-RequestMetadata) | | Metadata about the operation. |--+| name | [string](#string) | | The name of instance. Format: instances/{instance} |-<a name="bytebase-v1-ExportAuditLogsRequest"></a>-### ExportAuditLogsRequest+<a name="bytebase-v1-SyncInstanceResponse"></a>+### SyncInstanceResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | |-| filter | [string](#string) | | The filter of the log. It should be a valid CEL expression. For example: - filter = "method == '/bytebase.v1.SQLService/Query'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" |-| order_by | [string](#string) | | 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 | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |-<a name="bytebase-v1-ExportAuditLogsResponse"></a>+<a name="bytebase-v1-SyncSlowQueriesRequest"></a>-### ExportAuditLogsResponse+### SyncSlowQueriesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| content | [bytes](#bytes) | | |+| parent | [string](#string) | | The name of the instance to sync slow queries. Format: instances/{instance} for one instance or projects/{project} for one project. |-<a name="bytebase-v1-RequestMetadata"></a>+<a name="bytebase-v1-UndeleteInstanceRequest"></a>++### UndeleteInstanceRequest-### RequestMetadata-Metadata about the request.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| caller_ip | [string](#string) | | The IP address of the caller. |-| caller_supplied_user_agent | [string](#string) | | The user agent of the caller. This information is not authenticated and should be treated accordingly. |+| name | [string](#string) | | The name of the deleted instance. Format: instances/{instance} |-<a name="bytebase-v1-SearchAuditLogsRequest"></a>+<a name="bytebase-v1-UpdateDataSourceRequest"></a>-### SearchAuditLogsRequest+### UpdateDataSourceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | |-| filter | [string](#string) | | The filter of the log. It should be a valid CEL expression. For example: - filter = "method == '/bytebase.v1.SQLService/Query'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" |-| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `SearchLogs` call. Provide this to retrieve the subsequent page. |+| name | [string](#string) | | The name of the instance to update a data source. Format: instances/{instance} |+| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-<a name="bytebase-v1-SearchAuditLogsResponse"></a>+<a name="bytebase-v1-UpdateInstanceRequest"></a>-### SearchAuditLogsResponse+### UpdateInstanceRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| audit_logs | [AuditLog](#bytebase-v1-AuditLog) | repeated | |-| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to retrieve the next page of log entities. |+| instance | [Instance](#bytebase-v1-Instance) | | The instance to update.++The instance's `name` field is used to identify the instance to update. Format: instances/{instance} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |@@ -1453,3112 +1443,3344 @@ Metadata about the request.-<a name="bytebase-v1-AuditLog-Severity"></a>+<a name="bytebase-v1-DataSource-AuthenticationType"></a>-### AuditLog.Severity+### DataSource.AuthenticationType| Name | Number | Description || ---- | ------ | ----------- |-| DEFAULT | 0 | |-| DEBUG | 1 | |-| INFO | 2 | |-| NOTICE | 3 | |-| WARNING | 4 | |-| ERROR | 5 | |-| CRITICAL | 6 | |-| ALERT | 7 | |-| EMERGENCY | 8 | |+| AUTHENTICATION_UNSPECIFIED | 0 | |+| PASSWORD | 1 | |+| GOOGLE_CLOUD_SQL_IAM | 2 | |+| AWS_RDS_IAM | 3 | |--+<a name="bytebase-v1-DataSource-RedisType"></a>+### DataSource.RedisType-<a name="bytebase-v1-AuditLogService"></a>-### AuditLogService+| Name | Number | Description |+| ---- | ------ | ----------- |+| REDIS_TYPE_UNSPECIFIED | 0 | |+| STANDALONE | 1 | |+| SENTINEL | 2 | |+| CLUSTER | 3 | |-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| SearchAuditLogs | [SearchAuditLogsRequest](#bytebase-v1-SearchAuditLogsRequest) | [SearchAuditLogsResponse](#bytebase-v1-SearchAuditLogsResponse) | |-| ExportAuditLogs | [ExportAuditLogsRequest](#bytebase-v1-ExportAuditLogsRequest) | [ExportAuditLogsResponse](#bytebase-v1-ExportAuditLogsResponse) | |-+<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType"></a>+### DataSourceExternalSecret.AppRoleAuthOption.SecretType-<a name="v1_auth_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+| Name | Number | Description |+| ---- | ------ | ----------- |+| SECRET_TYPE_UNSPECIFIED | 0 | |+| PLAIN | 1 | |+| ENVIRONMENT | 2 | |-## v1/auth_service.proto+<a name="bytebase-v1-DataSourceExternalSecret-AuthType"></a>-<a name="bytebase-v1-CreateUserRequest"></a>+### DataSourceExternalSecret.AuthType-### CreateUserRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| AUTH_TYPE_UNSPECIFIED | 0 | |+| TOKEN | 1 | ref: https://developer.hashicorp.com/vault/docs/auth/token |+| VAULT_APP_ROLE | 2 | ref: https://developer.hashicorp.com/vault/docs/auth/approle |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| user | [User](#bytebase-v1-User) | | The user to create. |+<a name="bytebase-v1-DataSourceExternalSecret-SecretType"></a>+### DataSourceExternalSecret.SecretType+| Name | Number | Description |+| ---- | ------ | ----------- |+| SAECRET_TYPE_UNSPECIFIED | 0 | |+| VAULT_KV_V2 | 1 | ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 |+| AWS_SECRETS_MANAGER | 2 | ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html |+| GCP_SECRET_MANAGER | 3 | ref: https://cloud.google.com/secret-manager/docs |-<a name="bytebase-v1-DeleteUserRequest"></a>--### DeleteUserRequest+<a name="bytebase-v1-DataSourceType"></a>+### DataSourceType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the user to delete. Format: users/{user} |+| Name | Number | Description |+| ---- | ------ | ----------- |+| DATA_SOURCE_UNSPECIFIED | 0 | |+| ADMIN | 1 | |+| READ_ONLY | 2 | |++-<a name="bytebase-v1-GetUserRequest"></a>+<a name="bytebase-v1-InstanceService"></a>-### GetUserRequest+### InstanceService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetInstance | [GetInstanceRequest](#bytebase-v1-GetInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| ListInstances | [ListInstancesRequest](#bytebase-v1-ListInstancesRequest) | [ListInstancesResponse](#bytebase-v1-ListInstancesResponse) | |+| CreateInstance | [CreateInstanceRequest](#bytebase-v1-CreateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| UpdateInstance | [UpdateInstanceRequest](#bytebase-v1-UpdateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| DeleteInstance | [DeleteInstanceRequest](#bytebase-v1-DeleteInstanceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteInstance | [UndeleteInstanceRequest](#bytebase-v1-UndeleteInstanceRequest) | [Instance](#bytebase-v1-Instance) | |+| SyncInstance | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | [SyncInstanceResponse](#bytebase-v1-SyncInstanceResponse) | |+| BatchSyncInstances | [BatchSyncInstancesRequest](#bytebase-v1-BatchSyncInstancesRequest) | [BatchSyncInstancesResponse](#bytebase-v1-BatchSyncInstancesResponse) | |+| AddDataSource | [AddDataSourceRequest](#bytebase-v1-AddDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |+| RemoveDataSource | [RemoveDataSourceRequest](#bytebase-v1-RemoveDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |+| UpdateDataSource | [UpdateDataSourceRequest](#bytebase-v1-UpdateDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |+| SyncSlowQueries | [SyncSlowQueriesRequest](#bytebase-v1-SyncSlowQueriesRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the user to retrieve. Format: users/{user uid or user email} |++<a name="v1_database_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/database_service.proto-<a name="bytebase-v1-IdentityProviderContext"></a>-### IdentityProviderContext+<a name="bytebase-v1-AdviseIndexRequest"></a>+### AdviseIndexRequest+AdviseIndexRequest is the request of advising index.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| oauth2_context | [OAuth2IdentityProviderContext](#bytebase-v1-OAuth2IdentityProviderContext) | | |-| oidc_context | [OIDCIdentityProviderContext](#bytebase-v1-OIDCIdentityProviderContext) | | |-+| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |+| statement | [string](#string) | | The statement to be advised. |-<a name="bytebase-v1-ListUsersRequest"></a>-### ListUsersRequest+<a name="bytebase-v1-AdviseIndexResponse"></a>+### AdviseIndexResponse+AdviseIndexResponse is the response of advising index.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| show_deleted | [bool](#bool) | | Show deleted users if specified. |+| current_index | [string](#string) | | The current index of the statement used. |+| suggestion | [string](#string) | | The suggested index of the statement. |+| create_index_statement | [string](#string) | | The create index statement of the suggested index. |-<a name="bytebase-v1-ListUsersResponse"></a>+<a name="bytebase-v1-BatchUpdateDatabasesRequest"></a>-### ListUsersResponse+### BatchUpdateDatabasesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| users | [User](#bytebase-v1-User) | repeated | The users from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| parent | [string](#string) | | 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 | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |-<a name="bytebase-v1-LoginRequest"></a>+<a name="bytebase-v1-BatchUpdateDatabasesResponse"></a>-### LoginRequest+### BatchUpdateDatabasesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| email | [string](#string) | | |-| password | [string](#string) | | |-| web | [bool](#bool) | | If web is set, we will set access token, refresh token, and user to the cookie. |-| idp_name | [string](#string) | | The name of the identity provider. Format: idps/{idp} |-| idp_context | [IdentityProviderContext](#bytebase-v1-IdentityProviderContext) | | The idp_context is using to get the user information from identity provider. |-| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |-| recovery_code | [string](#string) | optional | The recovery_code is used to recovery the user's identity with MFA. |-| mfa_temp_token | [string](#string) | optional | The mfa_temp_token is used to verify the user's identity by MFA. |+| databases | [Database](#bytebase-v1-Database) | repeated | Databases updated. |-<a name="bytebase-v1-LoginResponse"></a>+<a name="bytebase-v1-ChangeHistory"></a>-### LoginResponse+### ChangeHistory| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| token | [string](#string) | | |-| mfa_temp_token | [string](#string) | optional | |-| require_reset_password | [bool](#bool) | | |-------<a name="bytebase-v1-LogoutRequest"></a>--### LogoutRequest-+| name | [string](#string) | | Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| creator | [string](#string) | | Format: users/[email protected] |+| updater | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| release_version | [string](#string) | | release version of Bytebase |+| source | [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source) | | |+| type | [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type) | | |+| status | [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status) | | |+| version | [string](#string) | | |+| description | [string](#string) | | |+| statement | [string](#string) | | The statement is used for preview purpose. |+| statement_size | [int64](#int64) | | |+| statement_sheet | [string](#string) | | The name of the sheet resource. Format: projects/{project}/sheets/{sheet} |+| schema | [string](#string) | | |+| schema_size | [int64](#int64) | | |+| prev_schema | [string](#string) | | |+| prev_schema_size | [int64](#int64) | | |+| execution_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |+| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |-<a name="bytebase-v1-OAuth2IdentityProviderContext"></a>+<a name="bytebase-v1-ChangedResourceDatabase"></a>-### OAuth2IdentityProviderContext+### ChangedResourceDatabase| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| code | [string](#string) | | |+| name | [string](#string) | | |+| schemas | [ChangedResourceSchema](#bytebase-v1-ChangedResourceSchema) | repeated | |-<a name="bytebase-v1-OIDCIdentityProviderContext"></a>+<a name="bytebase-v1-ChangedResourceFunction"></a>-### OIDCIdentityProviderContext+### ChangedResourceFunction+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | |+| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |-<a name="bytebase-v1-UndeleteUserRequest"></a>-### UndeleteUserRequest++<a name="bytebase-v1-ChangedResourceProcedure"></a>++### ChangedResourceProcedure| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted user. Format: users/{user} |+| name | [string](#string) | | |+| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |-<a name="bytebase-v1-UpdateUserRequest"></a>+<a name="bytebase-v1-ChangedResourceSchema"></a>-### UpdateUserRequest+### ChangedResourceSchema| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| user | [User](#bytebase-v1-User) | | The user to update.--The user's `name` field is used to identify the user to update. Format: users/{user} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |-| regenerate_temp_mfa_secret | [bool](#bool) | | 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. |-| regenerate_recovery_codes | [bool](#bool) | | The regenerate_recovery_codes flag means to regenerate recovery codes for user. |+| name | [string](#string) | | |+| tables | [ChangedResourceTable](#bytebase-v1-ChangedResourceTable) | repeated | |+| views | [ChangedResourceView](#bytebase-v1-ChangedResourceView) | repeated | |+| functions | [ChangedResourceFunction](#bytebase-v1-ChangedResourceFunction) | repeated | |+| procedures | [ChangedResourceProcedure](#bytebase-v1-ChangedResourceProcedure) | repeated | |-<a name="bytebase-v1-User"></a>+<a name="bytebase-v1-ChangedResourceTable"></a>-### User+### ChangedResourceTable| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the user. Format: users/{user}. {user} is a system-generated unique ID. |-| state | [State](#bytebase-v1-State) | | |-| email | [string](#string) | | |-| title | [string](#string) | | |-| user_type | [UserType](#bytebase-v1-UserType) | | |-| password | [string](#string) | | |-| service_key | [string](#string) | | |-| mfa_enabled | [bool](#bool) | | The mfa_enabled flag means if the user has enabled MFA. |-| mfa_secret | [string](#string) | | The mfa_secret is the temporary secret using in two phase verification. |-| recovery_codes | [string](#string) | repeated | The recovery_codes is the temporary recovery codes using in two phase verification. |-| phone | [string](#string) | | Should be a valid E.164 compliant phone number. Could be empty. |-| profile | [User.Profile](#bytebase-v1-User-Profile) | | |+| name | [string](#string) | | |+| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |-<a name="bytebase-v1-User-Profile"></a>+<a name="bytebase-v1-ChangedResourceView"></a>-### User.Profile+### ChangedResourceView| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| last_login_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| last_change_password_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| source | [string](#string) | | source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. |-+| name | [string](#string) | | |+| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |--<a name="bytebase-v1-UserType"></a>+<a name="bytebase-v1-ChangedResources"></a>-### UserType+### ChangedResources-| Name | Number | Description |-| ---- | ------ | ----------- |-| USER_TYPE_UNSPECIFIED | 0 | |-| USER | 1 | |-| SYSTEM_BOT | 2 | |-| SERVICE_ACCOUNT | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| databases | [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase) | repeated | |---<a name="bytebase-v1-AuthService"></a>-### AuthService+<a name="bytebase-v1-CheckConstraintMetadata"></a>-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetUser | [GetUserRequest](#bytebase-v1-GetUserRequest) | [User](#bytebase-v1-User) | Get the user. Any authenticated user can get the user. |-| ListUsers | [ListUsersRequest](#bytebase-v1-ListUsersRequest) | [ListUsersResponse](#bytebase-v1-ListUsersResponse) | List all users. Any authenticated user can list users. |-| CreateUser | [CreateUserRequest](#bytebase-v1-CreateUserRequest) | [User](#bytebase-v1-User) | Create a user. When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user. Otherwise, any unauthenticated user can create a user. |-| UpdateUser | [UpdateUserRequest](#bytebase-v1-UpdateUserRequest) | [User](#bytebase-v1-User) | Only the user itself and the user with bb.users.update permission on the workspace can update the user. |-| DeleteUser | [DeleteUserRequest](#bytebase-v1-DeleteUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Only the user with bb.users.delete permission on the workspace can delete the user. The last remaining workspace admin cannot be deleted. |-| UndeleteUser | [UndeleteUserRequest](#bytebase-v1-UndeleteUserRequest) | [User](#bytebase-v1-User) | Only the user with bb.users.undelete permission on the workspace can undelete the user. |-| Login | [LoginRequest](#bytebase-v1-LoginRequest) | [LoginResponse](#bytebase-v1-LoginResponse) | |-| Logout | [LogoutRequest](#bytebase-v1-LogoutRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+### CheckConstraintMetadata+CheckConstraintMetadata is the metadata for check constraints.-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name is the name of a check constraint. |+| expression | [string](#string) | | The expression is the expression of a check constraint. |-<a name="v1_instance_role_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/instance_role_service.proto-<a name="bytebase-v1-GetInstanceRoleRequest"></a>+<a name="bytebase-v1-ColumnConfig"></a>-### GetInstanceRoleRequest+### ColumnConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |+| name | [string](#string) | | The name is the name of a column. |+| semantic_type_id | [string](#string) | | |+| labels | [ColumnConfig.LabelsEntry](#bytebase-v1-ColumnConfig-LabelsEntry) | repeated | The user labels for a column. |+| classification_id | [string](#string) | | |-<a name="bytebase-v1-InstanceRole"></a>+<a name="bytebase-v1-ColumnConfig-LabelsEntry"></a>++### ColumnConfig.LabelsEntry-### InstanceRole-InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role} The role name is the unique name for the role. |-| role_name | [string](#string) | | The role name. It's unique within the instance. |-| password | [string](#string) | optional | The role password. |-| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |-| valid_until | [string](#string) | optional | The expiration for the role's password. |-| attribute | [string](#string) | optional | 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 |-+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-ListInstanceRolesRequest"></a>-### ListInstanceRolesRequest+<a name="bytebase-v1-ColumnMetadata"></a>+### ColumnMetadata+ColumnMetadata is the metadata for columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| refresh | [bool](#bool) | | Refresh will refresh and return the latest data. |+| name | [string](#string) | | The name is the name of a column. |+| position | [int32](#int32) | | The position is the position in columns. |+| has_default | [bool](#bool) | | |+| default_null | [bool](#bool) | | |+| default_string | [string](#string) | | |+| default_expression | [string](#string) | | |+| on_update | [string](#string) | | 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 | [bool](#bool) | | The nullable is the nullable of a column. |+| type | [string](#string) | | The type is the type of a column. |+| character_set | [string](#string) | | The character_set is the character_set of a column. |+| collation | [string](#string) | | The collation is the collation of a column. |+| comment | [string](#string) | | The comment is the comment of a column. classification and user_comment is parsed from the comment. |+| user_comment | [string](#string) | | The user_comment is the user comment of a column parsed from the comment. |+| effective_masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | The effective_masking_level is the effective masking level of the column, evaluate from the column masking data and global masking rules. |+| generation | [GenerationMetadata](#bytebase-v1-GenerationMetadata) | | The generation is the generation of a column. |-<a name="bytebase-v1-ListInstanceRolesResponse"></a>+<a name="bytebase-v1-Database"></a>-### ListInstanceRolesResponse+### Database| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | The roles from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |----+| name | [string](#string) | | The name of the database. Format: instances/{instance}/databases/{database} {database} is the database name in the instance. |+| sync_state | [State](#bytebase-v1-State) | | The existence of a database on latest sync. |+| successful_sync_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest synchronization time. |+| project | [string](#string) | | The project for a database. Format: projects/{project} |+| schema_version | [string](#string) | | The version of database schema. |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| effective_environment | [string](#string) | | 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 | [Database.LabelsEntry](#bytebase-v1-Database-LabelsEntry) | repeated | Labels will be used for deployment and policy control. |+| instance_resource | [InstanceResource](#bytebase-v1-InstanceResource) | | The instance resource. |+| backup_available | [bool](#bool) | | The database is available for DML prior backup. |----<a name="bytebase-v1-InstanceRoleService"></a>-### InstanceRoleService+<a name="bytebase-v1-Database-LabelsEntry"></a>+### Database.LabelsEntry-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="v1_instance_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/instance_service.proto-<a name="bytebase-v1-AddDataSourceRequest"></a>+<a name="bytebase-v1-DatabaseConfig"></a>-### AddDataSourceRequest+### DatabaseConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to add a data source to. Format: instances/{instance} |-| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be added. |-| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |-+| name | [string](#string) | | |+| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |-<a name="bytebase-v1-BatchSyncInstancesRequest"></a>-### BatchSyncInstancesRequest+<a name="bytebase-v1-DatabaseMetadata"></a>+### DatabaseMetadata+DatabaseMetadata is the metadata for databases.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| requests | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | repeated | The request message specifying the instances to sync. A maximum of 1000 instances can be synced in a batch. |+| name | [string](#string) | | The database metadata name.+Format: instances/{instance}/databases/{database}/metadata |+| schemas | [SchemaMetadata](#bytebase-v1-SchemaMetadata) | repeated | The schemas is the list of schemas in a database. |+| character_set | [string](#string) | | The character_set is the character set of a database. |+| collation | [string](#string) | | The collation is the collation of a database. |+| extensions | [ExtensionMetadata](#bytebase-v1-ExtensionMetadata) | repeated | The extensions is the list of extensions in a database. |+| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |-<a name="bytebase-v1-BatchSyncInstancesResponse"></a>-### BatchSyncInstancesResponse+<a name="bytebase-v1-DatabaseSchema"></a>+### DatabaseSchema+DatabaseSchema is the metadata for databases.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schema | [string](#string) | | The schema dump from database. |-<a name="bytebase-v1-CreateInstanceRequest"></a>-### CreateInstanceRequest+<a name="bytebase-v1-DeleteSecretRequest"></a>+### DeleteSecretRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| instance | [Instance](#bytebase-v1-Instance) | | The instance to create. |-| instance_id | [string](#string) | | 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]-/. |-| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the secret to be deleted. Format: instances/{instance}/databases/{database}/secrets/{secret} |-<a name="bytebase-v1-DataSource"></a>-### DataSource+<a name="bytebase-v1-DependentColumn"></a>+### DependentColumn+DependentColumn is the metadata for dependent columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |-| type | [DataSourceType](#bytebase-v1-DataSourceType) | | |-| username | [string](#string) | | |-| password | [string](#string) | | |-| use_ssl | [bool](#bool) | | Use SSL to connect to the data source. By default, we use system default SSL configuration. |-| ssl_ca | [string](#string) | | |-| ssl_cert | [string](#string) | | |-| ssl_key | [string](#string) | | |-| host | [string](#string) | | |-| port | [string](#string) | | |-| database | [string](#string) | | |-| srv | [bool](#bool) | | srv, authentication_database and replica_set are used for MongoDB. |-| authentication_database | [string](#string) | | |-| sid | [string](#string) | | sid and service_name are used for Oracle. |-| service_name | [string](#string) | | |-| ssh_host | [string](#string) | | Connection over SSH. The hostname of the SSH server agent. Required. |-| ssh_port | [string](#string) | | The port of the SSH server agent. It's 22 typically. Required. |-| ssh_user | [string](#string) | | The user to login the server. Required. |-| ssh_password | [string](#string) | | The password to login the server. If it's empty string, no password is required. |-| ssh_private_key | [string](#string) | | 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"). |-| authentication_private_key | [string](#string) | | 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. |-| external_secret | [DataSourceExternalSecret](#bytebase-v1-DataSourceExternalSecret) | | |-| authentication_type | [DataSource.AuthenticationType](#bytebase-v1-DataSource-AuthenticationType) | | |-| sasl_config | [SASLConfig](#bytebase-v1-SASLConfig) | | |-| additional_addresses | [DataSource.Address](#bytebase-v1-DataSource-Address) | repeated | additional_addresses is used for MongoDB replica set. |-| replica_set | [string](#string) | | replica_set is used for MongoDB replica set. |-| direct_connection | [bool](#bool) | | direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. |-| region | [string](#string) | | region is the location of where the DB is, works for AWS RDS. For example, us-east-1. |-| warehouse_id | [string](#string) | | warehouse_id is used by Databricks. |-| master_name | [string](#string) | | master_name is the master name used by connecting redis-master via redis sentinel. |-| master_username | [string](#string) | | master_username and master_password are master credentials used by redis sentinel mode. |-| master_password | [string](#string) | | |-| redis_type | [DataSource.RedisType](#bytebase-v1-DataSource-RedisType) | | |-| cluster | [string](#string) | | Cluster is the cluster name for the data source. Used by CockroachDB. |+| schema | [string](#string) | | The schema is the schema of a reference column. |+| table | [string](#string) | | The table is the table of a reference column. |+| column | [string](#string) | | The column is the name of a reference column. |-<a name="bytebase-v1-DataSource-Address"></a>+<a name="bytebase-v1-DiffSchemaRequest"></a>-### DataSource.Address+### DiffSchemaRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| host | [string](#string) | | |-| port | [string](#string) | | |+| name | [string](#string) | | The name of the database or change history. Format: database: instances/{instance}/databases/{database} change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| schema | [string](#string) | | The target schema. |+| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |-<a name="bytebase-v1-DataSourceExternalSecret"></a>+<a name="bytebase-v1-DiffSchemaResponse"></a>-### DataSourceExternalSecret+### DiffSchemaResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| secret_type | [DataSourceExternalSecret.SecretType](#bytebase-v1-DataSourceExternalSecret-SecretType) | | |-| url | [string](#string) | | |-| auth_type | [DataSourceExternalSecret.AuthType](#bytebase-v1-DataSourceExternalSecret-AuthType) | | |-| app_role | [DataSourceExternalSecret.AppRoleAuthOption](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption) | | |-| token | [string](#string) | | |-| engine_name | [string](#string) | | engine name is the name for secret engine. |-| secret_name | [string](#string) | | the secret name in the engine to store the password. |-| password_key_name | [string](#string) | | the key name for the password. |-+| diff | [string](#string) | | |-<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption"></a>-### DataSourceExternalSecret.AppRoleAuthOption+<a name="bytebase-v1-ExtensionMetadata"></a>+### ExtensionMetadata+ExtensionMetadata is the metadata for extensions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role_id | [string](#string) | | |-| secret_id | [string](#string) | | the secret id for the role without ttl. |-| type | [DataSourceExternalSecret.AppRoleAuthOption.SecretType](#bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType) | | |-| mount_path | [string](#string) | | The path where the approle auth method is mounted. |+| name | [string](#string) | | The name is the name of an extension. |+| schema | [string](#string) | | The schema is the extension that is installed to. But the extension usage is not limited to the schema. |+| version | [string](#string) | | The version is the version of an extension. |+| description | [string](#string) | | The description is the description of an extension. |-<a name="bytebase-v1-DeleteInstanceRequest"></a>+<a name="bytebase-v1-ExternalTableMetadata"></a>-### DeleteInstanceRequest+### ExternalTableMetadata| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to delete. Format: instances/{instance} |-| force | [bool](#bool) | | 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. |-+| name | [string](#string) | | The name is the name of a external table. |+| external_server_name | [string](#string) | | The external_server_name is the name of the external server. |+| external_database_name | [string](#string) | | The external_database_name is the name of the external database. |+| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a foreign table. |-<a name="bytebase-v1-GetInstanceRequest"></a>-### GetInstanceRequest+<a name="bytebase-v1-ForeignKeyMetadata"></a>+### ForeignKeyMetadata+ForeignKeyMetadata is the metadata for foreign keys.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to retrieve. Format: instances/{instance} |+| name | [string](#string) | | The name is the name of a foreign key. |+| columns | [string](#string) | repeated | The columns are the ordered referencing columns of a foreign key. |+| referenced_schema | [string](#string) | | 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. |+| referenced_table | [string](#string) | | The referenced_table is the referenced table name of a foreign key. |+| referenced_columns | [string](#string) | repeated | The referenced_columns are the ordered referenced columns of a foreign key. |+| on_delete | [string](#string) | | The on_delete is the on delete action of a foreign key. |+| on_update | [string](#string) | | The on_update is the on update action of a foreign key. |+| match_type | [string](#string) | | 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. |-<a name="bytebase-v1-Instance"></a>+<a name="bytebase-v1-FunctionConfig"></a>-### Instance+### FunctionConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance. Format: instances/{instance} |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| engine_version | [string](#string) | | |-| external_link | [string](#string) | | |-| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| activation | [bool](#bool) | | |-| options | [InstanceOptions](#bytebase-v1-InstanceOptions) | | |-| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | |+| name | [string](#string) | | The name is the name of a function. |+| updater | [string](#string) | | The last updater of the function in branch. Format: users/{email} |+| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the function is updated in branch. |-<a name="bytebase-v1-InstanceOptions"></a>+<a name="bytebase-v1-FunctionMetadata"></a>-### InstanceOptions-InstanceOptions is the option for instances.+### FunctionMetadata+FunctionMetadata is the metadata for functions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sync_interval | [google.protobuf.Duration](#google-protobuf-Duration) | | How often the instance is synced. |-| maximum_connections | [int32](#int32) | | The maximum number of connections. The default is 10 if the value is unset or zero. |+| name | [string](#string) | | The name is the name of a function. |+| definition | [string](#string) | | The definition is the definition of a function. |-<a name="bytebase-v1-InstanceResource"></a>+<a name="bytebase-v1-GenerationMetadata"></a>-### InstanceResource+### GenerationMetadata| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| engine_version | [string](#string) | | |-| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |-| activation | [bool](#bool) | | |-| name | [string](#string) | | The name of the instance. Format: instances/{instance} |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| roles | [InstanceRole](#bytebase-v1-InstanceRole) | repeated | |+| type | [GenerationMetadata.Type](#bytebase-v1-GenerationMetadata-Type) | | |+| expression | [string](#string) | | |-<a name="bytebase-v1-KerberosConfig"></a>+<a name="bytebase-v1-GetChangeHistoryRequest"></a>-### KerberosConfig+### GetChangeHistoryRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| primary | [string](#string) | | |-| instance | [string](#string) | | |-| realm | [string](#string) | | |-| keytab | [bytes](#bytes) | | |-| kdc_host | [string](#string) | | |-| kdc_port | [string](#string) | | |-| kdc_transport_protocol | [string](#string) | | |+| name | [string](#string) | | The name of the change history to retrieve. Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |+| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |+| concise | [bool](#bool) | | When true, the schema dump will be concise. |-<a name="bytebase-v1-ListInstancesRequest"></a>+<a name="bytebase-v1-GetDatabaseMetadataRequest"></a>-### ListInstancesRequest+### GetDatabaseMetadataRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| show_deleted | [bool](#bool) | | Show deleted instances if specified. |+| name | [string](#string) | | The name of the database to retrieve metadata. Format: instances/{instance}/databases/{database}/metadata |+| view | [DatabaseMetadataView](#bytebase-v1-DatabaseMetadataView) | | The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC. |+| filter | [string](#string) | | 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. |-<a name="bytebase-v1-ListInstancesResponse"></a>+<a name="bytebase-v1-GetDatabaseRequest"></a>-### ListInstancesResponse+### GetDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instances | [Instance](#bytebase-v1-Instance) | repeated | The instances from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the database to retrieve. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-RemoveDataSourceRequest"></a>+<a name="bytebase-v1-GetDatabaseSchemaRequest"></a>-### RemoveDataSourceRequest+### GetDatabaseSchemaRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to remove a data source from. Format: instances/{instance} |-| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. Only READ_ONLY data source can be removed. |-+| name | [string](#string) | | The name of the database to retrieve schema. Format: instances/{instance}/databases/{database}/schema |+| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |+| concise | [bool](#bool) | | When true, the schema dump will be concise. For Oracle, there will be tables and indexes only for Sync Schema. |-<a name="bytebase-v1-SASLConfig"></a>-### SASLConfig+<a name="bytebase-v1-IndexMetadata"></a>+### IndexMetadata+IndexMetadata is the metadata for indexes.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| krb_config | [KerberosConfig](#bytebase-v1-KerberosConfig) | | |+| name | [string](#string) | | The name is the name of an index. |+| expressions | [string](#string) | repeated | The expressions are the ordered columns or expressions of an index. This could refer to a column or an expression. |+| key_length | [int64](#int64) | repeated | The key_lengths are the ordered key lengths of an index. If the key length is not specified, it's -1. |+| descending | [bool](#bool) | repeated | The descending is the ordered descending of an index. |+| type | [string](#string) | | The type is the type of an index. |+| unique | [bool](#bool) | | The unique is whether the index is unique. |+| primary | [bool](#bool) | | The primary is whether the index is a primary key index. |+| visible | [bool](#bool) | | The visible is whether the index is visible. |+| comment | [string](#string) | | The comment is the comment of an index. |+| definition | [string](#string) | | The definition of an index. |-<a name="bytebase-v1-SyncInstanceRequest"></a>+<a name="bytebase-v1-ListChangeHistoriesRequest"></a>-### SyncInstanceRequest+### ListChangeHistoriesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of instance. Format: instances/{instance} |----+| parent | [string](#string) | | The parent of the change histories. Format: instances/{instance}/databases/{database} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |+| filter | [string](#string) | | The filter of the change histories. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by type, source or table. For example: table = "tableExists('{database}', '{schema}', '{table}')" table = "tableExists('db', 'public', 'table1') || tableExists('db', 'public', 'table2')" type = "MIGRATE | DATA" source = "UI" source = "VCS"-<a name="bytebase-v1-SyncInstanceResponse"></a>+The table filter follow the CEL syntax. currently, we have one function for CEL: - tableExists(database, schema, table): return true if the table exists in changed resources.-### SyncInstanceResponse+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") ) |-<a name="bytebase-v1-SyncSlowQueriesRequest"></a>+<a name="bytebase-v1-ListChangeHistoriesResponse"></a>-### SyncSlowQueriesRequest+### ListChangeHistoriesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the instance to sync slow queries. Format: instances/{instance} for one instance or projects/{project} for one project. |+| change_histories | [ChangeHistory](#bytebase-v1-ChangeHistory) | repeated | The list of change histories. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UndeleteInstanceRequest"></a>+<a name="bytebase-v1-ListDatabasesRequest"></a>-### UndeleteInstanceRequest+### ListDatabasesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted instance. Format: instances/{instance} |+| parent | [string](#string) | | The parent, which owns this collection of databases. - projects/{project}: list all databases in a project. - workspaces/{workspace}: list all databases in a workspace. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |-<a name="bytebase-v1-UpdateDataSourceRequest"></a>-### UpdateDataSourceRequest+<a name="bytebase-v1-ListDatabasesResponse"></a>++### ListDatabasesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the instance to update a data source. Format: instances/{instance} |-| data_source | [DataSource](#bytebase-v1-DataSource) | | Identified by data source ID. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| validate_only | [bool](#bool) | | Validate only also tests the data source connection. |+| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UpdateInstanceRequest"></a>+<a name="bytebase-v1-ListInstanceDatabasesRequest"></a>-### UpdateInstanceRequest+### ListInstanceDatabasesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance | [Instance](#bytebase-v1-Instance) | | The instance to update.--The instance's `name` field is used to identify the instance to update. Format: instances/{instance} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| parent | [string](#string) | | The parent, which owns this collection of databases. - instances/{instance}: list all databases for an instance. Use "instances/-" to list all databases. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| filter | [string](#string) | | Deprecated. 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. |--<a name="bytebase-v1-DataSource-AuthenticationType"></a>+<a name="bytebase-v1-ListInstanceDatabasesResponse"></a>-### DataSource.AuthenticationType+### ListInstanceDatabasesResponse-| Name | Number | Description |-| ---- | ------ | ----------- |-| AUTHENTICATION_UNSPECIFIED | 0 | |-| PASSWORD | 1 | |-| GOOGLE_CLOUD_SQL_IAM | 2 | |-| AWS_RDS_IAM | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-DataSource-RedisType"></a>-### DataSource.RedisType-| Name | Number | Description |-| ---- | ------ | ----------- |-| REDIS_TYPE_UNSPECIFIED | 0 | |-| STANDALONE | 1 | |-| SENTINEL | 2 | |-| CLUSTER | 3 | |+<a name="bytebase-v1-ListSecretsRequest"></a>+### ListSecretsRequest-<a name="bytebase-v1-DataSourceExternalSecret-AppRoleAuthOption-SecretType"></a>-### DataSourceExternalSecret.AppRoleAuthOption.SecretType+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent of the secret. Format: instances/{instance}/databases/{database} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `ListSecrets` call. Provide this to retrieve the subsequent page.-| Name | Number | Description |-| ---- | ------ | ----------- |-| SECRET_TYPE_UNSPECIFIED | 0 | |-| PLAIN | 1 | |-| ENVIRONMENT | 2 | |+When paginating, all other parameters provided to `ListSecrets` must match the call that provided the page token. |-<a name="bytebase-v1-DataSourceExternalSecret-AuthType"></a>-### DataSourceExternalSecret.AuthType-| Name | Number | Description |-| ---- | ------ | ----------- |-| AUTH_TYPE_UNSPECIFIED | 0 | |-| TOKEN | 1 | ref: https://developer.hashicorp.com/vault/docs/auth/token |-| VAULT_APP_ROLE | 2 | ref: https://developer.hashicorp.com/vault/docs/auth/approle |+<a name="bytebase-v1-ListSecretsResponse"></a>+### ListSecretsResponse-<a name="bytebase-v1-DataSourceExternalSecret-SecretType"></a>-### DataSourceExternalSecret.SecretType+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| secrets | [Secret](#bytebase-v1-Secret) | repeated | The list of secrets. |+| next_page_token | [string](#string) | | 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. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| SAECRET_TYPE_UNSPECIFIED | 0 | |-| VAULT_KV_V2 | 1 | ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2 |-| AWS_SECRETS_MANAGER | 2 | ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html |-| GCP_SECRET_MANAGER | 3 | ref: https://cloud.google.com/secret-manager/docs |-<a name="bytebase-v1-DataSourceType"></a>-### DataSourceType+<a name="bytebase-v1-ListSlowQueriesRequest"></a>+### ListSlowQueriesRequest+ListSlowQueriesRequest is the request of listing slow query.-| Name | Number | Description |-| ---- | ------ | ----------- |-| DATA_SOURCE_UNSPECIFIED | 0 | |-| ADMIN | 1 | |-| READ_ONLY | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | Format: projects/{project} |+| filter | [string](#string) | | 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 database and start_time in SlowQueryDetails for now. For example: Search the slow query log of the specific database: - the specific database: database = "instances/{instance}/databases/{database}" 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. |+| order_by | [string](#string) | | 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. |---<a name="bytebase-v1-InstanceService"></a>-### InstanceService+<a name="bytebase-v1-ListSlowQueriesResponse"></a>-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetInstance | [GetInstanceRequest](#bytebase-v1-GetInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| ListInstances | [ListInstancesRequest](#bytebase-v1-ListInstancesRequest) | [ListInstancesResponse](#bytebase-v1-ListInstancesResponse) | |-| CreateInstance | [CreateInstanceRequest](#bytebase-v1-CreateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| UpdateInstance | [UpdateInstanceRequest](#bytebase-v1-UpdateInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| DeleteInstance | [DeleteInstanceRequest](#bytebase-v1-DeleteInstanceRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteInstance | [UndeleteInstanceRequest](#bytebase-v1-UndeleteInstanceRequest) | [Instance](#bytebase-v1-Instance) | |-| SyncInstance | [SyncInstanceRequest](#bytebase-v1-SyncInstanceRequest) | [SyncInstanceResponse](#bytebase-v1-SyncInstanceResponse) | |-| BatchSyncInstances | [BatchSyncInstancesRequest](#bytebase-v1-BatchSyncInstancesRequest) | [BatchSyncInstancesResponse](#bytebase-v1-BatchSyncInstancesResponse) | |-| AddDataSource | [AddDataSourceRequest](#bytebase-v1-AddDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |-| RemoveDataSource | [RemoveDataSourceRequest](#bytebase-v1-RemoveDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |-| UpdateDataSource | [UpdateDataSourceRequest](#bytebase-v1-UpdateDataSourceRequest) | [Instance](#bytebase-v1-Instance) | |-| SyncSlowQueries | [SyncSlowQueriesRequest](#bytebase-v1-SyncSlowQueriesRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+### ListSlowQueriesResponse+ListSlowQueriesResponse is the response of listing slow query.-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| slow_query_logs | [SlowQueryLog](#bytebase-v1-SlowQueryLog) | repeated | The slow query logs. |-<a name="v1_database_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/database_service.proto-<a name="bytebase-v1-AdviseIndexRequest"></a>+<a name="bytebase-v1-MaterializedViewMetadata"></a>-### AdviseIndexRequest-AdviseIndexRequest is the request of advising index.+### MaterializedViewMetadata+MaterializedViewMetadata is the metadata for materialized views.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |-| statement | [string](#string) | | The statement to be advised. |+| name | [string](#string) | | The name is the name of a materialized view. |+| definition | [string](#string) | | The definition is the definition of a materialized view. |+| comment | [string](#string) | | The comment is the comment of a materialized view. |+| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a materialized view. |-<a name="bytebase-v1-AdviseIndexResponse"></a>+<a name="bytebase-v1-ProcedureConfig"></a>++### ProcedureConfig-### AdviseIndexResponse-AdviseIndexResponse is the response of advising index.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| current_index | [string](#string) | | The current index of the statement used. |-| suggestion | [string](#string) | | The suggested index of the statement. |-| create_index_statement | [string](#string) | | The create index statement of the suggested index. |-+| name | [string](#string) | | The name is the name of a procedure. |+| updater | [string](#string) | | The last updater of the procedure in branch. Format: users/{email} |+| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the procedure is updated in branch. |-<a name="bytebase-v1-BatchUpdateDatabasesRequest"></a>-### BatchUpdateDatabasesRequest+<a name="bytebase-v1-ProcedureMetadata"></a>+### ProcedureMetadata+ProcedureMetadata is the metadata for procedures.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | 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 | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |+| name | [string](#string) | | The name is the name of a procedure. |+| definition | [string](#string) | | The definition is the definition of a procedure. |-<a name="bytebase-v1-BatchUpdateDatabasesResponse"></a>+<a name="bytebase-v1-SchemaConfig"></a>-### BatchUpdateDatabasesResponse+### SchemaConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| databases | [Database](#bytebase-v1-Database) | repeated | Databases updated. |-+| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |+| table_configs | [TableConfig](#bytebase-v1-TableConfig) | repeated | The table_configs is the list of configs for tables in a schema. |+| function_configs | [FunctionConfig](#bytebase-v1-FunctionConfig) | repeated | |+| procedure_configs | [ProcedureConfig](#bytebase-v1-ProcedureConfig) | repeated | |+| view_configs | [ViewConfig](#bytebase-v1-ViewConfig) | repeated | |-<a name="bytebase-v1-ChangeHistory"></a>-### ChangeHistory+<a name="bytebase-v1-SchemaMetadata"></a>+### SchemaMetadata+SchemaMetadata is the metadata for schemas.+This is the concept of schema in Postgres, but it's a no-op for MySQL.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| creator | [string](#string) | | Format: users/[email protected] |-| updater | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| release_version | [string](#string) | | release version of Bytebase |-| source | [ChangeHistory.Source](#bytebase-v1-ChangeHistory-Source) | | |-| type | [ChangeHistory.Type](#bytebase-v1-ChangeHistory-Type) | | |-| status | [ChangeHistory.Status](#bytebase-v1-ChangeHistory-Status) | | |-| version | [string](#string) | | |-| description | [string](#string) | | |-| statement | [string](#string) | | The statement is used for preview purpose. |-| statement_size | [int64](#int64) | | |-| statement_sheet | [string](#string) | | The name of the sheet resource. Format: projects/{project}/sheets/{sheet} |-| schema | [string](#string) | | |-| schema_size | [int64](#int64) | | |-| prev_schema | [string](#string) | | |-| prev_schema_size | [int64](#int64) | | |-| execution_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | |-| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |-| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |-+| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |+| tables | [TableMetadata](#bytebase-v1-TableMetadata) | repeated | The tables is the list of tables in a schema. |+| external_tables | [ExternalTableMetadata](#bytebase-v1-ExternalTableMetadata) | repeated | The external_tables is the list of external tables in a schema. |+| views | [ViewMetadata](#bytebase-v1-ViewMetadata) | repeated | The views is the list of views in a schema. |+| functions | [FunctionMetadata](#bytebase-v1-FunctionMetadata) | repeated | The functions is the list of functions in a schema. |+| procedures | [ProcedureMetadata](#bytebase-v1-ProcedureMetadata) | repeated | The procedures is the list of procedures in a schema. |+| streams | [StreamMetadata](#bytebase-v1-StreamMetadata) | repeated | The streams is the list of streams in a schema, currently, only used for Snowflake. |+| tasks | [TaskMetadata](#bytebase-v1-TaskMetadata) | repeated | The routines is the list of routines in a schema, currently, only used for Snowflake. |+| materialized_views | [MaterializedViewMetadata](#bytebase-v1-MaterializedViewMetadata) | repeated | The materialized_views is the list of materialized views in a schema. |-<a name="bytebase-v1-ChangedResourceDatabase"></a>-### ChangedResourceDatabase+<a name="bytebase-v1-Secret"></a>+### Secret+Secret is the secret of the database now.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| schemas | [ChangedResourceSchema](#bytebase-v1-ChangedResourceSchema) | repeated | |-+| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: instances/{instance}/databases/{database}/secrets/{secret} |+| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initially. |+| updated_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was updated. |+| value | [string](#string) | | The value of the secret. |+| description | [string](#string) | | The description of the secret. |-<a name="bytebase-v1-ChangedResourceFunction"></a>-### ChangedResourceFunction+<a name="bytebase-v1-SlowQueryDetails"></a>+### SlowQueryDetails+SlowQueryDetails is the details of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |-+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The start time of the slow query log. |+| query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The query time of the slow query log. |+| lock_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The lock time of the slow query log. |+| rows_sent | [int32](#int32) | | The rows sent of the slow query log. |+| rows_examined | [int32](#int32) | | The rows examined of the slow query log. |+| sql_text | [string](#string) | | The sql text of the slow query log. |-<a name="bytebase-v1-ChangedResourceProcedure"></a>-### ChangedResourceProcedure+<a name="bytebase-v1-SlowQueryLog"></a>+### SlowQueryLog+SlowQueryLog is the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |-+| resource | [string](#string) | | The resource of the slow query log. The format is "instances/{instance}/databases/{database}". |+| project | [string](#string) | | The project of the slow query log. The format is "projects/{project}". |+| statistics | [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics) | | The statistics of the slow query log. |-<a name="bytebase-v1-ChangedResourceSchema"></a>-### ChangedResourceSchema+<a name="bytebase-v1-SlowQueryStatistics"></a>+### SlowQueryStatistics+SlowQueryStatistics is the statistics of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| tables | [ChangedResourceTable](#bytebase-v1-ChangedResourceTable) | repeated | |-| views | [ChangedResourceView](#bytebase-v1-ChangedResourceView) | repeated | |-| functions | [ChangedResourceFunction](#bytebase-v1-ChangedResourceFunction) | repeated | |-| procedures | [ChangedResourceProcedure](#bytebase-v1-ChangedResourceProcedure) | repeated | |+| sql_fingerprint | [string](#string) | | The fingerprint of the slow query log. |+| count | [int32](#int32) | | The count of the slow query log. |+| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest log time of the slow query log. |+| average_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The average query time of the slow query log. |+| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |+| average_rows_sent | [int32](#int32) | | The average rows sent of the slow query log. |+| maximum_rows_sent | [int32](#int32) | | The maximum rows sent of the slow query log. |+| average_rows_examined | [int32](#int32) | | The average rows examined of the slow query log. |+| maximum_rows_examined | [int32](#int32) | | The maximum rows examined of the slow query log. |+| query_time_percent | [double](#double) | | The percentage of the query time. |+| count_percent | [double](#double) | | The percentage of the count. |+| samples | [SlowQueryDetails](#bytebase-v1-SlowQueryDetails) | repeated | Samples are details of the sample slow query logs with the same fingerprint. |-<a name="bytebase-v1-ChangedResourceTable"></a>+<a name="bytebase-v1-StreamMetadata"></a>-### ChangedResourceTable+### StreamMetadata| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |+| name | [string](#string) | | The name is the name of a stream. |+| table_name | [string](#string) | | The table_name is the name of the table/view that the stream is created on. |+| owner | [string](#string) | | The owner of the stream. |+| comment | [string](#string) | | The comment of the stream. |+| type | [StreamMetadata.Type](#bytebase-v1-StreamMetadata-Type) | | The type of the stream. |+| stale | [bool](#bool) | | Indicates whether the stream was last read before the `stale_after` time. |+| mode | [StreamMetadata.Mode](#bytebase-v1-StreamMetadata-Mode) | | The mode of the stream. |+| definition | [string](#string) | | The definition of the stream. |-<a name="bytebase-v1-ChangedResourceView"></a>+<a name="bytebase-v1-SyncDatabaseRequest"></a>-### ChangedResourceView+### SyncDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| ranges | [Range](#bytebase-v1-Range) | repeated | The ranges of sub-strings correspond to the statements on the sheet. |-+| name | [string](#string) | | The name of the database to sync. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-ChangedResources"></a>-### ChangedResources+<a name="bytebase-v1-SyncDatabaseResponse"></a>+### SyncDatabaseResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| databases | [ChangedResourceDatabase](#bytebase-v1-ChangedResourceDatabase) | repeated | |+<a name="bytebase-v1-TableConfig"></a>-<a name="bytebase-v1-CheckConstraintMetadata"></a>+### TableConfig-### CheckConstraintMetadata-CheckConstraintMetadata is the metadata for check constraints.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a check constraint. |-| expression | [string](#string) | | The expression is the expression of a check constraint. |-+| name | [string](#string) | | The name is the name of a table. |+| column_configs | [ColumnConfig](#bytebase-v1-ColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |+| classification_id | [string](#string) | | |+| updater | [string](#string) | | The last updater of the table in branch. Format: users/{email} |+| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the table is updated in branch. |-<a name="bytebase-v1-ColumnConfig"></a>-### ColumnConfig+<a name="bytebase-v1-TableMetadata"></a>+### TableMetadata+TableMetadata is the metadata for tables.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a column. |-| semantic_type_id | [string](#string) | | |-| labels | [ColumnConfig.LabelsEntry](#bytebase-v1-ColumnConfig-LabelsEntry) | repeated | The user labels for a column. |-| classification_id | [string](#string) | | |-+| name | [string](#string) | | The name is the name of a table. |+| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |+| indexes | [IndexMetadata](#bytebase-v1-IndexMetadata) | repeated | The indexes is the list of indexes in a table. |+| engine | [string](#string) | | The engine is the engine of a table. |+| collation | [string](#string) | | The collation is the collation of a table. |+| charset | [string](#string) | | The character set of table. |+| row_count | [int64](#int64) | | The row_count is the estimated number of rows of a table. |+| data_size | [int64](#int64) | | The data_size is the estimated data size of a table. |+| index_size | [int64](#int64) | | The index_size is the estimated index size of a table. |+| data_free | [int64](#int64) | | The data_free is the estimated free data size of a table. |+| create_options | [string](#string) | | The create_options is the create option of a table. |+| comment | [string](#string) | | The comment is the comment of a table. classification and user_comment is parsed from the comment. |+| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |+| foreign_keys | [ForeignKeyMetadata](#bytebase-v1-ForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |+| partitions | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |+| check_constraints | [CheckConstraintMetadata](#bytebase-v1-CheckConstraintMetadata) | repeated | The check_constraints is the list of check constraints in a table. |-<a name="bytebase-v1-ColumnConfig-LabelsEntry"></a>-### ColumnConfig.LabelsEntry+<a name="bytebase-v1-TablePartitionMetadata"></a>+### TablePartitionMetadata+TablePartitionMetadata is the metadata for table partitions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| name | [string](#string) | | The name is the name of a table partition. |+| type | [TablePartitionMetadata.Type](#bytebase-v1-TablePartitionMetadata-Type) | | The type of a table partition. |+| expression | [string](#string) | | 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 | [string](#string) | | 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. |+| use_default | [string](#string) | | 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 | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |-<a name="bytebase-v1-ColumnMetadata"></a>+<a name="bytebase-v1-TaskMetadata"></a>++### TaskMetadata-### ColumnMetadata-ColumnMetadata is the metadata for columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a column. |-| position | [int32](#int32) | | The position is the position in columns. |-| has_default | [bool](#bool) | | |-| default_null | [bool](#bool) | | |-| default_string | [string](#string) | | |-| default_expression | [string](#string) | | |-| on_update | [string](#string) | | 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 | [bool](#bool) | | The nullable is the nullable of a column. |-| type | [string](#string) | | The type is the type of a column. |-| character_set | [string](#string) | | The character_set is the character_set of a column. |-| collation | [string](#string) | | The collation is the collation of a column. |-| comment | [string](#string) | | The comment is the comment of a column. classification and user_comment is parsed from the comment. |-| user_comment | [string](#string) | | The user_comment is the user comment of a column parsed from the comment. |-| effective_masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | The effective_masking_level is the effective masking level of the column, evaluate from the column masking data and global masking rules. |-| generation | [GenerationMetadata](#bytebase-v1-GenerationMetadata) | | The generation is the generation of a column. |+| name | [string](#string) | | The name is the name of a task. |+| id | [string](#string) | | The id is the snowflake-generated id of a task. Example: 01ad32a0-1bb6-5e93-0000-000000000001 |+| owner | [string](#string) | | The owner of the task. |+| comment | [string](#string) | | The comment of the task. |+| warehouse | [string](#string) | | The warehouse of the task. |+| schedule | [string](#string) | | The schedule interval of the task. |+| predecessors | [string](#string) | repeated | The predecessor tasks of the task. |+| state | [TaskMetadata.State](#bytebase-v1-TaskMetadata-State) | | The state of the task. |+| condition | [string](#string) | | The condition of the task. |+| definition | [string](#string) | | The definition of the task. |-<a name="bytebase-v1-Database"></a>+<a name="bytebase-v1-UpdateDatabaseMetadataRequest"></a>-### Database+### UpdateDatabaseMetadataRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database. Format: instances/{instance}/databases/{database} {database} is the database name in the instance. |-| sync_state | [State](#bytebase-v1-State) | | The existence of a database on latest sync. |-| successful_sync_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest synchronization time. |-| project | [string](#string) | | The project for a database. Format: projects/{project} |-| schema_version | [string](#string) | | The version of database schema. |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| effective_environment | [string](#string) | | 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 | [Database.LabelsEntry](#bytebase-v1-Database-LabelsEntry) | repeated | Labels will be used for deployment and policy control. |-| instance_resource | [InstanceResource](#bytebase-v1-InstanceResource) | | The instance resource. |-| backup_available | [bool](#bool) | | The database is available for DML prior backup. |+| database_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The database metadata to update.+The database_metadata's `name` field is used to identify the database metadata to update. Format: instances/{instance}/databases/{database}/metadata |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-Database-LabelsEntry"></a>-### Database.LabelsEntry+<a name="bytebase-v1-UpdateDatabaseRequest"></a>++### UpdateDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| database | [Database](#bytebase-v1-Database) | | The database to update.++The database's `name` field is used to identify the database to update. Format: instances/{instance}/databases/{database} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-DatabaseConfig"></a>+<a name="bytebase-v1-UpdateSecretRequest"></a>-### DatabaseConfig+### UpdateSecretRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |+| secret | [Secret](#bytebase-v1-Secret) | | The secret to be created or updated. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The mask of the fields to be updated. |+| allow_missing | [bool](#bool) | | If true, the secret will be created if it does not exist. |-<a name="bytebase-v1-DatabaseMetadata"></a>+<a name="bytebase-v1-ViewConfig"></a>++### ViewConfig-### DatabaseMetadata-DatabaseMetadata is the metadata for databases.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The database metadata name.--Format: instances/{instance}/databases/{database}/metadata |-| schemas | [SchemaMetadata](#bytebase-v1-SchemaMetadata) | repeated | The schemas is the list of schemas in a database. |-| character_set | [string](#string) | | The character_set is the character set of a database. |-| collation | [string](#string) | | The collation is the collation of a database. |-| extensions | [ExtensionMetadata](#bytebase-v1-ExtensionMetadata) | repeated | The extensions is the list of extensions in a database. |-| schema_configs | [SchemaConfig](#bytebase-v1-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |+| name | [string](#string) | | The name is the name of a view. |+| updater | [string](#string) | | The last updater of the view in branch. Format: users/{email} |+| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the view is updated in branch. |-<a name="bytebase-v1-DatabaseSchema"></a>+<a name="bytebase-v1-ViewMetadata"></a>-### DatabaseSchema-DatabaseSchema is the metadata for databases.+### ViewMetadata+ViewMetadata is the metadata for views.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | The schema dump from database. |---+| name | [string](#string) | | The name is the name of a view. |+| definition | [string](#string) | | The definition is the definition of a view. |+| comment | [string](#string) | | The comment is the comment of a view. |+| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |+| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |-<a name="bytebase-v1-DeleteSecretRequest"></a>-### DeleteSecretRequest+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the secret to be deleted. Format: instances/{instance}/databases/{database}/secrets/{secret} |+<a name="bytebase-v1-ChangeHistory-Source"></a>+### ChangeHistory.Source+| Name | Number | Description |+| ---- | ------ | ----------- |+| SOURCE_UNSPECIFIED | 0 | |+| UI | 1 | |+| VCS | 2 | |+| LIBRARY | 3 | |-<a name="bytebase-v1-DependentColumn"></a>+<a name="bytebase-v1-ChangeHistory-Status"></a>-### DependentColumn-DependentColumn is the metadata for dependent columns.+### ChangeHistory.Status-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | The schema is the schema of a reference column. |-| table | [string](#string) | | The table is the table of a reference column. |-| column | [string](#string) | | The column is the name of a reference column. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| DONE | 2 | |+| FAILED | 3 | |+<a name="bytebase-v1-ChangeHistory-Type"></a>+### ChangeHistory.Type-<a name="bytebase-v1-DiffSchemaRequest"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| BASELINE | 1 | |+| MIGRATE | 2 | |+| MIGRATE_SDL | 3 | |+| MIGRATE_GHOST | 4 | |+| BRANCH | 5 | |+| DATA | 6 | |-### DiffSchemaRequest+<a name="bytebase-v1-ChangeHistoryView"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database or change history. Format: database: instances/{instance}/databases/{database} change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| schema | [string](#string) | | The target schema. |-| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |+### ChangeHistoryView+| Name | Number | Description |+| ---- | ------ | ----------- |+| CHANGE_HISTORY_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| CHANGE_HISTORY_VIEW_BASIC | 1 | |+| CHANGE_HISTORY_VIEW_FULL | 2 | |+<a name="bytebase-v1-DatabaseMetadataView"></a>-<a name="bytebase-v1-DiffSchemaResponse"></a>+### DatabaseMetadataView-### DiffSchemaResponse+| Name | Number | Description |+| ---- | ------ | ----------- |+| DATABASE_METADATA_VIEW_UNSPECIFIED | 0 | The default and unset value. The API will default to the BASIC view. |+| DATABASE_METADATA_VIEW_BASIC | 1 | Include basic information of schema object names such as schema, table, view, function names. |+| DATABASE_METADATA_VIEW_FULL | 2 | Include everything such as columns and column masking level. |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| diff | [string](#string) | | |+<a name="bytebase-v1-GenerationMetadata-Type"></a>+### GenerationMetadata.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_VIRTUAL | 1 | |+| TYPE_STORED | 2 | |-<a name="bytebase-v1-ExtensionMetadata"></a>-### ExtensionMetadata-ExtensionMetadata is the metadata for extensions.+<a name="bytebase-v1-StreamMetadata-Mode"></a>+### StreamMetadata.Mode-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of an extension. |-| schema | [string](#string) | | The schema is the extension that is installed to. But the extension usage is not limited to the schema. |-| version | [string](#string) | | The version is the version of an extension. |-| description | [string](#string) | | The description is the description of an extension. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| MODE_UNSPECIFIED | 0 | |+| MODE_DEFAULT | 1 | |+| MODE_APPEND_ONLY | 2 | |+| MODE_INSERT_ONLY | 3 | |+<a name="bytebase-v1-StreamMetadata-Type"></a>+### StreamMetadata.Type-<a name="bytebase-v1-ExternalTableMetadata"></a>-### ExternalTableMetadata+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_DELTA | 1 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a external table. |-| external_server_name | [string](#string) | | The external_server_name is the name of the external server. |-| external_database_name | [string](#string) | | The external_database_name is the name of the external database. |-| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a foreign table. |+<a name="bytebase-v1-TablePartitionMetadata-Type"></a>+### TablePartitionMetadata.Type+Type is the type of a table partition, some database engines may not support all types.+Only avilable for the following database engines now:+MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)+TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY+PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| RANGE | 1 | |+| RANGE_COLUMNS | 2 | |+| LIST | 3 | |+| LIST_COLUMNS | 4 | |+| HASH | 5 | |+| LINEAR_HASH | 6 | |+| KEY | 7 | |+| LINEAR_KEY | 8 | |+<a name="bytebase-v1-TaskMetadata-State"></a>-<a name="bytebase-v1-ForeignKeyMetadata"></a>+### TaskMetadata.State-### ForeignKeyMetadata-ForeignKeyMetadata is the metadata for foreign keys.+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATE_UNSPECIFIED | 0 | |+| STATE_STARTED | 1 | |+| STATE_SUSPENDED | 2 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a foreign key. |-| columns | [string](#string) | repeated | The columns are the ordered referencing columns of a foreign key. |-| referenced_schema | [string](#string) | | 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. |-| referenced_table | [string](#string) | | The referenced_table is the referenced table name of a foreign key. |-| referenced_columns | [string](#string) | repeated | The referenced_columns are the ordered referenced columns of a foreign key. |-| on_delete | [string](#string) | | The on_delete is the on delete action of a foreign key. |-| on_update | [string](#string) | | The on_update is the on update action of a foreign key. |-| match_type | [string](#string) | | 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. |+++<a name="bytebase-v1-DatabaseService"></a>+### DatabaseService-<a name="bytebase-v1-FunctionConfig"></a>-### FunctionConfig+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetDatabase | [GetDatabaseRequest](#bytebase-v1-GetDatabaseRequest) | [Database](#bytebase-v1-Database) | |+| ListInstanceDatabases | [ListInstanceDatabasesRequest](#bytebase-v1-ListInstanceDatabasesRequest) | [ListInstanceDatabasesResponse](#bytebase-v1-ListInstanceDatabasesResponse) | |+| ListDatabases | [ListDatabasesRequest](#bytebase-v1-ListDatabasesRequest) | [ListDatabasesResponse](#bytebase-v1-ListDatabasesResponse) | |+| UpdateDatabase | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | [Database](#bytebase-v1-Database) | |+| BatchUpdateDatabases | [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest) | [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse) | |+| SyncDatabase | [SyncDatabaseRequest](#bytebase-v1-SyncDatabaseRequest) | [SyncDatabaseResponse](#bytebase-v1-SyncDatabaseResponse) | |+| GetDatabaseMetadata | [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |+| UpdateDatabaseMetadata | [UpdateDatabaseMetadataRequest](#bytebase-v1-UpdateDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |+| GetDatabaseSchema | [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest) | [DatabaseSchema](#bytebase-v1-DatabaseSchema) | |+| DiffSchema | [DiffSchemaRequest](#bytebase-v1-DiffSchemaRequest) | [DiffSchemaResponse](#bytebase-v1-DiffSchemaResponse) | |+| ListSlowQueries | [ListSlowQueriesRequest](#bytebase-v1-ListSlowQueriesRequest) | [ListSlowQueriesResponse](#bytebase-v1-ListSlowQueriesResponse) | |+| ListSecrets | [ListSecretsRequest](#bytebase-v1-ListSecretsRequest) | [ListSecretsResponse](#bytebase-v1-ListSecretsResponse) | |+| UpdateSecret | [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest) | [Secret](#bytebase-v1-Secret) | |+| DeleteSecret | [DeleteSecretRequest](#bytebase-v1-DeleteSecretRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| AdviseIndex | [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest) | [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse) | |+| ListChangeHistories | [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest) | [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse) | |+| GetChangeHistory | [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest) | [ChangeHistory](#bytebase-v1-ChangeHistory) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a function. |-| updater | [string](#string) | | The last updater of the function in branch. Format: users/{email} |-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the function is updated in branch. |+<a name="v1_issue_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/issue_service.proto+<a name="bytebase-v1-ApprovalFlow"></a>-<a name="bytebase-v1-FunctionMetadata"></a>+### ApprovalFlow-### FunctionMetadata-FunctionMetadata is the metadata for functions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a function. |-| definition | [string](#string) | | The definition is the definition of a function. |+| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |-<a name="bytebase-v1-GenerationMetadata"></a>+<a name="bytebase-v1-ApprovalNode"></a>-### GenerationMetadata+### ApprovalNode| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [GenerationMetadata.Type](#bytebase-v1-GenerationMetadata-Type) | | |-| expression | [string](#string) | | |+| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |+| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |+| role | [string](#string) | | Format: roles/{role} |+| external_node_id | [string](#string) | | |-<a name="bytebase-v1-GetChangeHistoryRequest"></a>+<a name="bytebase-v1-ApprovalStep"></a>-### GetChangeHistoryRequest+### ApprovalStep| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the change history to retrieve. Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |-| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |-| concise | [bool](#bool) | | When true, the schema dump will be concise. |+| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |+| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |-<a name="bytebase-v1-GetDatabaseMetadataRequest"></a>+<a name="bytebase-v1-ApprovalTemplate"></a>-### GetDatabaseMetadataRequest+### ApprovalTemplate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve metadata. Format: instances/{instance}/databases/{database}/metadata |-| view | [DatabaseMetadataView](#bytebase-v1-DatabaseMetadataView) | | The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC. |-| filter | [string](#string) | | 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. |+| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |+| creator | [string](#string) | | 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. |-<a name="bytebase-v1-GetDatabaseRequest"></a>+<a name="bytebase-v1-ApproveIssueRequest"></a>-### GetDatabaseRequest+### ApproveIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve. Format: instances/{instance}/databases/{database} |+| name | [string](#string) | | The name of the issue to add an approver. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-GetDatabaseSchemaRequest"></a>+<a name="bytebase-v1-BatchUpdateIssuesStatusRequest"></a>-### GetDatabaseSchemaRequest+### BatchUpdateIssuesStatusRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to retrieve schema. Format: instances/{instance}/databases/{database}/schema |-| sdl_format | [bool](#bool) | | Format the schema dump into SDL format. |-| concise | [bool](#bool) | | When true, the schema dump will be concise. For Oracle, there will be tables and indexes only for Sync Schema. |-+| parent | [string](#string) | | 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 | [string](#string) | repeated | The list of issues to update. Format: projects/{project}/issues/{issue} |+| status | [IssueStatus](#bytebase-v1-IssueStatus) | | The new status. |+| reason | [string](#string) | | |-<a name="bytebase-v1-IndexMetadata"></a>-### IndexMetadata-IndexMetadata is the metadata for indexes.+<a name="bytebase-v1-BatchUpdateIssuesStatusResponse"></a>+### BatchUpdateIssuesStatusResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of an index. |-| expressions | [string](#string) | repeated | The expressions are the ordered columns or expressions of an index. This could refer to a column or an expression. |-| key_length | [int64](#int64) | repeated | The key_lengths are the ordered key lengths of an index. If the key length is not specified, it's -1. |-| descending | [bool](#bool) | repeated | The descending is the ordered descending of an index. |-| type | [string](#string) | | The type is the type of an index. |-| unique | [bool](#bool) | | The unique is whether the index is unique. |-| primary | [bool](#bool) | | The primary is whether the index is a primary key index. |-| visible | [bool](#bool) | | The visible is whether the index is visible. |-| comment | [string](#string) | | The comment is the comment of an index. |-| definition | [string](#string) | | The definition of an index. |-<a name="bytebase-v1-ListChangeHistoriesRequest"></a>+<a name="bytebase-v1-CreateIssueCommentRequest"></a>-### ListChangeHistoriesRequest+### CreateIssueCommentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent of the change histories. Format: instances/{instance}/databases/{database} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| view | [ChangeHistoryView](#bytebase-v1-ChangeHistoryView) | | |-| filter | [string](#string) | | The filter of the change histories. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by type, source or table. For example: table = "tableExists('{database}', '{schema}', '{table}')" table = "tableExists('db', 'public', 'table1') || tableExists('db', 'public', 'table2')" type = "MIGRATE | DATA" source = "UI" source = "VCS"--The table filter 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") ) |+| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |+| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |-<a name="bytebase-v1-ListChangeHistoriesResponse"></a>+<a name="bytebase-v1-CreateIssueRequest"></a>-### ListChangeHistoriesResponse+### CreateIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| change_histories | [ChangeHistory](#bytebase-v1-ChangeHistory) | repeated | The list of change histories. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |+| issue | [Issue](#bytebase-v1-Issue) | | The issue to create. |-<a name="bytebase-v1-ListDatabasesRequest"></a>+<a name="bytebase-v1-GetIssueRequest"></a>-### ListDatabasesRequest+### GetIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of databases. - projects/{project}: list all databases in a project. - workspaces/{workspace}: list all databases in a workspace. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+| name | [string](#string) | | The name of the issue to retrieve. Format: projects/{project}/issues/{issue} |+| force | [bool](#bool) | | |-<a name="bytebase-v1-ListDatabasesResponse"></a>+<a name="bytebase-v1-GrantRequest"></a>-### ListDatabasesResponse+### GrantRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| role | [string](#string) | | The requested role. Format: roles/EXPORTER. |+| user | [string](#string) | | The user to be granted. Format: users/{email}. |+| condition | [google.type.Expr](#google-type-Expr) | | |+| expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | |-<a name="bytebase-v1-ListInstanceDatabasesRequest"></a>+<a name="bytebase-v1-Issue"></a>-### ListInstanceDatabasesRequest+### Issue| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of databases. - instances/{instance}: list all databases for an instance. Use "instances/-" to list all databases. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| filter | [string](#string) | | Deprecated. 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. |+| name | [string](#string) | | The name of the issue. Format: projects/{project}/issues/{issue} |+| title | [string](#string) | | |+| description | [string](#string) | | |+| type | [Issue.Type](#bytebase-v1-Issue-Type) | | |+| status | [IssueStatus](#bytebase-v1-IssueStatus) | | |+| approvers | [Issue.Approver](#bytebase-v1-Issue-Approver) | repeated | |+| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |+| approval_finding_done | [bool](#bool) | | 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. |+| approval_finding_error | [string](#string) | | |+| subscribers | [string](#string) | repeated | The subscribers. Format: users/[email protected] |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| plan | [string](#string) | | The plan associated with the issue. Can be empty. Format: projects/{project}/plans/{plan} |+| rollout | [string](#string) | | The rollout associated with the issue. Can be empty. Format: projects/{project}/rollouts/{rollout} |+| grant_request | [GrantRequest](#bytebase-v1-GrantRequest) | | Used if the issue type is GRANT_REQUEST. |+| releasers | [string](#string) | repeated | 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} |+| risk_level | [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel) | | |+| task_status_count | [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry) | repeated | The status count of the issue. Keys are the following: - NOT_STARTED - SKIPPED - PENDING - RUNNING - DONE - FAILED - CANCELED |+| labels | [string](#string) | repeated | |-<a name="bytebase-v1-ListInstanceDatabasesResponse"></a>+<a name="bytebase-v1-Issue-Approver"></a>-### ListInstanceDatabasesResponse+### Issue.Approver| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| databases | [Database](#bytebase-v1-Database) | repeated | The databases from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| status | [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status) | | The new status. |+| principal | [string](#string) | | Format: users/[email protected] |-<a name="bytebase-v1-ListSecretsRequest"></a>+<a name="bytebase-v1-Issue-TaskStatusCountEntry"></a>-### ListSecretsRequest+### Issue.TaskStatusCountEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent of the secret. Format: instances/{instance}/databases/{database} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+| key | [string](#string) | | |+| value | [int32](#int32) | | |-<a name="bytebase-v1-ListSecretsResponse"></a>+<a name="bytebase-v1-IssueComment"></a>-### ListSecretsResponse+### IssueComment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| secrets | [Secret](#bytebase-v1-Secret) | repeated | The list of secrets. |-| next_page_token | [string](#string) | | 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. |+| name | [string](#string) | | Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid} |+| comment | [string](#string) | | |+| payload | [string](#string) | | TODO: use struct message instead. |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| creator | [string](#string) | | Format: users/{email} |+| approval | [IssueComment.Approval](#bytebase-v1-IssueComment-Approval) | | |+| issue_update | [IssueComment.IssueUpdate](#bytebase-v1-IssueComment-IssueUpdate) | | |+| stage_end | [IssueComment.StageEnd](#bytebase-v1-IssueComment-StageEnd) | | |+| task_update | [IssueComment.TaskUpdate](#bytebase-v1-IssueComment-TaskUpdate) | | |+| task_prior_backup | [IssueComment.TaskPriorBackup](#bytebase-v1-IssueComment-TaskPriorBackup) | | |-<a name="bytebase-v1-ListSlowQueriesRequest"></a>+<a name="bytebase-v1-IssueComment-Approval"></a>++### IssueComment.Approval-### ListSlowQueriesRequest-ListSlowQueriesRequest is the request of listing slow query.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project} |-| filter | [string](#string) | | 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 database and start_time in SlowQueryDetails for now. For example: Search the slow query log of the specific database: - the specific database: database = "instances/{instance}/databases/{database}" 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. |-| order_by | [string](#string) | | 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. |+| status | [IssueComment.Approval.Status](#bytebase-v1-IssueComment-Approval-Status) | | |-<a name="bytebase-v1-ListSlowQueriesResponse"></a>+<a name="bytebase-v1-IssueComment-IssueUpdate"></a>++### IssueComment.IssueUpdate-### ListSlowQueriesResponse-ListSlowQueriesResponse is the response of listing slow query.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| slow_query_logs | [SlowQueryLog](#bytebase-v1-SlowQueryLog) | repeated | The slow query logs. |+| from_title | [string](#string) | optional | |+| to_title | [string](#string) | optional | |+| from_description | [string](#string) | optional | |+| to_description | [string](#string) | optional | |+| from_status | [IssueStatus](#bytebase-v1-IssueStatus) | optional | |+| to_status | [IssueStatus](#bytebase-v1-IssueStatus) | optional | |+| from_labels | [string](#string) | repeated | |+| to_labels | [string](#string) | repeated | |-<a name="bytebase-v1-MaterializedViewMetadata"></a>+<a name="bytebase-v1-IssueComment-StageEnd"></a>++### IssueComment.StageEnd-### MaterializedViewMetadata-MaterializedViewMetadata is the metadata for materialized views.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a materialized view. |-| definition | [string](#string) | | The definition is the definition of a materialized view. |-| comment | [string](#string) | | The comment is the comment of a materialized view. |-| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a materialized view. |+| stage | [string](#string) | | |-<a name="bytebase-v1-ProcedureConfig"></a>+<a name="bytebase-v1-IssueComment-TaskPriorBackup"></a>-### ProcedureConfig+### IssueComment.TaskPriorBackup| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a procedure. |-| updater | [string](#string) | | The last updater of the procedure in branch. Format: users/{email} |-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the procedure is updated in branch. |+| task | [string](#string) | | |+| tables | [IssueComment.TaskPriorBackup.Table](#bytebase-v1-IssueComment-TaskPriorBackup-Table) | repeated | |+| original_line | [int32](#int32) | optional | |+| database | [string](#string) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-ProcedureMetadata"></a>+<a name="bytebase-v1-IssueComment-TaskPriorBackup-Table"></a>++### IssueComment.TaskPriorBackup.Table-### ProcedureMetadata-ProcedureMetadata is the metadata for procedures.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a procedure. |-| definition | [string](#string) | | The definition is the definition of a procedure. |+| schema | [string](#string) | | |+| table | [string](#string) | | |-<a name="bytebase-v1-SchemaConfig"></a>+<a name="bytebase-v1-IssueComment-TaskUpdate"></a>-### SchemaConfig+### IssueComment.TaskUpdate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |-| table_configs | [TableConfig](#bytebase-v1-TableConfig) | repeated | The table_configs is the list of configs for tables in a schema. |-| function_configs | [FunctionConfig](#bytebase-v1-FunctionConfig) | repeated | |-| procedure_configs | [ProcedureConfig](#bytebase-v1-ProcedureConfig) | repeated | |-| view_configs | [ViewConfig](#bytebase-v1-ViewConfig) | repeated | |+| tasks | [string](#string) | repeated | |+| from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |+| to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |+| from_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |+| to_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |+| to_status | [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status) | optional | |-<a name="bytebase-v1-SchemaMetadata"></a>+<a name="bytebase-v1-ListIssueCommentsRequest"></a>++### ListIssueCommentsRequest-### SchemaMetadata-SchemaMetadata is the metadata for schemas.-This is the concept of schema in Postgres, but it's a no-op for MySQL.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |-| tables | [TableMetadata](#bytebase-v1-TableMetadata) | repeated | The tables is the list of tables in a schema. |-| external_tables | [ExternalTableMetadata](#bytebase-v1-ExternalTableMetadata) | repeated | The external_tables is the list of external tables in a schema. |-| views | [ViewMetadata](#bytebase-v1-ViewMetadata) | repeated | The views is the list of views in a schema. |-| functions | [FunctionMetadata](#bytebase-v1-FunctionMetadata) | repeated | The functions is the list of functions in a schema. |-| procedures | [ProcedureMetadata](#bytebase-v1-ProcedureMetadata) | repeated | The procedures is the list of procedures in a schema. |-| streams | [StreamMetadata](#bytebase-v1-StreamMetadata) | repeated | The streams is the list of streams in a schema, currently, only used for Snowflake. |-| tasks | [TaskMetadata](#bytebase-v1-TaskMetadata) | repeated | The routines is the list of routines in a schema, currently, only used for Snowflake. |-| materialized_views | [MaterializedViewMetadata](#bytebase-v1-MaterializedViewMetadata) | repeated | The materialized_views is the list of materialized views in a schema. |+| parent | [string](#string) | | Format: projects/{projects}/issues/{issue} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |-<a name="bytebase-v1-Secret"></a>-### Secret-Secret is the secret of the database now.+<a name="bytebase-v1-ListIssueCommentsResponse"></a>++### ListIssueCommentsResponse+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: instances/{instance}/databases/{database}/secrets/{secret} |-| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initially. |-| updated_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was updated. |-| value | [string](#string) | | The value of the secret. |-| description | [string](#string) | | The description of the secret. |+| issue_comments | [IssueComment](#bytebase-v1-IssueComment) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-SlowQueryDetails"></a>+<a name="bytebase-v1-ListIssuesRequest"></a>++### ListIssuesRequest-### SlowQueryDetails-SlowQueryDetails is the details of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The start time of the slow query log. |-| query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The query time of the slow query log. |-| lock_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The lock time of the slow query log. |-| rows_sent | [int32](#int32) | | The rows sent of the slow query log. |-| rows_examined | [int32](#int32) | | The rows examined of the slow query log. |-| sql_text | [string](#string) | | The sql text of the slow query log. |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| filter | [string](#string) | | Filter is used to filter issues returned in the list. |+| query | [string](#string) | | Query is the query statement. |-<a name="bytebase-v1-SlowQueryLog"></a>+<a name="bytebase-v1-ListIssuesResponse"></a>++### ListIssuesResponse-### SlowQueryLog-SlowQueryLog is the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| resource | [string](#string) | | The resource of the slow query log. The format is "instances/{instance}/databases/{database}". |-| project | [string](#string) | | The project of the slow query log. The format is "projects/{project}". |-| statistics | [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics) | | The statistics of the slow query log. |+| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-SlowQueryStatistics"></a>+<a name="bytebase-v1-RejectIssueRequest"></a>++### RejectIssueRequest-### SlowQueryStatistics-SlowQueryStatistics is the statistics of the slow query log.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sql_fingerprint | [string](#string) | | The fingerprint of the slow query log. |-| count | [int32](#int32) | | The count of the slow query log. |-| latest_log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest log time of the slow query log. |-| average_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The average query time of the slow query log. |-| maximum_query_time | [google.protobuf.Duration](#google-protobuf-Duration) | | The maximum query time of the slow query log. |-| average_rows_sent | [int32](#int32) | | The average rows sent of the slow query log. |-| maximum_rows_sent | [int32](#int32) | | The maximum rows sent of the slow query log. |-| average_rows_examined | [int32](#int32) | | The average rows examined of the slow query log. |-| maximum_rows_examined | [int32](#int32) | | The maximum rows examined of the slow query log. |-| query_time_percent | [double](#double) | | The percentage of the query time. |-| count_percent | [double](#double) | | The percentage of the count. |-| samples | [SlowQueryDetails](#bytebase-v1-SlowQueryDetails) | repeated | Samples are details of the sample slow query logs with the same fingerprint. |+| name | [string](#string) | | The name of the issue to add an rejection. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-StreamMetadata"></a>+<a name="bytebase-v1-RequestIssueRequest"></a>-### StreamMetadata+### RequestIssueRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a stream. |-| table_name | [string](#string) | | The table_name is the name of the table/view that the stream is created on. |-| owner | [string](#string) | | The owner of the stream. |-| comment | [string](#string) | | The comment of the stream. |-| type | [StreamMetadata.Type](#bytebase-v1-StreamMetadata-Type) | | The type of the stream. |-| stale | [bool](#bool) | | Indicates whether the stream was last read before the `stale_after` time. |-| mode | [StreamMetadata.Mode](#bytebase-v1-StreamMetadata-Mode) | | The mode of the stream. |-| definition | [string](#string) | | The definition of the stream. |+| name | [string](#string) | | The name of the issue to request a issue. Format: projects/{project}/issues/{issue} |+| comment | [string](#string) | | |-<a name="bytebase-v1-SyncDatabaseRequest"></a>+<a name="bytebase-v1-SearchIssuesRequest"></a>-### SyncDatabaseRequest+### SearchIssuesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database to sync. Format: instances/{instance}/databases/{database} |+| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| filter | [string](#string) | | Filter is used to filter issues returned in the list. |+| query | [string](#string) | | Query is the query statement. |-<a name="bytebase-v1-SyncDatabaseResponse"></a>+<a name="bytebase-v1-SearchIssuesResponse"></a>-### SyncDatabaseResponse+### SearchIssuesResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-TableConfig"></a>-### TableConfig++<a name="bytebase-v1-UpdateIssueCommentRequest"></a>++### UpdateIssueCommentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a table. |-| column_configs | [ColumnConfig](#bytebase-v1-ColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |-| classification_id | [string](#string) | | |-| updater | [string](#string) | | The last updater of the table in branch. Format: users/{email} |-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the table is updated in branch. |+| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |+| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-TableMetadata"></a>+<a name="bytebase-v1-UpdateIssueRequest"></a>++### UpdateIssueRequest-### TableMetadata-TableMetadata is the metadata for tables.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a table. |-| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |-| indexes | [IndexMetadata](#bytebase-v1-IndexMetadata) | repeated | The indexes is the list of indexes in a table. |-| engine | [string](#string) | | The engine is the engine of a table. |-| collation | [string](#string) | | The collation is the collation of a table. |-| charset | [string](#string) | | The character set of table. |-| row_count | [int64](#int64) | | The row_count is the estimated number of rows of a table. |-| data_size | [int64](#int64) | | The data_size is the estimated data size of a table. |-| index_size | [int64](#int64) | | The index_size is the estimated index size of a table. |-| data_free | [int64](#int64) | | The data_free is the estimated free data size of a table. |-| create_options | [string](#string) | | The create_options is the create option of a table. |-| comment | [string](#string) | | The comment is the comment of a table. classification and user_comment is parsed from the comment. |-| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |-| foreign_keys | [ForeignKeyMetadata](#bytebase-v1-ForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |-| partitions | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |-| check_constraints | [CheckConstraintMetadata](#bytebase-v1-CheckConstraintMetadata) | repeated | The check_constraints is the list of check constraints in a table. |+| issue | [Issue](#bytebase-v1-Issue) | | The issue to update.++The issue's `name` field is used to identify the issue to update. Format: projects/{project}/issues/{issue} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+++++++++<a name="bytebase-v1-ApprovalNode-GroupValue"></a>++### ApprovalNode.GroupValue+The predefined user groups are:+- WORKSPACE_OWNER+- WORKSPACE_DBA+- PROJECT_OWNER+- PROJECT_MEMBER++| Name | Number | Description |+| ---- | ------ | ----------- |+| GROUP_VALUE_UNSPECIFILED | 0 | |+| WORKSPACE_OWNER | 1 | |+| WORKSPACE_DBA | 2 | |+| PROJECT_OWNER | 3 | |+| PROJECT_MEMBER | 4 | |++++<a name="bytebase-v1-ApprovalNode-Type"></a>++### ApprovalNode.Type+Type of the ApprovalNode.+type determines who should approve this node.+ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.+See GroupValue below for the predefined user groups.++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ANY_IN_GROUP | 1 | |++++<a name="bytebase-v1-ApprovalStep-Type"></a>++### ApprovalStep.Type+Type of the ApprovalStep+ALL means every node must be approved to proceed.+ANY means approving any node will proceed.++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| ALL | 1 | |+| ANY | 2 | |++++<a name="bytebase-v1-Issue-Approver-Status"></a>++### Issue.Approver.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| APPROVED | 2 | |+| REJECTED | 3 | |++++<a name="bytebase-v1-Issue-RiskLevel"></a>++### Issue.RiskLevel+++| Name | Number | Description |+| ---- | ------ | ----------- |+| RISK_LEVEL_UNSPECIFIED | 0 | |+| LOW | 1 | |+| MODERATE | 2 | |+| HIGH | 3 | |++++<a name="bytebase-v1-Issue-Type"></a>++### Issue.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| DATABASE_CHANGE | 1 | |+| GRANT_REQUEST | 2 | |+| DATABASE_DATA_EXPORT | 3 | |++++<a name="bytebase-v1-IssueComment-Approval-Status"></a>++### IssueComment.Approval.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| APPROVED | 2 | |+| REJECTED | 3 | |++++<a name="bytebase-v1-IssueComment-TaskUpdate-Status"></a>++### IssueComment.TaskUpdate.Status+++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| RUNNING | 2 | |+| DONE | 3 | |+| FAILED | 4 | |+| SKIPPED | 5 | |+| CANCELED | 6 | |++++<a name="bytebase-v1-IssueStatus"></a>++### IssueStatus+++| Name | Number | Description |+| ---- | ------ | ----------- |+| ISSUE_STATUS_UNSPECIFIED | 0 | |+| OPEN | 1 | |+| DONE | 2 | |+| CANCELED | 3 | |++++++++<a name="bytebase-v1-IssueService"></a>++### IssueService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetIssue | [GetIssueRequest](#bytebase-v1-GetIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| CreateIssue | [CreateIssueRequest](#bytebase-v1-CreateIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| ListIssues | [ListIssuesRequest](#bytebase-v1-ListIssuesRequest) | [ListIssuesResponse](#bytebase-v1-ListIssuesResponse) | |+| SearchIssues | [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest) | [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse) | Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. |+| UpdateIssue | [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest) | [Issue](#bytebase-v1-Issue) | |+| ListIssueComments | [ListIssueCommentsRequest](#bytebase-v1-ListIssueCommentsRequest) | [ListIssueCommentsResponse](#bytebase-v1-ListIssueCommentsResponse) | |+| CreateIssueComment | [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |+| UpdateIssueComment | [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |+| BatchUpdateIssuesStatus | [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest) | [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse) | |+| ApproveIssue | [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest) | [Issue](#bytebase-v1-Issue) | ApproveIssue approves the issue. The access is based on approval flow. |+| RejectIssue | [RejectIssueRequest](#bytebase-v1-RejectIssueRequest) | [Issue](#bytebase-v1-Issue) | RejectIssue rejects the issue. The access is based on approval flow. |+| RequestIssue | [RequestIssueRequest](#bytebase-v1-RequestIssueRequest) | [Issue](#bytebase-v1-Issue) | RequestIssue requests the issue. The access is based on approval flow. |++++++<a name="v1_subscription_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/subscription_service.proto++++<a name="bytebase-v1-Feature"></a>++### Feature++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Name is the feature name. |+| matrix | [Feature.MatrixEntry](#bytebase-v1-Feature-MatrixEntry) | repeated | Matrix is the feature matrix for different plan. The key is the plan enum in string value. |+++++++<a name="bytebase-v1-Feature-MatrixEntry"></a>++### Feature.MatrixEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [bool](#bool) | | |+++++++<a name="bytebase-v1-FeatureMatrix"></a>++### FeatureMatrix++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| features | [Feature](#bytebase-v1-Feature) | repeated | |+++++++<a name="bytebase-v1-GetFeatureMatrixRequest"></a>++### GetFeatureMatrixRequest++++++++<a name="bytebase-v1-GetSubscriptionRequest"></a>++### GetSubscriptionRequest++++++++<a name="bytebase-v1-PatchSubscription"></a>++### PatchSubscription++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| license | [string](#string) | | |-<a name="bytebase-v1-TablePartitionMetadata"></a>+<a name="bytebase-v1-Subscription"></a>++### Subscription-### TablePartitionMetadata-TablePartitionMetadata is the metadata for table partitions.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a table partition. |-| type | [TablePartitionMetadata.Type](#bytebase-v1-TablePartitionMetadata-Type) | | The type of a table partition. |-| expression | [string](#string) | | 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 | [string](#string) | | 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. |-| use_default | [string](#string) | | 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 | [TablePartitionMetadata](#bytebase-v1-TablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |+| instance_count | [int32](#int32) | | |+| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| started_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| plan | [PlanType](#bytebase-v1-PlanType) | | |+| trialing | [bool](#bool) | | |+| org_id | [string](#string) | | |+| org_name | [string](#string) | | |-<a name="bytebase-v1-TaskMetadata"></a>+<a name="bytebase-v1-UpdateSubscriptionRequest"></a>-### TaskMetadata+### UpdateSubscriptionRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a task. |-| id | [string](#string) | | The id is the snowflake-generated id of a task. Example: 01ad32a0-1bb6-5e93-0000-000000000001 |-| owner | [string](#string) | | The owner of the task. |-| comment | [string](#string) | | The comment of the task. |-| warehouse | [string](#string) | | The warehouse of the task. |-| schedule | [string](#string) | | The schedule interval of the task. |-| predecessors | [string](#string) | repeated | The predecessor tasks of the task. |-| state | [TaskMetadata.State](#bytebase-v1-TaskMetadata-State) | | The state of the task. |-| condition | [string](#string) | | The condition of the task. |-| definition | [string](#string) | | The definition of the task. |+| patch | [PatchSubscription](#bytebase-v1-PatchSubscription) | | |+-<a name="bytebase-v1-UpdateDatabaseMetadataRequest"></a>-### UpdateDatabaseMetadataRequest+<a name="bytebase-v1-PlanType"></a>+### PlanType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The database metadata to update.+| Name | Number | Description |+| ---- | ------ | ----------- |+| PLAN_TYPE_UNSPECIFIED | 0 | |+| FREE | 1 | |+| TEAM | 2 | |+| ENTERPRISE | 3 | |-The database_metadata's `name` field is used to identify the database metadata to update. Format: instances/{instance}/databases/{database}/metadata |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+++<a name="bytebase-v1-SubscriptionService"></a>+### SubscriptionService-<a name="bytebase-v1-UpdateDatabaseRequest"></a>-### UpdateDatabaseRequest+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetSubscription | [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | |+| GetFeatureMatrix | [GetFeatureMatrixRequest](#bytebase-v1-GetFeatureMatrixRequest) | [FeatureMatrix](#bytebase-v1-FeatureMatrix) | |+| UpdateSubscription | [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | |++++++<a name="v1_setting_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/setting_service.proto++++<a name="bytebase-v1-AgentPluginSetting"></a>++### AgentPluginSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| database | [Database](#bytebase-v1-Database) | | The database to update.--The database's `name` field is used to identify the database to update. Format: instances/{instance}/databases/{database} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| url | [string](#string) | | The URL for the agent API. |+| token | [string](#string) | | The token for the agent. |-<a name="bytebase-v1-UpdateSecretRequest"></a>+<a name="bytebase-v1-Announcement"></a>-### UpdateSecretRequest+### Announcement| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| secret | [Secret](#bytebase-v1-Secret) | | The secret to be created or updated. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The mask of the fields to be updated. |-| allow_missing | [bool](#bool) | | If true, the secret will be created if it does not exist. |+| level | [Announcement.AlertLevel](#bytebase-v1-Announcement-AlertLevel) | | The alert level of announcemnt |+| text | [string](#string) | | The text of announcemnt |+| link | [string](#string) | | The optional link, user can follow the link to check extra details |-<a name="bytebase-v1-ViewConfig"></a>+<a name="bytebase-v1-AppIMSetting"></a>-### ViewConfig+### AppIMSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a view. |-| updater | [string](#string) | | The last updater of the view in branch. Format: users/{email} |-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the view is updated in branch. |+| slack | [AppIMSetting.Slack](#bytebase-v1-AppIMSetting-Slack) | | |+| feishu | [AppIMSetting.Feishu](#bytebase-v1-AppIMSetting-Feishu) | | |+| wecom | [AppIMSetting.Wecom](#bytebase-v1-AppIMSetting-Wecom) | | |-<a name="bytebase-v1-ViewMetadata"></a>+<a name="bytebase-v1-AppIMSetting-Feishu"></a>++### AppIMSetting.Feishu-### ViewMetadata-ViewMetadata is the metadata for views.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name is the name of a view. |-| definition | [string](#string) | | The definition is the definition of a view. |-| comment | [string](#string) | | The comment is the comment of a view. |-| dependent_columns | [DependentColumn](#bytebase-v1-DependentColumn) | repeated | The dependent_columns is the list of dependent columns of a view. |-| columns | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | repeated | The columns is the ordered list of columns in a table. |+| enabled | [bool](#bool) | | |+| app_id | [string](#string) | | |+| app_secret | [string](#string) | | |-+<a name="bytebase-v1-AppIMSetting-Slack"></a>-<a name="bytebase-v1-ChangeHistory-Source"></a>+### AppIMSetting.Slack-### ChangeHistory.Source-| Name | Number | Description |-| ---- | ------ | ----------- |-| SOURCE_UNSPECIFIED | 0 | |-| UI | 1 | |-| VCS | 2 | |-| LIBRARY | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| enabled | [bool](#bool) | | |+| token | [string](#string) | | |-<a name="bytebase-v1-ChangeHistory-Status"></a>-### ChangeHistory.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| DONE | 2 | |-| FAILED | 3 | |+<a name="bytebase-v1-AppIMSetting-Wecom"></a>+### AppIMSetting.Wecom-<a name="bytebase-v1-ChangeHistory-Type"></a>-### ChangeHistory.Type+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| enabled | [bool](#bool) | | |+| corp_id | [string](#string) | | |+| agent_id | [string](#string) | | |+| secret | [string](#string) | | |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| BASELINE | 1 | |-| MIGRATE | 2 | |-| MIGRATE_SDL | 3 | |-| MIGRATE_GHOST | 4 | |-| BRANCH | 5 | |-| DATA | 6 | |-<a name="bytebase-v1-ChangeHistoryView"></a>-### ChangeHistoryView+<a name="bytebase-v1-DataClassificationSetting"></a>+### DataClassificationSetting-| Name | Number | Description |-| ---- | ------ | ----------- |-| CHANGE_HISTORY_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| CHANGE_HISTORY_VIEW_BASIC | 1 | |-| CHANGE_HISTORY_VIEW_FULL | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| configs | [DataClassificationSetting.DataClassificationConfig](#bytebase-v1-DataClassificationSetting-DataClassificationConfig) | repeated | |-<a name="bytebase-v1-DatabaseMetadataView"></a>-### DatabaseMetadataView-| Name | Number | Description |-| ---- | ------ | ----------- |-| DATABASE_METADATA_VIEW_UNSPECIFIED | 0 | The default and unset value. The API will default to the BASIC view. |-| DATABASE_METADATA_VIEW_BASIC | 1 | Include basic information of schema object names such as schema, table, view, function names. |-| DATABASE_METADATA_VIEW_FULL | 2 | Include everything such as columns and column masking level. |+<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig"></a>-<a name="bytebase-v1-GenerationMetadata-Type"></a>+### DataClassificationSetting.DataClassificationConfig-### GenerationMetadata.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_VIRTUAL | 1 | |-| TYPE_STORED | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | id is the uuid for classification. Each project can chose one classification config. |+| title | [string](#string) | | |+| levels | [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level) | repeated | levels is user defined level list for classification. The order for the level decides its priority. |+| classification | [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry) | repeated | classification is the id - DataClassification map. The id should in [0-9]+-[0-9]+-[0-9]+ format. |+| classification_from_config | [bool](#bool) | | If true, we will only store the classification in the config. Otherwise we will get the classification from table/column comment, and write back to the schema metadata. |-<a name="bytebase-v1-StreamMetadata-Mode"></a>-### StreamMetadata.Mode-| Name | Number | Description |-| ---- | ------ | ----------- |-| MODE_UNSPECIFIED | 0 | |-| MODE_DEFAULT | 1 | |-| MODE_APPEND_ONLY | 2 | |-| MODE_INSERT_ONLY | 3 | |+<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry"></a>+### DataClassificationSetting.DataClassificationConfig.ClassificationEntry-<a name="bytebase-v1-StreamMetadata-Type"></a>-### StreamMetadata.Type+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification) | | |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_DELTA | 1 | |-<a name="bytebase-v1-TablePartitionMetadata-Type"></a>-### TablePartitionMetadata.Type-Type is the type of a table partition, some database engines may not support all types.-Only avilable for the following database engines now:-MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)-TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY-PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)+<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| RANGE | 1 | |-| RANGE_COLUMNS | 2 | |-| LIST | 3 | |-| LIST_COLUMNS | 4 | |-| HASH | 5 | |-| LINEAR_HASH | 6 | |-| KEY | 7 | |-| LINEAR_KEY | 8 | |+### DataClassificationSetting.DataClassificationConfig.DataClassification-<a name="bytebase-v1-TaskMetadata-State"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| level_id | [string](#string) | optional | |-### TaskMetadata.State-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATE_UNSPECIFIED | 0 | |-| STATE_STARTED | 1 | |-| STATE_SUSPENDED | 2 | |--+<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level"></a>++### DataClassificationSetting.DataClassificationConfig.Level++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| id | [string](#string) | | |+| title | [string](#string) | | |+| description | [string](#string) | | |-<a name="bytebase-v1-DatabaseService"></a>-### DatabaseService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetDatabase | [GetDatabaseRequest](#bytebase-v1-GetDatabaseRequest) | [Database](#bytebase-v1-Database) | |-| ListInstanceDatabases | [ListInstanceDatabasesRequest](#bytebase-v1-ListInstanceDatabasesRequest) | [ListInstanceDatabasesResponse](#bytebase-v1-ListInstanceDatabasesResponse) | |-| ListDatabases | [ListDatabasesRequest](#bytebase-v1-ListDatabasesRequest) | [ListDatabasesResponse](#bytebase-v1-ListDatabasesResponse) | |-| UpdateDatabase | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | [Database](#bytebase-v1-Database) | |-| BatchUpdateDatabases | [BatchUpdateDatabasesRequest](#bytebase-v1-BatchUpdateDatabasesRequest) | [BatchUpdateDatabasesResponse](#bytebase-v1-BatchUpdateDatabasesResponse) | |-| SyncDatabase | [SyncDatabaseRequest](#bytebase-v1-SyncDatabaseRequest) | [SyncDatabaseResponse](#bytebase-v1-SyncDatabaseResponse) | |-| GetDatabaseMetadata | [GetDatabaseMetadataRequest](#bytebase-v1-GetDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |-| UpdateDatabaseMetadata | [UpdateDatabaseMetadataRequest](#bytebase-v1-UpdateDatabaseMetadataRequest) | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | |-| GetDatabaseSchema | [GetDatabaseSchemaRequest](#bytebase-v1-GetDatabaseSchemaRequest) | [DatabaseSchema](#bytebase-v1-DatabaseSchema) | |-| DiffSchema | [DiffSchemaRequest](#bytebase-v1-DiffSchemaRequest) | [DiffSchemaResponse](#bytebase-v1-DiffSchemaResponse) | |-| ListSlowQueries | [ListSlowQueriesRequest](#bytebase-v1-ListSlowQueriesRequest) | [ListSlowQueriesResponse](#bytebase-v1-ListSlowQueriesResponse) | |-| ListSecrets | [ListSecretsRequest](#bytebase-v1-ListSecretsRequest) | [ListSecretsResponse](#bytebase-v1-ListSecretsResponse) | |-| UpdateSecret | [UpdateSecretRequest](#bytebase-v1-UpdateSecretRequest) | [Secret](#bytebase-v1-Secret) | |-| DeleteSecret | [DeleteSecretRequest](#bytebase-v1-DeleteSecretRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| AdviseIndex | [AdviseIndexRequest](#bytebase-v1-AdviseIndexRequest) | [AdviseIndexResponse](#bytebase-v1-AdviseIndexResponse) | |-| ListChangeHistories | [ListChangeHistoriesRequest](#bytebase-v1-ListChangeHistoriesRequest) | [ListChangeHistoriesResponse](#bytebase-v1-ListChangeHistoriesResponse) | |-| GetChangeHistory | [GetChangeHistoryRequest](#bytebase-v1-GetChangeHistoryRequest) | [ChangeHistory](#bytebase-v1-ChangeHistory) | |-+<a name="bytebase-v1-ExternalApprovalSetting"></a>+### ExternalApprovalSetting-<a name="v1_branch_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/branch_service.proto+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| nodes | [ExternalApprovalSetting.Node](#bytebase-v1-ExternalApprovalSetting-Node) | repeated | |+-<a name="bytebase-v1-Branch"></a>-### Branch++<a name="bytebase-v1-ExternalApprovalSetting-Node"></a>++### ExternalApprovalSetting.Node| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the branch. Format: projects/{project}/branches/{branch} {branch} should be the id of a sheet. |-| branch_id | [string](#string) | | The branch ID. |-| schema | [string](#string) | | The schema of branch. AKA sheet's statement. |-| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the current editing schema. |-| baseline_schema | [string](#string) | | The baseline schema. |-| baseline_schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the baseline schema. |-| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the branch. |-| baseline_database | [string](#string) | | The name of the baseline database. Format: instances/{instance}/databases/{database} |-| parent_branch | [string](#string) | | The name of the parent branch. For main branch, it's empty. For child branch, its format will be: projects/{project}/branches/{branch} |-| etag | [string](#string) | | The etag of the branch. |-| creator | [string](#string) | | The creator of the branch. Format: users/{email} |-| updater | [string](#string) | | The updater of the branch. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was created. |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was last updated. |-+| id | [string](#string) | | 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 | [string](#string) | | The title of the node. |+| endpoint | [string](#string) | | The external endpoint for the relay service, e.g. "http://hello:1234". |-<a name="bytebase-v1-CreateBranchRequest"></a>-### CreateBranchRequest+<a name="bytebase-v1-GetSettingRequest"></a>+### GetSettingRequest+The request message for getting a setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of branches. Format: project/{project} |-| branch | [Branch](#bytebase-v1-Branch) | | |-| branch_id | [string](#string) | | 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-_/]+. |-+| name | [string](#string) | | The resource name of the setting. |-<a name="bytebase-v1-DeleteBranchRequest"></a>-### DeleteBranchRequest+<a name="bytebase-v1-GetSettingResponse"></a>+### GetSettingResponse+The response message for getting a setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the branch to delete. Format: projects/{project}/branches/{branch} |-| force | [bool](#bool) | | 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. |+| setting | [Setting](#bytebase-v1-Setting) | | |-<a name="bytebase-v1-DiffDatabaseRequest"></a>+<a name="bytebase-v1-ListSettingsRequest"></a>-### DiffDatabaseRequest+### ListSettingsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of branch. |-| database | [string](#string) | | The name of the databsae to merge the branch to. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |-<a name="bytebase-v1-DiffDatabaseResponse"></a>-### DiffDatabaseResponse+<a name="bytebase-v1-ListSettingsResponse"></a>++### ListSettingsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| diff | [string](#string) | | The schema diff when merge occurs seamlessly. |-| schema | [string](#string) | | The merged schema if there is no conflict. |-| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |+| settings | [Setting](#bytebase-v1-Setting) | repeated | The settings from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-DiffMetadataRequest"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting"></a>-### DiffMetadataRequest+### MaskingAlgorithmSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| source_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the source schema. |-| target_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the target schema. |-| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema. |-| classification_from_config | [bool](#bool) | | If false, we will build the raw common by classification in database config. |+| algorithms | [MaskingAlgorithmSetting.Algorithm](#bytebase-v1-MaskingAlgorithmSetting-Algorithm) | repeated | algorithms is the list of masking algorithms. |-<a name="bytebase-v1-DiffMetadataResponse"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm"></a>-### DiffMetadataResponse+### MaskingAlgorithmSetting.Algorithm| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| diff | [string](#string) | | The diff of the metadata. |+| id | [string](#string) | | id is the uuid for masking algorithm. |+| title | [string](#string) | | title is the title for masking algorithm. |+| description | [string](#string) | | description is the description for masking algorithm. |+| category | [string](#string) | | Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH. The range of accepted Payload is decided by the category. MASK: FullMask, RangeMask HASH: MD5Mask |+| full_mask | [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask) | | |+| range_mask | [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask) | | |+| md5_mask | [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask) | | |+| inner_outer_mask | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask) | | |-<a name="bytebase-v1-GetBranchRequest"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask"></a>-### GetBranchRequest+### MaskingAlgorithmSetting.Algorithm.FullMask| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the branch to retrieve. Format: projects/{project}/branches/{branch} |+| substitution | [string](#string) | | substitution is the string used to replace the original value, the max length of the string is 16 bytes. |-<a name="bytebase-v1-ListBranchesRequest"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask"></a>-### ListBranchesRequest+### MaskingAlgorithmSetting.Algorithm.InnerOuterMask| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource of the branch. Format: projects/{project} |-| filter | [string](#string) | | To filter the search result. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| view | [BranchView](#bytebase-v1-BranchView) | | |+| prefix_len | [int32](#int32) | | |+| suffix_len | [int32](#int32) | | |+| type | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType) | | |+| substitution | [string](#string) | | |-<a name="bytebase-v1-ListBranchesResponse"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask"></a>-### ListBranchesResponse+### MaskingAlgorithmSetting.Algorithm.MD5Mask| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| branches | [Branch](#bytebase-v1-Branch) | repeated | The branches from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| salt | [string](#string) | | salt is the salt value to generate a different hash that with the word alone. |-<a name="bytebase-v1-MergeBranchRequest"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask"></a>-### MergeBranchRequest+### MaskingAlgorithmSetting.Algorithm.RangeMask| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |-| head_branch | [string](#string) | | The head branch to merge from. Format: projects/{project}/branches/{branch} |-| etag | [string](#string) | | 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. |-| validate_only | [bool](#bool) | | validate_only determines if the merge can occur seamlessly without any conflicts. |+| slices | [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice) | repeated | 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. |-<a name="bytebase-v1-RebaseBranchRequest"></a>+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice"></a>-### RebaseBranchRequest+### MaskingAlgorithmSetting.Algorithm.RangeMask.Slice| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |-| source_database | [string](#string) | | 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} |-| source_branch | [string](#string) | | 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} |-| merged_schema | [string](#string) | | 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. |-| etag | [string](#string) | | 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. |-| validate_only | [bool](#bool) | | validate_only determines if the rebase can occur seamlessly without any conflicts. |+| start | [int32](#int32) | | start is the start index of the original value, start from 0 and should be less than stop. |+| end | [int32](#int32) | | stop is the stop index of the original value, should be less than the length of the original value. |+| substitution | [string](#string) | | substitution is the string used to replace the OriginalValue[start:end). |-<a name="bytebase-v1-RebaseBranchResponse"></a>+<a name="bytebase-v1-MaximumSQLResultSizeSetting"></a>-### RebaseBranchResponse+### MaximumSQLResultSizeSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| branch | [Branch](#bytebase-v1-Branch) | | The rebased branch when rebase occurs seamlessly. |-| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |+| limit | [int64](#int64) | | The limit is in bytes. The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. |-<a name="bytebase-v1-UpdateBranchRequest"></a>+<a name="bytebase-v1-PasswordRestrictionSetting"></a>-### UpdateBranchRequest+### PasswordRestrictionSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| branch | [Branch](#bytebase-v1-Branch) | | The branch to update.--The branch's `name` field is used to identify the branch to update. Format: projects/{project}/branches/{branch} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| etag | [string](#string) | | 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. |+| min_length | [int32](#int32) | | min_length is the minimum length for password, should no less than 8. |+| require_number | [bool](#bool) | | require_number requires the password must contains at least one number. |+| require_letter | [bool](#bool) | | require_letter requires the password must contains at least one letter, regardless of upper case or lower case |+| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one upper case letter. |+| require_special_character | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one special character. |+| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |+| password_rotation | [google.protobuf.Duration](#google-protobuf-Duration) | | password_rotation requires users to reset their password after the duration. |-+<a name="bytebase-v1-SCIMSetting"></a>-<a name="bytebase-v1-BranchView"></a>+### SCIMSetting-### BranchView-| Name | Number | Description |-| ---- | ------ | ----------- |-| BRANCH_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| BRANCH_VIEW_BASIC | 1 | Exclude schema, baseline_schema. |-| BRANCH_VIEW_FULL | 2 | Include everything. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| token | [string](#string) | | |---<a name="bytebase-v1-BranchService"></a>-### BranchService+<a name="bytebase-v1-SMTPMailDeliverySettingValue"></a>+### SMTPMailDeliverySettingValue-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetBranch | [GetBranchRequest](#bytebase-v1-GetBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| ListBranches | [ListBranchesRequest](#bytebase-v1-ListBranchesRequest) | [ListBranchesResponse](#bytebase-v1-ListBranchesResponse) | |-| CreateBranch | [CreateBranchRequest](#bytebase-v1-CreateBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| UpdateBranch | [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| MergeBranch | [MergeBranchRequest](#bytebase-v1-MergeBranchRequest) | [Branch](#bytebase-v1-Branch) | |-| RebaseBranch | [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest) | [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse) | |-| DeleteBranch | [DeleteBranchRequest](#bytebase-v1-DeleteBranchRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| DiffMetadata | [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest) | [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| server | [string](#string) | | The SMTP server address. |+| port | [int32](#int32) | | The SMTP server port. |+| encryption | [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption) | | The SMTP server encryption. |+| ca | [string](#string) | optional | The CA, KEY, and CERT for the SMTP server. Not used. |+| key | [string](#string) | optional | |+| cert | [string](#string) | optional | |+| authentication | [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication) | | |+| username | [string](#string) | | |+| password | [string](#string) | optional | If not specified, server will use the existed password. |+| from | [string](#string) | | The sender email address. |+| to | [string](#string) | | The recipient email address, used with validate_only to send test email. |-<a name="v1_cel_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/cel_service.proto-<a name="bytebase-v1-BatchDeparseRequest"></a>+<a name="bytebase-v1-SchemaTemplateSetting"></a>-### BatchDeparseRequest+### SchemaTemplateSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |+| field_templates | [SchemaTemplateSetting.FieldTemplate](#bytebase-v1-SchemaTemplateSetting-FieldTemplate) | repeated | |+| column_types | [SchemaTemplateSetting.ColumnType](#bytebase-v1-SchemaTemplateSetting-ColumnType) | repeated | |+| table_templates | [SchemaTemplateSetting.TableTemplate](#bytebase-v1-SchemaTemplateSetting-TableTemplate) | repeated | |-<a name="bytebase-v1-BatchDeparseResponse"></a>+<a name="bytebase-v1-SchemaTemplateSetting-ColumnType"></a>-### BatchDeparseResponse+### SchemaTemplateSetting.ColumnType| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [string](#string) | repeated | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| enabled | [bool](#bool) | | |+| types | [string](#string) | repeated | |-<a name="bytebase-v1-BatchParseRequest"></a>+<a name="bytebase-v1-SchemaTemplateSetting-FieldTemplate"></a>-### BatchParseRequest+### SchemaTemplateSetting.FieldTemplate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [string](#string) | repeated | |+| id | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| category | [string](#string) | | |+| column | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | | |+| config | [ColumnConfig](#bytebase-v1-ColumnConfig) | | |-<a name="bytebase-v1-BatchParseResponse"></a>+<a name="bytebase-v1-SchemaTemplateSetting-TableTemplate"></a>-### BatchParseResponse+### SchemaTemplateSetting.TableTemplate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |----+| id | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| category | [string](#string) | | |+| table | [TableMetadata](#bytebase-v1-TableMetadata) | | |+| config | [TableConfig](#bytebase-v1-TableConfig) | | |----<a name="bytebase-v1-CelService"></a>-### CelService+<a name="bytebase-v1-SemanticTypeSetting"></a>+### SemanticTypeSetting-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| BatchParse | [BatchParseRequest](#bytebase-v1-BatchParseRequest) | [BatchParseResponse](#bytebase-v1-BatchParseResponse) | |-| BatchDeparse | [BatchDeparseRequest](#bytebase-v1-BatchDeparseRequest) | [BatchDeparseResponse](#bytebase-v1-BatchDeparseResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| types | [SemanticTypeSetting.SemanticType](#bytebase-v1-SemanticTypeSetting-SemanticType) | repeated | |-<a name="v1_changelist_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/changelist_service.proto-<a name="bytebase-v1-Changelist"></a>+<a name="bytebase-v1-SemanticTypeSetting-SemanticType"></a>-### Changelist+### SemanticTypeSetting.SemanticType| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the changelist resource. Canonical parent is project. Format: projects/{project}/changelists/{changelist} |-| description | [string](#string) | | |-| creator | [string](#string) | | The creator of the changelist. Format: users/{email} |-| updater | [string](#string) | | The updater of the changelist. Format: users/{email} |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the changelist. |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the changelist. |-| changes | [Changelist.Change](#bytebase-v1-Changelist-Change) | repeated | |-+| id | [string](#string) | | id is the uuid for semantic type. |+| title | [string](#string) | | the title of the semantic type, it should not be empty. |+| description | [string](#string) | | the description of the semantic type, it can be empty. |+| partial_mask_algorithm_id | [string](#string) | | the partial mask algorithm id for the semantic type, if it is empty, should use the default partial mask algorithm. |+| full_mask_algorithm_id | [string](#string) | | the full mask algorithm id for the semantic type, if it is empty, should use the default full mask algorithm. |-<a name="bytebase-v1-Changelist-Change"></a>-### Changelist.Change+<a name="bytebase-v1-Setting"></a>+### Setting+The schema of setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [string](#string) | | The name of a sheet. |-| source | [string](#string) | | 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 | [string](#string) | | The migration version for a change. |+| name | [string](#string) | | The resource name of the setting. Must be one of the following forms:+- `setting/{setting}` For example, "settings/bb.branding.logo" |+| value | [Value](#bytebase-v1-Value) | | The value of the setting. |-<a name="bytebase-v1-CreateChangelistRequest"></a>-### CreateChangelistRequest+<a name="bytebase-v1-UpdateSettingRequest"></a>+### UpdateSettingRequest+The request message for updating or creating a setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this changelist will be created. Format: projects/{project} |-| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to create. |-| changelist_id | [string](#string) | | 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]-/. |-+| setting | [Setting](#bytebase-v1-Setting) | | The setting to update. |+| validate_only | [bool](#bool) | | validate_only is a flag to indicate whether to validate the setting value, server would not persist the setting value if it is true. |+| allow_missing | [bool](#bool) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |-<a name="bytebase-v1-DeleteChangelistRequest"></a>-### DeleteChangelistRequest+<a name="bytebase-v1-Value"></a>+### Value+The data in setting value.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the changelist to delete. Format: projects/{project}/changelists/{changelist} |+| string_value | [string](#string) | | Defines this value as being a string value. |+| smtp_mail_delivery_setting_value | [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue) | | |+| app_im_setting_value | [AppIMSetting](#bytebase-v1-AppIMSetting) | | |+| agent_plugin_setting_value | [AgentPluginSetting](#bytebase-v1-AgentPluginSetting) | | |+| workspace_profile_setting_value | [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting) | | |+| workspace_approval_setting_value | [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting) | | |+| workspace_trial_setting_value | [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting) | | |+| external_approval_setting_value | [ExternalApprovalSetting](#bytebase-v1-ExternalApprovalSetting) | | |+| schema_template_setting_value | [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting) | | |+| data_classification_setting_value | [DataClassificationSetting](#bytebase-v1-DataClassificationSetting) | | |+| semantic_type_setting_value | [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting) | | |+| masking_algorithm_setting_value | [MaskingAlgorithmSetting](#bytebase-v1-MaskingAlgorithmSetting) | | |+| maximum_sql_result_size_setting | [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting) | | |+| scim_setting | [SCIMSetting](#bytebase-v1-SCIMSetting) | | |+| password_restriction_setting | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | |-<a name="bytebase-v1-GetChangelistRequest"></a>+<a name="bytebase-v1-WorkspaceApprovalSetting"></a>-### GetChangelistRequest+### WorkspaceApprovalSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the changelist to retrieve. Format: projects/{project}/changelists/{changelist} |+| rules | [WorkspaceApprovalSetting.Rule](#bytebase-v1-WorkspaceApprovalSetting-Rule) | repeated | |-<a name="bytebase-v1-ListChangelistsRequest"></a>+<a name="bytebase-v1-WorkspaceApprovalSetting-Rule"></a>-### ListChangelistsRequest+### WorkspaceApprovalSetting.Rule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of changelists. Format: projects/{project} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+| template | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | | |+| condition | [google.type.Expr](#google-type-Expr) | | |-<a name="bytebase-v1-ListChangelistsResponse"></a>+<a name="bytebase-v1-WorkspaceProfileSetting"></a>-### ListChangelistsResponse+### WorkspaceProfileSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| changelists | [Changelist](#bytebase-v1-Changelist) | repeated | The changelists from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| external_url | [string](#string) | | 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. |+| disallow_signup | [bool](#bool) | | Disallow self-service signup, users can only be invited by the owner. |+| require_2fa | [bool](#bool) | | Require 2FA for all users. |+| outbound_ip_list | [string](#string) | repeated | outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. |+| gitops_webhook_url | [string](#string) | | The webhook URL for the GitOps workflow. |+| token_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | The duration for token. |+| announcement | [Announcement](#bytebase-v1-Announcement) | | The setting of custom announcement |+| maximum_role_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max duration for role expired. |+| domains | [string](#string) | repeated | The workspace domain, e.g. bytebase.com. |+| enforce_identity_domain | [bool](#bool) | | Only user and group from the domains can be created and login. |+| database_change_mode | [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode) | | The workspace database change mode. |+| disallow_password_signin | [bool](#bool) | | Whether to disallow password signin. (Except workspace admins) |-<a name="bytebase-v1-UpdateChangelistRequest"></a>-### UpdateChangelistRequest+<a name="bytebase-v1-WorkspaceTrialSetting"></a>++### WorkspaceTrialSetting| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to update.--The changelist's `name` field is used to identify the changelist to update. Format: projects/{project}/changelists/{changelist} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |--+| instance_count | [int32](#int32) | | |+| expire_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| issued_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| subject | [string](#string) | | |+| org_name | [string](#string) | | |+| plan | [PlanType](#bytebase-v1-PlanType) | | |---<a name="bytebase-v1-ChangelistService"></a>--### ChangelistService---| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| CreateChangelist | [CreateChangelistRequest](#bytebase-v1-CreateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |-| GetChangelist | [GetChangelistRequest](#bytebase-v1-GetChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |-| ListChangelists | [ListChangelistsRequest](#bytebase-v1-ListChangelistsRequest) | [ListChangelistsResponse](#bytebase-v1-ListChangelistsResponse) | |-| UpdateChangelist | [UpdateChangelistRequest](#bytebase-v1-UpdateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |-| DeleteChangelist | [DeleteChangelistRequest](#bytebase-v1-DeleteChangelistRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+<a name="bytebase-v1-Announcement-AlertLevel"></a>-+### Announcement.AlertLevel+We support three levels of AlertLevel: INFO, WARNING, and ERROR.+| Name | Number | Description |+| ---- | ------ | ----------- |+| ALERT_LEVEL_UNSPECIFIED | 0 | |+| ALERT_LEVEL_INFO | 1 | |+| ALERT_LEVEL_WARNING | 2 | |+| ALERT_LEVEL_CRITICAL | 3 | |-<a name="v1_database_group_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/database_group_service.proto+<a name="bytebase-v1-DatabaseChangeMode"></a>+### DatabaseChangeMode-<a name="bytebase-v1-CreateDatabaseGroupRequest"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| DATABASE_CHANGE_MODE_UNSPECIFIED | 0 | |+| PIPELINE | 1 | A more advanced database change process, including custom approval workflows and other advanced features. Default to this mode. |+| EDITOR | 2 | A simple database change process in SQL editor. Users can execute SQL directly. |-### CreateDatabaseGroupRequest+<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource where this database group will be created. Format: projects/{project} |-| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to create. |-| database_group_id | [string](#string) | | The ID to use for the database group, which will become the final component of the database group's resource name.+### MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType-This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-| validate_only | [bool](#bool) | | If set, validate the create request and preview the full database group response, but do not actually create it. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| MASK_TYPE_UNSPECIFIED | 0 | |+| INNER | 1 | |+| OUTER | 2 | |+<a name="bytebase-v1-SMTPMailDeliverySettingValue-Authentication"></a>+### SMTPMailDeliverySettingValue.Authentication+We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.-<a name="bytebase-v1-DatabaseGroup"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| AUTHENTICATION_UNSPECIFIED | 0 | |+| AUTHENTICATION_NONE | 1 | |+| AUTHENTICATION_PLAIN | 2 | |+| AUTHENTICATION_LOGIN | 3 | |+| AUTHENTICATION_CRAM_MD5 | 4 | |-### DatabaseGroup+<a name="bytebase-v1-SMTPMailDeliverySettingValue-Encryption"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group. Format: projects/{project}/databaseGroups/{databaseGroup} |-| database_placeholder | [string](#string) | | The short name used in actual databases specified by users. For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". |-| database_expr | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this database group. |-| matched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |-| unmatched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |-| multitenancy | [bool](#bool) | | |+### SMTPMailDeliverySettingValue.Encryption+We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.+| Name | Number | Description |+| ---- | ------ | ----------- |+| ENCRYPTION_UNSPECIFIED | 0 | |+| ENCRYPTION_NONE | 1 | |+| ENCRYPTION_STARTTLS | 2 | |+| ENCRYPTION_SSL_TLS | 3 | |++-<a name="bytebase-v1-DatabaseGroup-Database"></a>+<a name="bytebase-v1-SettingService"></a>-### DatabaseGroup.Database+### SettingService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListSettings | [ListSettingsRequest](#bytebase-v1-ListSettingsRequest) | [ListSettingsResponse](#bytebase-v1-ListSettingsResponse) | |+| GetSetting | [GetSettingRequest](#bytebase-v1-GetSettingRequest) | [Setting](#bytebase-v1-Setting) | |+| UpdateSetting | [UpdateSettingRequest](#bytebase-v1-UpdateSettingRequest) | [Setting](#bytebase-v1-Setting) | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |++<a name="v1_actuator_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/actuator_service.proto-<a name="bytebase-v1-DeleteDatabaseGroupRequest"></a>-### DeleteDatabaseGroupRequest+<a name="bytebase-v1-ActuatorInfo"></a>+### ActuatorInfo+ServerInfo is the API message for server info.+Actuator concept is similar to the Spring Boot Actuator.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group to delete. Format: projects/{project}/databaseGroups/{databaseGroup} |+| version | [string](#string) | | version is the bytebase's server version |+| git_commit | [string](#string) | | git_commit is the git commit hash of the build |+| readonly | [bool](#bool) | | readonly flag means if the Bytebase is running in readonly mode. |+| saas | [bool](#bool) | | saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users. |+| demo_name | [string](#string) | | demo_name specifies the demo name, empty string means no demo. |+| host | [string](#string) | | host is the Bytebase instance host. |+| port | [string](#string) | | port is the Bytebase instance port. |+| external_url | [string](#string) | | external_url is the URL where user or webhook callback visits Bytebase. |+| need_admin_setup | [bool](#bool) | | need_admin_setup flag means the Bytebase instance doesn't have any end users. |+| disallow_signup | [bool](#bool) | | disallow_signup is the flag to disable self-service signup. |+| last_active_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value. |+| require_2fa | [bool](#bool) | | require_2fa is the flag to require 2FA for all users. |+| workspace_id | [string](#string) | | workspace_id is the identifier for the workspace. |+| gitops_webhook_url | [string](#string) | | gitops_webhook_url is the webhook URL for GitOps. |+| debug | [bool](#bool) | | debug flag means if the debug mode is enabled. |+| lsp | [bool](#bool) | | lsp is the enablement of lsp in SQL Editor. |+| pre_update_backup | [bool](#bool) | | pre_update_backup is the enablement of data backup prior to data update. |+| iam_guard | [bool](#bool) | | iam_guard is the enablement of IAM checks. |+| unlicensed_features | [string](#string) | repeated | |+| disallow_password_signin | [bool](#bool) | | disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins) |+| password_restriction | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | |-<a name="bytebase-v1-GetDatabaseGroupRequest"></a>+<a name="bytebase-v1-DeleteCacheRequest"></a>-### GetDatabaseGroupRequest+### DeleteCacheRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup} |-| view | [DatabaseGroupView](#bytebase-v1-DatabaseGroupView) | | The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. |+<a name="bytebase-v1-GetActuatorInfoRequest"></a>+### GetActuatorInfoRequest-<a name="bytebase-v1-ListDatabaseGroupsRequest"></a>-### ListDatabaseGroupsRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent resource whose database groups are to be listed. Format: projects/{project} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+<a name="bytebase-v1-GetResourcePackageRequest"></a>++### GetResourcePackageRequest+The request message for getting the theme resource.-<a name="bytebase-v1-ListDatabaseGroupsResponse"></a>-### ListDatabaseGroupsResponse+<a name="bytebase-v1-ResourcePackage"></a>+### ResourcePackage+The theme resources.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| database_groups | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | repeated | database_groups is the list of database groups. |-| next_page_token | [string](#string) | | 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. |+| logo | [bytes](#bytes) | | The branding logo. |-<a name="bytebase-v1-UpdateDatabaseGroupRequest"></a>+<a name="bytebase-v1-UpdateActuatorInfoRequest"></a>-### UpdateDatabaseGroupRequest+### UpdateActuatorInfoRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to update.--The database group's `name` field is used to identify the database group to update. Format: projects/{project}/databaseGroups/{databaseGroup} |+| actuator | [ActuatorInfo](#bytebase-v1-ActuatorInfo) | | The actuator to update. || update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |@@ -4567,177 +4789,136 @@ The database group's `name` field is used to identify the database group to--<a name="bytebase-v1-DatabaseGroupView"></a>--### DatabaseGroupView---| Name | Number | Description |-| ---- | ------ | ----------- |-| DATABASE_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |-| DATABASE_GROUP_VIEW_BASIC | 1 | Include basic information about the database group, but exclude the list of matched databases and unmatched databases. |-| DATABASE_GROUP_VIEW_FULL | 2 | Include everything. |---<a name="bytebase-v1-DatabaseGroupService"></a>+<a name="bytebase-v1-ActuatorService"></a>-### DatabaseGroupService+### ActuatorService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| ListDatabaseGroups | [ListDatabaseGroupsRequest](#bytebase-v1-ListDatabaseGroupsRequest) | [ListDatabaseGroupsResponse](#bytebase-v1-ListDatabaseGroupsResponse) | |-| GetDatabaseGroup | [GetDatabaseGroupRequest](#bytebase-v1-GetDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |-| CreateDatabaseGroup | [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |-| UpdateDatabaseGroup | [UpdateDatabaseGroupRequest](#bytebase-v1-UpdateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |-| DeleteDatabaseGroup | [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| GetActuatorInfo | [GetActuatorInfoRequest](#bytebase-v1-GetActuatorInfoRequest) | [ActuatorInfo](#bytebase-v1-ActuatorInfo) | |+| UpdateActuatorInfo | [UpdateActuatorInfoRequest](#bytebase-v1-UpdateActuatorInfoRequest) | [ActuatorInfo](#bytebase-v1-ActuatorInfo) | |+| DeleteCache | [DeleteCacheRequest](#bytebase-v1-DeleteCacheRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| GetResourcePackage | [GetResourcePackageRequest](#bytebase-v1-GetResourcePackageRequest) | [ResourcePackage](#bytebase-v1-ResourcePackage) | |-<a name="v1_environment_service-proto"></a>+<a name="v1_anomaly_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/environment_service.proto----<a name="bytebase-v1-CreateEnvironmentRequest"></a>--### CreateEnvironmentRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| environment | [Environment](#bytebase-v1-Environment) | | The environment to create. |-| environment_id | [string](#string) | | 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]-/. |---+## v1/anomaly_service.proto-<a name="bytebase-v1-DeleteEnvironmentRequest"></a>+<a name="bytebase-v1-Anomaly"></a>-### DeleteEnvironmentRequest+### Anomaly| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment to delete. Format: environments/{environment} |+| resource | [string](#string) | | The resource that is the target of the operation. Format: - Instance: instnaces/{instance} - Database: instnaces/{instance}/databases/{database} |+| type | [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType) | | type is the type of the anomaly. |+| severity | [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity) | | severity is the severity of the anomaly. |+| instance_connection_detail | [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail) | | |+| database_connection_detail | [Anomaly.DatabaseConnectionDetail](#bytebase-v1-Anomaly-DatabaseConnectionDetail) | | |+| database_schema_drift_detail | [Anomaly.DatabaseSchemaDriftDetail](#bytebase-v1-Anomaly-DatabaseSchemaDriftDetail) | | |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-Environment"></a>+<a name="bytebase-v1-Anomaly-DatabaseConnectionDetail"></a>-### Environment+### Anomaly.DatabaseConnectionDetail+Database level anomaly detial.+DatbaaseConnectionDetail is the detail for database connection anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment. Format: environments/{environment} |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| order | [int32](#int32) | | |-| tier | [EnvironmentTier](#bytebase-v1-EnvironmentTier) | | |-+| detail | [string](#string) | | detail is the detail of the database connection failure. |-<a name="bytebase-v1-GetEnvironmentRequest"></a>-### GetEnvironmentRequest+<a name="bytebase-v1-Anomaly-DatabaseSchemaDriftDetail"></a>+### Anomaly.DatabaseSchemaDriftDetail+DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the environment to retrieve. Format: environments/{environment} |+| record_version | [string](#string) | | record_version is the record version of the database schema drift. |+| expected_schema | [string](#string) | | expected_schema is the expected schema in the database. |+| actual_schema | [string](#string) | | actual_schema is the actual schema in the database. |-<a name="bytebase-v1-ListEnvironmentsRequest"></a>+<a name="bytebase-v1-Anomaly-InstanceConnectionDetail"></a>-### ListEnvironmentsRequest+### Anomaly.InstanceConnectionDetail+Instance level anomaly detail.+InstanceConnectionDetail is the detail for instance connection anomaly.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| show_deleted | [bool](#bool) | | Show deleted environments if specified. |+| detail | [string](#string) | | detail is the detail of the instance connection failure. |-<a name="bytebase-v1-ListEnvironmentsResponse"></a>+<a name="bytebase-v1-SearchAnomaliesRequest"></a>-### ListEnvironmentsResponse+### SearchAnomaliesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| environments | [Environment](#bytebase-v1-Environment) | repeated | The environments from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-------<a name="bytebase-v1-UndeleteEnvironmentRequest"></a>--### UndeleteEnvironmentRequest--+| filter | [string](#string) | | 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".' |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | Not used. A page token, received from a previous `SearchAnomalies` call. Provide this to retrieve the subsequent page.-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted environment. Format: environments/{environment} |+When paginating, all other parameters provided to `SearchAnomalies` must match the call that provided the page token. |-<a name="bytebase-v1-UpdateEnvironmentRequest"></a>+<a name="bytebase-v1-SearchAnomaliesResponse"></a>-### UpdateEnvironmentRequest+### SearchAnomaliesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| environment | [Environment](#bytebase-v1-Environment) | | The environment to update.--The environment's `name` field is used to identify the environment to update. Format: environments/{environment} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| anomalies | [Anomaly](#bytebase-v1-Anomaly) | repeated | anomalies is the list of anomalies. |+| next_page_token | [string](#string) | | 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. |@@ -4746,178 +4927,157 @@ The environment's `name` field is used to identify the environment to update-<a name="bytebase-v1-EnvironmentTier"></a>--### EnvironmentTier+<a name="bytebase-v1-Anomaly-AnomalySeverity"></a>+### Anomaly.AnomalySeverity+AnomalySeverity is the severity of the anomaly.| Name | Number | Description || ---- | ------ | ----------- |-| ENVIRONMENT_TIER_UNSPECIFIED | 0 | |-| PROTECTED | 1 | |-| UNPROTECTED | 2 | |+| ANOMALY_SEVERITY_UNSPECIFIED | 0 | Unspecified anomaly severity. |+| MEDIUM | 1 | MEDIUM is the info level anomaly severity. |+| HIGH | 2 | HIGH is the warning level anomaly severity. |+| CRITICAL | 3 | CRITICAL is the critical level anomaly severity. |--+<a name="bytebase-v1-Anomaly-AnomalyType"></a>+### Anomaly.AnomalyType+AnomalyType is the type of the anomaly.-<a name="bytebase-v1-EnvironmentService"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| ANOMALY_TYPE_UNSPECIFIED | 0 | Unspecified anomaly type. |+| INSTANCE_CONNECTION | 1 | Instance level anomaly.-### EnvironmentService+INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down. |+| MIGRATION_SCHEMA | 2 | MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing. |+| DATABASE_CONNECTION | 5 | Database level anomaly.+DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted. |+| DATABASE_SCHEMA_DRIFT | 6 | DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift, e.g. the database schema had been changed without bytebase migration. |-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetEnvironment | [GetEnvironmentRequest](#bytebase-v1-GetEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| ListEnvironments | [ListEnvironmentsRequest](#bytebase-v1-ListEnvironmentsRequest) | [ListEnvironmentsResponse](#bytebase-v1-ListEnvironmentsResponse) | |-| CreateEnvironment | [CreateEnvironmentRequest](#bytebase-v1-CreateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| UpdateEnvironment | [UpdateEnvironmentRequest](#bytebase-v1-UpdateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| DeleteEnvironment | [DeleteEnvironmentRequest](#bytebase-v1-DeleteEnvironmentRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteEnvironment | [UndeleteEnvironmentRequest](#bytebase-v1-UndeleteEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+-<a name="v1_group-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## v1/group.proto----<a name="bytebase-v1-CreateGroupRequest"></a>--### CreateGroupRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| group | [Group](#bytebase-v1-Group) | | The group to create. |-----+<a name="bytebase-v1-AnomalyService"></a>-<a name="bytebase-v1-DeleteGroupRequest"></a>+### AnomalyService-### DeleteGroupRequest+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| SearchAnomalies | [SearchAnomaliesRequest](#bytebase-v1-SearchAnomaliesRequest) | [SearchAnomaliesResponse](#bytebase-v1-SearchAnomaliesResponse) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the group to delete. Format: groups/{email} |+<a name="v1_iam_policy-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/iam_policy.proto-<a name="bytebase-v1-GetGroupRequest"></a>+<a name="bytebase-v1-Binding"></a>-### GetGroupRequest+### Binding| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the group to retrieve. Format: groups/{email} |-+| role | [string](#string) | | The role that is assigned to the members. Format: roles/{role} |+| members | [string](#string) | repeated | Specifies the principals requesting access for a Bytebase resource. For users, the member should be: user:{email} For groups, the member should be: group:{email} |+| condition | [google.type.Expr](#google-type-Expr) | | 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. |+| parsed_expr | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | | The parsed expression of the condition. |-<a name="bytebase-v1-Group"></a>-### Group+<a name="bytebase-v1-BindingDelta"></a>+### BindingDelta+One delta entry for Binding. Each individual change (only one member in each+entry) to a binding will be a separate entry.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the group to retrieve. Format: groups/{group}, group is an email. |-| title | [string](#string) | | |-| description | [string](#string) | | |-| creator | [string](#string) | | The name for the creator. Format: users/[email protected] |-| members | [GroupMember](#bytebase-v1-GroupMember) | repeated | |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the group was created. |-| source | [string](#string) | | source means where the group comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. |+| action | [BindingDelta.Action](#bytebase-v1-BindingDelta-Action) | | The action that was performed on a Binding. |+| role | [string](#string) | | Role that is assigned to `members`. For example, `roles/projectOwner`. |+| member | [string](#string) | | Follows the same format of Binding.members. |+| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this binding. |-<a name="bytebase-v1-GroupMember"></a>+<a name="bytebase-v1-GetIamPolicyRequest"></a>-### GroupMember+### GetIamPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| member | [string](#string) | | Member is the principal who belong to this group.--Format: users/[email protected] |-| role | [GroupMember.Role](#bytebase-v1-GroupMember-Role) | | |+| resource | [string](#string) | | The name of the resource to get the IAM policy. Format: projects/{project} Format: workspaces/{workspace} |-<a name="bytebase-v1-ListGroupsRequest"></a>+<a name="bytebase-v1-IamPolicy"></a>-### ListGroupsRequest+### IamPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of groups to return. The service may return fewer than this value. If unspecified, at most 50 groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `ListGroups` call. Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListGroups` must match the call that provided the page token. |-+| bindings | [Binding](#bytebase-v1-Binding) | repeated | Collection of binding. A binding binds one or more project members to a single project role. |+| etag | [string](#string) | | The current etag of the policy. If an etag is provided and does not match the current etag of the poliy, the call will be blocked and an ABORTED error will be returned. |-<a name="bytebase-v1-ListGroupsResponse"></a>-### ListGroupsResponse+<a name="bytebase-v1-PolicyDelta"></a>+### PolicyDelta+The difference delta between two policies.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| groups | [Group](#bytebase-v1-Group) | repeated | The groups from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| binding_deltas | [BindingDelta](#bytebase-v1-BindingDelta) | repeated | The delta for Bindings between two policies. |-<a name="bytebase-v1-UpdateGroupRequest"></a>+<a name="bytebase-v1-SetIamPolicyRequest"></a>-### UpdateGroupRequest+### SetIamPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| group | [Group](#bytebase-v1-Group) | | The group to update.--The group's `name` field is used to identify the group to update. Format: groups/{email} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| resource | [string](#string) | | The name of the resource to set the IAM policy. Format: projects/{project} Format: workspaces/{workspace} |+| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |+| etag | [string](#string) | | The current etag of the policy. |@@ -4926,3007 +5086,2887 @@ The group's `name` field is used to identify the group to update. Format: gr-<a name="bytebase-v1-GroupMember-Role"></a>--### GroupMember.Role+<a name="bytebase-v1-BindingDelta-Action"></a>+### BindingDelta.Action+The type of action performed on a Binding in a policy.| Name | Number | Description || ---- | ------ | ----------- |-| ROLE_UNSPECIFIED | 0 | |-| OWNER | 1 | |-| MEMBER | 2 | |+| ACTION_UNSPECIFIED | 0 | |+| ADD | 1 | |+| REMOVE | 2 | |--<a name="bytebase-v1-GroupService"></a>--### GroupService---| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetGroup | [GetGroupRequest](#bytebase-v1-GetGroupRequest) | [Group](#bytebase-v1-Group) | |-| ListGroups | [ListGroupsRequest](#bytebase-v1-ListGroupsRequest) | [ListGroupsResponse](#bytebase-v1-ListGroupsResponse) | |-| CreateGroup | [CreateGroupRequest](#bytebase-v1-CreateGroupRequest) | [Group](#bytebase-v1-Group) | |-| UpdateGroup | [UpdateGroupRequest](#bytebase-v1-UpdateGroupRequest) | [Group](#bytebase-v1-Group) | UpdateGroup updates the group. Users with "bb.groups.update" permission on the workspace or the group owner can access this method. |-| DeleteGroup | [DeleteGroupRequest](#bytebase-v1-DeleteGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |--<a name="v1_idp_service-proto"></a>+<a name="v1_audit_log_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/idp_service.proto+## v1/audit_log_service.proto-<a name="bytebase-v1-CreateIdentityProviderRequest"></a>+<a name="bytebase-v1-AuditData"></a>-### CreateIdentityProviderRequest+### AuditData| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to create. |-| identity_provider_id | [string](#string) | | 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]-/. |+| policy_delta | [PolicyDelta](#bytebase-v1-PolicyDelta) | | |-<a name="bytebase-v1-DeleteIdentityProviderRequest"></a>+<a name="bytebase-v1-AuditLog"></a>-### DeleteIdentityProviderRequest+### AuditLog| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the identity provider to delete. Format: idps/{identity_provider} |+| name | [string](#string) | | The name of the log. Formats: - projects/{project}/auditLogs/{uid} - workspaces/{workspace}/auditLogs/{uid} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| user | [string](#string) | | Format: users/[email protected] |+| method | [string](#string) | | e.g. `/bytebase.v1.SQLService/Query`, `bb.project.repository.push` |+| severity | [AuditLog.Severity](#bytebase-v1-AuditLog-Severity) | | |+| resource | [string](#string) | | The associated resource. |+| request | [string](#string) | | JSON-encoded request. |+| response | [string](#string) | | JSON-encoded response. Some fields are omitted because they are too large or contain sensitive information. |+| status | [google.rpc.Status](#google-rpc-Status) | | |+| service_data | [google.protobuf.Any](#google-protobuf-Any) | | service-specific data about the request, response, and other activities. |+| request_metadata | [RequestMetadata](#bytebase-v1-RequestMetadata) | | Metadata about the operation. |-<a name="bytebase-v1-FieldMapping"></a>+<a name="bytebase-v1-ExportAuditLogsRequest"></a>-### FieldMapping-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`.+### ExportAuditLogsRequest-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| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identifier | [string](#string) | | Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. |-| display_name | [string](#string) | | DisplayName is the field name of display name in 3rd-party idp user info. |-| email | [string](#string) | | Email is the field name of primary email in 3rd-party idp user info. |-| phone | [string](#string) | | Phone is the field name of primary phone in 3rd-party idp user info. |+| parent | [string](#string) | | |+| filter | [string](#string) | | The filter of the log. It should be a valid CEL expression. For example: - filter = "method == '/bytebase.v1.SQLService/Query'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" |+| order_by | [string](#string) | | 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 | [ExportFormat](#bytebase-v1-ExportFormat) | | The export format. |-<a name="bytebase-v1-GetIdentityProviderRequest"></a>+<a name="bytebase-v1-ExportAuditLogsResponse"></a>-### GetIdentityProviderRequest+### ExportAuditLogsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | |-+| content | [bytes](#bytes) | | |-<a name="bytebase-v1-IdentityProvider"></a>-### IdentityProvider+<a name="bytebase-v1-RequestMetadata"></a>+### RequestMetadata+Metadata about the request.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the identity provider. Format: idps/{idp} |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | |-| domain | [string](#string) | | |-| type | [IdentityProviderType](#bytebase-v1-IdentityProviderType) | | |-| config | [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig) | | |+| caller_ip | [string](#string) | | The IP address of the caller. |+| caller_supplied_user_agent | [string](#string) | | The user agent of the caller. This information is not authenticated and should be treated accordingly. |-<a name="bytebase-v1-IdentityProviderConfig"></a>+<a name="bytebase-v1-SearchAuditLogsRequest"></a>-### IdentityProviderConfig+### SearchAuditLogsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | |-| oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |-| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |+| parent | [string](#string) | | |+| filter | [string](#string) | | The filter of the log. It should be a valid CEL expression. For example: - filter = "method == '/bytebase.v1.SQLService/Query'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'" - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" |+| order_by | [string](#string) | | The order by of the log. Only support order by create_time. For example: - order_by = "create_time asc" - order_by = "create_time desc" |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | A page token, received from a previous `SearchLogs` call. Provide this to retrieve the subsequent page. |-<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>+<a name="bytebase-v1-SearchAuditLogsResponse"></a>++### SearchAuditLogsResponse-### LDAPIdentityProviderConfig-LDAPIdentityProviderConfig is the structure for LDAP identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |-| port | [int32](#int32) | | 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. |-| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |-| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |-| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |-| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |-| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |-| security_protocol | [string](#string) | | 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. |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |+| audit_logs | [AuditLog](#bytebase-v1-AuditLog) | repeated | |+| next_page_token | [string](#string) | | A token to retrieve next page of log entities. Pass this value in the page_token field in the subsequent call to retrieve the next page of log entities. |+-<a name="bytebase-v1-ListIdentityProvidersRequest"></a>-### ListIdentityProvidersRequest+<a name="bytebase-v1-AuditLog-Severity"></a>+### AuditLog.Severity-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `ListIdentityProviders` call. Provide this to retrieve the subsequent page.+| Name | Number | Description |+| ---- | ------ | ----------- |+| DEFAULT | 0 | |+| DEBUG | 1 | |+| INFO | 2 | |+| NOTICE | 3 | |+| WARNING | 4 | |+| ERROR | 5 | |+| CRITICAL | 6 | |+| ALERT | 7 | |+| EMERGENCY | 8 | |-When paginating, all other parameters provided to `ListIdentityProviders` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted identity providers if specified. |+++<a name="bytebase-v1-AuditLogService"></a>+### AuditLogService-<a name="bytebase-v1-ListIdentityProvidersResponse"></a>-### ListIdentityProvidersResponse+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| SearchAuditLogs | [SearchAuditLogsRequest](#bytebase-v1-SearchAuditLogsRequest) | [SearchAuditLogsResponse](#bytebase-v1-SearchAuditLogsResponse) | |+| ExportAuditLogs | [ExportAuditLogsRequest](#bytebase-v1-ExportAuditLogsRequest) | [ExportAuditLogsResponse](#bytebase-v1-ExportAuditLogsResponse) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| identity_providers | [IdentityProvider](#bytebase-v1-IdentityProvider) | repeated | The identity providers from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+<a name="v1_auth_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/auth_service.proto+<a name="bytebase-v1-CreateUserRequest"></a>-<a name="bytebase-v1-OAuth2IdentityProviderConfig"></a>+### CreateUserRequest-### OAuth2IdentityProviderConfig-OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| auth_url | [string](#string) | | |-| token_url | [string](#string) | | |-| user_info_url | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |-| scopes | [string](#string) | repeated | |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |-| skip_tls_verify | [bool](#bool) | | |-| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| user | [User](#bytebase-v1-User) | | The user to create. |-<a name="bytebase-v1-OAuth2IdentityProviderTestRequestContext"></a>+<a name="bytebase-v1-DeleteUserRequest"></a>-### OAuth2IdentityProviderTestRequestContext+### DeleteUserRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| code | [string](#string) | | Authorize code from website. |+| name | [string](#string) | | The name of the user to delete. Format: users/{user} |-<a name="bytebase-v1-OIDCIdentityProviderConfig"></a>+<a name="bytebase-v1-GetUserRequest"></a>++### GetUserRequest-### OIDCIdentityProviderConfig-OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issuer | [string](#string) | | |-| client_id | [string](#string) | | |-| client_secret | [string](#string) | | |-| scopes | [string](#string) | repeated | |-| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |-| skip_tls_verify | [bool](#bool) | | |-| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |+| name | [string](#string) | | The name of the user to retrieve. Format: users/{user uid or user email} |-<a name="bytebase-v1-TestIdentityProviderRequest"></a>+<a name="bytebase-v1-IdentityProviderContext"></a>-### TestIdentityProviderRequest+### IdentityProviderContext| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to test connection including uncreated. |-| oauth2_context | [OAuth2IdentityProviderTestRequestContext](#bytebase-v1-OAuth2IdentityProviderTestRequestContext) | | |+| oauth2_context | [OAuth2IdentityProviderContext](#bytebase-v1-OAuth2IdentityProviderContext) | | |+| oidc_context | [OIDCIdentityProviderContext](#bytebase-v1-OIDCIdentityProviderContext) | | |-<a name="bytebase-v1-TestIdentityProviderResponse"></a>+<a name="bytebase-v1-ListUsersRequest"></a>-### TestIdentityProviderResponse+### ListUsersRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| show_deleted | [bool](#bool) | | Show deleted users if specified. |-<a name="bytebase-v1-UndeleteIdentityProviderRequest"></a>+<a name="bytebase-v1-ListUsersResponse"></a>-### UndeleteIdentityProviderRequest+### ListUsersResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted identity provider. Format: idps/{identity_provider} |+| users | [User](#bytebase-v1-User) | repeated | The users from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UpdateIdentityProviderRequest"></a>+<a name="bytebase-v1-LoginRequest"></a>-### UpdateIdentityProviderRequest+### LoginRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to update.--The identity provider's `name` field is used to identify the identity provider to update. Format: idps/{identity_provider} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| email | [string](#string) | | |+| password | [string](#string) | | |+| web | [bool](#bool) | | If web is set, we will set access token, refresh token, and user to the cookie. |+| idp_name | [string](#string) | | The name of the identity provider. Format: idps/{idp} |+| idp_context | [IdentityProviderContext](#bytebase-v1-IdentityProviderContext) | | The idp_context is using to get the user information from identity provider. |+| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |+| recovery_code | [string](#string) | optional | The recovery_code is used to recovery the user's identity with MFA. |+| mfa_temp_token | [string](#string) | optional | The mfa_temp_token is used to verify the user's identity by MFA. |-+<a name="bytebase-v1-LoginResponse"></a>-<a name="bytebase-v1-IdentityProviderType"></a>+### LoginResponse-### IdentityProviderType-| Name | Number | Description |-| ---- | ------ | ----------- |-| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | |-| OAUTH2 | 1 | |-| OIDC | 2 | |-| LDAP | 3 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| token | [string](#string) | | |+| mfa_temp_token | [string](#string) | optional | |+| require_reset_password | [bool](#bool) | | |-<a name="bytebase-v1-OAuth2AuthStyle"></a>-### OAuth2AuthStyle-| Name | Number | Description |-| ---- | ------ | ----------- |-| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |-| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |-| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |+<a name="bytebase-v1-LogoutRequest"></a>+### LogoutRequest---<a name="bytebase-v1-IdentityProviderService"></a>-### IdentityProviderService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetIdentityProvider | [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| ListIdentityProviders | [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest) | [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse) | |-| CreateIdentityProvider | [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| UpdateIdentityProvider | [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| DeleteIdentityProvider | [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteIdentityProvider | [UndeleteIdentityProviderRequest](#bytebase-v1-UndeleteIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |-| TestIdentityProvider | [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest) | [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse) | |+<a name="bytebase-v1-OAuth2IdentityProviderContext"></a>-+### OAuth2IdentityProviderContext-<a name="v1_issue_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| code | [string](#string) | | |-## v1/issue_service.proto-<a name="bytebase-v1-ApprovalFlow"></a>-### ApprovalFlow+<a name="bytebase-v1-OIDCIdentityProviderContext"></a>+### OIDCIdentityProviderContext-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| steps | [ApprovalStep](#bytebase-v1-ApprovalStep) | repeated | |-<a name="bytebase-v1-ApprovalNode"></a>+<a name="bytebase-v1-UndeleteUserRequest"></a>-### ApprovalNode+### UndeleteUserRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [ApprovalNode.Type](#bytebase-v1-ApprovalNode-Type) | | |-| group_value | [ApprovalNode.GroupValue](#bytebase-v1-ApprovalNode-GroupValue) | | |-| role | [string](#string) | | Format: roles/{role} |-| external_node_id | [string](#string) | | |+| name | [string](#string) | | The name of the deleted user. Format: users/{user} |-<a name="bytebase-v1-ApprovalStep"></a>+<a name="bytebase-v1-UpdateUserRequest"></a>-### ApprovalStep+### UpdateUserRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [ApprovalStep.Type](#bytebase-v1-ApprovalStep-Type) | | |-| nodes | [ApprovalNode](#bytebase-v1-ApprovalNode) | repeated | |+| user | [User](#bytebase-v1-User) | | The user to update.+The user's `name` field is used to identify the user to update. Format: users/{user} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| otp_code | [string](#string) | optional | The otp_code is used to verify the user's identity by MFA. |+| regenerate_temp_mfa_secret | [bool](#bool) | | 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. |+| regenerate_recovery_codes | [bool](#bool) | | The regenerate_recovery_codes flag means to regenerate recovery codes for user. |-<a name="bytebase-v1-ApprovalTemplate"></a>-### ApprovalTemplate+<a name="bytebase-v1-User"></a>++### User| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| flow | [ApprovalFlow](#bytebase-v1-ApprovalFlow) | | |+| name | [string](#string) | | The name of the user. Format: users/{user}. {user} is a system-generated unique ID. |+| state | [State](#bytebase-v1-State) | | |+| email | [string](#string) | | || title | [string](#string) | | |-| description | [string](#string) | | |-| creator | [string](#string) | | 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. |+| user_type | [UserType](#bytebase-v1-UserType) | | |+| password | [string](#string) | | |+| service_key | [string](#string) | | |+| mfa_enabled | [bool](#bool) | | The mfa_enabled flag means if the user has enabled MFA. |+| mfa_secret | [string](#string) | | The mfa_secret is the temporary secret using in two phase verification. |+| recovery_codes | [string](#string) | repeated | The recovery_codes is the temporary recovery codes using in two phase verification. |+| phone | [string](#string) | | Should be a valid E.164 compliant phone number. Could be empty. |+| profile | [User.Profile](#bytebase-v1-User-Profile) | | |-<a name="bytebase-v1-ApproveIssueRequest"></a>+<a name="bytebase-v1-User-Profile"></a>-### ApproveIssueRequest+### User.Profile| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to add an approver. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+| last_login_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| last_change_password_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| source | [string](#string) | | source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. |+-<a name="bytebase-v1-BatchUpdateIssuesStatusRequest"></a>-### BatchUpdateIssuesStatusRequest+<a name="bytebase-v1-UserType"></a>+### UserType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | 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 | [string](#string) | repeated | The list of issues to update. Format: projects/{project}/issues/{issue} |-| status | [IssueStatus](#bytebase-v1-IssueStatus) | | The new status. |-| reason | [string](#string) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| USER_TYPE_UNSPECIFIED | 0 | |+| USER | 1 | |+| SYSTEM_BOT | 2 | |+| SERVICE_ACCOUNT | 3 | |+++<a name="bytebase-v1-AuthService"></a>-<a name="bytebase-v1-BatchUpdateIssuesStatusResponse"></a>+### AuthService-### BatchUpdateIssuesStatusResponse+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetUser | [GetUserRequest](#bytebase-v1-GetUserRequest) | [User](#bytebase-v1-User) | Get the user. Any authenticated user can get the user. |+| ListUsers | [ListUsersRequest](#bytebase-v1-ListUsersRequest) | [ListUsersResponse](#bytebase-v1-ListUsersResponse) | List all users. Any authenticated user can list users. |+| CreateUser | [CreateUserRequest](#bytebase-v1-CreateUserRequest) | [User](#bytebase-v1-User) | Create a user. When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user. Otherwise, any unauthenticated user can create a user. |+| UpdateUser | [UpdateUserRequest](#bytebase-v1-UpdateUserRequest) | [User](#bytebase-v1-User) | Only the user itself and the user with bb.users.update permission on the workspace can update the user. |+| DeleteUser | [DeleteUserRequest](#bytebase-v1-DeleteUserRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | Only the user with bb.users.delete permission on the workspace can delete the user. The last remaining workspace admin cannot be deleted. |+| UndeleteUser | [UndeleteUserRequest](#bytebase-v1-UndeleteUserRequest) | [User](#bytebase-v1-User) | Only the user with bb.users.undelete permission on the workspace can undelete the user. |+| Login | [LoginRequest](#bytebase-v1-LoginRequest) | [LoginResponse](#bytebase-v1-LoginResponse) | |+| Logout | [LogoutRequest](#bytebase-v1-LogoutRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |++<a name="v1_branch_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/branch_service.proto-<a name="bytebase-v1-CreateIssueCommentRequest"></a>-### CreateIssueCommentRequest++<a name="bytebase-v1-Branch"></a>++### Branch| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |-| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |+| name | [string](#string) | | The name of the branch. Format: projects/{project}/branches/{branch} {branch} should be the id of a sheet. |+| branch_id | [string](#string) | | The branch ID. |+| schema | [string](#string) | | The schema of branch. AKA sheet's statement. |+| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the current editing schema. |+| baseline_schema | [string](#string) | | The baseline schema. |+| baseline_schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the baseline schema. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the branch. |+| baseline_database | [string](#string) | | The name of the baseline database. Format: instances/{instance}/databases/{database} |+| parent_branch | [string](#string) | | The name of the parent branch. For main branch, it's empty. For child branch, its format will be: projects/{project}/branches/{branch} |+| etag | [string](#string) | | The etag of the branch. |+| creator | [string](#string) | | The creator of the branch. Format: users/{email} |+| updater | [string](#string) | | The updater of the branch. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was created. |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the branch was last updated. |-<a name="bytebase-v1-CreateIssueRequest"></a>+<a name="bytebase-v1-CreateBranchRequest"></a>-### CreateIssueRequest+### CreateBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |-| issue | [Issue](#bytebase-v1-Issue) | | The issue to create. |+| parent | [string](#string) | | The parent, which owns this collection of branches. Format: project/{project} |+| branch | [Branch](#bytebase-v1-Branch) | | |+| branch_id | [string](#string) | | 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-_/]+. |-<a name="bytebase-v1-GetIssueRequest"></a>+<a name="bytebase-v1-DeleteBranchRequest"></a>-### GetIssueRequest+### DeleteBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to retrieve. Format: projects/{project}/issues/{issue} |-| force | [bool](#bool) | | |+| name | [string](#string) | | The name of the branch to delete. Format: projects/{project}/branches/{branch} |+| force | [bool](#bool) | | 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. |-<a name="bytebase-v1-GrantRequest"></a>+<a name="bytebase-v1-DiffDatabaseRequest"></a>-### GrantRequest+### DiffDatabaseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [string](#string) | | The requested role. Format: roles/EXPORTER. |-| user | [string](#string) | | The user to be granted. Format: users/{email}. |-| condition | [google.type.Expr](#google-type-Expr) | | |-| expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | |+| name | [string](#string) | | The name of branch. |+| database | [string](#string) | | The name of the databsae to merge the branch to. |-<a name="bytebase-v1-Issue"></a>+<a name="bytebase-v1-DiffDatabaseResponse"></a>-### Issue+### DiffDatabaseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue. Format: projects/{project}/issues/{issue} |-| title | [string](#string) | | |-| description | [string](#string) | | |-| type | [Issue.Type](#bytebase-v1-Issue-Type) | | |-| status | [IssueStatus](#bytebase-v1-IssueStatus) | | |-| approvers | [Issue.Approver](#bytebase-v1-Issue-Approver) | repeated | |-| approval_templates | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | repeated | |-| approval_finding_done | [bool](#bool) | | 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. |-| approval_finding_error | [string](#string) | | |-| subscribers | [string](#string) | repeated | The subscribers. Format: users/[email protected] |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| plan | [string](#string) | | The plan associated with the issue. Can be empty. Format: projects/{project}/plans/{plan} |-| rollout | [string](#string) | | The rollout associated with the issue. Can be empty. Format: projects/{project}/rollouts/{rollout} |-| grant_request | [GrantRequest](#bytebase-v1-GrantRequest) | | Used if the issue type is GRANT_REQUEST. |-| releasers | [string](#string) | repeated | 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} |-| risk_level | [Issue.RiskLevel](#bytebase-v1-Issue-RiskLevel) | | |-| task_status_count | [Issue.TaskStatusCountEntry](#bytebase-v1-Issue-TaskStatusCountEntry) | repeated | The status count of the issue. Keys are the following: - NOT_STARTED - SKIPPED - PENDING - RUNNING - DONE - FAILED - CANCELED |-| labels | [string](#string) | repeated | |+| diff | [string](#string) | | The schema diff when merge occurs seamlessly. |+| schema | [string](#string) | | The merged schema if there is no conflict. |+| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |-<a name="bytebase-v1-Issue-Approver"></a>+<a name="bytebase-v1-DiffMetadataRequest"></a>-### Issue.Approver+### DiffMetadataRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status) | | The new status. |-| principal | [string](#string) | | Format: users/[email protected] |+| source_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the source schema. |+| target_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the target schema. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema. |+| classification_from_config | [bool](#bool) | | If false, we will build the raw common by classification in database config. |-<a name="bytebase-v1-Issue-TaskStatusCountEntry"></a>+<a name="bytebase-v1-DiffMetadataResponse"></a>-### Issue.TaskStatusCountEntry+### DiffMetadataResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [int32](#int32) | | |+| diff | [string](#string) | | The diff of the metadata. |-<a name="bytebase-v1-IssueComment"></a>+<a name="bytebase-v1-GetBranchRequest"></a>-### IssueComment+### GetBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid} |-| comment | [string](#string) | | |-| payload | [string](#string) | | TODO: use struct message instead. |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| creator | [string](#string) | | Format: users/{email} |-| approval | [IssueComment.Approval](#bytebase-v1-IssueComment-Approval) | | |-| issue_update | [IssueComment.IssueUpdate](#bytebase-v1-IssueComment-IssueUpdate) | | |-| stage_end | [IssueComment.StageEnd](#bytebase-v1-IssueComment-StageEnd) | | |-| task_update | [IssueComment.TaskUpdate](#bytebase-v1-IssueComment-TaskUpdate) | | |-| task_prior_backup | [IssueComment.TaskPriorBackup](#bytebase-v1-IssueComment-TaskPriorBackup) | | |+| name | [string](#string) | | The name of the branch to retrieve. Format: projects/{project}/branches/{branch} |-<a name="bytebase-v1-IssueComment-Approval"></a>+<a name="bytebase-v1-ListBranchesRequest"></a>-### IssueComment.Approval+### ListBranchesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [IssueComment.Approval.Status](#bytebase-v1-IssueComment-Approval-Status) | | |+| parent | [string](#string) | | The parent resource of the branch. Format: projects/{project} |+| filter | [string](#string) | | To filter the search result. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| view | [BranchView](#bytebase-v1-BranchView) | | |-<a name="bytebase-v1-IssueComment-IssueUpdate"></a>-### IssueComment.IssueUpdate+<a name="bytebase-v1-ListBranchesResponse"></a>++### ListBranchesResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| from_title | [string](#string) | optional | |-| to_title | [string](#string) | optional | |-| from_description | [string](#string) | optional | |-| to_description | [string](#string) | optional | |-| from_status | [IssueStatus](#bytebase-v1-IssueStatus) | optional | |-| to_status | [IssueStatus](#bytebase-v1-IssueStatus) | optional | |-| from_labels | [string](#string) | repeated | |-| to_labels | [string](#string) | repeated | |+| branches | [Branch](#bytebase-v1-Branch) | repeated | The branches from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-IssueComment-StageEnd"></a>+<a name="bytebase-v1-MergeBranchRequest"></a>-### IssueComment.StageEnd+### MergeBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| stage | [string](#string) | | |+| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |+| head_branch | [string](#string) | | The head branch to merge from. Format: projects/{project}/branches/{branch} |+| etag | [string](#string) | | 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. |+| validate_only | [bool](#bool) | | validate_only determines if the merge can occur seamlessly without any conflicts. |-<a name="bytebase-v1-IssueComment-TaskPriorBackup"></a>+<a name="bytebase-v1-RebaseBranchRequest"></a>-### IssueComment.TaskPriorBackup+### RebaseBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| task | [string](#string) | | |-| tables | [IssueComment.TaskPriorBackup.Table](#bytebase-v1-IssueComment-TaskPriorBackup-Table) | repeated | |-| original_line | [int32](#int32) | optional | |-| database | [string](#string) | | |-| error | [string](#string) | | |+| name | [string](#string) | | The name of the base branch to merge to. Format: projects/{project}/branches/{branch} |+| source_database | [string](#string) | | 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} |+| source_branch | [string](#string) | | 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} |+| merged_schema | [string](#string) | | 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. |+| etag | [string](#string) | | 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. |+| validate_only | [bool](#bool) | | validate_only determines if the rebase can occur seamlessly without any conflicts. |-<a name="bytebase-v1-IssueComment-TaskPriorBackup-Table"></a>+<a name="bytebase-v1-RebaseBranchResponse"></a>-### IssueComment.TaskPriorBackup.Table+### RebaseBranchResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | |-| table | [string](#string) | | |+| branch | [Branch](#bytebase-v1-Branch) | | The rebased branch when rebase occurs seamlessly. |+| conflict_schema | [string](#string) | | The conflict schema when rebase has conflicts. The conflict section is enclosed by the following. <<<<< HEAD ==== >>>>> main |-<a name="bytebase-v1-IssueComment-TaskUpdate"></a>+<a name="bytebase-v1-UpdateBranchRequest"></a>-### IssueComment.TaskUpdate+### UpdateBranchRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| tasks | [string](#string) | repeated | |-| from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |-| to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |-| from_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |-| to_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |-| to_status | [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status) | optional | |+| branch | [Branch](#bytebase-v1-Branch) | | The branch to update.+The branch's `name` field is used to identify the branch to update. Format: projects/{project}/branches/{branch} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| etag | [string](#string) | | 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. |-<a name="bytebase-v1-ListIssueCommentsRequest"></a>+-### ListIssueCommentsRequest+<a name="bytebase-v1-BranchView"></a>+### BranchView-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{projects}/issues/{issue} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| BRANCH_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| BRANCH_VIEW_BASIC | 1 | Exclude schema, baseline_schema. |+| BRANCH_VIEW_FULL | 2 | Include everything. |+++<a name="bytebase-v1-BranchService"></a>-<a name="bytebase-v1-ListIssueCommentsResponse"></a>+### BranchService-### ListIssueCommentsResponse+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetBranch | [GetBranchRequest](#bytebase-v1-GetBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| ListBranches | [ListBranchesRequest](#bytebase-v1-ListBranchesRequest) | [ListBranchesResponse](#bytebase-v1-ListBranchesResponse) | |+| CreateBranch | [CreateBranchRequest](#bytebase-v1-CreateBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| UpdateBranch | [UpdateBranchRequest](#bytebase-v1-UpdateBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| MergeBranch | [MergeBranchRequest](#bytebase-v1-MergeBranchRequest) | [Branch](#bytebase-v1-Branch) | |+| RebaseBranch | [RebaseBranchRequest](#bytebase-v1-RebaseBranchRequest) | [RebaseBranchResponse](#bytebase-v1-RebaseBranchResponse) | |+| DeleteBranch | [DeleteBranchRequest](#bytebase-v1-DeleteBranchRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| DiffMetadata | [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest) | [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| issue_comments | [IssueComment](#bytebase-v1-IssueComment) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+<a name="v1_cel_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/cel_service.proto-<a name="bytebase-v1-ListIssuesRequest"></a>+<a name="bytebase-v1-BatchDeparseRequest"></a>-### ListIssuesRequest+### BatchDeparseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list. |-| query | [string](#string) | | Query is the query statement. |+| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |-<a name="bytebase-v1-ListIssuesResponse"></a>+<a name="bytebase-v1-BatchDeparseResponse"></a>-### ListIssuesResponse+### BatchDeparseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| expressions | [string](#string) | repeated | |-<a name="bytebase-v1-RejectIssueRequest"></a>+<a name="bytebase-v1-BatchParseRequest"></a>-### RejectIssueRequest+### BatchParseRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to add an rejection. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+| expressions | [string](#string) | repeated | |-<a name="bytebase-v1-RequestIssueRequest"></a>+<a name="bytebase-v1-BatchParseResponse"></a>-### RequestIssueRequest+### BatchParseResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the issue to request a issue. Format: projects/{project}/issues/{issue} |-| comment | [string](#string) | | |+| expressions | [google.api.expr.v1alpha1.ParsedExpr](#google-api-expr-v1alpha1-ParsedExpr) | repeated | |+-<a name="bytebase-v1-SearchIssuesRequest"></a>+-### SearchIssuesRequest++<a name="bytebase-v1-CelService"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `ListIssues` call. Provide this to retrieve the subsequent page.+### CelService-When paginating, all other parameters provided to `ListIssues` must match the call that provided the page token. |-| filter | [string](#string) | | Filter is used to filter issues returned in the list. |-| query | [string](#string) | | Query is the query statement. |++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| BatchParse | [BatchParseRequest](#bytebase-v1-BatchParseRequest) | [BatchParseResponse](#bytebase-v1-BatchParseResponse) | |+| BatchDeparse | [BatchDeparseRequest](#bytebase-v1-BatchDeparseRequest) | [BatchDeparseResponse](#bytebase-v1-BatchDeparseResponse) | |+++<a name="v1_changelist_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/changelist_service.proto-<a name="bytebase-v1-SearchIssuesResponse"></a>-### SearchIssuesResponse+<a name="bytebase-v1-Changelist"></a>++### Changelist| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issues | [Issue](#bytebase-v1-Issue) | repeated | The issues from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the changelist resource. Canonical parent is project. Format: projects/{project}/changelists/{changelist} |+| description | [string](#string) | | |+| creator | [string](#string) | | The creator of the changelist. Format: users/{email} |+| updater | [string](#string) | | The updater of the changelist. Format: users/{email} |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The create time of the changelist. |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The last update time of the changelist. |+| changes | [Changelist.Change](#bytebase-v1-Changelist-Change) | repeated | |-<a name="bytebase-v1-UpdateIssueCommentRequest"></a>+<a name="bytebase-v1-Changelist-Change"></a>-### UpdateIssueCommentRequest+### Changelist.Change| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The issue name Format: projects/{project}/issues/{issue} |-| issue_comment | [IssueComment](#bytebase-v1-IssueComment) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| sheet | [string](#string) | | The name of a sheet. |+| source | [string](#string) | | 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 | [string](#string) | | The migration version for a change. |-<a name="bytebase-v1-UpdateIssueRequest"></a>+<a name="bytebase-v1-CreateChangelistRequest"></a>-### UpdateIssueRequest+### CreateChangelistRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| issue | [Issue](#bytebase-v1-Issue) | | The issue to update.+| parent | [string](#string) | | The parent resource where this changelist will be created. Format: projects/{project} |+| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to create. |+| changelist_id | [string](#string) | | The ID to use for the changelist, which will become the final component of the changelist's resource name.-The issue's `name` field is used to identify the issue to update. Format: projects/{project}/issues/{issue} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-+<a name="bytebase-v1-DeleteChangelistRequest"></a>-<a name="bytebase-v1-ApprovalNode-GroupValue"></a>+### DeleteChangelistRequest-### ApprovalNode.GroupValue-The predefined user groups are:-- WORKSPACE_OWNER-- WORKSPACE_DBA-- PROJECT_OWNER-- PROJECT_MEMBER-| Name | Number | Description |-| ---- | ------ | ----------- |-| GROUP_VALUE_UNSPECIFILED | 0 | |-| WORKSPACE_OWNER | 1 | |-| WORKSPACE_DBA | 2 | |-| PROJECT_OWNER | 3 | |-| PROJECT_MEMBER | 4 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the changelist to delete. Format: projects/{project}/changelists/{changelist} |-<a name="bytebase-v1-ApprovalNode-Type"></a>-### ApprovalNode.Type-Type of the ApprovalNode.-type determines who should approve this node.-ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.-See GroupValue below for the predefined user groups.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| ANY_IN_GROUP | 1 | |+<a name="bytebase-v1-GetChangelistRequest"></a>-<a name="bytebase-v1-ApprovalStep-Type"></a>+### GetChangelistRequest-### ApprovalStep.Type-Type of the ApprovalStep-ALL means every node must be approved to proceed.-ANY means approving any node will proceed.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| ALL | 1 | |-| ANY | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the changelist to retrieve. Format: projects/{project}/changelists/{changelist} |-<a name="bytebase-v1-Issue-Approver-Status"></a>-### Issue.Approver.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| APPROVED | 2 | |-| REJECTED | 3 | |+<a name="bytebase-v1-ListChangelistsRequest"></a>+### ListChangelistsRequest-<a name="bytebase-v1-Issue-RiskLevel"></a>-### Issue.RiskLevel+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent, which owns this collection of changelists. Format: projects/{project} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.-| Name | Number | Description |-| ---- | ------ | ----------- |-| RISK_LEVEL_UNSPECIFIED | 0 | |-| LOW | 1 | |-| MODERATE | 2 | |-| HIGH | 3 | |+When paginating, all other parameters provided to `ListDatabases` must match the call that provided the page token. |-<a name="bytebase-v1-Issue-Type"></a>-### Issue.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| DATABASE_CHANGE | 1 | |-| GRANT_REQUEST | 2 | |-| DATABASE_DATA_EXPORT | 3 | |+<a name="bytebase-v1-ListChangelistsResponse"></a>+### ListChangelistsResponse-<a name="bytebase-v1-IssueComment-Approval-Status"></a>-### IssueComment.Approval.Status+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| changelists | [Changelist](#bytebase-v1-Changelist) | repeated | The changelists from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| APPROVED | 2 | |-| REJECTED | 3 | |-<a name="bytebase-v1-IssueComment-TaskUpdate-Status"></a>-### IssueComment.TaskUpdate.Status+<a name="bytebase-v1-UpdateChangelistRequest"></a>+### UpdateChangelistRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| RUNNING | 2 | |-| DONE | 3 | |-| FAILED | 4 | |-| SKIPPED | 5 | |-| CANCELED | 6 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| changelist | [Changelist](#bytebase-v1-Changelist) | | The changelist to update.-<a name="bytebase-v1-IssueStatus"></a>+The changelist's `name` field is used to identify the changelist to update. Format: projects/{project}/changelists/{changelist} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to be updated. |-### IssueStatus-| Name | Number | Description |-| ---- | ------ | ----------- |-| ISSUE_STATUS_UNSPECIFIED | 0 | |-| OPEN | 1 | |-| DONE | 2 | |-| CANCELED | 3 | |+-<a name="bytebase-v1-IssueService"></a>-### IssueService+<a name="bytebase-v1-ChangelistService"></a>++### ChangelistService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetIssue | [GetIssueRequest](#bytebase-v1-GetIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| CreateIssue | [CreateIssueRequest](#bytebase-v1-CreateIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| ListIssues | [ListIssuesRequest](#bytebase-v1-ListIssuesRequest) | [ListIssuesResponse](#bytebase-v1-ListIssuesResponse) | |-| SearchIssues | [SearchIssuesRequest](#bytebase-v1-SearchIssuesRequest) | [SearchIssuesResponse](#bytebase-v1-SearchIssuesResponse) | Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. |-| UpdateIssue | [UpdateIssueRequest](#bytebase-v1-UpdateIssueRequest) | [Issue](#bytebase-v1-Issue) | |-| ListIssueComments | [ListIssueCommentsRequest](#bytebase-v1-ListIssueCommentsRequest) | [ListIssueCommentsResponse](#bytebase-v1-ListIssueCommentsResponse) | |-| CreateIssueComment | [CreateIssueCommentRequest](#bytebase-v1-CreateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |-| UpdateIssueComment | [UpdateIssueCommentRequest](#bytebase-v1-UpdateIssueCommentRequest) | [IssueComment](#bytebase-v1-IssueComment) | |-| BatchUpdateIssuesStatus | [BatchUpdateIssuesStatusRequest](#bytebase-v1-BatchUpdateIssuesStatusRequest) | [BatchUpdateIssuesStatusResponse](#bytebase-v1-BatchUpdateIssuesStatusResponse) | |-| ApproveIssue | [ApproveIssueRequest](#bytebase-v1-ApproveIssueRequest) | [Issue](#bytebase-v1-Issue) | ApproveIssue approves the issue. The access is based on approval flow. |-| RejectIssue | [RejectIssueRequest](#bytebase-v1-RejectIssueRequest) | [Issue](#bytebase-v1-Issue) | RejectIssue rejects the issue. The access is based on approval flow. |-| RequestIssue | [RequestIssueRequest](#bytebase-v1-RequestIssueRequest) | [Issue](#bytebase-v1-Issue) | RequestIssue requests the issue. The access is based on approval flow. |+| CreateChangelist | [CreateChangelistRequest](#bytebase-v1-CreateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |+| GetChangelist | [GetChangelistRequest](#bytebase-v1-GetChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |+| ListChangelists | [ListChangelistsRequest](#bytebase-v1-ListChangelistsRequest) | [ListChangelistsResponse](#bytebase-v1-ListChangelistsResponse) | |+| UpdateChangelist | [UpdateChangelistRequest](#bytebase-v1-UpdateChangelistRequest) | [Changelist](#bytebase-v1-Changelist) | |+| DeleteChangelist | [DeleteChangelistRequest](#bytebase-v1-DeleteChangelistRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-<a name="v1_org_policy_service-proto"></a>+<a name="v1_database_group_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/org_policy_service.proto+## v1/database_group_service.proto-<a name="bytebase-v1-CreatePolicyRequest"></a>+<a name="bytebase-v1-CreateDatabaseGroupRequest"></a>-### CreatePolicyRequest+### CreateDatabaseGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | 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. |-| policy | [Policy](#bytebase-v1-Policy) | | The policy to create. |-| type | [PolicyType](#bytebase-v1-PolicyType) | | |+| parent | [string](#string) | | The parent resource where this database group will be created. Format: projects/{project} |+| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to create. |+| database_group_id | [string](#string) | | 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]-/. |+| validate_only | [bool](#bool) | | If set, validate the create request and preview the full database group response, but do not actually create it. |-<a name="bytebase-v1-DataSourceQueryPolicy"></a>-### DataSourceQueryPolicy+<a name="bytebase-v1-DatabaseGroup"></a>++### DatabaseGroup| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| admin_data_source_restriction | [DataSourceQueryPolicy.Restriction](#bytebase-v1-DataSourceQueryPolicy-Restriction) | | |+| name | [string](#string) | | The name of the database group. Format: projects/{project}/databaseGroups/{databaseGroup} |+| database_placeholder | [string](#string) | | The short name used in actual databases specified by users. For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". |+| database_expr | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this database group. |+| matched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |+| unmatched_databases | [DatabaseGroup.Database](#bytebase-v1-DatabaseGroup-Database) | repeated | The list of databases that match the database group condition. |+| multitenancy | [bool](#bool) | | |-<a name="bytebase-v1-DeletePolicyRequest"></a>+<a name="bytebase-v1-DatabaseGroup-Database"></a>-### DeletePolicyRequest+### DatabaseGroup.Database| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The policy's `name` field is used to identify the instance to update. 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. |+| name | [string](#string) | | The resource name of the database. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-DisableCopyDataPolicy"></a>+<a name="bytebase-v1-DeleteDatabaseGroupRequest"></a>-### DisableCopyDataPolicy+### DeleteDatabaseGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| active | [bool](#bool) | | |+| name | [string](#string) | | The name of the database group to delete. Format: projects/{project}/databaseGroups/{databaseGroup} |-<a name="bytebase-v1-GetPolicyRequest"></a>+<a name="bytebase-v1-GetDatabaseGroupRequest"></a>-### GetPolicyRequest+### GetDatabaseGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the policy to retrieve. Format: {resource type}/{resource id}/policies/{policy type} |+| name | [string](#string) | | The name of the database group to retrieve. Format: projects/{project}/databaseGroups/{databaseGroup} |+| view | [DatabaseGroupView](#bytebase-v1-DatabaseGroupView) | | The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. |-<a name="bytebase-v1-ListPoliciesRequest"></a>+<a name="bytebase-v1-ListDatabaseGroupsRequest"></a>-### ListPoliciesRequest+### ListDatabaseGroupsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of policies. Format: {resource type}/{resource id} |-| policy_type | [PolicyType](#bytebase-v1-PolicyType) | optional | |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `GetPolicies` call. Provide this to retrieve the subsequent page.+| parent | [string](#string) | | The parent resource whose database groups are to be listed. Format: projects/{project} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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 `GetPolicies` must match the call that provided the page token. |-| show_deleted | [bool](#bool) | | Show deleted policies if specified. |+When paginating, all other parameters provided to `ListDatabaseGroups` must match the call that provided the page token. |-<a name="bytebase-v1-ListPoliciesResponse"></a>+<a name="bytebase-v1-ListDatabaseGroupsResponse"></a>-### ListPoliciesResponse+### ListDatabaseGroupsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| policies | [Policy](#bytebase-v1-Policy) | repeated | The policies from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-------<a name="bytebase-v1-MaskData"></a>--### MaskData--+| database_groups | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | repeated | database_groups is the list of database groups. |+| next_page_token | [string](#string) | | 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. |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | |-| table | [string](#string) | | |-| column | [string](#string) | | |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |-| full_masking_algorithm_id | [string](#string) | | |-| partial_masking_algorithm_id | [string](#string) | | |+<a name="bytebase-v1-UpdateDatabaseGroupRequest"></a>-<a name="bytebase-v1-MaskingExceptionPolicy"></a>+### UpdateDatabaseGroupRequest-### MaskingExceptionPolicy-MaskingExceptionPolicy is the allowlist of users who can access sensitive data.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| masking_exceptions | [MaskingExceptionPolicy.MaskingException](#bytebase-v1-MaskingExceptionPolicy-MaskingException) | repeated | |-+| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to update.+The database group's `name` field is used to identify the database group to update. Format: projects/{project}/databaseGroups/{databaseGroup} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException"></a>-### MaskingExceptionPolicy.MaskingException++<a name="bytebase-v1-DatabaseGroupView"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| action | [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action) | | action is the action that the user can access sensitive data. |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | Level is the masking level that the user can access sensitive data. |-| member | [string](#string) | | Member is the principal who bind to this exception policy instance.+### DatabaseGroupView-- `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. - `group:{email}`: An email address for group. |-| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this exception policy instance. |++| Name | Number | Description |+| ---- | ------ | ----------- |+| DATABASE_GROUP_VIEW_UNSPECIFIED | 0 | The default / unset value. The API will default to the BASIC view. |+| DATABASE_GROUP_VIEW_BASIC | 1 | Include basic information about the database group, but exclude the list of matched databases and unmatched databases. |+| DATABASE_GROUP_VIEW_FULL | 2 | Include everything. |+++<a name="bytebase-v1-DatabaseGroupService"></a>-<a name="bytebase-v1-MaskingPolicy"></a>+### DatabaseGroupService-### MaskingPolicy+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListDatabaseGroups | [ListDatabaseGroupsRequest](#bytebase-v1-ListDatabaseGroupsRequest) | [ListDatabaseGroupsResponse](#bytebase-v1-ListDatabaseGroupsResponse) | |+| GetDatabaseGroup | [GetDatabaseGroupRequest](#bytebase-v1-GetDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |+| CreateDatabaseGroup | [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |+| UpdateDatabaseGroup | [UpdateDatabaseGroupRequest](#bytebase-v1-UpdateDatabaseGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |+| DeleteDatabaseGroup | [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| mask_data | [MaskData](#bytebase-v1-MaskData) | repeated | |+<a name="v1_environment_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/environment_service.proto-<a name="bytebase-v1-MaskingRulePolicy"></a>+<a name="bytebase-v1-CreateEnvironmentRequest"></a>-### MaskingRulePolicy+### CreateEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| rules | [MaskingRulePolicy.MaskingRule](#bytebase-v1-MaskingRulePolicy-MaskingRule) | repeated | |+| environment | [Environment](#bytebase-v1-Environment) | | The environment to create. |+| environment_id | [string](#string) | | 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]-/. |-<a name="bytebase-v1-MaskingRulePolicy-MaskingRule"></a>-### MaskingRulePolicy.MaskingRule+<a name="bytebase-v1-DeleteEnvironmentRequest"></a>++### DeleteEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | A unique identifier for a node in UUID format. |-| condition | [google.type.Expr](#google-type-Expr) | | |-| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |+| name | [string](#string) | | The name of the environment to delete. Format: environments/{environment} |-<a name="bytebase-v1-Policy"></a>+<a name="bytebase-v1-Environment"></a>-### Policy+### Environment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | 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. |-| inherit_from_parent | [bool](#bool) | | |-| type | [PolicyType](#bytebase-v1-PolicyType) | | |-| rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | |-| masking_policy | [MaskingPolicy](#bytebase-v1-MaskingPolicy) | | |-| slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | |-| disable_copy_data_policy | [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy) | | |-| masking_rule_policy | [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy) | | |-| masking_exception_policy | [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy) | | |-| restrict_issue_creation_for_sql_review_policy | [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy) | | |-| tag_policy | [TagPolicy](#bytebase-v1-TagPolicy) | | |-| data_source_query_policy | [DataSourceQueryPolicy](#bytebase-v1-DataSourceQueryPolicy) | | |-| enforce | [bool](#bool) | | |-| resource_type | [PolicyResourceType](#bytebase-v1-PolicyResourceType) | | The resource type for the policy. |+| name | [string](#string) | | The name of the environment. Format: environments/{environment} |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| order | [int32](#int32) | | |+| tier | [EnvironmentTier](#bytebase-v1-EnvironmentTier) | | |-<a name="bytebase-v1-RestrictIssueCreationForSQLReviewPolicy"></a>+<a name="bytebase-v1-GetEnvironmentRequest"></a>-### RestrictIssueCreationForSQLReviewPolicy+### GetEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| disallow | [bool](#bool) | | |+| name | [string](#string) | | The name of the environment to retrieve. Format: environments/{environment} |-<a name="bytebase-v1-RolloutPolicy"></a>+<a name="bytebase-v1-ListEnvironmentsRequest"></a>-### RolloutPolicy+### ListEnvironmentsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| automatic | [bool](#bool) | | |-| workspace_roles | [string](#string) | repeated | |-| project_roles | [string](#string) | repeated | |-| issue_roles | [string](#string) | repeated | roles/LAST_APPROVER roles/CREATOR |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| show_deleted | [bool](#bool) | | Show deleted environments if specified. |-<a name="bytebase-v1-SQLReviewRule"></a>-### SQLReviewRule+<a name="bytebase-v1-ListEnvironmentsResponse"></a>++### ListEnvironmentsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [string](#string) | | |-| level | [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel) | | |-| payload | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| comment | [string](#string) | | |+| environments | [Environment](#bytebase-v1-Environment) | repeated | The environments from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-SlowQueryPolicy"></a>+<a name="bytebase-v1-UndeleteEnvironmentRequest"></a>-### SlowQueryPolicy+### UndeleteEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| active | [bool](#bool) | | |+| name | [string](#string) | | The name of the deleted environment. Format: environments/{environment} |-<a name="bytebase-v1-TagPolicy"></a>+<a name="bytebase-v1-UpdateEnvironmentRequest"></a>-### TagPolicy+### UpdateEnvironmentRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| tags | [TagPolicy.TagsEntry](#bytebase-v1-TagPolicy-TagsEntry) | repeated | tags is the key - value map for resources. for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}" |+| environment | [Environment](#bytebase-v1-Environment) | | The environment to update.+The environment's `name` field is used to identify the environment to update. Format: environments/{environment} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-TagPolicy-TagsEntry"></a>+-### TagPolicy.TagsEntry+<a name="bytebase-v1-EnvironmentTier"></a>+### EnvironmentTier-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| ENVIRONMENT_TIER_UNSPECIFIED | 0 | |+| PROTECTED | 1 | |+| UNPROTECTED | 2 | |++-<a name="bytebase-v1-UpdatePolicyRequest"></a>+<a name="bytebase-v1-EnvironmentService"></a>-### UpdatePolicyRequest+### EnvironmentService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetEnvironment | [GetEnvironmentRequest](#bytebase-v1-GetEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+| ListEnvironments | [ListEnvironmentsRequest](#bytebase-v1-ListEnvironmentsRequest) | [ListEnvironmentsResponse](#bytebase-v1-ListEnvironmentsResponse) | |+| CreateEnvironment | [CreateEnvironmentRequest](#bytebase-v1-CreateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+| UpdateEnvironment | [UpdateEnvironmentRequest](#bytebase-v1-UpdateEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |+| DeleteEnvironment | [DeleteEnvironmentRequest](#bytebase-v1-DeleteEnvironmentRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteEnvironment | [UndeleteEnvironmentRequest](#bytebase-v1-UndeleteEnvironmentRequest) | [Environment](#bytebase-v1-Environment) | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| policy | [Policy](#bytebase-v1-Policy) | | The policy to update.+-The policy's `name` field is used to identify the instance to update. 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. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-| allow_missing | [bool](#bool) | | If set to true, and the policy is not found, a new policy will be created. In this situation, `update_mask` is ignored. |+<a name="v1_group-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/group.proto-+<a name="bytebase-v1-CreateGroupRequest"></a>-<a name="bytebase-v1-DataSourceQueryPolicy-Restriction"></a>+### CreateGroupRequest-### DataSourceQueryPolicy.Restriction-| Name | Number | Description |-| ---- | ------ | ----------- |-| RESTRICTION_UNSPECIFIED | 0 | |-| FALLBACK | 1 | Allow to query admin data sources when there is no read-only data source. |-| DISALLOW | 2 | Disallow to query admin data sources. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| group | [Group](#bytebase-v1-Group) | | The group to create. |-<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException-Action"></a>-### MaskingExceptionPolicy.MaskingException.Action-| Name | Number | Description |-| ---- | ------ | ----------- |-| ACTION_UNSPECIFIED | 0 | |-| QUERY | 1 | |-| EXPORT | 2 | |+<a name="bytebase-v1-DeleteGroupRequest"></a>+### DeleteGroupRequest-<a name="bytebase-v1-PolicyResourceType"></a>-### PolicyResourceType+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the group to delete. Format: groups/{email} |-| Name | Number | Description |-| ---- | ------ | ----------- |-| RESOURCE_TYPE_UNSPECIFIED | 0 | |-| WORKSPACE | 1 | |-| ENVIRONMENT | 2 | |-| PROJECT | 3 | |-| INSTANCE | 4 | |-| DATABASE | 5 | |-<a name="bytebase-v1-PolicyType"></a>-### PolicyType+<a name="bytebase-v1-GetGroupRequest"></a>+### GetGroupRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| POLICY_TYPE_UNSPECIFIED | 0 | |-| ROLLOUT_POLICY | 11 | |-| MASKING | 5 | |-| SLOW_QUERY | 7 | |-| DISABLE_COPY_DATA | 8 | |-| MASKING_RULE | 9 | |-| MASKING_EXCEPTION | 10 | |-| RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW | 12 | |-| TAG | 13 | |-| DATA_SOURCE_QUERY | 14 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the group to retrieve. Format: groups/{email} |-<a name="bytebase-v1-SQLReviewRuleLevel"></a>-### SQLReviewRuleLevel-| Name | Number | Description |-| ---- | ------ | ----------- |-| LEVEL_UNSPECIFIED | 0 | |-| ERROR | 1 | |-| WARNING | 2 | |-| DISABLED | 3 | |-+<a name="bytebase-v1-Group"></a>-+### Group-<a name="bytebase-v1-OrgPolicyService"></a>-### OrgPolicyService+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the group to retrieve. Format: groups/{group}, group is an email. |+| title | [string](#string) | | |+| description | [string](#string) | | |+| creator | [string](#string) | | The name for the creator. Format: users/[email protected] |+| members | [GroupMember](#bytebase-v1-GroupMember) | repeated | |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the group was created. |+| source | [string](#string) | | source means where the group comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. |-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetPolicy | [GetPolicyRequest](#bytebase-v1-GetPolicyRequest) | [Policy](#bytebase-v1-Policy) | |-| ListPolicies | [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest) | [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse) | |-| CreatePolicy | [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |-| UpdatePolicy | [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |-| DeletePolicy | [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |--<a name="v1_plan_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>+<a name="bytebase-v1-GroupMember"></a>-## v1/plan_service.proto+### GroupMember-<a name="bytebase-v1-BatchCancelPlanCheckRunsRequest"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| member | [string](#string) | | Member is the principal who belong to this group.-### BatchCancelPlanCheckRunsRequest+Format: users/[email protected] |+| role | [GroupMember.Role](#bytebase-v1-GroupMember-Role) | | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the planChecks. Format: projects/{project}/plans/{plan} |-| plan_check_runs | [string](#string) | repeated | TODO(d): update this API. The planCheckRuns to cancel. Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |+<a name="bytebase-v1-ListGroupsRequest"></a>+### ListGroupsRequest-<a name="bytebase-v1-BatchCancelPlanCheckRunsResponse"></a>-### BatchCancelPlanCheckRunsResponse+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| page_size | [int32](#int32) | | The maximum number of groups to return. The service may return fewer than this value. If unspecified, at most 50 groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListGroups` call. Provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListGroups` must match the call that provided the page token. |-<a name="bytebase-v1-CreatePlanRequest"></a>+<a name="bytebase-v1-ListGroupsResponse"></a>-### CreatePlanRequest+### ListGroupsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent project where this plan will be created. Format: projects/{project} |-| plan | [Plan](#bytebase-v1-Plan) | | The plan to create. |+| groups | [Group](#bytebase-v1-Group) | repeated | The groups from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-GetPlanRequest"></a>+<a name="bytebase-v1-UpdateGroupRequest"></a>-### GetPlanRequest+### UpdateGroupRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the plan to retrieve. Format: projects/{project}/plans/{plan} |+| group | [Group](#bytebase-v1-Group) | | The group to update.+The group's `name` field is used to identify the group to update. Format: groups/{email} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-ListPlanCheckRunsRequest"></a>+-### ListPlanCheckRunsRequest+<a name="bytebase-v1-GroupMember-Role"></a>+### GroupMember.Role-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plan check runs. Format: projects/{project}/plans/{plan} |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| latest_only | [bool](#bool) | | If set to true, only the latest plan check run will be returned. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| ROLE_UNSPECIFIED | 0 | |+| OWNER | 1 | |+| MEMBER | 2 | |+++<a name="bytebase-v1-GroupService"></a>-<a name="bytebase-v1-ListPlanCheckRunsResponse"></a>+### GroupService-### ListPlanCheckRunsResponse+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetGroup | [GetGroupRequest](#bytebase-v1-GetGroupRequest) | [Group](#bytebase-v1-Group) | |+| ListGroups | [ListGroupsRequest](#bytebase-v1-ListGroupsRequest) | [ListGroupsResponse](#bytebase-v1-ListGroupsResponse) | |+| CreateGroup | [CreateGroupRequest](#bytebase-v1-CreateGroupRequest) | [Group](#bytebase-v1-Group) | |+| UpdateGroup | [UpdateGroupRequest](#bytebase-v1-UpdateGroupRequest) | [Group](#bytebase-v1-Group) | UpdateGroup updates the group. Users with "bb.groups.update" permission on the workspace or the group owner can access this method. |+| DeleteGroup | [DeleteGroupRequest](#bytebase-v1-DeleteGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| plan_check_runs | [PlanCheckRun](#bytebase-v1-PlanCheckRun) | repeated | The plan check runs from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+<a name="v1_idp_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/idp_service.proto-<a name="bytebase-v1-ListPlansRequest"></a>+<a name="bytebase-v1-CreateIdentityProviderRequest"></a>-### ListPlansRequest+### CreateIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `ListPlans` call. Provide this to retrieve the subsequent page.+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to create. |+| identity_provider_id | [string](#string) | | The ID to use for the identity provider, which will become the final component of the identity provider's resource name.-When paginating, all other parameters provided to `ListPlans` must match the call that provided the page token. |+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |-<a name="bytebase-v1-ListPlansResponse"></a>+<a name="bytebase-v1-DeleteIdentityProviderRequest"></a>-### ListPlansResponse+### DeleteIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| name | [string](#string) | | The name of the identity provider to delete. Format: idps/{identity_provider} |-<a name="bytebase-v1-Plan"></a>+<a name="bytebase-v1-FieldMapping"></a>-### Plan+### FieldMapping+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| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the plan. `plan` is a system generated ID. Format: projects/{project}/plans/{plan} |-| issue | [string](#string) | | The resource name of the issue associated with this plan. Format: projects/{project}/issues/{issue} |-| title | [string](#string) | | |-| description | [string](#string) | | |-| steps | [Plan.Step](#bytebase-v1-Plan-Step) | repeated | |-| vcs_source | [Plan.VCSSource](#bytebase-v1-Plan-VCSSource) | | |-| creator | [string](#string) | | Format: users/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| plan_check_run_status_count | [Plan.PlanCheckRunStatusCountEntry](#bytebase-v1-Plan-PlanCheckRunStatusCountEntry) | repeated | The status count of the latest plan check runs. Keys are: - SUCCESS - WARNING - ERROR |+| identifier | [string](#string) | | Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. |+| display_name | [string](#string) | | DisplayName is the field name of display name in 3rd-party idp user info. |+| email | [string](#string) | | Email is the field name of primary email in 3rd-party idp user info. |+| phone | [string](#string) | | Phone is the field name of primary phone in 3rd-party idp user info. |-<a name="bytebase-v1-Plan-ChangeDatabaseConfig"></a>+<a name="bytebase-v1-GetIdentityProviderRequest"></a>-### Plan.ChangeDatabaseConfig+### GetIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. |-| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |-| type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | |-| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |-| ghost_flags | [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry) | repeated | |-| pre_update_backup_detail | [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail) | optional | If set, a backup of the modified data will be created automatically before any changes are applied. |+| name | [string](#string) | | |-<a name="bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry"></a>+<a name="bytebase-v1-IdentityProvider"></a>-### Plan.ChangeDatabaseConfig.GhostFlagsEntry+### IdentityProvider| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| name | [string](#string) | | The name of the identity provider. Format: idps/{idp} |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | |+| domain | [string](#string) | | |+| type | [IdentityProviderType](#bytebase-v1-IdentityProviderType) | | |+| config | [IdentityProviderConfig](#bytebase-v1-IdentityProviderConfig) | | |-<a name="bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail"></a>+<a name="bytebase-v1-IdentityProviderConfig"></a>-### Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+### IdentityProviderConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database for keeping the backup data. Format: instances/{instance}/databases/{database} |-+| oauth2_config | [OAuth2IdentityProviderConfig](#bytebase-v1-OAuth2IdentityProviderConfig) | | |+| oidc_config | [OIDCIdentityProviderConfig](#bytebase-v1-OIDCIdentityProviderConfig) | | |+| ldap_config | [LDAPIdentityProviderConfig](#bytebase-v1-LDAPIdentityProviderConfig) | | |-<a name="bytebase-v1-Plan-CreateDatabaseConfig"></a>-### Plan.CreateDatabaseConfig+<a name="bytebase-v1-LDAPIdentityProviderConfig"></a>+### LDAPIdentityProviderConfig+LDAPIdentityProviderConfig is the structure for LDAP identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the instance on which the database is created. Format: instances/{instance} |-| database | [string](#string) | | The name of the database to create. |-| table | [string](#string) | | 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. |-| character_set | [string](#string) | | character_set is the character set of the database. |-| collation | [string](#string) | | collation is the collation of the database. |-| cluster | [string](#string) | | cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". |-| owner | [string](#string) | | owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". |-| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |-| labels | [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry) | repeated | labels of the database. |+| host | [string](#string) | | Host is the hostname or IP address of the LDAP server, e.g. "ldap.example.com". |+| port | [int32](#int32) | | 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. |+| skip_tls_verify | [bool](#bool) | | SkipTLSVerify controls whether to skip TLS certificate verification. |+| bind_dn | [string](#string) | | BindDN is the DN of the user to bind as a service account to perform search requests. |+| bind_password | [string](#string) | | BindPassword is the password of the user to bind as a service account. |+| base_dn | [string](#string) | | BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". |+| user_filter | [string](#string) | | UserFilter is the filter to search for users, e.g. "(uid=%s)". |+| security_protocol | [string](#string) | | 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. |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | FieldMapping is the mapping of the user attributes returned by the LDAP server. |-<a name="bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry"></a>+<a name="bytebase-v1-ListIdentityProvidersRequest"></a>-### Plan.CreateDatabaseConfig.LabelsEntry+### ListIdentityProvidersRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| show_deleted | [bool](#bool) | | Show deleted identity providers if specified. |-<a name="bytebase-v1-Plan-ExportDataConfig"></a>-### Plan.ExportDataConfig+<a name="bytebase-v1-ListIdentityProvidersResponse"></a>++### ListIdentityProvidersResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |-| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |-| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |-+| identity_providers | [IdentityProvider](#bytebase-v1-IdentityProvider) | repeated | The identity providers from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-Plan-PlanCheckRunStatusCountEntry"></a>-### Plan.PlanCheckRunStatusCountEntry+<a name="bytebase-v1-OAuth2IdentityProviderConfig"></a>+### OAuth2IdentityProviderConfig+OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [int32](#int32) | | |+| auth_url | [string](#string) | | |+| token_url | [string](#string) | | |+| user_info_url | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |+| scopes | [string](#string) | repeated | |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |+| skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |-<a name="bytebase-v1-Plan-Spec"></a>+<a name="bytebase-v1-OAuth2IdentityProviderTestRequestContext"></a>-### Plan.Spec+### OAuth2IdentityProviderTestRequestContext| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |-| id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |-| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. Must be a subset of the specs in the same step. |-| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | |-| change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |-| export_data_config | [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig) | | |-+| code | [string](#string) | | Authorize code from website. |-<a name="bytebase-v1-Plan-Step"></a>-### Plan.Step+<a name="bytebase-v1-OIDCIdentityProviderConfig"></a>+### OIDCIdentityProviderConfig+OIDCIdentityProviderConfig is the structure for OIDC identity provider config.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | |-| specs | [Plan.Spec](#bytebase-v1-Plan-Spec) | repeated | |+| issuer | [string](#string) | | |+| client_id | [string](#string) | | |+| client_secret | [string](#string) | | |+| scopes | [string](#string) | repeated | |+| field_mapping | [FieldMapping](#bytebase-v1-FieldMapping) | | |+| skip_tls_verify | [bool](#bool) | | |+| auth_style | [OAuth2AuthStyle](#bytebase-v1-OAuth2AuthStyle) | | |-<a name="bytebase-v1-Plan-VCSSource"></a>+<a name="bytebase-v1-TestIdentityProviderRequest"></a>-### Plan.VCSSource+### TestIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| vcs_type | [VCSType](#bytebase-v1-VCSType) | | |-| vcs_connector | [string](#string) | | Optional. If present, we will update the pull request for rollout status. Format: projects/{project-ID}/vcsConnectors/{vcs-connector} |-| pull_request_url | [string](#string) | | |--+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to test connection including uncreated. |+| oauth2_context | [OAuth2IdentityProviderTestRequestContext](#bytebase-v1-OAuth2IdentityProviderTestRequestContext) | | |-<a name="bytebase-v1-PlanCheckRun"></a>-### PlanCheckRun+<a name="bytebase-v1-TestIdentityProviderResponse"></a>+### TestIdentityProviderResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |-| type | [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type) | | |-| status | [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status) | | |-| target | [string](#string) | | Format: instances/{instance}/databases/{database} |-| sheet | [string](#string) | | Format: project/{project}/sheets/{sheet} |-| results | [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result) | repeated | |-| error | [string](#string) | | error is set if the Status is FAILED. |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-<a name="bytebase-v1-PlanCheckRun-Result"></a>+<a name="bytebase-v1-UndeleteIdentityProviderRequest"></a>-### PlanCheckRun.Result+### UndeleteIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| status | [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status) | | |-| title | [string](#string) | | |-| content | [string](#string) | | |-| code | [int32](#int32) | | |-| sql_summary_report | [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport) | | |-| sql_review_report | [PlanCheckRun.Result.SqlReviewReport](#bytebase-v1-PlanCheckRun-Result-SqlReviewReport) | | |+| name | [string](#string) | | The name of the deleted identity provider. Format: idps/{identity_provider} |-<a name="bytebase-v1-PlanCheckRun-Result-SqlReviewReport"></a>+<a name="bytebase-v1-UpdateIdentityProviderRequest"></a>-### PlanCheckRun.Result.SqlReviewReport+### UpdateIdentityProviderRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| line | [int32](#int32) | | |-| column | [int32](#int32) | | |-| detail | [string](#string) | | |-| code | [int32](#int32) | | Code from sql review. |-| start_position | [Position](#bytebase-v1-Position) | | 1-based Position of the SQL statement. To supersede `line` and `column` above. |-| end_position | [Position](#bytebase-v1-Position) | | |-+| identity_provider | [IdentityProvider](#bytebase-v1-IdentityProvider) | | The identity provider to update.+The identity provider's `name` field is used to identify the identity provider to update. Format: idps/{identity_provider} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-PlanCheckRun-Result-SqlSummaryReport"></a>-### PlanCheckRun.Result.SqlSummaryReport++<a name="bytebase-v1-IdentityProviderType"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| code | [int32](#int32) | | |-| statement_types | [string](#string) | repeated | statement_types are the types of statements that are found in the sql. |-| affected_rows | [int32](#int32) | | |-| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |+### IdentityProviderType+| Name | Number | Description |+| ---- | ------ | ----------- |+| IDENTITY_PROVIDER_TYPE_UNSPECIFIED | 0 | |+| OAUTH2 | 1 | |+| OIDC | 2 | |+| LDAP | 3 | |+<a name="bytebase-v1-OAuth2AuthStyle"></a>-<a name="bytebase-v1-RunPlanChecksRequest"></a>+### OAuth2AuthStyle-### RunPlanChecksRequest+| Name | Number | Description |+| ---- | ------ | ----------- |+| OAUTH2_AUTH_STYLE_UNSPECIFIED | 0 | |+| IN_PARAMS | 1 | IN_PARAMS sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters. |+| IN_HEADER | 2 | IN_HEADER sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1. |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The plan to run plan checks. Format: projects/{project}/plans/{plan} |+++<a name="bytebase-v1-IdentityProviderService"></a>+### IdentityProviderService-<a name="bytebase-v1-RunPlanChecksResponse"></a>+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetIdentityProvider | [GetIdentityProviderRequest](#bytebase-v1-GetIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| ListIdentityProviders | [ListIdentityProvidersRequest](#bytebase-v1-ListIdentityProvidersRequest) | [ListIdentityProvidersResponse](#bytebase-v1-ListIdentityProvidersResponse) | |+| CreateIdentityProvider | [CreateIdentityProviderRequest](#bytebase-v1-CreateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| UpdateIdentityProvider | [UpdateIdentityProviderRequest](#bytebase-v1-UpdateIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| DeleteIdentityProvider | [DeleteIdentityProviderRequest](#bytebase-v1-DeleteIdentityProviderRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteIdentityProvider | [UndeleteIdentityProviderRequest](#bytebase-v1-UndeleteIdentityProviderRequest) | [IdentityProvider](#bytebase-v1-IdentityProvider) | |+| TestIdentityProvider | [TestIdentityProviderRequest](#bytebase-v1-TestIdentityProviderRequest) | [TestIdentityProviderResponse](#bytebase-v1-TestIdentityProviderResponse) | |-### RunPlanChecksResponse++<a name="v1_org_policy_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/org_policy_service.proto-<a name="bytebase-v1-SearchPlansRequest"></a>+<a name="bytebase-v1-CreatePolicyRequest"></a>-### SearchPlansRequest+### CreatePolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| filter | [string](#string) | | Filter is used to filter plans returned in the list. |+| parent | [string](#string) | | 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. |+| policy | [Policy](#bytebase-v1-Policy) | | The policy to create. |+| type | [PolicyType](#bytebase-v1-PolicyType) | | |-<a name="bytebase-v1-SearchPlansResponse"></a>+<a name="bytebase-v1-DataSourceQueryPolicy"></a>-### SearchPlansResponse+### DataSourceQueryPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| admin_data_source_restriction | [DataSourceQueryPolicy.Restriction](#bytebase-v1-DataSourceQueryPolicy-Restriction) | | |-<a name="bytebase-v1-UpdatePlanRequest"></a>+<a name="bytebase-v1-DeletePolicyRequest"></a>-### UpdatePlanRequest+### DeletePolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| plan | [Plan](#bytebase-v1-Plan) | | The plan to update.+| name | [string](#string) | | The policy's `name` field is used to identify the instance to update. 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. |-The plan's `name` field is used to identify the plan to update. Format: projects/{project}/plans/{plan} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-+<a name="bytebase-v1-DisableCopyDataPolicy"></a>+### DisableCopyDataPolicy-<a name="bytebase-v1-Plan-ChangeDatabaseConfig-Type"></a>-### Plan.ChangeDatabaseConfig.Type-Type is the database change type.-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| BASELINE | 1 | Used for establishing schema baseline, this is used when 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema. 2. Had schema drift and need to re-establish the baseline. |-| MIGRATE | 2 | Used for DDL changes including CREATE DATABASE. |-| MIGRATE_SDL | 3 | Used for schema changes via state-based schema migration including CREATE DATABASE. |-| MIGRATE_GHOST | 4 | Used for DDL changes using gh-ost. |-| DATA | 6 | Used for DML change. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| active | [bool](#bool) | | |-<a name="bytebase-v1-PlanCheckRun-Result-Status"></a>-### PlanCheckRun.Result.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| ERROR | 1 | |-| WARNING | 2 | |-| SUCCESS | 3 | |+<a name="bytebase-v1-GetPolicyRequest"></a>+### GetPolicyRequest-<a name="bytebase-v1-PlanCheckRun-Status"></a>-### PlanCheckRun.Status+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The name of the policy to retrieve. Format: {resource type}/{resource id}/policies/{policy type} |-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| RUNNING | 1 | |-| DONE | 2 | |-| FAILED | 3 | |-| CANCELED | 4 | |-<a name="bytebase-v1-PlanCheckRun-Type"></a>-### PlanCheckRun.Type+<a name="bytebase-v1-ListPoliciesRequest"></a>+### ListPoliciesRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| DATABASE_STATEMENT_FAKE_ADVISE | 1 | |-| DATABASE_STATEMENT_ADVISE | 3 | |-| DATABASE_STATEMENT_SUMMARY_REPORT | 5 | |-| DATABASE_CONNECT | 6 | |-| DATABASE_GHOST_SYNC | 7 | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The parent, which owns this collection of policies. Format: {resource type}/{resource id} |+| policy_type | [PolicyType](#bytebase-v1-PolicyType) | optional | |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| show_deleted | [bool](#bool) | | Show deleted policies if specified. |-<a name="bytebase-v1-PlanService"></a>-### PlanService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetPlan | [GetPlanRequest](#bytebase-v1-GetPlanRequest) | [Plan](#bytebase-v1-Plan) | |-| ListPlans | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | |-| SearchPlans | [SearchPlansRequest](#bytebase-v1-SearchPlansRequest) | [SearchPlansResponse](#bytebase-v1-SearchPlansResponse) | Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query. |-| CreatePlan | [CreatePlanRequest](#bytebase-v1-CreatePlanRequest) | [Plan](#bytebase-v1-Plan) | |-| UpdatePlan | [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest) | [Plan](#bytebase-v1-Plan) | UpdatePlan updates the plan. The plan creator and the user with bb.plans.update permission on the project can update the plan. |-| ListPlanCheckRuns | [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest) | [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse) | |-| RunPlanChecks | [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest) | [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse) | |-| BatchCancelPlanCheckRuns | [BatchCancelPlanCheckRunsRequest](#bytebase-v1-BatchCancelPlanCheckRunsRequest) | [BatchCancelPlanCheckRunsResponse](#bytebase-v1-BatchCancelPlanCheckRunsResponse) | |-+<a name="bytebase-v1-ListPoliciesResponse"></a>+### ListPoliciesResponse-<a name="v1_project_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/project_service.proto+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| policies | [Policy](#bytebase-v1-Policy) | repeated | The policies from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-Activity"></a>-### Activity-TODO(zp): move to activity later.+<a name="bytebase-v1-MaskData"></a>+### MaskData++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schema | [string](#string) | | |+| table | [string](#string) | | |+| column | [string](#string) | | |+| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |+| full_masking_algorithm_id | [string](#string) | | |+| partial_masking_algorithm_id | [string](#string) | | |-<a name="bytebase-v1-AddWebhookRequest"></a>-### AddWebhookRequest+<a name="bytebase-v1-MaskingExceptionPolicy"></a>++### MaskingExceptionPolicy+MaskingExceptionPolicy is the allowlist of users who can access sensitive data.+| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project to add the webhook to. Format: projects/{project} |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to add. |+| masking_exceptions | [MaskingExceptionPolicy.MaskingException](#bytebase-v1-MaskingExceptionPolicy-MaskingException) | repeated | |-<a name="bytebase-v1-BatchGetIamPolicyRequest"></a>+<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException"></a>-### BatchGetIamPolicyRequest+### MaskingExceptionPolicy.MaskingException| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| scope | [string](#string) | | The scope of the batch get. Typically it's "projects/-". |-| names | [string](#string) | repeated | |+| action | [MaskingExceptionPolicy.MaskingException.Action](#bytebase-v1-MaskingExceptionPolicy-MaskingException-Action) | | action is the action that the user can access sensitive data. |+| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | Level is the masking level that the user can access sensitive data. |+| member | [string](#string) | | Member is the principal who bind to this exception policy instance.+- `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`. - `group:{email}`: An email address for group. |+| condition | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this exception policy instance. |-<a name="bytebase-v1-BatchGetIamPolicyResponse"></a>-### BatchGetIamPolicyResponse+<a name="bytebase-v1-MaskingPolicy"></a>++### MaskingPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| policy_results | [BatchGetIamPolicyResponse.PolicyResult](#bytebase-v1-BatchGetIamPolicyResponse-PolicyResult) | repeated | |+| mask_data | [MaskData](#bytebase-v1-MaskData) | repeated | |-<a name="bytebase-v1-BatchGetIamPolicyResponse-PolicyResult"></a>+<a name="bytebase-v1-MaskingRulePolicy"></a>-### BatchGetIamPolicyResponse.PolicyResult+### MaskingRulePolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | |-| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |+| rules | [MaskingRulePolicy.MaskingRule](#bytebase-v1-MaskingRulePolicy-MaskingRule) | repeated | |-<a name="bytebase-v1-CreateProjectRequest"></a>+<a name="bytebase-v1-MaskingRulePolicy-MaskingRule"></a>-### CreateProjectRequest+### MaskingRulePolicy.MaskingRule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [Project](#bytebase-v1-Project) | | The project to create. |-| project_id | [string](#string) | | 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]-/. |+| id | [string](#string) | | A unique identifier for a node in UUID format. |+| condition | [google.type.Expr](#google-type-Expr) | | |+| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | |-<a name="bytebase-v1-DeleteProjectRequest"></a>+<a name="bytebase-v1-Policy"></a>-### DeleteProjectRequest+### Policy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the project to delete. Format: projects/{project} |-| force | [bool](#bool) | | 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. |+| name | [string](#string) | | 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. |+| inherit_from_parent | [bool](#bool) | | |+| type | [PolicyType](#bytebase-v1-PolicyType) | | |+| rollout_policy | [RolloutPolicy](#bytebase-v1-RolloutPolicy) | | |+| masking_policy | [MaskingPolicy](#bytebase-v1-MaskingPolicy) | | |+| slow_query_policy | [SlowQueryPolicy](#bytebase-v1-SlowQueryPolicy) | | |+| disable_copy_data_policy | [DisableCopyDataPolicy](#bytebase-v1-DisableCopyDataPolicy) | | |+| masking_rule_policy | [MaskingRulePolicy](#bytebase-v1-MaskingRulePolicy) | | |+| masking_exception_policy | [MaskingExceptionPolicy](#bytebase-v1-MaskingExceptionPolicy) | | |+| restrict_issue_creation_for_sql_review_policy | [RestrictIssueCreationForSQLReviewPolicy](#bytebase-v1-RestrictIssueCreationForSQLReviewPolicy) | | |+| tag_policy | [TagPolicy](#bytebase-v1-TagPolicy) | | |+| data_source_query_policy | [DataSourceQueryPolicy](#bytebase-v1-DataSourceQueryPolicy) | | |+| enforce | [bool](#bool) | | |+| resource_type | [PolicyResourceType](#bytebase-v1-PolicyResourceType) | | The resource type for the policy. |-<a name="bytebase-v1-DeploymentConfig"></a>+<a name="bytebase-v1-RestrictIssueCreationForSQLReviewPolicy"></a>-### DeploymentConfig+### RestrictIssueCreationForSQLReviewPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |-| title | [string](#string) | | The title of the deployment config. |-| schedule | [Schedule](#bytebase-v1-Schedule) | | |+| disallow | [bool](#bool) | | |-<a name="bytebase-v1-DeploymentSpec"></a>+<a name="bytebase-v1-RolloutPolicy"></a>-### DeploymentSpec+### RolloutPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| label_selector | [LabelSelector](#bytebase-v1-LabelSelector) | | |+| automatic | [bool](#bool) | | |+| workspace_roles | [string](#string) | repeated | |+| project_roles | [string](#string) | repeated | |+| issue_roles | [string](#string) | repeated | roles/LAST_APPROVER roles/CREATOR |-<a name="bytebase-v1-GetDeploymentConfigRequest"></a>+<a name="bytebase-v1-SQLReviewRule"></a>-### GetDeploymentConfigRequest+### SQLReviewRule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |+| type | [string](#string) | | |+| level | [SQLReviewRuleLevel](#bytebase-v1-SQLReviewRuleLevel) | | |+| payload | [string](#string) | | |+| engine | [Engine](#bytebase-v1-Engine) | | |+| comment | [string](#string) | | |-<a name="bytebase-v1-GetProjectRequest"></a>+<a name="bytebase-v1-SlowQueryPolicy"></a>-### GetProjectRequest+### SlowQueryPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the project to retrieve. Format: projects/{project} |+| active | [bool](#bool) | | |-<a name="bytebase-v1-Label"></a>+<a name="bytebase-v1-TagPolicy"></a>-### Label+### TagPolicy| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| value | [string](#string) | | |-| color | [string](#string) | | |-| group | [string](#string) | | |+| tags | [TagPolicy.TagsEntry](#bytebase-v1-TagPolicy-TagsEntry) | repeated | tags is the key - value map for resources. for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}" |-<a name="bytebase-v1-LabelSelector"></a>+<a name="bytebase-v1-TagPolicy-TagsEntry"></a>-### LabelSelector+### TagPolicy.TagsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| match_expressions | [LabelSelectorRequirement](#bytebase-v1-LabelSelectorRequirement) | repeated | |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-LabelSelectorRequirement"></a>+<a name="bytebase-v1-UpdatePolicyRequest"></a>-### LabelSelectorRequirement+### UpdatePolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| operator | [OperatorType](#bytebase-v1-OperatorType) | | |-| values | [string](#string) | repeated | |-------<a name="bytebase-v1-ListProjectsRequest"></a>+| policy | [Policy](#bytebase-v1-Policy) | | The policy to update.-### ListProjectsRequest+The policy's `name` field is used to identify the instance to update. 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. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| allow_missing | [bool](#bool) | | If set to true, and the policy is not found, a new policy will be created. In this situation, `update_mask` is ignored. |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |-| show_deleted | [bool](#bool) | | Show deleted projects if specified. |++<a name="bytebase-v1-DataSourceQueryPolicy-Restriction"></a>+### DataSourceQueryPolicy.Restriction-<a name="bytebase-v1-ListProjectsResponse"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| RESTRICTION_UNSPECIFIED | 0 | |+| FALLBACK | 1 | Allow to query admin data sources when there is no read-only data source. |+| DISALLOW | 2 | Disallow to query admin data sources. |-### ListProjectsResponse+<a name="bytebase-v1-MaskingExceptionPolicy-MaskingException-Action"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+### MaskingExceptionPolicy.MaskingException.Action+| Name | Number | Description |+| ---- | ------ | ----------- |+| ACTION_UNSPECIFIED | 0 | |+| QUERY | 1 | |+| EXPORT | 2 | |+<a name="bytebase-v1-PolicyResourceType"></a>-<a name="bytebase-v1-Project"></a>+### PolicyResourceType-### Project+| Name | Number | Description |+| ---- | ------ | ----------- |+| RESOURCE_TYPE_UNSPECIFIED | 0 | |+| WORKSPACE | 1 | |+| ENVIRONMENT | 2 | |+| PROJECT | 3 | |+| INSTANCE | 4 | |+| DATABASE | 5 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the project. Format: projects/{project} |-| state | [State](#bytebase-v1-State) | | |-| title | [string](#string) | | The title or name of a project. It's not unique within the workspace. |-| key | [string](#string) | | The key is a short and upper-case identifier for a project. It's unique within the workspace. |-| workflow | [Workflow](#bytebase-v1-Workflow) | | |-| webhooks | [Webhook](#bytebase-v1-Webhook) | repeated | |-| data_classification_config_id | [string](#string) | | |-| issue_labels | [Label](#bytebase-v1-Label) | repeated | |-| force_issue_labels | [bool](#bool) | | Force issue labels to be used when creating an issue. |-| allow_modify_statement | [bool](#bool) | | Allow modifying statement after issue is created. |-| auto_resolve_issue | [bool](#bool) | | Enable auto resolve issue. |-| enforce_issue_title | [bool](#bool) | | Enforce issue title created by user instead of generated by Bytebase. |-| auto_enable_backup | [bool](#bool) | | Whether to automatically enable backup. |-| skip_backup_errors | [bool](#bool) | | Whether to skip backup errors and continue the data migration. |+<a name="bytebase-v1-PolicyType"></a>+### PolicyType+| Name | Number | Description |+| ---- | ------ | ----------- |+| POLICY_TYPE_UNSPECIFIED | 0 | |+| ROLLOUT_POLICY | 11 | |+| MASKING | 5 | |+| SLOW_QUERY | 7 | |+| DISABLE_COPY_DATA | 8 | |+| MASKING_RULE | 9 | |+| MASKING_EXCEPTION | 10 | |+| RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW | 12 | |+| TAG | 13 | |+| DATA_SOURCE_QUERY | 14 | |-<a name="bytebase-v1-RemoveWebhookRequest"></a>-### RemoveWebhookRequest+<a name="bytebase-v1-SQLReviewRuleLevel"></a>+### SQLReviewRuleLevel-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to remove. Identified by its url. |+| Name | Number | Description |+| ---- | ------ | ----------- |+| LEVEL_UNSPECIFIED | 0 | |+| ERROR | 1 | |+| WARNING | 2 | |+| DISABLED | 3 | |+++<a name="bytebase-v1-OrgPolicyService"></a>-<a name="bytebase-v1-Schedule"></a>+### OrgPolicyService-### Schedule+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetPolicy | [GetPolicyRequest](#bytebase-v1-GetPolicyRequest) | [Policy](#bytebase-v1-Policy) | |+| ListPolicies | [ListPoliciesRequest](#bytebase-v1-ListPoliciesRequest) | [ListPoliciesResponse](#bytebase-v1-ListPoliciesResponse) | |+| CreatePolicy | [CreatePolicyRequest](#bytebase-v1-CreatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |+| UpdatePolicy | [UpdatePolicyRequest](#bytebase-v1-UpdatePolicyRequest) | [Policy](#bytebase-v1-Policy) | |+| DeletePolicy | [DeletePolicyRequest](#bytebase-v1-DeletePolicyRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| deployments | [ScheduleDeployment](#bytebase-v1-ScheduleDeployment) | repeated | |+<a name="v1_plan_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/plan_service.proto-<a name="bytebase-v1-ScheduleDeployment"></a>+<a name="bytebase-v1-BatchCancelPlanCheckRunsRequest"></a>-### ScheduleDeployment+### BatchCancelPlanCheckRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| title | [string](#string) | | The title of the deployment (stage) in a schedule. |-| spec | [DeploymentSpec](#bytebase-v1-DeploymentSpec) | | |--+| parent | [string](#string) | | The name of the parent of the planChecks. Format: projects/{project}/plans/{plan} |+| plan_check_runs | [string](#string) | repeated | TODO(d): update this API. The planCheckRuns to cancel. Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |-<a name="bytebase-v1-SearchProjectsRequest"></a>-### SearchProjectsRequest+<a name="bytebase-v1-BatchCancelPlanCheckRunsResponse"></a>+### BatchCancelPlanCheckRunsResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| show_deleted | [bool](#bool) | | Show deleted projects if specified. |-<a name="bytebase-v1-SearchProjectsResponse"></a>+<a name="bytebase-v1-CreatePlanRequest"></a>-### SearchProjectsResponse+### CreatePlanRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |+| parent | [string](#string) | | The parent project where this plan will be created. Format: projects/{project} |+| plan | [Plan](#bytebase-v1-Plan) | | The plan to create. |-<a name="bytebase-v1-TestWebhookRequest"></a>+<a name="bytebase-v1-GetPlanRequest"></a>-### TestWebhookRequest+### GetPlanRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project which owns the webhook to test. Format: projects/{project} |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to test. Identified by its url. |+| name | [string](#string) | | The name of the plan to retrieve. Format: projects/{project}/plans/{plan} |-<a name="bytebase-v1-TestWebhookResponse"></a>+<a name="bytebase-v1-ListPlanCheckRunsRequest"></a>-### TestWebhookResponse+### ListPlanCheckRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| error | [string](#string) | | The result of the test, empty if the test is successful. |+| parent | [string](#string) | | The parent, which owns this collection of plan check runs. Format: projects/{project}/plans/{plan} |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| latest_only | [bool](#bool) | | If set to true, only the latest plan check run will be returned. |-<a name="bytebase-v1-UndeleteProjectRequest"></a>-### UndeleteProjectRequest+<a name="bytebase-v1-ListPlanCheckRunsResponse"></a>++### ListPlanCheckRunsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the deleted project. Format: projects/{project} |+| plan_check_runs | [PlanCheckRun](#bytebase-v1-PlanCheckRun) | repeated | The plan check runs from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UpdateDeploymentConfigRequest"></a>+<a name="bytebase-v1-ListPlansRequest"></a>-### UpdateDeploymentConfigRequest+### ListPlansRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| deployment_config | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | | |+| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |-<a name="bytebase-v1-UpdateProjectRequest"></a>-### UpdateProjectRequest+<a name="bytebase-v1-ListPlansResponse"></a>++### ListPlansResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [Project](#bytebase-v1-Project) | | The project to update.--The project's `name` field is used to identify the project to update. Format: projects/{project} |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UpdateWebhookRequest"></a>+<a name="bytebase-v1-Plan"></a>-### UpdateWebhookRequest+### Plan| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to modify. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |+| name | [string](#string) | | The name of the plan. `plan` is a system generated ID. Format: projects/{project}/plans/{plan} |+| issue | [string](#string) | | The resource name of the issue associated with this plan. Format: projects/{project}/issues/{issue} |+| title | [string](#string) | | |+| description | [string](#string) | | |+| steps | [Plan.Step](#bytebase-v1-Plan-Step) | repeated | |+| vcs_source | [Plan.VCSSource](#bytebase-v1-Plan-VCSSource) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| plan_check_run_status_count | [Plan.PlanCheckRunStatusCountEntry](#bytebase-v1-Plan-PlanCheckRunStatusCountEntry) | repeated | The status count of the latest plan check runs. Keys are: - SUCCESS - WARNING - ERROR |-<a name="bytebase-v1-Webhook"></a>+<a name="bytebase-v1-Plan-ChangeDatabaseConfig"></a>-### Webhook+### Plan.ChangeDatabaseConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | name is the name of the webhook, generated by the server. format: projects/{project}/webhooks/{webhook} |-| type | [Webhook.Type](#bytebase-v1-Webhook-Type) | | type is the type of the webhook. |-| title | [string](#string) | | title is the title of the webhook. |-| url | [string](#string) | | url is the url of the webhook, should be unique within the project. |-| direct_message | [bool](#bool) | | if direct_message is set, the notification is sent directly to the persons and url will be ignored. IM integration setting should be set for this function to work. |-| notification_types | [Activity.Type](#bytebase-v1-Activity-Type) | repeated | 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 should 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_CREATE |--+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. |+| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | |+| schema_version | [string](#string) | | schema_version is parsed from VCS file name. It is automatically generated in the UI workflow. |+| ghost_flags | [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry) | repeated | |+| pre_update_backup_detail | [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail) | optional | If set, a backup of the modified data will be created automatically before any changes are applied. |--<a name="bytebase-v1-Activity-Type"></a>-### Activity.Type+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry"></a>+### Plan.ChangeDatabaseConfig.GhostFlagsEntry-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_NOTIFY_ISSUE_APPROVED | 23 | Notifications via webhooks.-TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification. |-| TYPE_NOTIFY_PIPELINE_ROLLOUT | 24 | TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification. |-| TYPE_ISSUE_CREATE | 1 | Issue related activity types.-TYPE_ISSUE_CREATE represents creating an issue. |-| TYPE_ISSUE_COMMENT_CREATE | 2 | TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue. |-| TYPE_ISSUE_FIELD_UPDATE | 3 | TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc. |-| TYPE_ISSUE_STATUS_UPDATE | 4 | TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now. |-| TYPE_ISSUE_APPROVAL_NOTIFY | 21 | TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |-| TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE | 5 | TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |-| TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE | 6 | TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |-| TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE | 22 | TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED. |-| TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE | 8 | TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |-| TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 9 | TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |-| TYPE_MEMBER_CREATE | 10 | Member related activity types.+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |-TYPE_MEMBER_CREATE represents creating a members. |-| TYPE_MEMBER_ROLE_UPDATE | 11 | TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER. |-| TYPE_MEMBER_ACTIVATE | 12 | TYPE_MEMBER_ACTIVATE represents activating a deactivated member. |-| TYPE_MEMBER_DEACTIVATE | 13 | TYPE_MEMBER_DEACTIVATE represents deactivating an active member. |-| TYPE_PROJECT_REPOSITORY_PUSH | 14 | Project related activity types.-TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |-| TYPE_PROJECT_DATABASE_TRANSFER | 15 | TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another. |-| TYPE_PROJECT_MEMBER_CREATE | 16 | TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project. |-| TYPE_PROJECT_MEMBER_DELETE | 17 | TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project. |-| TYPE_SQL_EDITOR_QUERY | 19 | SQL Editor related activity types. TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor. |-<a name="bytebase-v1-OperatorType"></a>-### OperatorType+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail"></a>+### Plan.ChangeDatabaseConfig.PreUpdateBackupDetail-| Name | Number | Description |-| ---- | ------ | ----------- |-| OPERATOR_TYPE_UNSPECIFIED | 0 | The operator is not specified. |-| OPERATOR_TYPE_IN | 1 | The operator is "In". |-| OPERATOR_TYPE_EXISTS | 2 | The operator is "Exists". |-| OPERATOR_TYPE_NOT_IN | 3 | The operator is "Not In". |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| database | [string](#string) | | The database for keeping the backup data. Format: instances/{instance}/databases/{database} |-<a name="bytebase-v1-Webhook-Type"></a>-### Webhook.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| TYPE_SLACK | 1 | |-| TYPE_DISCORD | 2 | |-| TYPE_TEAMS | 3 | |-| TYPE_DINGTALK | 4 | |-| TYPE_FEISHU | 5 | |-| TYPE_WECOM | 6 | |-| TYPE_CUSTOM | 7 | |+<a name="bytebase-v1-Plan-CreateDatabaseConfig"></a>-<a name="bytebase-v1-Workflow"></a>+### Plan.CreateDatabaseConfig-### Workflow-| Name | Number | Description |-| ---- | ------ | ----------- |-| WORKFLOW_UNSPECIFIED | 0 | |-| UI | 1 | |-| VCS | 2 | |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| target | [string](#string) | | The resource name of the instance on which the database is created. Format: instances/{instance} |+| database | [string](#string) | | The name of the database to create. |+| table | [string](#string) | | 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. |+| character_set | [string](#string) | | character_set is the character set of the database. |+| collation | [string](#string) | | collation is the collation of the database. |+| cluster | [string](#string) | | cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". |+| owner | [string](#string) | | owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". |+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |+| labels | [Plan.CreateDatabaseConfig.LabelsEntry](#bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry) | repeated | labels of the database. |---<a name="bytebase-v1-ProjectService"></a>-### ProjectService+<a name="bytebase-v1-Plan-CreateDatabaseConfig-LabelsEntry"></a>+### Plan.CreateDatabaseConfig.LabelsEntry-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetProject | [GetProjectRequest](#bytebase-v1-GetProjectRequest) | [Project](#bytebase-v1-Project) | |-| ListProjects | [ListProjectsRequest](#bytebase-v1-ListProjectsRequest) | [ListProjectsResponse](#bytebase-v1-ListProjectsResponse) | |-| SearchProjects | [SearchProjectsRequest](#bytebase-v1-SearchProjectsRequest) | [SearchProjectsResponse](#bytebase-v1-SearchProjectsResponse) | |-| CreateProject | [CreateProjectRequest](#bytebase-v1-CreateProjectRequest) | [Project](#bytebase-v1-Project) | |-| UpdateProject | [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest) | [Project](#bytebase-v1-Project) | |-| DeleteProject | [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteProject | [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest) | [Project](#bytebase-v1-Project) | |-| GetIamPolicy | [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |-| BatchGetIamPolicy | [BatchGetIamPolicyRequest](#bytebase-v1-BatchGetIamPolicyRequest) | [BatchGetIamPolicyResponse](#bytebase-v1-BatchGetIamPolicyResponse) | Deprecated. |-| SetIamPolicy | [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |-| GetDeploymentConfig | [GetDeploymentConfigRequest](#bytebase-v1-GetDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |-| UpdateDeploymentConfig | [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |-| AddWebhook | [AddWebhookRequest](#bytebase-v1-AddWebhookRequest) | [Project](#bytebase-v1-Project) | |-| UpdateWebhook | [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest) | [Project](#bytebase-v1-Project) | |-| RemoveWebhook | [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest) | [Project](#bytebase-v1-Project) | |-| TestWebhook | [TestWebhookRequest](#bytebase-v1-TestWebhookRequest) | [TestWebhookResponse](#bytebase-v1-TestWebhookResponse) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="v1_review_config_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/review_config_service.proto-<a name="bytebase-v1-CreateReviewConfigRequest"></a>+<a name="bytebase-v1-Plan-ExportDataConfig"></a>-### CreateReviewConfigRequest+### Plan.ExportDataConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to create. |+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |+| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |+| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |-<a name="bytebase-v1-DeleteReviewConfigRequest"></a>+<a name="bytebase-v1-Plan-PlanCheckRunStatusCountEntry"></a>-### DeleteReviewConfigRequest+### Plan.PlanCheckRunStatusCountEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sql review to delete. Format: reviewConfigs/{reviewConfig} |+| key | [string](#string) | | |+| value | [int32](#int32) | | |-<a name="bytebase-v1-GetReviewConfigRequest"></a>+<a name="bytebase-v1-Plan-Spec"></a>-### GetReviewConfigRequest+### Plan.Spec| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |+| earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | earliest_allowed_time the earliest execution time of the change. |+| id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |+| depends_on_specs | [string](#string) | repeated | IDs of the specs that this spec depends on. Must be a subset of the specs in the same step. |+| create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | |+| change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | |+| export_data_config | [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig) | | |-<a name="bytebase-v1-ListReviewConfigsRequest"></a>+<a name="bytebase-v1-Plan-Step"></a>-### ListReviewConfigsRequest+### Plan.Step| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | The maximum number of sql review to return. The service may return fewer than this value. If unspecified, at most 50 sql review will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListSQLReviews` must match the call that provided the page token. |+| title | [string](#string) | | |+| specs | [Plan.Spec](#bytebase-v1-Plan-Spec) | repeated | |-<a name="bytebase-v1-ListReviewConfigsResponse"></a>+<a name="bytebase-v1-Plan-VCSSource"></a>-### ListReviewConfigsResponse+### Plan.VCSSource| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| review_configs | [ReviewConfig](#bytebase-v1-ReviewConfig) | repeated | The sql review from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| vcs_type | [VCSType](#bytebase-v1-VCSType) | | |+| vcs_connector | [string](#string) | | Optional. If present, we will update the pull request for rollout status. Format: projects/{project-ID}/vcsConnectors/{vcs-connector} |+| pull_request_url | [string](#string) | | |-<a name="bytebase-v1-ReviewConfig"></a>+<a name="bytebase-v1-PlanCheckRun"></a>-### ReviewConfig+### PlanCheckRun| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |-| title | [string](#string) | | |-| enabled | [bool](#bool) | | |-| creator | [string](#string) | | Format: users/[email protected] |+| name | [string](#string) | | Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} |+| type | [PlanCheckRun.Type](#bytebase-v1-PlanCheckRun-Type) | | |+| status | [PlanCheckRun.Status](#bytebase-v1-PlanCheckRun-Status) | | |+| target | [string](#string) | | Format: instances/{instance}/databases/{database} |+| sheet | [string](#string) | | Format: project/{project}/sheets/{sheet} |+| results | [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result) | repeated | |+| error | [string](#string) | | error is set if the Status is FAILED. || create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |-| resources | [string](#string) | repeated | resources using the config. Format: {resurce}/{resource id}, for example, environments/test. |-<a name="bytebase-v1-UpdateReviewConfigRequest"></a>+<a name="bytebase-v1-PlanCheckRun-Result"></a>-### UpdateReviewConfigRequest+### PlanCheckRun.Result| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to update.--The name field is used to identify the sql review to update. |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |----+| status | [PlanCheckRun.Result.Status](#bytebase-v1-PlanCheckRun-Result-Status) | | |+| title | [string](#string) | | |+| content | [string](#string) | | |+| code | [int32](#int32) | | |+| sql_summary_report | [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport) | | |+| sql_review_report | [PlanCheckRun.Result.SqlReviewReport](#bytebase-v1-PlanCheckRun-Result-SqlReviewReport) | | |----<a name="bytebase-v1-ReviewConfigService"></a>-### ReviewConfigService+<a name="bytebase-v1-PlanCheckRun-Result-SqlReviewReport"></a>+### PlanCheckRun.Result.SqlReviewReport-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| CreateReviewConfig | [CreateReviewConfigRequest](#bytebase-v1-CreateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |-| ListReviewConfigs | [ListReviewConfigsRequest](#bytebase-v1-ListReviewConfigsRequest) | [ListReviewConfigsResponse](#bytebase-v1-ListReviewConfigsResponse) | |-| GetReviewConfig | [GetReviewConfigRequest](#bytebase-v1-GetReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |-| UpdateReviewConfig | [UpdateReviewConfigRequest](#bytebase-v1-UpdateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |-| DeleteReviewConfig | [DeleteReviewConfigRequest](#bytebase-v1-DeleteReviewConfigRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| line | [int32](#int32) | | |+| column | [int32](#int32) | | |+| detail | [string](#string) | | |+| code | [int32](#int32) | | Code from sql review. |+| start_position | [Position](#bytebase-v1-Position) | | 1-based Position of the SQL statement. To supersede `line` and `column` above. |+| end_position | [Position](#bytebase-v1-Position) | | |-<a name="v1_risk_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/risk_service.proto-<a name="bytebase-v1-CreateRiskRequest"></a>+<a name="bytebase-v1-PlanCheckRun-Result-SqlSummaryReport"></a>-### CreateRiskRequest+### PlanCheckRun.Result.SqlSummaryReport| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risk | [Risk](#bytebase-v1-Risk) | | The risk to create. |+| code | [int32](#int32) | | |+| statement_types | [string](#string) | repeated | statement_types are the types of statements that are found in the sql. |+| affected_rows | [int32](#int32) | | |+| changed_resources | [ChangedResources](#bytebase-v1-ChangedResources) | | |-<a name="bytebase-v1-DeleteRiskRequest"></a>+<a name="bytebase-v1-RunPlanChecksRequest"></a>-### DeleteRiskRequest+### RunPlanChecksRequest| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the risk to delete. Format: risks/{risk} |---+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | The plan to run plan checks. Format: projects/{project}/plans/{plan} |-<a name="bytebase-v1-ListRisksRequest"></a>-### ListRisksRequest+<a name="bytebase-v1-RunPlanChecksResponse"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `ListRisks` call. Provide this to retrieve the subsequent page.+### RunPlanChecksResponse-When paginating, all other parameters provided to `LiskRisks` must match the call that provided the page token. |-<a name="bytebase-v1-ListRisksResponse"></a>+<a name="bytebase-v1-SearchPlansRequest"></a>-### ListRisksResponse+### SearchPlansRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risks | [Risk](#bytebase-v1-Risk) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| filter | [string](#string) | | Filter is used to filter plans returned in the list. |-<a name="bytebase-v1-Risk"></a>-### Risk+<a name="bytebase-v1-SearchPlansResponse"></a>++### SearchPlansResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: risks/{risk} |-| source | [Risk.Source](#bytebase-v1-Risk-Source) | | |-| title | [string](#string) | | |-| level | [int32](#int32) | | |-| active | [bool](#bool) | | |-| condition | [google.type.Expr](#google-type-Expr) | | |+| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-UpdateRiskRequest"></a>+<a name="bytebase-v1-UpdatePlanRequest"></a>-### UpdateRiskRequest+### UpdatePlanRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| risk | [Risk](#bytebase-v1-Risk) | | The risk to update.+| plan | [Plan](#bytebase-v1-Plan) | | The plan to update.-The risk's `name` field is used to identify the risk to update. Format: risks/{risk} |+The plan's `name` field is used to identify the plan to update. Format: projects/{project}/plans/{plan} || update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |@@ -7936,1002 +7976,963 @@ The risk's `name` field is used to identify the risk to update. Format: risk-<a name="bytebase-v1-Risk-Source"></a>--### Risk.Source+<a name="bytebase-v1-Plan-ChangeDatabaseConfig-Type"></a>+### Plan.ChangeDatabaseConfig.Type+Type is the database change type.| Name | Number | Description || ---- | ------ | ----------- |-| SOURCE_UNSPECIFIED | 0 | |-| DDL | 1 | |-| DML | 2 | |-| CREATE_DATABASE | 3 | |-| REQUEST_QUERY | 4 | |-| REQUEST_EXPORT | 5 | |-| DATA_EXPORT | 6 | |--------<a name="bytebase-v1-RiskService"></a>--### RiskService-+| TYPE_UNSPECIFIED | 0 | |+| BASELINE | 1 | Used for establishing schema baseline, this is used when 1. Onboard the database into Bytebase since Bytebase needs to know the current database schema. 2. Had schema drift and need to re-establish the baseline. |+| MIGRATE | 2 | Used for DDL changes including CREATE DATABASE. |+| MIGRATE_SDL | 3 | Used for schema changes via state-based schema migration including CREATE DATABASE. |+| MIGRATE_GHOST | 4 | Used for DDL changes using gh-ost. |+| DATA | 6 | Used for DML change. |-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| ListRisks | [ListRisksRequest](#bytebase-v1-ListRisksRequest) | [ListRisksResponse](#bytebase-v1-ListRisksResponse) | |-| CreateRisk | [CreateRiskRequest](#bytebase-v1-CreateRiskRequest) | [Risk](#bytebase-v1-Risk) | |-| UpdateRisk | [UpdateRiskRequest](#bytebase-v1-UpdateRiskRequest) | [Risk](#bytebase-v1-Risk) | |-| DeleteRisk | [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+<a name="bytebase-v1-PlanCheckRun-Result-Status"></a>+### PlanCheckRun.Result.Status-<a name="v1_role_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/role_service.proto+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| ERROR | 1 | |+| WARNING | 2 | |+| SUCCESS | 3 | |-<a name="bytebase-v1-CreateRoleRequest"></a>+<a name="bytebase-v1-PlanCheckRun-Status"></a>-### CreateRoleRequest+### PlanCheckRun.Status+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| RUNNING | 1 | |+| DONE | 2 | |+| FAILED | 3 | |+| CANCELED | 4 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| role | [Role](#bytebase-v1-Role) | | |-| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.-This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |+<a name="bytebase-v1-PlanCheckRun-Type"></a>+### PlanCheckRun.Type+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| DATABASE_STATEMENT_FAKE_ADVISE | 1 | |+| DATABASE_STATEMENT_ADVISE | 3 | |+| DATABASE_STATEMENT_SUMMARY_REPORT | 5 | |+| DATABASE_CONNECT | 6 | |+| DATABASE_GHOST_SYNC | 7 | |-<a name="bytebase-v1-DeleteRoleRequest"></a>+-### DeleteRoleRequest++<a name="bytebase-v1-PlanService"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: roles/{role} |+### PlanService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetPlan | [GetPlanRequest](#bytebase-v1-GetPlanRequest) | [Plan](#bytebase-v1-Plan) | |+| ListPlans | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | |+| SearchPlans | [SearchPlansRequest](#bytebase-v1-SearchPlansRequest) | [SearchPlansResponse](#bytebase-v1-SearchPlansResponse) | Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query. |+| CreatePlan | [CreatePlanRequest](#bytebase-v1-CreatePlanRequest) | [Plan](#bytebase-v1-Plan) | |+| UpdatePlan | [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest) | [Plan](#bytebase-v1-Plan) | UpdatePlan updates the plan. The plan creator and the user with bb.plans.update permission on the project can update the plan. |+| ListPlanCheckRuns | [ListPlanCheckRunsRequest](#bytebase-v1-ListPlanCheckRunsRequest) | [ListPlanCheckRunsResponse](#bytebase-v1-ListPlanCheckRunsResponse) | |+| RunPlanChecks | [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest) | [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse) | |+| BatchCancelPlanCheckRuns | [BatchCancelPlanCheckRunsRequest](#bytebase-v1-BatchCancelPlanCheckRunsRequest) | [BatchCancelPlanCheckRunsResponse](#bytebase-v1-BatchCancelPlanCheckRunsResponse) | |+-<a name="bytebase-v1-ListRolesRequest"></a>+<a name="v1_project_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>-### ListRolesRequest+## v1/project_service.proto-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.+<a name="bytebase-v1-Activity"></a>-When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |+### Activity+TODO(zp): move to activity later.-<a name="bytebase-v1-ListRolesResponse"></a>+<a name="bytebase-v1-AddWebhookRequest"></a>-### ListRolesResponse+### AddWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| roles | [Role](#bytebase-v1-Role) | repeated | |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| project | [string](#string) | | The name of the project to add the webhook to. Format: projects/{project} |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to add. |-<a name="bytebase-v1-Role"></a>+<a name="bytebase-v1-BatchGetIamPolicyRequest"></a>-### Role+### BatchGetIamPolicyRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: roles/{role} |-| title | [string](#string) | | |-| description | [string](#string) | | |-| permissions | [string](#string) | repeated | |+| scope | [string](#string) | | The scope of the batch get. Typically it's "projects/-". |+| names | [string](#string) | repeated | |-<a name="bytebase-v1-UpdateRoleRequest"></a>+<a name="bytebase-v1-BatchGetIamPolicyResponse"></a>-### UpdateRoleRequest+### BatchGetIamPolicyResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| role | [Role](#bytebase-v1-Role) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |----+| policy_results | [BatchGetIamPolicyResponse.PolicyResult](#bytebase-v1-BatchGetIamPolicyResponse-PolicyResult) | repeated | |----<a name="bytebase-v1-RoleService"></a>-### RoleService+<a name="bytebase-v1-BatchGetIamPolicyResponse-PolicyResult"></a>+### BatchGetIamPolicyResponse.PolicyResult-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |-| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |-| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |-| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| project | [string](#string) | | |+| policy | [IamPolicy](#bytebase-v1-IamPolicy) | | |-<a name="v1_rollout_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/rollout_service.proto-<a name="bytebase-v1-BatchCancelTaskRunsRequest"></a>+<a name="bytebase-v1-CreateProjectRequest"></a>-### BatchCancelTaskRunsRequest+### CreateProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the taskRuns. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. |-| task_runs | [string](#string) | repeated | The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-| reason | [string](#string) | | |-------<a name="bytebase-v1-BatchCancelTaskRunsResponse"></a>--### BatchCancelTaskRunsResponse+| project | [Project](#bytebase-v1-Project) | | The project to create. |+| project_id | [string](#string) | | 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]-/. |-<a name="bytebase-v1-BatchRunTasksRequest"></a>+<a name="bytebase-v1-DeleteProjectRequest"></a>-### BatchRunTasksRequest+### DeleteProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| tasks | [string](#string) | repeated | The tasks to run. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| reason | [string](#string) | | |-------<a name="bytebase-v1-BatchRunTasksResponse"></a>--### BatchRunTasksResponse-+| name | [string](#string) | | The name of the project to delete. Format: projects/{project} |+| force | [bool](#bool) | | 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. |-<a name="bytebase-v1-BatchSkipTasksRequest"></a>+<a name="bytebase-v1-DeploymentConfig"></a>-### BatchSkipTasksRequest+### DeploymentConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| tasks | [string](#string) | repeated | The tasks to skip. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| reason | [string](#string) | | |+| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |+| title | [string](#string) | | The title of the deployment config. |+| schedule | [Schedule](#bytebase-v1-Schedule) | | |-<a name="bytebase-v1-BatchSkipTasksResponse"></a>+<a name="bytebase-v1-DeploymentSpec"></a>-### BatchSkipTasksResponse+### DeploymentSpec+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| label_selector | [LabelSelector](#bytebase-v1-LabelSelector) | | |++-<a name="bytebase-v1-CreateRolloutRequest"></a>+<a name="bytebase-v1-GetDeploymentConfigRequest"></a>-### CreateRolloutRequest+### GetDeploymentConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent project where this rollout will be created. Format: projects/{project} |-| rollout | [Rollout](#bytebase-v1-Rollout) | | The rollout to create. |+| name | [string](#string) | | The name of the resource. Format: projects/{project}/deploymentConfigs/default. |-<a name="bytebase-v1-GetRolloutRequest"></a>+<a name="bytebase-v1-GetProjectRequest"></a>-### GetRolloutRequest+### GetProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |+| name | [string](#string) | | The name of the project to retrieve. Format: projects/{project} |-<a name="bytebase-v1-GetTaskRunLogRequest"></a>+<a name="bytebase-v1-Label"></a>-### GetTaskRunLogRequest+### Label| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} TODO(d): check the resource_reference. |+| value | [string](#string) | | |+| color | [string](#string) | | |+| group | [string](#string) | | |-<a name="bytebase-v1-GetTaskRunSessionRequest"></a>+<a name="bytebase-v1-LabelSelector"></a>-### GetTaskRunSessionRequest+### LabelSelector| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| match_expressions | [LabelSelectorRequirement](#bytebase-v1-LabelSelectorRequirement) | repeated | |-<a name="bytebase-v1-ListTaskRunsRequest"></a>+<a name="bytebase-v1-LabelSelectorRequirement"></a>-### ListTaskRunsRequest+### LabelSelectorRequirement| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+| key | [string](#string) | | |+| operator | [OperatorType](#bytebase-v1-OperatorType) | | |+| values | [string](#string) | repeated | |-<a name="bytebase-v1-ListTaskRunsResponse"></a>+<a name="bytebase-v1-ListProjectsRequest"></a>-### ListTaskRunsResponse+### ListProjectsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |+| show_deleted | [bool](#bool) | | Show deleted projects if specified. |-<a name="bytebase-v1-PreviewRolloutRequest"></a>-### PreviewRolloutRequest+<a name="bytebase-v1-ListProjectsResponse"></a>++### ListProjectsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The name of the project. Format: projects/{project} |-| plan | [Plan](#bytebase-v1-Plan) | | The plan used to preview rollout. |+| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-PreviewTaskRunRollbackRequest"></a>+<a name="bytebase-v1-Project"></a>-### PreviewTaskRunRollbackRequest+### Project| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| name | [string](#string) | | The name of the project. Format: projects/{project} |+| state | [State](#bytebase-v1-State) | | |+| title | [string](#string) | | The title or name of a project. It's not unique within the workspace. |+| key | [string](#string) | | The key is a short and upper-case identifier for a project. It's unique within the workspace. |+| workflow | [Workflow](#bytebase-v1-Workflow) | | |+| webhooks | [Webhook](#bytebase-v1-Webhook) | repeated | |+| data_classification_config_id | [string](#string) | | |+| issue_labels | [Label](#bytebase-v1-Label) | repeated | |+| force_issue_labels | [bool](#bool) | | Force issue labels to be used when creating an issue. |+| allow_modify_statement | [bool](#bool) | | Allow modifying statement after issue is created. |+| auto_resolve_issue | [bool](#bool) | | Enable auto resolve issue. |+| enforce_issue_title | [bool](#bool) | | Enforce issue title created by user instead of generated by Bytebase. |+| auto_enable_backup | [bool](#bool) | | Whether to automatically enable backup. |+| skip_backup_errors | [bool](#bool) | | Whether to skip backup errors and continue the data migration. |-<a name="bytebase-v1-PreviewTaskRunRollbackResponse"></a>+<a name="bytebase-v1-RemoveWebhookRequest"></a>-### PreviewTaskRunRollbackResponse+### RemoveWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| statement | [string](#string) | | |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to remove. Identified by its url. |-<a name="bytebase-v1-Rollout"></a>+<a name="bytebase-v1-Schedule"></a>-### Rollout+### Schedule| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the rollout. Format: projects/{project}/rollouts/{rollout} |-| plan | [string](#string) | | The plan that this rollout is based on. Format: projects/{project}/plans/{plan} |-| title | [string](#string) | | |-| stages | [Stage](#bytebase-v1-Stage) | repeated | stages and thus tasks of the rollout. |+| deployments | [ScheduleDeployment](#bytebase-v1-ScheduleDeployment) | repeated | |-<a name="bytebase-v1-Stage"></a>+<a name="bytebase-v1-ScheduleDeployment"></a>-### Stage+### ScheduleDeployment| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |-| title | [string](#string) | | |-| tasks | [Task](#bytebase-v1-Task) | repeated | |+| title | [string](#string) | | The title of the deployment (stage) in a schedule. |+| spec | [DeploymentSpec](#bytebase-v1-DeploymentSpec) | | |-<a name="bytebase-v1-Task"></a>+<a name="bytebase-v1-SearchProjectsRequest"></a>-### Task+### SearchProjectsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| title | [string](#string) | | |-| spec_id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. Could be empty if the rollout of the task does not have an associating plan. |-| status | [Task.Status](#bytebase-v1-Task-Status) | | Status is the status of the task. |-| skipped_reason | [string](#string) | | |-| type | [Task.Type](#bytebase-v1-Task-Type) | | |-| depends_on_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| target | [string](#string) | | Format: instances/{instance} if the task is DatabaseCreate. Format: instances/{instance}/databases/{database} |-| database_create | [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate) | | |-| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | |-| database_schema_update | [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate) | | |-| database_data_update | [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate) | | |-| database_data_export | [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport) | | |+| show_deleted | [bool](#bool) | | Show deleted projects if specified. |-<a name="bytebase-v1-Task-DatabaseCreate"></a>+<a name="bytebase-v1-SearchProjectsResponse"></a>-### Task.DatabaseCreate+### SearchProjectsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| project | [string](#string) | | The project owning the database. Format: projects/{project} |-| database | [string](#string) | | database name |-| table | [string](#string) | | table name |-| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |-| character_set | [string](#string) | | |-| collation | [string](#string) | | |-| environment | [string](#string) | | |-| labels | [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry) | repeated | |+| projects | [Project](#bytebase-v1-Project) | repeated | The projects from the specified request. |-<a name="bytebase-v1-Task-DatabaseCreate-LabelsEntry"></a>+<a name="bytebase-v1-TestWebhookRequest"></a>-### Task.DatabaseCreate.LabelsEntry+### TestWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [string](#string) | | |+| project | [string](#string) | | The name of the project which owns the webhook to test. Format: projects/{project} |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to test. Identified by its url. |-<a name="bytebase-v1-Task-DatabaseDataExport"></a>+<a name="bytebase-v1-TestWebhookResponse"></a>-### Task.DatabaseDataExport+### TestWebhookResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |-| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |-| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |-| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |+| error | [string](#string) | | The result of the test, empty if the test is successful. |-<a name="bytebase-v1-Task-DatabaseDataUpdate"></a>+<a name="bytebase-v1-UndeleteProjectRequest"></a>-### Task.DatabaseDataUpdate+### UndeleteProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |-| schema_version | [string](#string) | | |+| name | [string](#string) | | The name of the deleted project. Format: projects/{project} |-<a name="bytebase-v1-Task-DatabaseSchemaBaseline"></a>+<a name="bytebase-v1-UpdateDeploymentConfigRequest"></a>-### Task.DatabaseSchemaBaseline+### UpdateDeploymentConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema_version | [string](#string) | | |+| deployment_config | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | | |-<a name="bytebase-v1-Task-DatabaseSchemaUpdate"></a>+<a name="bytebase-v1-UpdateProjectRequest"></a>-### Task.DatabaseSchemaUpdate+### UpdateProjectRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |-| schema_version | [string](#string) | | |+| project | [Project](#bytebase-v1-Project) | | The project to update.++The project's `name` field is used to identify the project to update. Format: projects/{project} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-TaskRun"></a>+<a name="bytebase-v1-UpdateWebhookRequest"></a>-### TaskRun+### UpdateWebhookRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-| creator | [string](#string) | | Format: user/[email protected] |-| updater | [string](#string) | | Format: user/[email protected] |-| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| title | [string](#string) | | |-| status | [TaskRun.Status](#bytebase-v1-TaskRun-Status) | | |-| detail | [string](#string) | | Below are the results of a task run. |-| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |-| schema_version | [string](#string) | | |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| export_archive_status | [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus) | | |-| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | The prior backup detail that will be used to rollback the task run. |-| scheduler_info | [TaskRun.SchedulerInfo](#bytebase-v1-TaskRun-SchedulerInfo) | | |+| webhook | [Webhook](#bytebase-v1-Webhook) | | The webhook to modify. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-TaskRun-PriorBackupDetail"></a>+<a name="bytebase-v1-Webhook"></a>-### TaskRun.PriorBackupDetail+### Webhook| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| items | [TaskRun.PriorBackupDetail.Item](#bytebase-v1-TaskRun-PriorBackupDetail-Item) | repeated | |+| name | [string](#string) | | name is the name of the webhook, generated by the server. format: projects/{project}/webhooks/{webhook} |+| type | [Webhook.Type](#bytebase-v1-Webhook-Type) | | type is the type of the webhook. |+| title | [string](#string) | | title is the title of the webhook. |+| url | [string](#string) | | url is the url of the webhook, should be unique within the project. |+| direct_message | [bool](#bool) | | if direct_message is set, the notification is sent directly to the persons and url will be ignored. IM integration setting should be set for this function to work. |+| notification_types | [Activity.Type](#bytebase-v1-Activity-Type) | repeated | 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 should 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_CREATE |+-<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item"></a>-### TaskRun.PriorBackupDetail.Item+<a name="bytebase-v1-Activity-Type"></a>+### Activity.Type-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| source_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The original table information. |-| target_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The target backup table information. |-| start_position | [Position](#bytebase-v1-Position) | | |-| end_position | [Position](#bytebase-v1-Position) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_NOTIFY_ISSUE_APPROVED | 23 | Notifications via webhooks.+TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification. |+| TYPE_NOTIFY_PIPELINE_ROLLOUT | 24 | TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification. |+| TYPE_ISSUE_CREATE | 1 | Issue related activity types.+TYPE_ISSUE_CREATE represents creating an issue. |+| TYPE_ISSUE_COMMENT_CREATE | 2 | TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue. |+| TYPE_ISSUE_FIELD_UPDATE | 3 | TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc. |+| TYPE_ISSUE_STATUS_UPDATE | 4 | TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now. |+| TYPE_ISSUE_APPROVAL_NOTIFY | 21 | TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval. |+| TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE | 5 | TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now. |+| TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE | 6 | TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now. |+| TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE | 22 | TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED. |+| TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE | 8 | TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement. |+| TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE | 9 | TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time. |+| TYPE_MEMBER_CREATE | 10 | Member related activity types.+TYPE_MEMBER_CREATE represents creating a members. |+| TYPE_MEMBER_ROLE_UPDATE | 11 | TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER. |+| TYPE_MEMBER_ACTIVATE | 12 | TYPE_MEMBER_ACTIVATE represents activating a deactivated member. |+| TYPE_MEMBER_DEACTIVATE | 13 | TYPE_MEMBER_DEACTIVATE represents deactivating an active member. |+| TYPE_PROJECT_REPOSITORY_PUSH | 14 | Project related activity types.+TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository. |+| TYPE_PROJECT_DATABASE_TRANSFER | 15 | TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another. |+| TYPE_PROJECT_MEMBER_CREATE | 16 | TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project. |+| TYPE_PROJECT_MEMBER_DELETE | 17 | TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project. |+| TYPE_SQL_EDITOR_QUERY | 19 | SQL Editor related activity types. TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor. |-<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item-Table"></a>-### TaskRun.PriorBackupDetail.Item.Table+<a name="bytebase-v1-OperatorType"></a>+### OperatorType-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | |-| table | [string](#string) | | |+| Name | Number | Description |+| ---- | ------ | ----------- |+| OPERATOR_TYPE_UNSPECIFIED | 0 | The operator is not specified. |+| OPERATOR_TYPE_IN | 1 | The operator is "In". |+| OPERATOR_TYPE_EXISTS | 2 | The operator is "Exists". |+| OPERATOR_TYPE_NOT_IN | 3 | The operator is "Not In". |+<a name="bytebase-v1-Webhook-Type"></a>+### Webhook.Type-<a name="bytebase-v1-TaskRun-SchedulerInfo"></a>+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| TYPE_SLACK | 1 | |+| TYPE_DISCORD | 2 | |+| TYPE_TEAMS | 3 | |+| TYPE_DINGTALK | 4 | |+| TYPE_FEISHU | 5 | |+| TYPE_WECOM | 6 | |+| TYPE_CUSTOM | 7 | |-### TaskRun.SchedulerInfo+<a name="bytebase-v1-Workflow"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| report_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| waiting_cause | [TaskRun.SchedulerInfo.WaitingCause](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause) | | |+### Workflow+| Name | Number | Description |+| ---- | ------ | ----------- |+| WORKFLOW_UNSPECIFIED | 0 | |+| UI | 1 | |+| VCS | 2 | |++-<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause"></a>-### TaskRun.SchedulerInfo.WaitingCause+<a name="bytebase-v1-ProjectService"></a>+### ProjectService-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| connection_limit | [bool](#bool) | | |-| task | [TaskRun.SchedulerInfo.WaitingCause.Task](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task) | | |+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| GetProject | [GetProjectRequest](#bytebase-v1-GetProjectRequest) | [Project](#bytebase-v1-Project) | |+| ListProjects | [ListProjectsRequest](#bytebase-v1-ListProjectsRequest) | [ListProjectsResponse](#bytebase-v1-ListProjectsResponse) | |+| SearchProjects | [SearchProjectsRequest](#bytebase-v1-SearchProjectsRequest) | [SearchProjectsResponse](#bytebase-v1-SearchProjectsResponse) | |+| CreateProject | [CreateProjectRequest](#bytebase-v1-CreateProjectRequest) | [Project](#bytebase-v1-Project) | |+| UpdateProject | [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest) | [Project](#bytebase-v1-Project) | |+| DeleteProject | [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteProject | [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest) | [Project](#bytebase-v1-Project) | |+| GetIamPolicy | [GetIamPolicyRequest](#bytebase-v1-GetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |+| BatchGetIamPolicy | [BatchGetIamPolicyRequest](#bytebase-v1-BatchGetIamPolicyRequest) | [BatchGetIamPolicyResponse](#bytebase-v1-BatchGetIamPolicyResponse) | Deprecated. |+| SetIamPolicy | [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest) | [IamPolicy](#bytebase-v1-IamPolicy) | |+| GetDeploymentConfig | [GetDeploymentConfigRequest](#bytebase-v1-GetDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |+| UpdateDeploymentConfig | [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest) | [DeploymentConfig](#bytebase-v1-DeploymentConfig) | |+| AddWebhook | [AddWebhookRequest](#bytebase-v1-AddWebhookRequest) | [Project](#bytebase-v1-Project) | |+| UpdateWebhook | [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest) | [Project](#bytebase-v1-Project) | |+| RemoveWebhook | [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest) | [Project](#bytebase-v1-Project) | |+| TestWebhook | [TestWebhookRequest](#bytebase-v1-TestWebhookRequest) | [TestWebhookResponse](#bytebase-v1-TestWebhookResponse) | |++++<a name="v1_review_config_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/review_config_service.proto-<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task"></a>+<a name="bytebase-v1-CreateReviewConfigRequest"></a>-### TaskRun.SchedulerInfo.WaitingCause.Task+### CreateReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| task | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |-| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |+| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to create. |-<a name="bytebase-v1-TaskRunLog"></a>+<a name="bytebase-v1-DeleteReviewConfigRequest"></a>-### TaskRunLog+### DeleteReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log |-| entries | [TaskRunLogEntry](#bytebase-v1-TaskRunLogEntry) | repeated | |+| name | [string](#string) | | The name of the sql review to delete. Format: reviewConfigs/{reviewConfig} |-<a name="bytebase-v1-TaskRunLogEntry"></a>+<a name="bytebase-v1-GetReviewConfigRequest"></a>-### TaskRunLogEntry+### GetReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| type | [TaskRunLogEntry.Type](#bytebase-v1-TaskRunLogEntry-Type) | | |-| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| deploy_id | [string](#string) | | |-| schema_dump | [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump) | | |-| command_execute | [TaskRunLogEntry.CommandExecute](#bytebase-v1-TaskRunLogEntry-CommandExecute) | | |-| database_sync | [TaskRunLogEntry.DatabaseSync](#bytebase-v1-TaskRunLogEntry-DatabaseSync) | | |-| task_run_status_update | [TaskRunLogEntry.TaskRunStatusUpdate](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate) | | |-| transaction_control | [TaskRunLogEntry.TransactionControl](#bytebase-v1-TaskRunLogEntry-TransactionControl) | | |+| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |-<a name="bytebase-v1-TaskRunLogEntry-CommandExecute"></a>+<a name="bytebase-v1-ListReviewConfigsRequest"></a>-### TaskRunLogEntry.CommandExecute+### ListReviewConfigsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| command_indexes | [int32](#int32) | repeated | The indexes of the executed commands. |-| response | [TaskRunLogEntry.CommandExecute.CommandResponse](#bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse) | | |+| page_size | [int32](#int32) | | The maximum number of sql review to return. The service may return fewer than this value. If unspecified, at most 50 sql review will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, provide this to retrieve the subsequent page.+When paginating, all other parameters provided to `ListSQLReviews` must match the call that provided the page token. |-<a name="bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse"></a>-### TaskRunLogEntry.CommandExecute.CommandResponse+<a name="bytebase-v1-ListReviewConfigsResponse"></a>++### ListReviewConfigsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| error | [string](#string) | | |-| affected_rows | [int32](#int32) | | |-| all_affected_rows | [int32](#int32) | repeated | `all_affected_rows` is the affected rows of each command. `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. |+| review_configs | [ReviewConfig](#bytebase-v1-ReviewConfig) | repeated | The sql review from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-TaskRunLogEntry-DatabaseSync"></a>+<a name="bytebase-v1-ReviewConfig"></a>-### TaskRunLogEntry.DatabaseSync+### ReviewConfig| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| error | [string](#string) | | |+| name | [string](#string) | | The name of the sql review to retrieve. Format: reviewConfigs/{reviewConfig} |+| title | [string](#string) | | |+| enabled | [bool](#bool) | | |+| creator | [string](#string) | | Format: users/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| rules | [SQLReviewRule](#bytebase-v1-SQLReviewRule) | repeated | |+| resources | [string](#string) | repeated | resources using the config. Format: {resurce}/{resource id}, for example, environments/test. |-<a name="bytebase-v1-TaskRunLogEntry-SchemaDump"></a>+<a name="bytebase-v1-UpdateReviewConfigRequest"></a>-### TaskRunLogEntry.SchemaDump+### UpdateReviewConfigRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| error | [string](#string) | | |-----+| review_config | [ReviewConfig](#bytebase-v1-ReviewConfig) | | The sql review to update.-<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate"></a>+The name field is used to identify the sql review to update. |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-### TaskRunLogEntry.TaskRunStatusUpdate-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| status | [TaskRunLogEntry.TaskRunStatusUpdate.Status](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status) | | |++++<a name="bytebase-v1-ReviewConfigService"></a>-<a name="bytebase-v1-TaskRunLogEntry-TransactionControl"></a>+### ReviewConfigService-### TaskRunLogEntry.TransactionControl+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| CreateReviewConfig | [CreateReviewConfigRequest](#bytebase-v1-CreateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |+| ListReviewConfigs | [ListReviewConfigsRequest](#bytebase-v1-ListReviewConfigsRequest) | [ListReviewConfigsResponse](#bytebase-v1-ListReviewConfigsResponse) | |+| GetReviewConfig | [GetReviewConfigRequest](#bytebase-v1-GetReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |+| UpdateReviewConfig | [UpdateReviewConfigRequest](#bytebase-v1-UpdateReviewConfigRequest) | [ReviewConfig](#bytebase-v1-ReviewConfig) | |+| DeleteReviewConfig | [DeleteReviewConfigRequest](#bytebase-v1-DeleteReviewConfigRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| type | [TaskRunLogEntry.TransactionControl.Type](#bytebase-v1-TaskRunLogEntry-TransactionControl-Type) | | |-| error | [string](#string) | | |+<a name="v1_risk_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>+## v1/risk_service.proto-<a name="bytebase-v1-TaskRunSession"></a>+<a name="bytebase-v1-CreateRiskRequest"></a>-### TaskRunSession+### CreateRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session |-| postgres | [TaskRunSession.Postgres](#bytebase-v1-TaskRunSession-Postgres) | | |+| risk | [Risk](#bytebase-v1-Risk) | | The risk to create. |-<a name="bytebase-v1-TaskRunSession-Postgres"></a>+<a name="bytebase-v1-DeleteRiskRequest"></a>-### TaskRunSession.Postgres+### DeleteRiskRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| session | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | | `session` is the session of the task run executing commands. |-| blocking_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocking_sessions` block `session`. |-| blocked_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocked_sessions` are blocked by `session`. |+| name | [string](#string) | | The name of the risk to delete. Format: risks/{risk} |-<a name="bytebase-v1-TaskRunSession-Postgres-Session"></a>+<a name="bytebase-v1-ListRisksRequest"></a>++### ListRisksRequest-### TaskRunSession.Postgres.Session-Read from `pg_stat_activity`| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| pid | [string](#string) | | |-| blocked_by_pids | [string](#string) | repeated | |-| query | [string](#string) | | |-| state | [string](#string) | optional | |-| wait_event_type | [string](#string) | optional | |-| wait_event | [string](#string) | optional | |-| datname | [string](#string) | optional | |-| usename | [string](#string) | optional | |-| application_name | [string](#string) | | |-| client_addr | [string](#string) | optional | |-| client_port | [string](#string) | optional | |-| backend_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| xact_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |-| query_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |----+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | A page token, received from a previous `ListRisks` call. Provide this to retrieve the subsequent page.-+When paginating, all other parameters provided to `LiskRisks` must match the call that provided the page token. |-<a name="bytebase-v1-Task-Status"></a>-### Task.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| NOT_STARTED | 1 | |-| PENDING | 2 | |-| RUNNING | 3 | |-| DONE | 4 | |-| FAILED | 5 | |-| CANCELED | 6 | |-| SKIPPED | 7 | |+<a name="bytebase-v1-ListRisksResponse"></a>+### ListRisksResponse-<a name="bytebase-v1-Task-Type"></a>-### Task.Type+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| risks | [Risk](#bytebase-v1-Risk) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| GENERAL | 1 | |-| DATABASE_CREATE | 2 | use payload DatabaseCreate |-| DATABASE_SCHEMA_BASELINE | 3 | use payload DatabaseSchemaBaseline |-| DATABASE_SCHEMA_UPDATE | 4 | use payload DatabaseSchemaUpdate |-| DATABASE_SCHEMA_UPDATE_SDL | 5 | use payload DatabaseSchemaUpdate |-| DATABASE_SCHEMA_UPDATE_GHOST_SYNC | 6 | use payload DatabaseSchemaUpdate |-| DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER | 7 | use payload nil |-| DATABASE_DATA_UPDATE | 8 | use payload DatabaseDataUpdate |-| DATABASE_DATA_EXPORT | 12 | use payload DatabaseDataExport |-<a name="bytebase-v1-TaskRun-ExportArchiveStatus"></a>-### TaskRun.ExportArchiveStatus+<a name="bytebase-v1-Risk"></a>-| Name | Number | Description |-| ---- | ------ | ----------- |-| EXPORT_ARCHIVE_STATUS_UNSPECIFIED | 0 | |-| READY | 1 | |-| EXPORTED | 2 | |+### Risk-<a name="bytebase-v1-TaskRun-Status"></a>+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: risks/{risk} |+| source | [Risk.Source](#bytebase-v1-Risk-Source) | | |+| title | [string](#string) | | |+| level | [int32](#int32) | | |+| active | [bool](#bool) | | |+| condition | [google.type.Expr](#google-type-Expr) | | |-### TaskRun.Status-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | |-| RUNNING | 2 | |-| DONE | 3 | |-| FAILED | 4 | |-| CANCELED | 5 | |-<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status"></a>+<a name="bytebase-v1-UpdateRiskRequest"></a>-### TaskRunLogEntry.TaskRunStatusUpdate.Status+### UpdateRiskRequest-| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| RUNNING_WAITING | 1 | the task run is ready to be executed by the scheduler |-| RUNNING_RUNNING | 2 | the task run is being executed by the scheduler |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| risk | [Risk](#bytebase-v1-Risk) | | The risk to update.+The risk's `name` field is used to identify the risk to update. Format: risks/{risk} |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |-<a name="bytebase-v1-TaskRunLogEntry-TransactionControl-Type"></a>-### TaskRunLogEntry.TransactionControl.Type-| Name | Number | Description |-| ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| BEGIN | 1 | |-| COMMIT | 2 | |-| ROLLBACK | 3 | |+-<a name="bytebase-v1-TaskRunLogEntry-Type"></a>+<a name="bytebase-v1-Risk-Source"></a>-### TaskRunLogEntry.Type+### Risk.Source| Name | Number | Description || ---- | ------ | ----------- |-| TYPE_UNSPECIFIED | 0 | |-| SCHEMA_DUMP | 1 | |-| COMMAND_EXECUTE | 2 | |-| DATABASE_SYNC | 3 | |-| TASK_RUN_STATUS_UPDATE | 4 | |-| TRANSACTION_CONTROL | 5 | |+| SOURCE_UNSPECIFIED | 0 | |+| DDL | 1 | |+| DML | 2 | |+| CREATE_DATABASE | 3 | |+| REQUEST_QUERY | 4 | |+| REQUEST_EXPORT | 5 | |+| DATA_EXPORT | 6 | |@@ -8939,988 +8940,981 @@ Read from `pg_stat_activity`-<a name="bytebase-v1-RolloutService"></a>+<a name="bytebase-v1-RiskService"></a>-### RolloutService+### RiskService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetRollout | [GetRolloutRequest](#bytebase-v1-GetRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |-| CreateRollout | [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |-| PreviewRollout | [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |-| ListTaskRuns | [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest) | [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse) | |-| GetTaskRunLog | [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest) | [TaskRunLog](#bytebase-v1-TaskRunLog) | |-| GetTaskRunSession | [GetTaskRunSessionRequest](#bytebase-v1-GetTaskRunSessionRequest) | [TaskRunSession](#bytebase-v1-TaskRunSession) | |-| BatchRunTasks | [BatchRunTasksRequest](#bytebase-v1-BatchRunTasksRequest) | [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse) | BatchRunTasks creates task runs for the specified tasks. DataExport issue only allows the creator to run the task. Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA. Follow role-based rollout policy for the environment. |-| BatchSkipTasks | [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest) | [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse) | BatchSkipTasks skips the specified tasks. The access is the same as BatchRunTasks(). |-| BatchCancelTaskRuns | [BatchCancelTaskRunsRequest](#bytebase-v1-BatchCancelTaskRunsRequest) | [BatchCancelTaskRunsResponse](#bytebase-v1-BatchCancelTaskRunsResponse) | BatchSkipTasks cancels the specified task runs in batch. The access is the same as BatchRunTasks(). |-| PreviewTaskRunRollback | [PreviewTaskRunRollbackRequest](#bytebase-v1-PreviewTaskRunRollbackRequest) | [PreviewTaskRunRollbackResponse](#bytebase-v1-PreviewTaskRunRollbackResponse) | |+| ListRisks | [ListRisksRequest](#bytebase-v1-ListRisksRequest) | [ListRisksResponse](#bytebase-v1-ListRisksResponse) | |+| CreateRisk | [CreateRiskRequest](#bytebase-v1-CreateRiskRequest) | [Risk](#bytebase-v1-Risk) | |+| UpdateRisk | [UpdateRiskRequest](#bytebase-v1-UpdateRiskRequest) | [Risk](#bytebase-v1-Risk) | |+| DeleteRisk | [DeleteRiskRequest](#bytebase-v1-DeleteRiskRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-<a name="v1_subscription_service-proto"></a>+<a name="v1_role_service-proto"></a><p align="right"><a href="#top">Top</a></p>-## v1/subscription_service.proto+## v1/role_service.proto-<a name="bytebase-v1-Feature"></a>+<a name="bytebase-v1-CreateRoleRequest"></a>-### Feature+### CreateRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | Name is the feature name. |-| matrix | [Feature.MatrixEntry](#bytebase-v1-Feature-MatrixEntry) | repeated | Matrix is the feature matrix for different plan. The key is the plan enum in string value. |+| role | [Role](#bytebase-v1-Role) | | |+| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.+This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |-<a name="bytebase-v1-Feature-MatrixEntry"></a>-### Feature.MatrixEntry+<a name="bytebase-v1-DeleteRoleRequest"></a>++### DeleteRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [bool](#bool) | | |+| name | [string](#string) | | Format: roles/{role} |-<a name="bytebase-v1-FeatureMatrix"></a>+<a name="bytebase-v1-ListRolesRequest"></a>-### FeatureMatrix+### ListRolesRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| features | [Feature](#bytebase-v1-Feature) | repeated | |-----+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.-<a name="bytebase-v1-GetFeatureMatrixRequest"></a>+When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |-### GetFeatureMatrixRequest+<a name="bytebase-v1-ListRolesResponse"></a>+### ListRolesResponse-<a name="bytebase-v1-GetSubscriptionRequest"></a>-### GetSubscriptionRequest+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| roles | [Role](#bytebase-v1-Role) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-PatchSubscription"></a>+<a name="bytebase-v1-Role"></a>-### PatchSubscription+### Role| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| license | [string](#string) | | |+| name | [string](#string) | | Format: roles/{role} |+| title | [string](#string) | | |+| description | [string](#string) | | |+| permissions | [string](#string) | repeated | |-<a name="bytebase-v1-Subscription"></a>+<a name="bytebase-v1-UpdateRoleRequest"></a>-### Subscription+### UpdateRoleRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| instance_count | [int32](#int32) | | |-| expires_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| started_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| plan | [PlanType](#bytebase-v1-PlanType) | | |-| trialing | [bool](#bool) | | |-| org_id | [string](#string) | | |-| org_name | [string](#string) | | |+| role | [Role](#bytebase-v1-Role) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |+-<a name="bytebase-v1-UpdateSubscriptionRequest"></a>+-### UpdateSubscriptionRequest++<a name="bytebase-v1-RoleService"></a>-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| patch | [PatchSubscription](#bytebase-v1-PatchSubscription) | | |+### RoleService+| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |+| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |+| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |+| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+-+<a name="v1_rollout_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>-<a name="bytebase-v1-PlanType"></a>+## v1/rollout_service.proto-### PlanType-| Name | Number | Description |-| ---- | ------ | ----------- |-| PLAN_TYPE_UNSPECIFIED | 0 | |-| FREE | 1 | |-| TEAM | 2 | |-| ENTERPRISE | 3 | |+<a name="bytebase-v1-BatchCancelTaskRunsRequest"></a>+### BatchCancelTaskRunsRequest--+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The name of the parent of the taskRuns. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. |+| task_runs | [string](#string) | repeated | The taskRuns to cancel. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| reason | [string](#string) | | |-<a name="bytebase-v1-SubscriptionService"></a>-### SubscriptionService-| Method Name | Request Type | Response Type | Description |-| ----------- | ------------ | ------------- | ------------|-| GetSubscription | [GetSubscriptionRequest](#bytebase-v1-GetSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | |-| GetFeatureMatrix | [GetFeatureMatrixRequest](#bytebase-v1-GetFeatureMatrixRequest) | [FeatureMatrix](#bytebase-v1-FeatureMatrix) | |-| UpdateSubscription | [UpdateSubscriptionRequest](#bytebase-v1-UpdateSubscriptionRequest) | [Subscription](#bytebase-v1-Subscription) | |-+<a name="bytebase-v1-BatchCancelTaskRunsResponse"></a>+### BatchCancelTaskRunsResponse-<a name="v1_setting_service-proto"></a>-<p align="right"><a href="#top">Top</a></p>-## v1/setting_service.proto-<a name="bytebase-v1-AgentPluginSetting"></a>-### AgentPluginSetting+<a name="bytebase-v1-BatchRunTasksRequest"></a>+### BatchRunTasksRequest-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| url | [string](#string) | | The URL for the agent API. |-| token | [string](#string) | | The token for the agent. |+| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| tasks | [string](#string) | repeated | The tasks to run. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| reason | [string](#string) | | |-<a name="bytebase-v1-Announcement"></a>-### Announcement+<a name="bytebase-v1-BatchRunTasksResponse"></a>+### BatchRunTasksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| level | [Announcement.AlertLevel](#bytebase-v1-Announcement-AlertLevel) | | The alert level of announcemnt |-| text | [string](#string) | | The text of announcemnt |-| link | [string](#string) | | The optional link, user can follow the link to check extra details |-<a name="bytebase-v1-AppIMSetting"></a>+<a name="bytebase-v1-BatchSkipTasksRequest"></a>-### AppIMSetting+### BatchSkipTasksRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| slack | [AppIMSetting.Slack](#bytebase-v1-AppIMSetting-Slack) | | |-| feishu | [AppIMSetting.Feishu](#bytebase-v1-AppIMSetting-Feishu) | | |-| wecom | [AppIMSetting.Wecom](#bytebase-v1-AppIMSetting-Wecom) | | |--+| parent | [string](#string) | | The name of the parent of the tasks. Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| tasks | [string](#string) | repeated | The tasks to skip. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| reason | [string](#string) | | |-<a name="bytebase-v1-AppIMSetting-Feishu"></a>-### AppIMSetting.Feishu+<a name="bytebase-v1-BatchSkipTasksResponse"></a>+### BatchSkipTasksResponse-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| enabled | [bool](#bool) | | |-| app_id | [string](#string) | | |-| app_secret | [string](#string) | | |-<a name="bytebase-v1-AppIMSetting-Slack"></a>+<a name="bytebase-v1-CreateRolloutRequest"></a>-### AppIMSetting.Slack+### CreateRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| enabled | [bool](#bool) | | |-| token | [string](#string) | | |+| parent | [string](#string) | | The parent project where this rollout will be created. Format: projects/{project} |+| rollout | [Rollout](#bytebase-v1-Rollout) | | The rollout to create. |-<a name="bytebase-v1-AppIMSetting-Wecom"></a>+<a name="bytebase-v1-GetRolloutRequest"></a>-### AppIMSetting.Wecom+### GetRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| enabled | [bool](#bool) | | |-| corp_id | [string](#string) | | |-| agent_id | [string](#string) | | |-| secret | [string](#string) | | |+| name | [string](#string) | | The name of the rollout to retrieve. Format: projects/{project}/rollouts/{rollout} |-<a name="bytebase-v1-DataClassificationSetting"></a>+<a name="bytebase-v1-GetTaskRunLogRequest"></a>-### DataClassificationSetting+### GetTaskRunLogRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| configs | [DataClassificationSetting.DataClassificationConfig](#bytebase-v1-DataClassificationSetting-DataClassificationConfig) | repeated | |+| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} TODO(d): check the resource_reference. |-<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig"></a>+<a name="bytebase-v1-GetTaskRunSessionRequest"></a>-### DataClassificationSetting.DataClassificationConfig+### GetTaskRunSessionRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | id is the uuid for classification. Each project can chose one classification config. |-| title | [string](#string) | | |-| levels | [DataClassificationSetting.DataClassificationConfig.Level](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level) | repeated | levels is user defined level list for classification. The order for the level decides its priority. |-| classification | [DataClassificationSetting.DataClassificationConfig.ClassificationEntry](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry) | repeated | classification is the id - DataClassification map. The id should in [0-9]+-[0-9]+-[0-9]+ format. |-| classification_from_config | [bool](#bool) | | If true, we will only store the classification in the config. Otherwise we will get the classification from table/column comment, and write back to the schema metadata. |+| parent | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-ClassificationEntry"></a>+<a name="bytebase-v1-ListTaskRunsRequest"></a>-### DataClassificationSetting.DataClassificationConfig.ClassificationEntry+### ListTaskRunsRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| key | [string](#string) | | |-| value | [DataClassificationSetting.DataClassificationConfig.DataClassification](#bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification) | | |+| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. |+| page_size | [int32](#int32) | | 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. |+| page_token | [string](#string) | | 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. |-<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-DataClassification"></a>-### DataClassificationSetting.DataClassificationConfig.DataClassification+<a name="bytebase-v1-ListTaskRunsResponse"></a>++### ListTaskRunsResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. |-| title | [string](#string) | | |-| description | [string](#string) | | |-| level_id | [string](#string) | optional | |+| task_runs | [TaskRun](#bytebase-v1-TaskRun) | repeated | The taskRuns from the specified request. |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |-<a name="bytebase-v1-DataClassificationSetting-DataClassificationConfig-Level"></a>+<a name="bytebase-v1-PreviewRolloutRequest"></a>-### DataClassificationSetting.DataClassificationConfig.Level+### PreviewRolloutRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |-| title | [string](#string) | | |-| description | [string](#string) | | |+| project | [string](#string) | | The name of the project. Format: projects/{project} |+| plan | [Plan](#bytebase-v1-Plan) | | The plan used to preview rollout. |-<a name="bytebase-v1-ExternalApprovalSetting"></a>+<a name="bytebase-v1-PreviewTaskRunRollbackRequest"></a>-### ExternalApprovalSetting+### PreviewTaskRunRollbackRequest| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| nodes | [ExternalApprovalSetting.Node](#bytebase-v1-ExternalApprovalSetting-Node) | repeated | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |-<a name="bytebase-v1-ExternalApprovalSetting-Node"></a>+<a name="bytebase-v1-PreviewTaskRunRollbackResponse"></a>-### ExternalApprovalSetting.Node+### PreviewTaskRunRollbackResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | 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 | [string](#string) | | The title of the node. |-| endpoint | [string](#string) | | The external endpoint for the relay service, e.g. "http://hello:1234". |+| statement | [string](#string) | | |-<a name="bytebase-v1-GetSettingRequest"></a>+<a name="bytebase-v1-Rollout"></a>++### Rollout-### GetSettingRequest-The request message for getting a setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the setting. |+| name | [string](#string) | | The resource name of the rollout. Format: projects/{project}/rollouts/{rollout} |+| plan | [string](#string) | | The plan that this rollout is based on. Format: projects/{project}/plans/{plan} |+| title | [string](#string) | | |+| stages | [Stage](#bytebase-v1-Stage) | repeated | stages and thus tasks of the rollout. |-<a name="bytebase-v1-GetSettingResponse"></a>+<a name="bytebase-v1-Stage"></a>++### Stage-### GetSettingResponse-The response message for getting a setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| setting | [Setting](#bytebase-v1-Setting) | | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |+| title | [string](#string) | | |+| tasks | [Task](#bytebase-v1-Task) | repeated | |-<a name="bytebase-v1-ListSettingsRequest"></a>+<a name="bytebase-v1-Task"></a>-### ListSettingsRequest+### Task| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| page_size | [int32](#int32) | | 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. |-| page_token | [string](#string) | | 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. |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| title | [string](#string) | | |+| spec_id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. Could be empty if the rollout of the task does not have an associating plan. |+| status | [Task.Status](#bytebase-v1-Task-Status) | | Status is the status of the task. |+| skipped_reason | [string](#string) | | |+| type | [Task.Type](#bytebase-v1-Task-Type) | | |+| depends_on_tasks | [string](#string) | repeated | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| target | [string](#string) | | Format: instances/{instance} if the task is DatabaseCreate. Format: instances/{instance}/databases/{database} |+| database_create | [Task.DatabaseCreate](#bytebase-v1-Task-DatabaseCreate) | | |+| database_schema_baseline | [Task.DatabaseSchemaBaseline](#bytebase-v1-Task-DatabaseSchemaBaseline) | | |+| database_schema_update | [Task.DatabaseSchemaUpdate](#bytebase-v1-Task-DatabaseSchemaUpdate) | | |+| database_data_update | [Task.DatabaseDataUpdate](#bytebase-v1-Task-DatabaseDataUpdate) | | |+| database_data_export | [Task.DatabaseDataExport](#bytebase-v1-Task-DatabaseDataExport) | | |-<a name="bytebase-v1-ListSettingsResponse"></a>+<a name="bytebase-v1-Task-DatabaseCreate"></a>-### ListSettingsResponse+### Task.DatabaseCreate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| settings | [Setting](#bytebase-v1-Setting) | repeated | The settings from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+| project | [string](#string) | | The project owning the database. Format: projects/{project} |+| database | [string](#string) | | database name |+| table | [string](#string) | | table name |+| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |+| character_set | [string](#string) | | |+| collation | [string](#string) | | |+| environment | [string](#string) | | |+| labels | [Task.DatabaseCreate.LabelsEntry](#bytebase-v1-Task-DatabaseCreate-LabelsEntry) | repeated | |-<a name="bytebase-v1-MaskingAlgorithmSetting"></a>+<a name="bytebase-v1-Task-DatabaseCreate-LabelsEntry"></a>-### MaskingAlgorithmSetting+### Task.DatabaseCreate.LabelsEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| algorithms | [MaskingAlgorithmSetting.Algorithm](#bytebase-v1-MaskingAlgorithmSetting-Algorithm) | repeated | algorithms is the list of masking algorithms. |+| key | [string](#string) | | |+| value | [string](#string) | | |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm"></a>+<a name="bytebase-v1-Task-DatabaseDataExport"></a>-### MaskingAlgorithmSetting.Algorithm+### Task.DatabaseDataExport| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | id is the uuid for masking algorithm. |-| title | [string](#string) | | title is the title for masking algorithm. |-| description | [string](#string) | | description is the description for masking algorithm. |-| category | [string](#string) | | Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH. The range of accepted Payload is decided by the category. MASK: FullMask, RangeMask HASH: MD5Mask |-| full_mask | [MaskingAlgorithmSetting.Algorithm.FullMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask) | | |-| range_mask | [MaskingAlgorithmSetting.Algorithm.RangeMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask) | | |-| md5_mask | [MaskingAlgorithmSetting.Algorithm.MD5Mask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask) | | |-| inner_outer_mask | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask) | | |+| target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name} |+| sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| format | [ExportFormat](#bytebase-v1-ExportFormat) | | The format of the exported file. |+| password | [string](#string) | optional | The zip password provide by users. Leave it empty if no needs to encrypt the zip file. |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-FullMask"></a>+<a name="bytebase-v1-Task-DatabaseDataUpdate"></a>-### MaskingAlgorithmSetting.Algorithm.FullMask+### Task.DatabaseDataUpdate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| substitution | [string](#string) | | substitution is the string used to replace the original value, the max length of the string is 16 bytes. |+| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |+| schema_version | [string](#string) | | |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask"></a>+<a name="bytebase-v1-Task-DatabaseSchemaBaseline"></a>-### MaskingAlgorithmSetting.Algorithm.InnerOuterMask+### Task.DatabaseSchemaBaseline| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| prefix_len | [int32](#int32) | | |-| suffix_len | [int32](#int32) | | |-| type | [MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType) | | |-| substitution | [string](#string) | | |+| schema_version | [string](#string) | | |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-MD5Mask"></a>+<a name="bytebase-v1-Task-DatabaseSchemaUpdate"></a>-### MaskingAlgorithmSetting.Algorithm.MD5Mask+### Task.DatabaseSchemaUpdate| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| salt | [string](#string) | | salt is the salt value to generate a different hash that with the word alone. |+| sheet | [string](#string) | | Format: projects/{project}/sheets/{sheet} |+| schema_version | [string](#string) | | |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask"></a>+<a name="bytebase-v1-TaskRun"></a>-### MaskingAlgorithmSetting.Algorithm.RangeMask+### TaskRun| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| slices | [MaskingAlgorithmSetting.Algorithm.RangeMask.Slice](#bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice) | repeated | 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. |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} |+| creator | [string](#string) | | Format: user/[email protected] |+| updater | [string](#string) | | Format: user/[email protected] |+| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| title | [string](#string) | | |+| status | [TaskRun.Status](#bytebase-v1-TaskRun-Status) | | |+| detail | [string](#string) | | Below are the results of a task run. |+| change_history | [string](#string) | | The resource name of the change history Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} |+| schema_version | [string](#string) | | |+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| export_archive_status | [TaskRun.ExportArchiveStatus](#bytebase-v1-TaskRun-ExportArchiveStatus) | | |+| prior_backup_detail | [TaskRun.PriorBackupDetail](#bytebase-v1-TaskRun-PriorBackupDetail) | | The prior backup detail that will be used to rollback the task run. |+| scheduler_info | [TaskRun.SchedulerInfo](#bytebase-v1-TaskRun-SchedulerInfo) | | |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-RangeMask-Slice"></a>+<a name="bytebase-v1-TaskRun-PriorBackupDetail"></a>-### MaskingAlgorithmSetting.Algorithm.RangeMask.Slice+### TaskRun.PriorBackupDetail| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| start | [int32](#int32) | | start is the start index of the original value, start from 0 and should be less than stop. |-| end | [int32](#int32) | | stop is the stop index of the original value, should be less than the length of the original value. |-| substitution | [string](#string) | | substitution is the string used to replace the OriginalValue[start:end). |+| items | [TaskRun.PriorBackupDetail.Item](#bytebase-v1-TaskRun-PriorBackupDetail-Item) | repeated | |-<a name="bytebase-v1-MaximumSQLResultSizeSetting"></a>+<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item"></a>-### MaximumSQLResultSizeSetting+### TaskRun.PriorBackupDetail.Item| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| limit | [int64](#int64) | | The limit is in bytes. The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. |+| source_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The original table information. |+| target_table | [TaskRun.PriorBackupDetail.Item.Table](#bytebase-v1-TaskRun-PriorBackupDetail-Item-Table) | | The target backup table information. |+| start_position | [Position](#bytebase-v1-Position) | | |+| end_position | [Position](#bytebase-v1-Position) | | |-<a name="bytebase-v1-PasswordRestrictionSetting"></a>+<a name="bytebase-v1-TaskRun-PriorBackupDetail-Item-Table"></a>-### PasswordRestrictionSetting+### TaskRun.PriorBackupDetail.Item.Table| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| min_length | [int32](#int32) | | min_length is the minimum length for password, should no less than 8. |-| require_number | [bool](#bool) | | require_number requires the password must contains at least one number. |-| require_letter | [bool](#bool) | | require_letter requires the password must contains at least one letter, regardless of upper case or lower case |-| require_uppercase_letter | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one upper case letter. |-| require_special_character | [bool](#bool) | | require_uppercase_letter requires the password must contains at least one special character. |-| require_reset_password_for_first_login | [bool](#bool) | | require_reset_password_for_first_login requires users to reset their password after the 1st login. |-| password_rotation | [google.protobuf.Duration](#google-protobuf-Duration) | | password_rotation requires users to reset their password after the duration. |+| database | [string](#string) | | The database information. Format: instances/{instance}/databases/{database} |+| schema | [string](#string) | | |+| table | [string](#string) | | |-<a name="bytebase-v1-SCIMSetting"></a>+<a name="bytebase-v1-TaskRun-SchedulerInfo"></a>-### SCIMSetting+### TaskRun.SchedulerInfo| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| token | [string](#string) | | |+| report_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| waiting_cause | [TaskRun.SchedulerInfo.WaitingCause](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause) | | |-<a name="bytebase-v1-SMTPMailDeliverySettingValue"></a>+<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause"></a>-### SMTPMailDeliverySettingValue+### TaskRun.SchedulerInfo.WaitingCause| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| server | [string](#string) | | The SMTP server address. |-| port | [int32](#int32) | | The SMTP server port. |-| encryption | [SMTPMailDeliverySettingValue.Encryption](#bytebase-v1-SMTPMailDeliverySettingValue-Encryption) | | The SMTP server encryption. |-| ca | [string](#string) | optional | The CA, KEY, and CERT for the SMTP server. Not used. |-| key | [string](#string) | optional | |-| cert | [string](#string) | optional | |-| authentication | [SMTPMailDeliverySettingValue.Authentication](#bytebase-v1-SMTPMailDeliverySettingValue-Authentication) | | |-| username | [string](#string) | | |-| password | [string](#string) | optional | If not specified, server will use the existed password. |-| from | [string](#string) | | The sender email address. |-| to | [string](#string) | | The recipient email address, used with validate_only to send test email. |+| connection_limit | [bool](#bool) | | |+| task | [TaskRun.SchedulerInfo.WaitingCause.Task](#bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task) | | |-<a name="bytebase-v1-SchemaTemplateSetting"></a>+<a name="bytebase-v1-TaskRun-SchedulerInfo-WaitingCause-Task"></a>-### SchemaTemplateSetting+### TaskRun.SchedulerInfo.WaitingCause.Task| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| field_templates | [SchemaTemplateSetting.FieldTemplate](#bytebase-v1-SchemaTemplateSetting-FieldTemplate) | repeated | |-| column_types | [SchemaTemplateSetting.ColumnType](#bytebase-v1-SchemaTemplateSetting-ColumnType) | repeated | |-| table_templates | [SchemaTemplateSetting.TableTemplate](#bytebase-v1-SchemaTemplateSetting-TableTemplate) | repeated | |+| task | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} |+| issue | [string](#string) | | Format: projects/{project}/issues/{issue} |-<a name="bytebase-v1-SchemaTemplateSetting-ColumnType"></a>+<a name="bytebase-v1-TaskRunLog"></a>-### SchemaTemplateSetting.ColumnType+### TaskRunLog| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| engine | [Engine](#bytebase-v1-Engine) | | |-| enabled | [bool](#bool) | | |-| types | [string](#string) | repeated | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log |+| entries | [TaskRunLogEntry](#bytebase-v1-TaskRunLogEntry) | repeated | |-<a name="bytebase-v1-SchemaTemplateSetting-FieldTemplate"></a>+<a name="bytebase-v1-TaskRunLogEntry"></a>-### SchemaTemplateSetting.FieldTemplate+### TaskRunLogEntry| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| category | [string](#string) | | |-| column | [ColumnMetadata](#bytebase-v1-ColumnMetadata) | | |-| config | [ColumnConfig](#bytebase-v1-ColumnConfig) | | |+| type | [TaskRunLogEntry.Type](#bytebase-v1-TaskRunLogEntry-Type) | | |+| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| deploy_id | [string](#string) | | |+| schema_dump | [TaskRunLogEntry.SchemaDump](#bytebase-v1-TaskRunLogEntry-SchemaDump) | | |+| command_execute | [TaskRunLogEntry.CommandExecute](#bytebase-v1-TaskRunLogEntry-CommandExecute) | | |+| database_sync | [TaskRunLogEntry.DatabaseSync](#bytebase-v1-TaskRunLogEntry-DatabaseSync) | | |+| task_run_status_update | [TaskRunLogEntry.TaskRunStatusUpdate](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate) | | |+| transaction_control | [TaskRunLogEntry.TransactionControl](#bytebase-v1-TaskRunLogEntry-TransactionControl) | | |-<a name="bytebase-v1-SchemaTemplateSetting-TableTemplate"></a>+<a name="bytebase-v1-TaskRunLogEntry-CommandExecute"></a>-### SchemaTemplateSetting.TableTemplate+### TaskRunLogEntry.CommandExecute| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |-| category | [string](#string) | | |-| table | [TableMetadata](#bytebase-v1-TableMetadata) | | |-| config | [TableConfig](#bytebase-v1-TableConfig) | | |+| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| command_indexes | [int32](#int32) | repeated | The indexes of the executed commands. |+| response | [TaskRunLogEntry.CommandExecute.CommandResponse](#bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse) | | |-<a name="bytebase-v1-SemanticTypeSetting"></a>+<a name="bytebase-v1-TaskRunLogEntry-CommandExecute-CommandResponse"></a>-### SemanticTypeSetting+### TaskRunLogEntry.CommandExecute.CommandResponse| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| types | [SemanticTypeSetting.SemanticType](#bytebase-v1-SemanticTypeSetting-SemanticType) | repeated | |+| log_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| error | [string](#string) | | |+| affected_rows | [int32](#int32) | | |+| all_affected_rows | [int32](#int32) | repeated | `all_affected_rows` is the affected rows of each command. `all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. |-<a name="bytebase-v1-SemanticTypeSetting-SemanticType"></a>+<a name="bytebase-v1-TaskRunLogEntry-DatabaseSync"></a>-### SemanticTypeSetting.SemanticType+### TaskRunLogEntry.DatabaseSync| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| id | [string](#string) | | id is the uuid for semantic type. |-| title | [string](#string) | | the title of the semantic type, it should not be empty. |-| description | [string](#string) | | the description of the semantic type, it can be empty. |-| partial_mask_algorithm_id | [string](#string) | | the partial mask algorithm id for the semantic type, if it is empty, should use the default partial mask algorithm. |-| full_mask_algorithm_id | [string](#string) | | the full mask algorithm id for the semantic type, if it is empty, should use the default full mask algorithm. |+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-Setting"></a>+<a name="bytebase-v1-TaskRunLogEntry-SchemaDump"></a>++### TaskRunLogEntry.SchemaDump-### Setting-The schema of setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| name | [string](#string) | | The resource name of the setting. Must be one of the following forms:+| start_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| end_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| error | [string](#string) | | |-- `setting/{setting}` For example, "settings/bb.branding.logo" |-| value | [Value](#bytebase-v1-Value) | | The value of the setting. |+<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate"></a>-<a name="bytebase-v1-UpdateSettingRequest"></a>+### TaskRunLogEntry.TaskRunStatusUpdate-### UpdateSettingRequest-The request message for updating or creating a setting.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| setting | [Setting](#bytebase-v1-Setting) | | The setting to update. |-| validate_only | [bool](#bool) | | validate_only is a flag to indicate whether to validate the setting value, server would not persist the setting value if it is true. |-| allow_missing | [bool](#bool) | | |-| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |+| status | [TaskRunLogEntry.TaskRunStatusUpdate.Status](#bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status) | | |-<a name="bytebase-v1-Value"></a>+<a name="bytebase-v1-TaskRunLogEntry-TransactionControl"></a>++### TaskRunLogEntry.TransactionControl-### Value-The data in setting value.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| string_value | [string](#string) | | Defines this value as being a string value. |-| smtp_mail_delivery_setting_value | [SMTPMailDeliverySettingValue](#bytebase-v1-SMTPMailDeliverySettingValue) | | |-| app_im_setting_value | [AppIMSetting](#bytebase-v1-AppIMSetting) | | |-| agent_plugin_setting_value | [AgentPluginSetting](#bytebase-v1-AgentPluginSetting) | | |-| workspace_profile_setting_value | [WorkspaceProfileSetting](#bytebase-v1-WorkspaceProfileSetting) | | |-| workspace_approval_setting_value | [WorkspaceApprovalSetting](#bytebase-v1-WorkspaceApprovalSetting) | | |-| workspace_trial_setting_value | [WorkspaceTrialSetting](#bytebase-v1-WorkspaceTrialSetting) | | |-| external_approval_setting_value | [ExternalApprovalSetting](#bytebase-v1-ExternalApprovalSetting) | | |-| schema_template_setting_value | [SchemaTemplateSetting](#bytebase-v1-SchemaTemplateSetting) | | |-| data_classification_setting_value | [DataClassificationSetting](#bytebase-v1-DataClassificationSetting) | | |-| semantic_type_setting_value | [SemanticTypeSetting](#bytebase-v1-SemanticTypeSetting) | | |-| masking_algorithm_setting_value | [MaskingAlgorithmSetting](#bytebase-v1-MaskingAlgorithmSetting) | | |-| maximum_sql_result_size_setting | [MaximumSQLResultSizeSetting](#bytebase-v1-MaximumSQLResultSizeSetting) | | |-| scim_setting | [SCIMSetting](#bytebase-v1-SCIMSetting) | | |-| password_restriction_setting | [PasswordRestrictionSetting](#bytebase-v1-PasswordRestrictionSetting) | | |+| type | [TaskRunLogEntry.TransactionControl.Type](#bytebase-v1-TaskRunLogEntry-TransactionControl-Type) | | |+| error | [string](#string) | | |-<a name="bytebase-v1-WorkspaceApprovalSetting"></a>+<a name="bytebase-v1-TaskRunSession"></a>-### WorkspaceApprovalSetting+### TaskRunSession| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| rules | [WorkspaceApprovalSetting.Rule](#bytebase-v1-WorkspaceApprovalSetting-Rule) | repeated | |+| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session |+| postgres | [TaskRunSession.Postgres](#bytebase-v1-TaskRunSession-Postgres) | | |-<a name="bytebase-v1-WorkspaceApprovalSetting-Rule"></a>+<a name="bytebase-v1-TaskRunSession-Postgres"></a>-### WorkspaceApprovalSetting.Rule+### TaskRunSession.Postgres| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| template | [ApprovalTemplate](#bytebase-v1-ApprovalTemplate) | | |-| condition | [google.type.Expr](#google-type-Expr) | | |-+| session | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | | `session` is the session of the task run executing commands. |+| blocking_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocking_sessions` block `session`. |+| blocked_sessions | [TaskRunSession.Postgres.Session](#bytebase-v1-TaskRunSession-Postgres-Session) | repeated | `blocked_sessions` are blocked by `session`. |-<a name="bytebase-v1-WorkspaceProfileSetting"></a>-### WorkspaceProfileSetting+<a name="bytebase-v1-TaskRunSession-Postgres-Session"></a>+### TaskRunSession.Postgres.Session+Read from `pg_stat_activity`| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| external_url | [string](#string) | | The URL user visits Bytebase.+| pid | [string](#string) | | |+| blocked_by_pids | [string](#string) | repeated | |+| query | [string](#string) | | |+| state | [string](#string) | optional | |+| wait_event_type | [string](#string) | optional | |+| wait_event | [string](#string) | optional | |+| datname | [string](#string) | optional | |+| usename | [string](#string) | optional | |+| application_name | [string](#string) | | |+| client_addr | [string](#string) | optional | |+| client_port | [string](#string) | optional | |+| backend_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |+| xact_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |+| query_start | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |-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. |-| disallow_signup | [bool](#bool) | | Disallow self-service signup, users can only be invited by the owner. |-| require_2fa | [bool](#bool) | | Require 2FA for all users. |-| outbound_ip_list | [string](#string) | repeated | outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. |-| gitops_webhook_url | [string](#string) | | The webhook URL for the GitOps workflow. |-| token_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | The duration for token. |-| announcement | [Announcement](#bytebase-v1-Announcement) | | The setting of custom announcement |-| maximum_role_expiration | [google.protobuf.Duration](#google-protobuf-Duration) | | The max duration for role expired. |-| domains | [string](#string) | repeated | The workspace domain, e.g. bytebase.com. |-| enforce_identity_domain | [bool](#bool) | | Only user and group from the domains can be created and login. |-| database_change_mode | [DatabaseChangeMode](#bytebase-v1-DatabaseChangeMode) | | The workspace database change mode. |-| disallow_password_signin | [bool](#bool) | | Whether to disallow password signin. (Except workspace admins) |+-<a name="bytebase-v1-WorkspaceTrialSetting"></a>+<a name="bytebase-v1-Task-Status"></a>-### WorkspaceTrialSetting+### Task.Status+| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| NOT_STARTED | 1 | |+| PENDING | 2 | |+| RUNNING | 3 | |+| DONE | 4 | |+| FAILED | 5 | |+| CANCELED | 6 | |+| SKIPPED | 7 | |-| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| instance_count | [int32](#int32) | | |-| expire_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| issued_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | |-| subject | [string](#string) | | |-| org_name | [string](#string) | | |-| plan | [PlanType](#bytebase-v1-PlanType) | | |+<a name="bytebase-v1-Task-Type"></a>+### Task.Type-+| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| GENERAL | 1 | |+| DATABASE_CREATE | 2 | use payload DatabaseCreate |+| DATABASE_SCHEMA_BASELINE | 3 | use payload DatabaseSchemaBaseline |+| DATABASE_SCHEMA_UPDATE | 4 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_SDL | 5 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_GHOST_SYNC | 6 | use payload DatabaseSchemaUpdate |+| DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER | 7 | use payload nil |+| DATABASE_DATA_UPDATE | 8 | use payload DatabaseDataUpdate |+| DATABASE_DATA_EXPORT | 12 | use payload DatabaseDataExport |-<a name="bytebase-v1-Announcement-AlertLevel"></a>-### Announcement.AlertLevel-We support three levels of AlertLevel: INFO, WARNING, and ERROR.+<a name="bytebase-v1-TaskRun-ExportArchiveStatus"></a>++### TaskRun.ExportArchiveStatus+| Name | Number | Description || ---- | ------ | ----------- |-| ALERT_LEVEL_UNSPECIFIED | 0 | |-| ALERT_LEVEL_INFO | 1 | |-| ALERT_LEVEL_WARNING | 2 | |-| ALERT_LEVEL_CRITICAL | 3 | |+| EXPORT_ARCHIVE_STATUS_UNSPECIFIED | 0 | |+| READY | 1 | |+| EXPORTED | 2 | |-<a name="bytebase-v1-DatabaseChangeMode"></a>+<a name="bytebase-v1-TaskRun-Status"></a>-### DatabaseChangeMode+### TaskRun.Status| Name | Number | Description || ---- | ------ | ----------- |-| DATABASE_CHANGE_MODE_UNSPECIFIED | 0 | |-| PIPELINE | 1 | A more advanced database change process, including custom approval workflows and other advanced features. Default to this mode. |-| EDITOR | 2 | A simple database change process in SQL editor. Users can execute SQL directly. |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | |+| RUNNING | 2 | |+| DONE | 3 | |+| FAILED | 4 | |+| CANCELED | 5 | |-<a name="bytebase-v1-MaskingAlgorithmSetting-Algorithm-InnerOuterMask-MaskType"></a>+<a name="bytebase-v1-TaskRunLogEntry-TaskRunStatusUpdate-Status"></a>-### MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType+### TaskRunLogEntry.TaskRunStatusUpdate.Status| Name | Number | Description || ---- | ------ | ----------- |-| MASK_TYPE_UNSPECIFIED | 0 | |-| INNER | 1 | |-| OUTER | 2 | |+| STATUS_UNSPECIFIED | 0 | |+| RUNNING_WAITING | 1 | the task run is ready to be executed by the scheduler |+| RUNNING_RUNNING | 2 | the task run is being executed by the scheduler |-<a name="bytebase-v1-SMTPMailDeliverySettingValue-Authentication"></a>+<a name="bytebase-v1-TaskRunLogEntry-TransactionControl-Type"></a>++### TaskRunLogEntry.TransactionControl.Type-### SMTPMailDeliverySettingValue.Authentication-We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.| Name | Number | Description || ---- | ------ | ----------- |-| AUTHENTICATION_UNSPECIFIED | 0 | |-| AUTHENTICATION_NONE | 1 | |-| AUTHENTICATION_PLAIN | 2 | |-| AUTHENTICATION_LOGIN | 3 | |-| AUTHENTICATION_CRAM_MD5 | 4 | |+| TYPE_UNSPECIFIED | 0 | |+| BEGIN | 1 | |+| COMMIT | 2 | |+| ROLLBACK | 3 | |-<a name="bytebase-v1-SMTPMailDeliverySettingValue-Encryption"></a>+<a name="bytebase-v1-TaskRunLogEntry-Type"></a>++### TaskRunLogEntry.Type-### SMTPMailDeliverySettingValue.Encryption-We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.| Name | Number | Description || ---- | ------ | ----------- |-| ENCRYPTION_UNSPECIFIED | 0 | |-| ENCRYPTION_NONE | 1 | |-| ENCRYPTION_STARTTLS | 2 | |-| ENCRYPTION_SSL_TLS | 3 | |+| TYPE_UNSPECIFIED | 0 | |+| SCHEMA_DUMP | 1 | |+| COMMAND_EXECUTE | 2 | |+| DATABASE_SYNC | 3 | |+| TASK_RUN_STATUS_UPDATE | 4 | |+| TRANSACTION_CONTROL | 5 | |@@ -9928,16 +9922,23 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.-<a name="bytebase-v1-SettingService"></a>+<a name="bytebase-v1-RolloutService"></a>-### SettingService+### RolloutService| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| ListSettings | [ListSettingsRequest](#bytebase-v1-ListSettingsRequest) | [ListSettingsResponse](#bytebase-v1-ListSettingsResponse) | |-| GetSetting | [GetSettingRequest](#bytebase-v1-GetSettingRequest) | [Setting](#bytebase-v1-Setting) | |-| UpdateSetting | [UpdateSettingRequest](#bytebase-v1-UpdateSettingRequest) | [Setting](#bytebase-v1-Setting) | |+| GetRollout | [GetRolloutRequest](#bytebase-v1-GetRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| CreateRollout | [CreateRolloutRequest](#bytebase-v1-CreateRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| PreviewRollout | [PreviewRolloutRequest](#bytebase-v1-PreviewRolloutRequest) | [Rollout](#bytebase-v1-Rollout) | |+| ListTaskRuns | [ListTaskRunsRequest](#bytebase-v1-ListTaskRunsRequest) | [ListTaskRunsResponse](#bytebase-v1-ListTaskRunsResponse) | |+| GetTaskRunLog | [GetTaskRunLogRequest](#bytebase-v1-GetTaskRunLogRequest) | [TaskRunLog](#bytebase-v1-TaskRunLog) | |+| GetTaskRunSession | [GetTaskRunSessionRequest](#bytebase-v1-GetTaskRunSessionRequest) | [TaskRunSession](#bytebase-v1-TaskRunSession) | |+| BatchRunTasks | [BatchRunTasksRequest](#bytebase-v1-BatchRunTasksRequest) | [BatchRunTasksResponse](#bytebase-v1-BatchRunTasksResponse) | BatchRunTasks creates task runs for the specified tasks. DataExport issue only allows the creator to run the task. Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA. Follow role-based rollout policy for the environment. |+| BatchSkipTasks | [BatchSkipTasksRequest](#bytebase-v1-BatchSkipTasksRequest) | [BatchSkipTasksResponse](#bytebase-v1-BatchSkipTasksResponse) | BatchSkipTasks skips the specified tasks. The access is the same as BatchRunTasks(). |+| BatchCancelTaskRuns | [BatchCancelTaskRunsRequest](#bytebase-v1-BatchCancelTaskRunsRequest) | [BatchCancelTaskRunsResponse](#bytebase-v1-BatchCancelTaskRunsResponse) | BatchSkipTasks cancels the specified task runs in batch. The access is the same as BatchRunTasks(). |+| PreviewTaskRunRollback | [PreviewTaskRunRollbackRequest](#bytebase-v1-PreviewTaskRunRollbackRequest) | [PreviewTaskRunRollbackResponse](#bytebase-v1-PreviewTaskRunRollbackResponse) | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex c1279ece91..056c0bd93a 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -205,92 +205,6 @@</li>- <li>- <a href="#v1%2factuator_service.proto">v1/actuator_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.ActuatorInfo"><span class="badge">M</span>ActuatorInfo</a>- </li>-- <li>- <a href="#bytebase.v1.DeleteCacheRequest"><span class="badge">M</span>DeleteCacheRequest</a>- </li>-- <li>- <a href="#bytebase.v1.GetActuatorInfoRequest"><span class="badge">M</span>GetActuatorInfoRequest</a>- </li>-- <li>- <a href="#bytebase.v1.GetResourcePackageRequest"><span class="badge">M</span>GetResourcePackageRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ResourcePackage"><span class="badge">M</span>ResourcePackage</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateActuatorInfoRequest"><span class="badge">M</span>UpdateActuatorInfoRequest</a>- </li>----- <li>- <a href="#bytebase.v1.ActuatorService"><span class="badge">S</span>ActuatorService</a>- </li>-- </ul>- </li>--- <li>- <a href="#v1%2fanomaly_service.proto">v1/anomaly_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.Anomaly"><span class="badge">M</span>Anomaly</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail"><span class="badge">M</span>Anomaly.DatabaseConnectionDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail"><span class="badge">M</span>Anomaly.DatabaseSchemaDriftDetail</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.InstanceConnectionDetail"><span class="badge">M</span>Anomaly.InstanceConnectionDetail</a>- </li>-- <li>- <a href="#bytebase.v1.SearchAnomaliesRequest"><span class="badge">M</span>SearchAnomaliesRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchAnomaliesResponse"><span class="badge">M</span>SearchAnomaliesResponse</a>- </li>--- <li>- <a href="#bytebase.v1.Anomaly.AnomalySeverity"><span class="badge">E</span>Anomaly.AnomalySeverity</a>- </li>-- <li>- <a href="#bytebase.v1.Anomaly.AnomalyType"><span class="badge">E</span>Anomaly.AnomalyType</a>- </li>---- <li>- <a href="#bytebase.v1.AnomalyService"><span class="badge">S</span>AnomalyService</a>- </li>-- </ul>- </li>--<li><a href="#v1%2fcommon.proto">v1/common.proto</a><ul>@@ -330,171 +244,6 @@</li>- <li>- <a href="#v1%2fiam_policy.proto">v1/iam_policy.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.Binding"><span class="badge">M</span>Binding</a>- </li>-- <li>- <a href="#bytebase.v1.BindingDelta"><span class="badge">M</span>BindingDelta</a>- </li>-- <li>- <a href="#bytebase.v1.GetIamPolicyRequest"><span class="badge">M</span>GetIamPolicyRequest</a>- </li>-- <li>- <a href="#bytebase.v1.IamPolicy"><span class="badge">M</span>IamPolicy</a>- </li>-- <li>- <a href="#bytebase.v1.PolicyDelta"><span class="badge">M</span>PolicyDelta</a>- </li>-- <li>- <a href="#bytebase.v1.SetIamPolicyRequest"><span class="badge">M</span>SetIamPolicyRequest</a>- </li>--- <li>- <a href="#bytebase.v1.BindingDelta.Action"><span class="badge">E</span>BindingDelta.Action</a>- </li>---- </ul>- </li>--- <li>- <a href="#v1%2faudit_log_service.proto">v1/audit_log_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.AuditData"><span class="badge">M</span>AuditData</a>- </li>-- <li>- <a href="#bytebase.v1.AuditLog"><span class="badge">M</span>AuditLog</a>- </li>-- <li>- <a href="#bytebase.v1.ExportAuditLogsRequest"><span class="badge">M</span>ExportAuditLogsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ExportAuditLogsResponse"><span class="badge">M</span>ExportAuditLogsResponse</a>- </li>-- <li>- <a href="#bytebase.v1.RequestMetadata"><span class="badge">M</span>RequestMetadata</a>- </li>-- <li>- <a href="#bytebase.v1.SearchAuditLogsRequest"><span class="badge">M</span>SearchAuditLogsRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchAuditLogsResponse"><span class="badge">M</span>SearchAuditLogsResponse</a>- </li>--- <li>- <a href="#bytebase.v1.AuditLog.Severity"><span class="badge">E</span>AuditLog.Severity</a>- </li>---- <li>- <a href="#bytebase.v1.AuditLogService"><span class="badge">S</span>AuditLogService</a>- </li>-- </ul>- </li>--- <li>- <a href="#v1%2fauth_service.proto">v1/auth_service.proto</a>- <ul>-- <li>- <a href="#bytebase.v1.CreateUserRequest"><span class="badge">M</span>CreateUserRequest</a>- </li>-- <li>- <a href="#bytebase.v1.DeleteUserRequest"><span class="badge">M</span>DeleteUserRequest</a>- </li>-- <li>- <a href="#bytebase.v1.GetUserRequest"><span class="badge">M</span>GetUserRequest</a>- </li>-- <li>- <a href="#bytebase.v1.IdentityProviderContext"><span class="badge">M</span>IdentityProviderContext</a>- </li>-- <li>- <a href="#bytebase.v1.ListUsersRequest"><span class="badge">M</span>ListUsersRequest</a>- </li>-- <li>- <a href="#bytebase.v1.ListUsersResponse"><span class="badge">M</span>ListUsersResponse</a>- </li>-- <li>- <a href="#bytebase.v1.LoginRequest"><span class="badge">M</span>LoginRequest</a>- </li>-- <li>- <a href="#bytebase.v1.LoginResponse"><span class="badge">M</span>LoginResponse</a>- </li>-- <li>- <a href="#bytebase.v1.LogoutRequest"><span class="badge">M</span>LogoutRequest</a>- </li>-- <li>- <a href="#bytebase.v1.OAuth2IdentityProviderContext"><span class="badge">M</span>OAuth2IdentityProviderContext</a>- </li>-- <li>- <a href="#bytebase.v1.OIDCIdentityProviderContext"><span class="badge">M</span>OIDCIdentityProviderContext</a>- </li>-- <li>- <a href="#bytebase.v1.UndeleteUserRequest"><span class="badge">M</span>UndeleteUserRequest</a>- </li>-- <li>- <a href="#bytebase.v1.UpdateUserRequest"><span class="badge">M</span>UpdateUserRequest</a>- </li>-- <li>- <a href="#bytebase.v1.User"><span class="badge">M</span>User</a>- </li>-- <li>- <a href="#bytebase.v1.User.Profile"><span class="badge">M</span>User.Profile</a>- </li>--- <li>- <a href="#bytebase.v1.UserType"><span class="badge">E</span>UserType</a>- </li>---- <li>- <a href="#bytebase.v1.AuthService"><span class="badge">S</span>AuthService</a>- </li>-- </ul>- </li>--<li><a href="#v1%2finstance_role_service.proto">v1/instance_role_service.proto</a><ul>@@ -985,203 +734,174 @@<li>- <a href="#v1%2fbranch_service.proto">v1/branch_service.proto</a>+ <a href="#v1%2fissue_service.proto">v1/issue_service.proto</a><ul><li>- <a href="#bytebase.v1.Branch"><span class="badge">M</span>Branch</a>+ <a href="#bytebase.v1.ApprovalFlow"><span class="badge">M</span>ApprovalFlow</a></li><li>- <a href="#bytebase.v1.CreateBranchRequest"><span class="badge">M</span>CreateBranchRequest</a>+ <a href="#bytebase.v1.ApprovalNode"><span class="badge">M</span>ApprovalNode</a></li><li>- <a href="#bytebase.v1.DeleteBranchRequest"><span class="badge">M</span>DeleteBranchRequest</a>+ <a href="#bytebase.v1.ApprovalStep"><span class="badge">M</span>ApprovalStep</a></li><li>- <a href="#bytebase.v1.DiffDatabaseRequest"><span class="badge">M</span>DiffDatabaseRequest</a>+ <a href="#bytebase.v1.ApprovalTemplate"><span class="badge">M</span>ApprovalTemplate</a></li><li>- <a href="#bytebase.v1.DiffDatabaseResponse"><span class="badge">M</span>DiffDatabaseResponse</a>+ <a href="#bytebase.v1.ApproveIssueRequest"><span class="badge">M</span>ApproveIssueRequest</a></li><li>- <a href="#bytebase.v1.DiffMetadataRequest"><span class="badge">M</span>DiffMetadataRequest</a>+ <a href="#bytebase.v1.BatchUpdateIssuesStatusRequest"><span class="badge">M</span>BatchUpdateIssuesStatusRequest</a></li><li>- <a href="#bytebase.v1.DiffMetadataResponse"><span class="badge">M</span>DiffMetadataResponse</a>+ <a href="#bytebase.v1.BatchUpdateIssuesStatusResponse"><span class="badge">M</span>BatchUpdateIssuesStatusResponse</a></li><li>- <a href="#bytebase.v1.GetBranchRequest"><span class="badge">M</span>GetBranchRequest</a>+ <a href="#bytebase.v1.CreateIssueCommentRequest"><span class="badge">M</span>CreateIssueCommentRequest</a></li><li>- <a href="#bytebase.v1.ListBranchesRequest"><span class="badge">M</span>ListBranchesRequest</a>+ <a href="#bytebase.v1.CreateIssueRequest"><span class="badge">M</span>CreateIssueRequest</a></li><li>- <a href="#bytebase.v1.ListBranchesResponse"><span class="badge">M</span>ListBranchesResponse</a>+ <a href="#bytebase.v1.GetIssueRequest"><span class="badge">M</span>GetIssueRequest</a></li><li>- <a href="#bytebase.v1.MergeBranchRequest"><span class="badge">M</span>MergeBranchRequest</a>+ <a href="#bytebase.v1.GrantRequest"><span class="badge">M</span>GrantRequest</a></li><li>- <a href="#bytebase.v1.RebaseBranchRequest"><span class="badge">M</span>RebaseBranchRequest</a>+ <a href="#bytebase.v1.Issue"><span class="badge">M</span>Issue</a></li><li>- <a href="#bytebase.v1.RebaseBranchResponse"><span class="badge">M</span>RebaseBranchResponse</a>+ <a href="#bytebase.v1.Issue.Approver"><span class="badge">M</span>Issue.Approver</a></li><li>- <a href="#bytebase.v1.UpdateBranchRequest"><span class="badge">M</span>UpdateBranchRequest</a>+ <a href="#bytebase.v1.Issue.TaskStatusCountEntry"><span class="badge">M</span>Issue.TaskStatusCountEntry</a></li>-<li>- <a href="#bytebase.v1.BranchView"><span class="badge">E</span>BranchView</a>+ <a href="#bytebase.v1.IssueComment"><span class="badge">M</span>IssueComment</a></li>--<li>- <a href="#bytebase.v1.BranchService"><span class="badge">S</span>BranchService</a>+ <a href="#bytebase.v1.IssueComment.Approval"><span class="badge">M</span>IssueComment.Approval</a></li>- </ul>- </li>--- <li>- <a href="#v1%2fcel_service.proto">v1/cel_service.proto</a>- <ul>-<li>- <a href="#bytebase.v1.BatchDeparseRequest"><span class="badge">M</span>BatchDeparseRequest</a>+ <a href="#bytebase.v1.IssueComment.IssueUpdate"><span class="badge">M</span>IssueComment.IssueUpdate</a></li><li>- <a href="#bytebase.v1.BatchDeparseResponse"><span class="badge">M</span>BatchDeparseResponse</a>+ <a href="#bytebase.v1.IssueComment.StageEnd"><span class="badge">M</span>IssueComment.StageEnd</a></li><li>- <a href="#bytebase.v1.BatchParseRequest"><span class="badge">M</span>BatchParseRequest</a>+ <a href="#bytebase.v1.IssueComment.TaskPriorBackup"><span class="badge">M</span>IssueComment.TaskPriorBackup</a></li><li>- <a href="#bytebase.v1.BatchParseResponse"><span class="badge">M</span>BatchParseResponse</a>+ <a href="#bytebase.v1.IssueComment.TaskPriorBackup.Table"><span class="badge">M</span>IssueComment.TaskPriorBackup.Table</a></li>---<li>- <a href="#bytebase.v1.CelService"><span class="badge">S</span>CelService</a>+ <a href="#bytebase.v1.IssueComment.TaskUpdate"><span class="badge">M</span>IssueComment.TaskUpdate</a></li>- </ul>- </li>--- <li>- <a href="#v1%2fchangelist_service.proto">v1/changelist_service.proto</a>- <ul>-<li>- <a href="#bytebase.v1.Changelist"><span class="badge">M</span>Changelist</a>+ <a href="#bytebase.v1.ListIssueCommentsRequest"><span class="badge">M</span>ListIssueCommentsRequest</a></li><li>- <a href="#bytebase.v1.Changelist.Change"><span class="badge">M</span>Changelist.Change</a>+ <a href="#bytebase.v1.ListIssueCommentsResponse"><span class="badge">M</span>ListIssueCommentsResponse</a></li><li>- <a href="#bytebase.v1.CreateChangelistRequest"><span class="badge">M</span>CreateChangelistRequest</a>+ <a href="#bytebase.v1.ListIssuesRequest"><span class="badge">M</span>ListIssuesRequest</a></li><li>- <a href="#bytebase.v1.DeleteChangelistRequest"><span class="badge">M</span>DeleteChangelistRequest</a>+ <a href="#bytebase.v1.ListIssuesResponse"><span class="badge">M</span>ListIssuesResponse</a></li><li>- <a href="#bytebase.v1.GetChangelistRequest"><span class="badge">M</span>GetChangelistRequest</a>+ <a href="#bytebase.v1.RejectIssueRequest"><span class="badge">M</span>RejectIssueRequest</a></li><li>- <a href="#bytebase.v1.ListChangelistsRequest"><span class="badge">M</span>ListChangelistsRequest</a>+ <a href="#bytebase.v1.RequestIssueRequest"><span class="badge">M</span>RequestIssueRequest</a></li><li>- <a href="#bytebase.v1.ListChangelistsResponse"><span class="badge">M</span>ListChangelistsResponse</a>+ <a href="#bytebase.v1.SearchIssuesRequest"><span class="badge">M</span>SearchIssuesRequest</a></li><li>- <a href="#bytebase.v1.UpdateChangelistRequest"><span class="badge">M</span>UpdateChangelistRequest</a>+ <a href="#bytebase.v1.SearchIssuesResponse"><span class="badge">M</span>SearchIssuesResponse</a></li>--+ <li>+ <a href="#bytebase.v1.UpdateIssueCommentRequest"><span class="badge">M</span>UpdateIssueCommentRequest</a>+ </li><li>- <a href="#bytebase.v1.ChangelistService"><span class="badge">S</span>ChangelistService</a>+ <a href="#bytebase.v1.UpdateIssueRequest"><span class="badge">M</span>UpdateIssueRequest</a></li>- </ul>- </li>--- <li>- <a href="#v1%2fdatabase_group_service.proto">v1/database_group_service.proto</a>- <ul><li>- <a href="#bytebase.v1.CreateDatabaseGroupRequest"><span class="badge">M</span>CreateDatabaseGroupRequest</a>+ <a href="#bytebase.v1.ApprovalNode.GroupValue"><span class="badge">E</span>ApprovalNode.GroupValue</a></li><li>- <a href="#bytebase.v1.DatabaseGroup"><span class="badge">M</span>DatabaseGroup</a>+ <a href="#bytebase.v1.ApprovalNode.Type"><span class="badge">E</span>ApprovalNode.Type</a></li><li>- <a href="#bytebase.v1.DatabaseGroup.Database"><span class="badge">M</span>DatabaseGroup.Database</a>+ <a href="#bytebase.v1.ApprovalStep.Type"><span class="badge">E</span>ApprovalStep.Type</a></li><li>- <a href="#bytebase.v1.DeleteDatabaseGroupRequest"><span class="badge">M</span>DeleteDatabaseGroupRequest</a>+ <a href="#bytebase.v1.Issue.Approver.Status"><span class="badge">E</span>Issue.Approver.Status</a></li><li>- <a href="#bytebase.v1.GetDatabaseGroupRequest"><span class="badge">M</span>GetDatabaseGroupRequest</a>+ <a href="#bytebase.v1.Issue.RiskLevel"><span class="badge">E</span>Issue.RiskLevel</a></li><li>- <a href="#bytebase.v1.ListDatabaseGroupsRequest"><span class="badge">M</span>ListDatabaseGroupsRequest</a>+ <a href="#bytebase.v1.Issue.Type"><span class="badge">E</span>Issue.Type</a></li><li>- <a href="#bytebase.v1.ListDatabaseGroupsResponse"><span class="badge">M</span>ListDatabaseGroupsResponse</a>+ <a href="#bytebase.v1.IssueComment.Approval.Status"><span class="badge">E</span>IssueComment.Approval.Status</a></li><li>- <a href="#bytebase.v1.UpdateDatabaseGroupRequest"><span class="badge">M</span>UpdateDatabaseGroupRequest</a>+ <a href="#bytebase.v1.IssueComment.TaskUpdate.Status"><span class="badge">E</span>IssueComment.TaskUpdate.Status</a></li>-<li>- <a href="#bytebase.v1.DatabaseGroupView"><span class="badge">E</span>DatabaseGroupView</a>+ <a href="#bytebase.v1.IssueStatus"><span class="badge">E</span>IssueStatus</a></li><li>- <a href="#bytebase.v1.DatabaseGroupService"><span class="badge">S</span>DatabaseGroupService</a>+ <a href="#bytebase.v1.IssueService"><span class="badge">S</span>IssueService</a></li></ul>@@ -1189,50 +909,50 @@<li>- <a href="#v1%2fenvironment_service.proto">v1/environment_service.proto</a>+ <a href="#v1%2fsubscription_service.proto">v1/subscription_service.proto</a><ul><li>- <a href="#bytebase.v1.CreateEnvironmentRequest"><span class="badge">M</span>CreateEnvironmentRequest</a>+ <a href="#bytebase.v1.Feature"><span class="badge">M</span>Feature</a></li><li>- <a href="#bytebase.v1.DeleteEnvironmentRequest"><span class="badge">M</span>DeleteEnvironmentRequest</a>+ <a href="#bytebase.v1.Feature.MatrixEntry"><span class="badge">M</span>Feature.MatrixEntry</a></li><li>- <a href="#bytebase.v1.Environment"><span class="badge">M</span>Environment</a>+ <a href="#bytebase.v1.FeatureMatrix"><span class="badge">M</span>FeatureMatrix</a></li><li>- <a href="#bytebase.v1.GetEnvironmentRequest"><span class="badge">M</span>GetEnvironmentRequest</a>+ <a href="#bytebase.v1.GetFeatureMatrixRequest"><span class="badge">M</span>GetFeatureMatrixRequest</a></li><li>- <a href="#bytebase.v1.ListEnvironmentsRequest"><span class="badge">M</span>ListEnvironmentsRequest</a>+ <a href="#bytebase.v1.GetSubscriptionRequest"><span class="badge">M</span>GetSubscriptionRequest</a></li><li>- <a href="#bytebase.v1.ListEnvironmentsResponse"><span class="badge">M</span>ListEnvironmentsResponse</a>+ <a href="#bytebase.v1.PatchSubscription"><span class="badge">M</span>PatchSubscription</a></li><li>- <a href="#bytebase.v1.UndeleteEnvironmentRequest"><span class="badge">M</span>UndeleteEnvironmentRequest</a>+ <a href="#bytebase.v1.Subscription"><span class="badge">M</span>Subscription</a></li><li>- <a href="#bytebase.v1.UpdateEnvironmentRequest"><span class="badge">M</span>UpdateEnvironmentRequest</a>+ <a href="#bytebase.v1.UpdateSubscriptionRequest"><span class="badge">M</span>UpdateSubscriptionRequest</a></li><li>- <a href="#bytebase.v1.EnvironmentTier"><span class="badge">E</span>EnvironmentTier</a>+ <a href="#bytebase.v1.PlanType"><span class="badge">E</span>PlanType</a></li><li>- <a href="#bytebase.v1.EnvironmentService"><span class="badge">S</span>EnvironmentService</a>+ <a href="#bytebase.v1.SubscriptionService"><span class="badge">S</span>SubscriptionService</a></li></ul>@@ -1240,431 +960,449 @@<li>- <a href="#v1%2fgroup.proto">v1/group.proto</a>+ <a href="#v1%2fsetting_service.proto">v1/setting_service.proto</a><ul><li>- <a href="#bytebase.v1.CreateGroupRequest"><span class="badge">M</span>CreateGroupRequest</a>+ <a href="#bytebase.v1.AgentPluginSetting"><span class="badge">M</span>AgentPluginSetting</a></li><li>- <a href="#bytebase.v1.DeleteGroupRequest"><span class="badge">M</span>DeleteGroupRequest</a>+ <a href="#bytebase.v1.Announcement"><span class="badge">M</span>Announcement</a></li><li>- <a href="#bytebase.v1.GetGroupRequest"><span class="badge">M</span>GetGroupRequest</a>+ <a href="#bytebase.v1.AppIMSetting"><span class="badge">M</span>AppIMSetting</a></li><li>- <a href="#bytebase.v1.Group"><span class="badge">M</span>Group</a>+ <a href="#bytebase.v1.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a></li><li>- <a href="#bytebase.v1.GroupMember"><span class="badge">M</span>GroupMember</a>+ <a href="#bytebase.v1.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a></li><li>- <a href="#bytebase.v1.ListGroupsRequest"><span class="badge">M</span>ListGroupsRequest</a>+ <a href="#bytebase.v1.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a></li><li>- <a href="#bytebase.v1.ListGroupsResponse"><span class="badge">M</span>ListGroupsResponse</a>+ <a href="#bytebase.v1.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a></li><li>- <a href="#bytebase.v1.UpdateGroupRequest"><span class="badge">M</span>UpdateGroupRequest</a>+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a></li>-<li>- <a href="#bytebase.v1.GroupMember.Role"><span class="badge">E</span>GroupMember.Role</a>+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></li>--<li>- <a href="#bytebase.v1.GroupService"><span class="badge">S</span>GroupService</a>+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a></li>- </ul>- </li>--- <li>- <a href="#v1%2fidp_service.proto">v1/idp_service.proto</a>- <ul>-<li>- <a href="#bytebase.v1.CreateIdentityProviderRequest"><span class="badge">M</span>CreateIdentityProviderRequest</a>+ <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a></li><li>- <a href="#bytebase.v1.DeleteIdentityProviderRequest"><span class="badge">M</span>DeleteIdentityProviderRequest</a>+ <a href="#bytebase.v1.ExternalApprovalSetting"><span class="badge">M</span>ExternalApprovalSetting</a></li><li>- <a href="#bytebase.v1.FieldMapping"><span class="badge">M</span>FieldMapping</a>+ <a href="#bytebase.v1.ExternalApprovalSetting.Node"><span class="badge">M</span>ExternalApprovalSetting.Node</a></li><li>- <a href="#bytebase.v1.GetIdentityProviderRequest"><span class="badge">M</span>GetIdentityProviderRequest</a>+ <a href="#bytebase.v1.GetSettingRequest"><span class="badge">M</span>GetSettingRequest</a></li><li>- <a href="#bytebase.v1.IdentityProvider"><span class="badge">M</span>IdentityProvider</a>+ <a href="#bytebase.v1.GetSettingResponse"><span class="badge">M</span>GetSettingResponse</a></li><li>- <a href="#bytebase.v1.IdentityProviderConfig"><span class="badge">M</span>IdentityProviderConfig</a>+ <a href="#bytebase.v1.ListSettingsRequest"><span class="badge">M</span>ListSettingsRequest</a></li><li>- <a href="#bytebase.v1.LDAPIdentityProviderConfig"><span class="badge">M</span>LDAPIdentityProviderConfig</a>+ <a href="#bytebase.v1.ListSettingsResponse"><span class="badge">M</span>ListSettingsResponse</a></li><li>- <a href="#bytebase.v1.ListIdentityProvidersRequest"><span class="badge">M</span>ListIdentityProvidersRequest</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting"><span class="badge">M</span>MaskingAlgorithmSetting</a></li><li>- <a href="#bytebase.v1.ListIdentityProvidersResponse"><span class="badge">M</span>ListIdentityProvidersResponse</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm</a></li><li>- <a href="#bytebase.v1.OAuth2IdentityProviderConfig"><span class="badge">M</span>OAuth2IdentityProviderConfig</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.FullMask</a></li><li>- <a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext"><span class="badge">M</span>OAuth2IdentityProviderTestRequestContext</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a></li><li>- <a href="#bytebase.v1.OIDCIdentityProviderConfig"><span class="badge">M</span>OIDCIdentityProviderConfig</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.MD5Mask</a></li><li>- <a href="#bytebase.v1.TestIdentityProviderRequest"><span class="badge">M</span>TestIdentityProviderRequest</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask</a></li><li>- <a href="#bytebase.v1.TestIdentityProviderResponse"><span class="badge">M</span>TestIdentityProviderResponse</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a></li><li>- <a href="#bytebase.v1.UndeleteIdentityProviderRequest"><span class="badge">M</span>UndeleteIdentityProviderRequest</a>+ <a href="#bytebase.v1.MaximumSQLResultSizeSetting"><span class="badge">M</span>MaximumSQLResultSizeSetting</a></li><li>- <a href="#bytebase.v1.UpdateIdentityProviderRequest"><span class="badge">M</span>UpdateIdentityProviderRequest</a>+ <a href="#bytebase.v1.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a></li>-<li>- <a href="#bytebase.v1.IdentityProviderType"><span class="badge">E</span>IdentityProviderType</a>+ <a href="#bytebase.v1.SCIMSetting"><span class="badge">M</span>SCIMSetting</a></li><li>- <a href="#bytebase.v1.OAuth2AuthStyle"><span class="badge">E</span>OAuth2AuthStyle</a>+ <a href="#bytebase.v1.SMTPMailDeliverySettingValue"><span class="badge">M</span>SMTPMailDeliverySettingValue</a></li>--<li>- <a href="#bytebase.v1.IdentityProviderService"><span class="badge">S</span>IdentityProviderService</a>+ <a href="#bytebase.v1.SchemaTemplateSetting"><span class="badge">M</span>SchemaTemplateSetting</a></li>- </ul>- </li>--- <li>- <a href="#v1%2fissue_service.proto">v1/issue_service.proto</a>- <ul>-<li>- <a href="#bytebase.v1.ApprovalFlow"><span class="badge">M</span>ApprovalFlow</a>+ <a href="#bytebase.v1.SchemaTemplateSetting.ColumnType"><span class="badge">M</span>SchemaTemplateSetting.ColumnType</a></li><li>- <a href="#bytebase.v1.ApprovalNode"><span class="badge">M</span>ApprovalNode</a>+ <a href="#bytebase.v1.SchemaTemplateSetting.FieldTemplate"><span class="badge">M</span>SchemaTemplateSetting.FieldTemplate</a></li><li>- <a href="#bytebase.v1.ApprovalStep"><span class="badge">M</span>ApprovalStep</a>+ <a href="#bytebase.v1.SchemaTemplateSetting.TableTemplate"><span class="badge">M</span>SchemaTemplateSetting.TableTemplate</a></li><li>- <a href="#bytebase.v1.ApprovalTemplate"><span class="badge">M</span>ApprovalTemplate</a>+ <a href="#bytebase.v1.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a></li><li>- <a href="#bytebase.v1.ApproveIssueRequest"><span class="badge">M</span>ApproveIssueRequest</a>+ <a href="#bytebase.v1.SemanticTypeSetting.SemanticType"><span class="badge">M</span>SemanticTypeSetting.SemanticType</a></li><li>- <a href="#bytebase.v1.BatchUpdateIssuesStatusRequest"><span class="badge">M</span>BatchUpdateIssuesStatusRequest</a>+ <a href="#bytebase.v1.Setting"><span class="badge">M</span>Setting</a></li><li>- <a href="#bytebase.v1.BatchUpdateIssuesStatusResponse"><span class="badge">M</span>BatchUpdateIssuesStatusResponse</a>+ <a href="#bytebase.v1.UpdateSettingRequest"><span class="badge">M</span>UpdateSettingRequest</a></li><li>- <a href="#bytebase.v1.CreateIssueCommentRequest"><span class="badge">M</span>CreateIssueCommentRequest</a>+ <a href="#bytebase.v1.Value"><span class="badge">M</span>Value</a></li><li>- <a href="#bytebase.v1.CreateIssueRequest"><span class="badge">M</span>CreateIssueRequest</a>+ <a href="#bytebase.v1.WorkspaceApprovalSetting"><span class="badge">M</span>WorkspaceApprovalSetting</a></li><li>- <a href="#bytebase.v1.GetIssueRequest"><span class="badge">M</span>GetIssueRequest</a>+ <a href="#bytebase.v1.WorkspaceApprovalSetting.Rule"><span class="badge">M</span>WorkspaceApprovalSetting.Rule</a></li><li>- <a href="#bytebase.v1.GrantRequest"><span class="badge">M</span>GrantRequest</a>+ <a href="#bytebase.v1.WorkspaceProfileSetting"><span class="badge">M</span>WorkspaceProfileSetting</a></li><li>- <a href="#bytebase.v1.Issue"><span class="badge">M</span>Issue</a>+ <a href="#bytebase.v1.WorkspaceTrialSetting"><span class="badge">M</span>WorkspaceTrialSetting</a></li>+<li>- <a href="#bytebase.v1.Issue.Approver"><span class="badge">M</span>Issue.Approver</a>+ <a href="#bytebase.v1.Announcement.AlertLevel"><span class="badge">E</span>Announcement.AlertLevel</a></li><li>- <a href="#bytebase.v1.Issue.TaskStatusCountEntry"><span class="badge">M</span>Issue.TaskStatusCountEntry</a>+ <a href="#bytebase.v1.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a></li><li>- <a href="#bytebase.v1.IssueComment"><span class="badge">M</span>IssueComment</a>+ <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a></li><li>- <a href="#bytebase.v1.IssueComment.Approval"><span class="badge">M</span>IssueComment.Approval</a>+ <a href="#bytebase.v1.SMTPMailDeliverySettingValue.Authentication"><span class="badge">E</span>SMTPMailDeliverySettingValue.Authentication</a></li><li>- <a href="#bytebase.v1.IssueComment.IssueUpdate"><span class="badge">M</span>IssueComment.IssueUpdate</a>+ <a href="#bytebase.v1.SMTPMailDeliverySettingValue.Encryption"><span class="badge">E</span>SMTPMailDeliverySettingValue.Encryption</a></li>++<li>- <a href="#bytebase.v1.IssueComment.StageEnd"><span class="badge">M</span>IssueComment.StageEnd</a>+ <a href="#bytebase.v1.SettingService"><span class="badge">S</span>SettingService</a></li>- <li>- <a href="#bytebase.v1.IssueComment.TaskPriorBackup"><span class="badge">M</span>IssueComment.TaskPriorBackup</a>+ </ul>+ </li>+++ <li>+ <a href="#v1%2factuator_service.proto">v1/actuator_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.ActuatorInfo"><span class="badge">M</span>ActuatorInfo</a></li><li>- <a href="#bytebase.v1.IssueComment.TaskPriorBackup.Table"><span class="badge">M</span>IssueComment.TaskPriorBackup.Table</a>+ <a href="#bytebase.v1.DeleteCacheRequest"><span class="badge">M</span>DeleteCacheRequest</a></li><li>- <a href="#bytebase.v1.IssueComment.TaskUpdate"><span class="badge">M</span>IssueComment.TaskUpdate</a>+ <a href="#bytebase.v1.GetActuatorInfoRequest"><span class="badge">M</span>GetActuatorInfoRequest</a></li><li>- <a href="#bytebase.v1.ListIssueCommentsRequest"><span class="badge">M</span>ListIssueCommentsRequest</a>+ <a href="#bytebase.v1.GetResourcePackageRequest"><span class="badge">M</span>GetResourcePackageRequest</a></li><li>- <a href="#bytebase.v1.ListIssueCommentsResponse"><span class="badge">M</span>ListIssueCommentsResponse</a>+ <a href="#bytebase.v1.ResourcePackage"><span class="badge">M</span>ResourcePackage</a></li><li>- <a href="#bytebase.v1.ListIssuesRequest"><span class="badge">M</span>ListIssuesRequest</a>+ <a href="#bytebase.v1.UpdateActuatorInfoRequest"><span class="badge">M</span>UpdateActuatorInfoRequest</a></li>+++<li>- <a href="#bytebase.v1.ListIssuesResponse"><span class="badge">M</span>ListIssuesResponse</a>+ <a href="#bytebase.v1.ActuatorService"><span class="badge">S</span>ActuatorService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fanomaly_service.proto">v1/anomaly_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.RejectIssueRequest"><span class="badge">M</span>RejectIssueRequest</a>+ <a href="#bytebase.v1.Anomaly"><span class="badge">M</span>Anomaly</a></li><li>- <a href="#bytebase.v1.RequestIssueRequest"><span class="badge">M</span>RequestIssueRequest</a>+ <a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail"><span class="badge">M</span>Anomaly.DatabaseConnectionDetail</a></li><li>- <a href="#bytebase.v1.SearchIssuesRequest"><span class="badge">M</span>SearchIssuesRequest</a>+ <a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail"><span class="badge">M</span>Anomaly.DatabaseSchemaDriftDetail</a></li><li>- <a href="#bytebase.v1.SearchIssuesResponse"><span class="badge">M</span>SearchIssuesResponse</a>+ <a href="#bytebase.v1.Anomaly.InstanceConnectionDetail"><span class="badge">M</span>Anomaly.InstanceConnectionDetail</a></li><li>- <a href="#bytebase.v1.UpdateIssueCommentRequest"><span class="badge">M</span>UpdateIssueCommentRequest</a>+ <a href="#bytebase.v1.SearchAnomaliesRequest"><span class="badge">M</span>SearchAnomaliesRequest</a></li><li>- <a href="#bytebase.v1.UpdateIssueRequest"><span class="badge">M</span>UpdateIssueRequest</a>+ <a href="#bytebase.v1.SearchAnomaliesResponse"><span class="badge">M</span>SearchAnomaliesResponse</a></li><li>- <a href="#bytebase.v1.ApprovalNode.GroupValue"><span class="badge">E</span>ApprovalNode.GroupValue</a>+ <a href="#bytebase.v1.Anomaly.AnomalySeverity"><span class="badge">E</span>Anomaly.AnomalySeverity</a></li><li>- <a href="#bytebase.v1.ApprovalNode.Type"><span class="badge">E</span>ApprovalNode.Type</a>+ <a href="#bytebase.v1.Anomaly.AnomalyType"><span class="badge">E</span>Anomaly.AnomalyType</a></li>++<li>- <a href="#bytebase.v1.ApprovalStep.Type"><span class="badge">E</span>ApprovalStep.Type</a>+ <a href="#bytebase.v1.AnomalyService"><span class="badge">S</span>AnomalyService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fiam_policy.proto">v1/iam_policy.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.Issue.Approver.Status"><span class="badge">E</span>Issue.Approver.Status</a>+ <a href="#bytebase.v1.Binding"><span class="badge">M</span>Binding</a></li><li>- <a href="#bytebase.v1.Issue.RiskLevel"><span class="badge">E</span>Issue.RiskLevel</a>+ <a href="#bytebase.v1.BindingDelta"><span class="badge">M</span>BindingDelta</a></li><li>- <a href="#bytebase.v1.Issue.Type"><span class="badge">E</span>Issue.Type</a>+ <a href="#bytebase.v1.GetIamPolicyRequest"><span class="badge">M</span>GetIamPolicyRequest</a></li><li>- <a href="#bytebase.v1.IssueComment.Approval.Status"><span class="badge">E</span>IssueComment.Approval.Status</a>+ <a href="#bytebase.v1.IamPolicy"><span class="badge">M</span>IamPolicy</a></li><li>- <a href="#bytebase.v1.IssueComment.TaskUpdate.Status"><span class="badge">E</span>IssueComment.TaskUpdate.Status</a>+ <a href="#bytebase.v1.PolicyDelta"><span class="badge">M</span>PolicyDelta</a></li><li>- <a href="#bytebase.v1.IssueStatus"><span class="badge">E</span>IssueStatus</a>+ <a href="#bytebase.v1.SetIamPolicyRequest"><span class="badge">M</span>SetIamPolicyRequest</a></li>-<li>- <a href="#bytebase.v1.IssueService"><span class="badge">S</span>IssueService</a>+ <a href="#bytebase.v1.BindingDelta.Action"><span class="badge">E</span>BindingDelta.Action</a></li>++</ul></li><li>- <a href="#v1%2forg_policy_service.proto">v1/org_policy_service.proto</a>+ <a href="#v1%2faudit_log_service.proto">v1/audit_log_service.proto</a><ul><li>- <a href="#bytebase.v1.CreatePolicyRequest"><span class="badge">M</span>CreatePolicyRequest</a>+ <a href="#bytebase.v1.AuditData"><span class="badge">M</span>AuditData</a></li><li>- <a href="#bytebase.v1.DataSourceQueryPolicy"><span class="badge">M</span>DataSourceQueryPolicy</a>+ <a href="#bytebase.v1.AuditLog"><span class="badge">M</span>AuditLog</a></li><li>- <a href="#bytebase.v1.DeletePolicyRequest"><span class="badge">M</span>DeletePolicyRequest</a>+ <a href="#bytebase.v1.ExportAuditLogsRequest"><span class="badge">M</span>ExportAuditLogsRequest</a></li><li>- <a href="#bytebase.v1.DisableCopyDataPolicy"><span class="badge">M</span>DisableCopyDataPolicy</a>+ <a href="#bytebase.v1.ExportAuditLogsResponse"><span class="badge">M</span>ExportAuditLogsResponse</a></li><li>- <a href="#bytebase.v1.GetPolicyRequest"><span class="badge">M</span>GetPolicyRequest</a>+ <a href="#bytebase.v1.RequestMetadata"><span class="badge">M</span>RequestMetadata</a></li><li>- <a href="#bytebase.v1.ListPoliciesRequest"><span class="badge">M</span>ListPoliciesRequest</a>+ <a href="#bytebase.v1.SearchAuditLogsRequest"><span class="badge">M</span>SearchAuditLogsRequest</a></li><li>- <a href="#bytebase.v1.ListPoliciesResponse"><span class="badge">M</span>ListPoliciesResponse</a>+ <a href="#bytebase.v1.SearchAuditLogsResponse"><span class="badge">M</span>SearchAuditLogsResponse</a></li>- <li>- <a href="#bytebase.v1.MaskData"><span class="badge">M</span>MaskData</a>- </li><li>- <a href="#bytebase.v1.MaskingExceptionPolicy"><span class="badge">M</span>MaskingExceptionPolicy</a>+ <a href="#bytebase.v1.AuditLog.Severity"><span class="badge">E</span>AuditLog.Severity</a></li>++<li>- <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException"><span class="badge">M</span>MaskingExceptionPolicy.MaskingException</a>+ <a href="#bytebase.v1.AuditLogService"><span class="badge">S</span>AuditLogService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fauth_service.proto">v1/auth_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.MaskingPolicy"><span class="badge">M</span>MaskingPolicy</a>+ <a href="#bytebase.v1.CreateUserRequest"><span class="badge">M</span>CreateUserRequest</a></li><li>- <a href="#bytebase.v1.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a>+ <a href="#bytebase.v1.DeleteUserRequest"><span class="badge">M</span>DeleteUserRequest</a></li><li>- <a href="#bytebase.v1.MaskingRulePolicy.MaskingRule"><span class="badge">M</span>MaskingRulePolicy.MaskingRule</a>+ <a href="#bytebase.v1.GetUserRequest"><span class="badge">M</span>GetUserRequest</a></li><li>- <a href="#bytebase.v1.Policy"><span class="badge">M</span>Policy</a>+ <a href="#bytebase.v1.IdentityProviderContext"><span class="badge">M</span>IdentityProviderContext</a></li><li>- <a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy"><span class="badge">M</span>RestrictIssueCreationForSQLReviewPolicy</a>+ <a href="#bytebase.v1.ListUsersRequest"><span class="badge">M</span>ListUsersRequest</a></li><li>- <a href="#bytebase.v1.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a>+ <a href="#bytebase.v1.ListUsersResponse"><span class="badge">M</span>ListUsersResponse</a></li><li>- <a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a>+ <a href="#bytebase.v1.LoginRequest"><span class="badge">M</span>LoginRequest</a></li><li>- <a href="#bytebase.v1.SlowQueryPolicy"><span class="badge">M</span>SlowQueryPolicy</a>+ <a href="#bytebase.v1.LoginResponse"><span class="badge">M</span>LoginResponse</a></li><li>- <a href="#bytebase.v1.TagPolicy"><span class="badge">M</span>TagPolicy</a>+ <a href="#bytebase.v1.LogoutRequest"><span class="badge">M</span>LogoutRequest</a></li><li>- <a href="#bytebase.v1.TagPolicy.TagsEntry"><span class="badge">M</span>TagPolicy.TagsEntry</a>+ <a href="#bytebase.v1.OAuth2IdentityProviderContext"><span class="badge">M</span>OAuth2IdentityProviderContext</a></li><li>- <a href="#bytebase.v1.UpdatePolicyRequest"><span class="badge">M</span>UpdatePolicyRequest</a>+ <a href="#bytebase.v1.OIDCIdentityProviderContext"><span class="badge">M</span>OIDCIdentityProviderContext</a></li>-<li>- <a href="#bytebase.v1.DataSourceQueryPolicy.Restriction"><span class="badge">E</span>DataSourceQueryPolicy.Restriction</a>+ <a href="#bytebase.v1.UndeleteUserRequest"><span class="badge">M</span>UndeleteUserRequest</a></li><li>- <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action"><span class="badge">E</span>MaskingExceptionPolicy.MaskingException.Action</a>+ <a href="#bytebase.v1.UpdateUserRequest"><span class="badge">M</span>UpdateUserRequest</a></li><li>- <a href="#bytebase.v1.PolicyResourceType"><span class="badge">E</span>PolicyResourceType</a>+ <a href="#bytebase.v1.User"><span class="badge">M</span>User</a></li><li>- <a href="#bytebase.v1.PolicyType"><span class="badge">E</span>PolicyType</a>+ <a href="#bytebase.v1.User.Profile"><span class="badge">M</span>User.Profile</a></li>+<li>- <a href="#bytebase.v1.SQLReviewRuleLevel"><span class="badge">E</span>SQLReviewRuleLevel</a>+ <a href="#bytebase.v1.UserType"><span class="badge">E</span>UserType</a></li><li>- <a href="#bytebase.v1.OrgPolicyService"><span class="badge">S</span>OrgPolicyService</a>+ <a href="#bytebase.v1.AuthService"><span class="badge">S</span>AuthService</a></li></ul>@@ -1672,142 +1410,152 @@<li>- <a href="#v1%2fplan_service.proto">v1/plan_service.proto</a>+ <a href="#v1%2fbranch_service.proto">v1/branch_service.proto</a><ul><li>- <a href="#bytebase.v1.BatchCancelPlanCheckRunsRequest"><span class="badge">M</span>BatchCancelPlanCheckRunsRequest</a>+ <a href="#bytebase.v1.Branch"><span class="badge">M</span>Branch</a></li><li>- <a href="#bytebase.v1.BatchCancelPlanCheckRunsResponse"><span class="badge">M</span>BatchCancelPlanCheckRunsResponse</a>+ <a href="#bytebase.v1.CreateBranchRequest"><span class="badge">M</span>CreateBranchRequest</a></li><li>- <a href="#bytebase.v1.CreatePlanRequest"><span class="badge">M</span>CreatePlanRequest</a>+ <a href="#bytebase.v1.DeleteBranchRequest"><span class="badge">M</span>DeleteBranchRequest</a></li><li>- <a href="#bytebase.v1.GetPlanRequest"><span class="badge">M</span>GetPlanRequest</a>+ <a href="#bytebase.v1.DiffDatabaseRequest"><span class="badge">M</span>DiffDatabaseRequest</a></li><li>- <a href="#bytebase.v1.ListPlanCheckRunsRequest"><span class="badge">M</span>ListPlanCheckRunsRequest</a>+ <a href="#bytebase.v1.DiffDatabaseResponse"><span class="badge">M</span>DiffDatabaseResponse</a></li><li>- <a href="#bytebase.v1.ListPlanCheckRunsResponse"><span class="badge">M</span>ListPlanCheckRunsResponse</a>+ <a href="#bytebase.v1.DiffMetadataRequest"><span class="badge">M</span>DiffMetadataRequest</a></li><li>- <a href="#bytebase.v1.ListPlansRequest"><span class="badge">M</span>ListPlansRequest</a>+ <a href="#bytebase.v1.DiffMetadataResponse"><span class="badge">M</span>DiffMetadataResponse</a></li><li>- <a href="#bytebase.v1.ListPlansResponse"><span class="badge">M</span>ListPlansResponse</a>+ <a href="#bytebase.v1.GetBranchRequest"><span class="badge">M</span>GetBranchRequest</a></li><li>- <a href="#bytebase.v1.Plan"><span class="badge">M</span>Plan</a>+ <a href="#bytebase.v1.ListBranchesRequest"><span class="badge">M</span>ListBranchesRequest</a></li><li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig"><span class="badge">M</span>Plan.ChangeDatabaseConfig</a>+ <a href="#bytebase.v1.ListBranchesResponse"><span class="badge">M</span>ListBranchesResponse</a></li><li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry"><span class="badge">M</span>Plan.ChangeDatabaseConfig.GhostFlagsEntry</a>+ <a href="#bytebase.v1.MergeBranchRequest"><span class="badge">M</span>MergeBranchRequest</a></li><li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail"><span class="badge">M</span>Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a>+ <a href="#bytebase.v1.RebaseBranchRequest"><span class="badge">M</span>RebaseBranchRequest</a></li><li>- <a href="#bytebase.v1.Plan.CreateDatabaseConfig"><span class="badge">M</span>Plan.CreateDatabaseConfig</a>+ <a href="#bytebase.v1.RebaseBranchResponse"><span class="badge">M</span>RebaseBranchResponse</a></li><li>- <a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry"><span class="badge">M</span>Plan.CreateDatabaseConfig.LabelsEntry</a>+ <a href="#bytebase.v1.UpdateBranchRequest"><span class="badge">M</span>UpdateBranchRequest</a></li>- <li>- <a href="#bytebase.v1.Plan.ExportDataConfig"><span class="badge">M</span>Plan.ExportDataConfig</a>- </li><li>- <a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry"><span class="badge">M</span>Plan.PlanCheckRunStatusCountEntry</a>+ <a href="#bytebase.v1.BranchView"><span class="badge">E</span>BranchView</a></li>- <li>- <a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a>- </li>- <li>- <a href="#bytebase.v1.Plan.Step"><span class="badge">M</span>Plan.Step</a>- </li><li>- <a href="#bytebase.v1.Plan.VCSSource"><span class="badge">M</span>Plan.VCSSource</a>+ <a href="#bytebase.v1.BranchService"><span class="badge">S</span>BranchService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fcel_service.proto">v1/cel_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.PlanCheckRun"><span class="badge">M</span>PlanCheckRun</a>+ <a href="#bytebase.v1.BatchDeparseRequest"><span class="badge">M</span>BatchDeparseRequest</a></li><li>- <a href="#bytebase.v1.PlanCheckRun.Result"><span class="badge">M</span>PlanCheckRun.Result</a>+ <a href="#bytebase.v1.BatchDeparseResponse"><span class="badge">M</span>BatchDeparseResponse</a></li><li>- <a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport"><span class="badge">M</span>PlanCheckRun.Result.SqlReviewReport</a>+ <a href="#bytebase.v1.BatchParseRequest"><span class="badge">M</span>BatchParseRequest</a></li><li>- <a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport"><span class="badge">M</span>PlanCheckRun.Result.SqlSummaryReport</a>+ <a href="#bytebase.v1.BatchParseResponse"><span class="badge">M</span>BatchParseResponse</a></li>+++<li>- <a href="#bytebase.v1.RunPlanChecksRequest"><span class="badge">M</span>RunPlanChecksRequest</a>+ <a href="#bytebase.v1.CelService"><span class="badge">S</span>CelService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fchangelist_service.proto">v1/changelist_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.RunPlanChecksResponse"><span class="badge">M</span>RunPlanChecksResponse</a>+ <a href="#bytebase.v1.Changelist"><span class="badge">M</span>Changelist</a></li><li>- <a href="#bytebase.v1.SearchPlansRequest"><span class="badge">M</span>SearchPlansRequest</a>+ <a href="#bytebase.v1.Changelist.Change"><span class="badge">M</span>Changelist.Change</a></li><li>- <a href="#bytebase.v1.SearchPlansResponse"><span class="badge">M</span>SearchPlansResponse</a>+ <a href="#bytebase.v1.CreateChangelistRequest"><span class="badge">M</span>CreateChangelistRequest</a></li><li>- <a href="#bytebase.v1.UpdatePlanRequest"><span class="badge">M</span>UpdatePlanRequest</a>+ <a href="#bytebase.v1.DeleteChangelistRequest"><span class="badge">M</span>DeleteChangelistRequest</a></li>-<li>- <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type"><span class="badge">E</span>Plan.ChangeDatabaseConfig.Type</a>+ <a href="#bytebase.v1.GetChangelistRequest"><span class="badge">M</span>GetChangelistRequest</a></li><li>- <a href="#bytebase.v1.PlanCheckRun.Result.Status"><span class="badge">E</span>PlanCheckRun.Result.Status</a>+ <a href="#bytebase.v1.ListChangelistsRequest"><span class="badge">M</span>ListChangelistsRequest</a></li><li>- <a href="#bytebase.v1.PlanCheckRun.Status"><span class="badge">E</span>PlanCheckRun.Status</a>+ <a href="#bytebase.v1.ListChangelistsResponse"><span class="badge">M</span>ListChangelistsResponse</a></li><li>- <a href="#bytebase.v1.PlanCheckRun.Type"><span class="badge">E</span>PlanCheckRun.Type</a>+ <a href="#bytebase.v1.UpdateChangelistRequest"><span class="badge">M</span>UpdateChangelistRequest</a></li>+<li>- <a href="#bytebase.v1.PlanService"><span class="badge">S</span>PlanService</a>+ <a href="#bytebase.v1.ChangelistService"><span class="badge">S</span>ChangelistService</a></li></ul>@@ -1815,146 +1563,152 @@<li>- <a href="#v1%2fproject_service.proto">v1/project_service.proto</a>+ <a href="#v1%2fdatabase_group_service.proto">v1/database_group_service.proto</a><ul><li>- <a href="#bytebase.v1.Activity"><span class="badge">M</span>Activity</a>+ <a href="#bytebase.v1.CreateDatabaseGroupRequest"><span class="badge">M</span>CreateDatabaseGroupRequest</a></li><li>- <a href="#bytebase.v1.AddWebhookRequest"><span class="badge">M</span>AddWebhookRequest</a>+ <a href="#bytebase.v1.DatabaseGroup"><span class="badge">M</span>DatabaseGroup</a></li><li>- <a href="#bytebase.v1.BatchGetIamPolicyRequest"><span class="badge">M</span>BatchGetIamPolicyRequest</a>+ <a href="#bytebase.v1.DatabaseGroup.Database"><span class="badge">M</span>DatabaseGroup.Database</a></li><li>- <a href="#bytebase.v1.BatchGetIamPolicyResponse"><span class="badge">M</span>BatchGetIamPolicyResponse</a>+ <a href="#bytebase.v1.DeleteDatabaseGroupRequest"><span class="badge">M</span>DeleteDatabaseGroupRequest</a></li><li>- <a href="#bytebase.v1.BatchGetIamPolicyResponse.PolicyResult"><span class="badge">M</span>BatchGetIamPolicyResponse.PolicyResult</a>+ <a href="#bytebase.v1.GetDatabaseGroupRequest"><span class="badge">M</span>GetDatabaseGroupRequest</a></li><li>- <a href="#bytebase.v1.CreateProjectRequest"><span class="badge">M</span>CreateProjectRequest</a>+ <a href="#bytebase.v1.ListDatabaseGroupsRequest"><span class="badge">M</span>ListDatabaseGroupsRequest</a></li><li>- <a href="#bytebase.v1.DeleteProjectRequest"><span class="badge">M</span>DeleteProjectRequest</a>+ <a href="#bytebase.v1.ListDatabaseGroupsResponse"><span class="badge">M</span>ListDatabaseGroupsResponse</a></li><li>- <a href="#bytebase.v1.DeploymentConfig"><span class="badge">M</span>DeploymentConfig</a>+ <a href="#bytebase.v1.UpdateDatabaseGroupRequest"><span class="badge">M</span>UpdateDatabaseGroupRequest</a></li>- <li>- <a href="#bytebase.v1.DeploymentSpec"><span class="badge">M</span>DeploymentSpec</a>- </li><li>- <a href="#bytebase.v1.GetDeploymentConfigRequest"><span class="badge">M</span>GetDeploymentConfigRequest</a>+ <a href="#bytebase.v1.DatabaseGroupView"><span class="badge">E</span>DatabaseGroupView</a></li>- <li>- <a href="#bytebase.v1.GetProjectRequest"><span class="badge">M</span>GetProjectRequest</a>- </li>- <li>- <a href="#bytebase.v1.Label"><span class="badge">M</span>Label</a>- </li><li>- <a href="#bytebase.v1.LabelSelector"><span class="badge">M</span>LabelSelector</a>+ <a href="#bytebase.v1.DatabaseGroupService"><span class="badge">S</span>DatabaseGroupService</a></li>- <li>- <a href="#bytebase.v1.LabelSelectorRequirement"><span class="badge">M</span>LabelSelectorRequirement</a>- </li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fenvironment_service.proto">v1/environment_service.proto</a>+ <ul><li>- <a href="#bytebase.v1.ListProjectsRequest"><span class="badge">M</span>ListProjectsRequest</a>+ <a href="#bytebase.v1.CreateEnvironmentRequest"><span class="badge">M</span>CreateEnvironmentRequest</a></li><li>- <a href="#bytebase.v1.ListProjectsResponse"><span class="badge">M</span>ListProjectsResponse</a>+ <a href="#bytebase.v1.DeleteEnvironmentRequest"><span class="badge">M</span>DeleteEnvironmentRequest</a></li><li>- <a href="#bytebase.v1.Project"><span class="badge">M</span>Project</a>+ <a href="#bytebase.v1.Environment"><span class="badge">M</span>Environment</a></li><li>- <a href="#bytebase.v1.RemoveWebhookRequest"><span class="badge">M</span>RemoveWebhookRequest</a>+ <a href="#bytebase.v1.GetEnvironmentRequest"><span class="badge">M</span>GetEnvironmentRequest</a></li><li>- <a href="#bytebase.v1.Schedule"><span class="badge">M</span>Schedule</a>+ <a href="#bytebase.v1.ListEnvironmentsRequest"><span class="badge">M</span>ListEnvironmentsRequest</a></li><li>- <a href="#bytebase.v1.ScheduleDeployment"><span class="badge">M</span>ScheduleDeployment</a>+ <a href="#bytebase.v1.ListEnvironmentsResponse"><span class="badge">M</span>ListEnvironmentsResponse</a></li><li>- <a href="#bytebase.v1.SearchProjectsRequest"><span class="badge">M</span>SearchProjectsRequest</a>+ <a href="#bytebase.v1.UndeleteEnvironmentRequest"><span class="badge">M</span>UndeleteEnvironmentRequest</a></li><li>- <a href="#bytebase.v1.SearchProjectsResponse"><span class="badge">M</span>SearchProjectsResponse</a>+ <a href="#bytebase.v1.UpdateEnvironmentRequest"><span class="badge">M</span>UpdateEnvironmentRequest</a></li>+<li>- <a href="#bytebase.v1.TestWebhookRequest"><span class="badge">M</span>TestWebhookRequest</a>+ <a href="#bytebase.v1.EnvironmentTier"><span class="badge">E</span>EnvironmentTier</a></li>++<li>- <a href="#bytebase.v1.TestWebhookResponse"><span class="badge">M</span>TestWebhookResponse</a>+ <a href="#bytebase.v1.EnvironmentService"><span class="badge">S</span>EnvironmentService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fgroup.proto">v1/group.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.UndeleteProjectRequest"><span class="badge">M</span>UndeleteProjectRequest</a>+ <a href="#bytebase.v1.CreateGroupRequest"><span class="badge">M</span>CreateGroupRequest</a></li><li>- <a href="#bytebase.v1.UpdateDeploymentConfigRequest"><span class="badge">M</span>UpdateDeploymentConfigRequest</a>+ <a href="#bytebase.v1.DeleteGroupRequest"><span class="badge">M</span>DeleteGroupRequest</a></li><li>- <a href="#bytebase.v1.UpdateProjectRequest"><span class="badge">M</span>UpdateProjectRequest</a>+ <a href="#bytebase.v1.GetGroupRequest"><span class="badge">M</span>GetGroupRequest</a></li><li>- <a href="#bytebase.v1.UpdateWebhookRequest"><span class="badge">M</span>UpdateWebhookRequest</a>+ <a href="#bytebase.v1.Group"><span class="badge">M</span>Group</a></li><li>- <a href="#bytebase.v1.Webhook"><span class="badge">M</span>Webhook</a>+ <a href="#bytebase.v1.GroupMember"><span class="badge">M</span>GroupMember</a></li>-<li>- <a href="#bytebase.v1.Activity.Type"><span class="badge">E</span>Activity.Type</a>+ <a href="#bytebase.v1.ListGroupsRequest"><span class="badge">M</span>ListGroupsRequest</a></li><li>- <a href="#bytebase.v1.OperatorType"><span class="badge">E</span>OperatorType</a>+ <a href="#bytebase.v1.ListGroupsResponse"><span class="badge">M</span>ListGroupsResponse</a></li><li>- <a href="#bytebase.v1.Webhook.Type"><span class="badge">E</span>Webhook.Type</a>+ <a href="#bytebase.v1.UpdateGroupRequest"><span class="badge">M</span>UpdateGroupRequest</a></li>+<li>- <a href="#bytebase.v1.Workflow"><span class="badge">E</span>Workflow</a>+ <a href="#bytebase.v1.GroupMember.Role"><span class="badge">E</span>GroupMember.Role</a></li><li>- <a href="#bytebase.v1.ProjectService"><span class="badge">S</span>ProjectService</a>+ <a href="#bytebase.v1.GroupService"><span class="badge">S</span>GroupService</a></li></ul>@@ -1962,85 +1716,86 @@<li>- <a href="#v1%2freview_config_service.proto">v1/review_config_service.proto</a>+ <a href="#v1%2fidp_service.proto">v1/idp_service.proto</a><ul><li>- <a href="#bytebase.v1.CreateReviewConfigRequest"><span class="badge">M</span>CreateReviewConfigRequest</a>+ <a href="#bytebase.v1.CreateIdentityProviderRequest"><span class="badge">M</span>CreateIdentityProviderRequest</a></li><li>- <a href="#bytebase.v1.DeleteReviewConfigRequest"><span class="badge">M</span>DeleteReviewConfigRequest</a>+ <a href="#bytebase.v1.DeleteIdentityProviderRequest"><span class="badge">M</span>DeleteIdentityProviderRequest</a></li><li>- <a href="#bytebase.v1.GetReviewConfigRequest"><span class="badge">M</span>GetReviewConfigRequest</a>+ <a href="#bytebase.v1.FieldMapping"><span class="badge">M</span>FieldMapping</a></li><li>- <a href="#bytebase.v1.ListReviewConfigsRequest"><span class="badge">M</span>ListReviewConfigsRequest</a>+ <a href="#bytebase.v1.GetIdentityProviderRequest"><span class="badge">M</span>GetIdentityProviderRequest</a></li><li>- <a href="#bytebase.v1.ListReviewConfigsResponse"><span class="badge">M</span>ListReviewConfigsResponse</a>+ <a href="#bytebase.v1.IdentityProvider"><span class="badge">M</span>IdentityProvider</a></li><li>- <a href="#bytebase.v1.ReviewConfig"><span class="badge">M</span>ReviewConfig</a>+ <a href="#bytebase.v1.IdentityProviderConfig"><span class="badge">M</span>IdentityProviderConfig</a></li><li>- <a href="#bytebase.v1.UpdateReviewConfigRequest"><span class="badge">M</span>UpdateReviewConfigRequest</a>+ <a href="#bytebase.v1.LDAPIdentityProviderConfig"><span class="badge">M</span>LDAPIdentityProviderConfig</a></li>--+ <li>+ <a href="#bytebase.v1.ListIdentityProvidersRequest"><span class="badge">M</span>ListIdentityProvidersRequest</a>+ </li><li>- <a href="#bytebase.v1.ReviewConfigService"><span class="badge">S</span>ReviewConfigService</a>+ <a href="#bytebase.v1.ListIdentityProvidersResponse"><span class="badge">M</span>ListIdentityProvidersResponse</a></li>- </ul>- </li>--- <li>- <a href="#v1%2frisk_service.proto">v1/risk_service.proto</a>- <ul>+ <li>+ <a href="#bytebase.v1.OAuth2IdentityProviderConfig"><span class="badge">M</span>OAuth2IdentityProviderConfig</a>+ </li><li>- <a href="#bytebase.v1.CreateRiskRequest"><span class="badge">M</span>CreateRiskRequest</a>+ <a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext"><span class="badge">M</span>OAuth2IdentityProviderTestRequestContext</a></li><li>- <a href="#bytebase.v1.DeleteRiskRequest"><span class="badge">M</span>DeleteRiskRequest</a>+ <a href="#bytebase.v1.OIDCIdentityProviderConfig"><span class="badge">M</span>OIDCIdentityProviderConfig</a></li><li>- <a href="#bytebase.v1.ListRisksRequest"><span class="badge">M</span>ListRisksRequest</a>+ <a href="#bytebase.v1.TestIdentityProviderRequest"><span class="badge">M</span>TestIdentityProviderRequest</a></li><li>- <a href="#bytebase.v1.ListRisksResponse"><span class="badge">M</span>ListRisksResponse</a>+ <a href="#bytebase.v1.TestIdentityProviderResponse"><span class="badge">M</span>TestIdentityProviderResponse</a></li><li>- <a href="#bytebase.v1.Risk"><span class="badge">M</span>Risk</a>+ <a href="#bytebase.v1.UndeleteIdentityProviderRequest"><span class="badge">M</span>UndeleteIdentityProviderRequest</a></li><li>- <a href="#bytebase.v1.UpdateRiskRequest"><span class="badge">M</span>UpdateRiskRequest</a>+ <a href="#bytebase.v1.UpdateIdentityProviderRequest"><span class="badge">M</span>UpdateIdentityProviderRequest</a></li><li>- <a href="#bytebase.v1.Risk.Source"><span class="badge">E</span>Risk.Source</a>+ <a href="#bytebase.v1.IdentityProviderType"><span class="badge">E</span>IdentityProviderType</a>+ </li>++ <li>+ <a href="#bytebase.v1.OAuth2AuthStyle"><span class="badge">E</span>OAuth2AuthStyle</a></li><li>- <a href="#bytebase.v1.RiskService"><span class="badge">S</span>RiskService</a>+ <a href="#bytebase.v1.IdentityProviderService"><span class="badge">S</span>IdentityProviderService</a></li></ul>@@ -2048,249 +1803,261 @@<li>- <a href="#v1%2frole_service.proto">v1/role_service.proto</a>+ <a href="#v1%2forg_policy_service.proto">v1/org_policy_service.proto</a><ul><li>- <a href="#bytebase.v1.CreateRoleRequest"><span class="badge">M</span>CreateRoleRequest</a>+ <a href="#bytebase.v1.CreatePolicyRequest"><span class="badge">M</span>CreatePolicyRequest</a></li><li>- <a href="#bytebase.v1.DeleteRoleRequest"><span class="badge">M</span>DeleteRoleRequest</a>+ <a href="#bytebase.v1.DataSourceQueryPolicy"><span class="badge">M</span>DataSourceQueryPolicy</a></li><li>- <a href="#bytebase.v1.ListRolesRequest"><span class="badge">M</span>ListRolesRequest</a>+ <a href="#bytebase.v1.DeletePolicyRequest"><span class="badge">M</span>DeletePolicyRequest</a></li><li>- <a href="#bytebase.v1.ListRolesResponse"><span class="badge">M</span>ListRolesResponse</a>+ <a href="#bytebase.v1.DisableCopyDataPolicy"><span class="badge">M</span>DisableCopyDataPolicy</a></li><li>- <a href="#bytebase.v1.Role"><span class="badge">M</span>Role</a>+ <a href="#bytebase.v1.GetPolicyRequest"><span class="badge">M</span>GetPolicyRequest</a></li><li>- <a href="#bytebase.v1.UpdateRoleRequest"><span class="badge">M</span>UpdateRoleRequest</a>+ <a href="#bytebase.v1.ListPoliciesRequest"><span class="badge">M</span>ListPoliciesRequest</a></li>---<li>- <a href="#bytebase.v1.RoleService"><span class="badge">S</span>RoleService</a>+ <a href="#bytebase.v1.ListPoliciesResponse"><span class="badge">M</span>ListPoliciesResponse</a></li>- </ul>- </li>--- <li>- <a href="#v1%2frollout_service.proto">v1/rollout_service.proto</a>- <ul>-<li>- <a href="#bytebase.v1.BatchCancelTaskRunsRequest"><span class="badge">M</span>BatchCancelTaskRunsRequest</a>+ <a href="#bytebase.v1.MaskData"><span class="badge">M</span>MaskData</a></li><li>- <a href="#bytebase.v1.BatchCancelTaskRunsResponse"><span class="badge">M</span>BatchCancelTaskRunsResponse</a>+ <a href="#bytebase.v1.MaskingExceptionPolicy"><span class="badge">M</span>MaskingExceptionPolicy</a></li><li>- <a href="#bytebase.v1.BatchRunTasksRequest"><span class="badge">M</span>BatchRunTasksRequest</a>+ <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException"><span class="badge">M</span>MaskingExceptionPolicy.MaskingException</a></li><li>- <a href="#bytebase.v1.BatchRunTasksResponse"><span class="badge">M</span>BatchRunTasksResponse</a>+ <a href="#bytebase.v1.MaskingPolicy"><span class="badge">M</span>MaskingPolicy</a></li><li>- <a href="#bytebase.v1.BatchSkipTasksRequest"><span class="badge">M</span>BatchSkipTasksRequest</a>+ <a href="#bytebase.v1.MaskingRulePolicy"><span class="badge">M</span>MaskingRulePolicy</a></li><li>- <a href="#bytebase.v1.BatchSkipTasksResponse"><span class="badge">M</span>BatchSkipTasksResponse</a>+ <a href="#bytebase.v1.MaskingRulePolicy.MaskingRule"><span class="badge">M</span>MaskingRulePolicy.MaskingRule</a></li><li>- <a href="#bytebase.v1.CreateRolloutRequest"><span class="badge">M</span>CreateRolloutRequest</a>+ <a href="#bytebase.v1.Policy"><span class="badge">M</span>Policy</a></li><li>- <a href="#bytebase.v1.GetRolloutRequest"><span class="badge">M</span>GetRolloutRequest</a>+ <a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy"><span class="badge">M</span>RestrictIssueCreationForSQLReviewPolicy</a></li><li>- <a href="#bytebase.v1.GetTaskRunLogRequest"><span class="badge">M</span>GetTaskRunLogRequest</a>+ <a href="#bytebase.v1.RolloutPolicy"><span class="badge">M</span>RolloutPolicy</a></li><li>- <a href="#bytebase.v1.GetTaskRunSessionRequest"><span class="badge">M</span>GetTaskRunSessionRequest</a>+ <a href="#bytebase.v1.SQLReviewRule"><span class="badge">M</span>SQLReviewRule</a></li><li>- <a href="#bytebase.v1.ListTaskRunsRequest"><span class="badge">M</span>ListTaskRunsRequest</a>+ <a href="#bytebase.v1.SlowQueryPolicy"><span class="badge">M</span>SlowQueryPolicy</a></li><li>- <a href="#bytebase.v1.ListTaskRunsResponse"><span class="badge">M</span>ListTaskRunsResponse</a>+ <a href="#bytebase.v1.TagPolicy"><span class="badge">M</span>TagPolicy</a></li><li>- <a href="#bytebase.v1.PreviewRolloutRequest"><span class="badge">M</span>PreviewRolloutRequest</a>+ <a href="#bytebase.v1.TagPolicy.TagsEntry"><span class="badge">M</span>TagPolicy.TagsEntry</a></li><li>- <a href="#bytebase.v1.PreviewTaskRunRollbackRequest"><span class="badge">M</span>PreviewTaskRunRollbackRequest</a>+ <a href="#bytebase.v1.UpdatePolicyRequest"><span class="badge">M</span>UpdatePolicyRequest</a></li>+<li>- <a href="#bytebase.v1.PreviewTaskRunRollbackResponse"><span class="badge">M</span>PreviewTaskRunRollbackResponse</a>+ <a href="#bytebase.v1.DataSourceQueryPolicy.Restriction"><span class="badge">E</span>DataSourceQueryPolicy.Restriction</a></li><li>- <a href="#bytebase.v1.Rollout"><span class="badge">M</span>Rollout</a>+ <a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action"><span class="badge">E</span>MaskingExceptionPolicy.MaskingException.Action</a></li><li>- <a href="#bytebase.v1.Stage"><span class="badge">M</span>Stage</a>+ <a href="#bytebase.v1.PolicyResourceType"><span class="badge">E</span>PolicyResourceType</a></li><li>- <a href="#bytebase.v1.Task"><span class="badge">M</span>Task</a>+ <a href="#bytebase.v1.PolicyType"><span class="badge">E</span>PolicyType</a></li><li>- <a href="#bytebase.v1.Task.DatabaseCreate"><span class="badge">M</span>Task.DatabaseCreate</a>+ <a href="#bytebase.v1.SQLReviewRuleLevel"><span class="badge">E</span>SQLReviewRuleLevel</a></li>++<li>- <a href="#bytebase.v1.Task.DatabaseCreate.LabelsEntry"><span class="badge">M</span>Task.DatabaseCreate.LabelsEntry</a>+ <a href="#bytebase.v1.OrgPolicyService"><span class="badge">S</span>OrgPolicyService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2fplan_service.proto">v1/plan_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.Task.DatabaseDataExport"><span class="badge">M</span>Task.DatabaseDataExport</a>+ <a href="#bytebase.v1.BatchCancelPlanCheckRunsRequest"><span class="badge">M</span>BatchCancelPlanCheckRunsRequest</a></li><li>- <a href="#bytebase.v1.Task.DatabaseDataUpdate"><span class="badge">M</span>Task.DatabaseDataUpdate</a>+ <a href="#bytebase.v1.BatchCancelPlanCheckRunsResponse"><span class="badge">M</span>BatchCancelPlanCheckRunsResponse</a></li><li>- <a href="#bytebase.v1.Task.DatabaseSchemaBaseline"><span class="badge">M</span>Task.DatabaseSchemaBaseline</a>+ <a href="#bytebase.v1.CreatePlanRequest"><span class="badge">M</span>CreatePlanRequest</a></li><li>- <a href="#bytebase.v1.Task.DatabaseSchemaUpdate"><span class="badge">M</span>Task.DatabaseSchemaUpdate</a>+ <a href="#bytebase.v1.GetPlanRequest"><span class="badge">M</span>GetPlanRequest</a></li><li>- <a href="#bytebase.v1.TaskRun"><span class="badge">M</span>TaskRun</a>+ <a href="#bytebase.v1.ListPlanCheckRunsRequest"><span class="badge">M</span>ListPlanCheckRunsRequest</a></li><li>- <a href="#bytebase.v1.TaskRun.PriorBackupDetail"><span class="badge">M</span>TaskRun.PriorBackupDetail</a>+ <a href="#bytebase.v1.ListPlanCheckRunsResponse"><span class="badge">M</span>ListPlanCheckRunsResponse</a></li><li>- <a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item"><span class="badge">M</span>TaskRun.PriorBackupDetail.Item</a>+ <a href="#bytebase.v1.ListPlansRequest"><span class="badge">M</span>ListPlansRequest</a></li><li>- <a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table"><span class="badge">M</span>TaskRun.PriorBackupDetail.Item.Table</a>+ <a href="#bytebase.v1.ListPlansResponse"><span class="badge">M</span>ListPlansResponse</a></li><li>- <a href="#bytebase.v1.TaskRun.SchedulerInfo"><span class="badge">M</span>TaskRun.SchedulerInfo</a>+ <a href="#bytebase.v1.Plan"><span class="badge">M</span>Plan</a></li><li>- <a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause"><span class="badge">M</span>TaskRun.SchedulerInfo.WaitingCause</a>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig"><span class="badge">M</span>Plan.ChangeDatabaseConfig</a></li><li>- <a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task"><span class="badge">M</span>TaskRun.SchedulerInfo.WaitingCause.Task</a>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry"><span class="badge">M</span>Plan.ChangeDatabaseConfig.GhostFlagsEntry</a></li><li>- <a href="#bytebase.v1.TaskRunLog"><span class="badge">M</span>TaskRunLog</a>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail"><span class="badge">M</span>Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry"><span class="badge">M</span>TaskRunLogEntry</a>+ <a href="#bytebase.v1.Plan.CreateDatabaseConfig"><span class="badge">M</span>Plan.CreateDatabaseConfig</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.CommandExecute"><span class="badge">M</span>TaskRunLogEntry.CommandExecute</a>+ <a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry"><span class="badge">M</span>Plan.CreateDatabaseConfig.LabelsEntry</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse"><span class="badge">M</span>TaskRunLogEntry.CommandExecute.CommandResponse</a>+ <a href="#bytebase.v1.Plan.ExportDataConfig"><span class="badge">M</span>Plan.ExportDataConfig</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync"><span class="badge">M</span>TaskRunLogEntry.DatabaseSync</a>+ <a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry"><span class="badge">M</span>Plan.PlanCheckRunStatusCountEntry</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.SchemaDump"><span class="badge">M</span>TaskRunLogEntry.SchemaDump</a>+ <a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate"><span class="badge">M</span>TaskRunLogEntry.TaskRunStatusUpdate</a>+ <a href="#bytebase.v1.Plan.Step"><span class="badge">M</span>Plan.Step</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.TransactionControl"><span class="badge">M</span>TaskRunLogEntry.TransactionControl</a>+ <a href="#bytebase.v1.Plan.VCSSource"><span class="badge">M</span>Plan.VCSSource</a></li><li>- <a href="#bytebase.v1.TaskRunSession"><span class="badge">M</span>TaskRunSession</a>+ <a href="#bytebase.v1.PlanCheckRun"><span class="badge">M</span>PlanCheckRun</a></li><li>- <a href="#bytebase.v1.TaskRunSession.Postgres"><span class="badge">M</span>TaskRunSession.Postgres</a>+ <a href="#bytebase.v1.PlanCheckRun.Result"><span class="badge">M</span>PlanCheckRun.Result</a></li><li>- <a href="#bytebase.v1.TaskRunSession.Postgres.Session"><span class="badge">M</span>TaskRunSession.Postgres.Session</a>+ <a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport"><span class="badge">M</span>PlanCheckRun.Result.SqlReviewReport</a></li>-<li>- <a href="#bytebase.v1.Task.Status"><span class="badge">E</span>Task.Status</a>+ <a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport"><span class="badge">M</span>PlanCheckRun.Result.SqlSummaryReport</a></li><li>- <a href="#bytebase.v1.Task.Type"><span class="badge">E</span>Task.Type</a>+ <a href="#bytebase.v1.RunPlanChecksRequest"><span class="badge">M</span>RunPlanChecksRequest</a></li><li>- <a href="#bytebase.v1.TaskRun.ExportArchiveStatus"><span class="badge">E</span>TaskRun.ExportArchiveStatus</a>+ <a href="#bytebase.v1.RunPlanChecksResponse"><span class="badge">M</span>RunPlanChecksResponse</a></li><li>- <a href="#bytebase.v1.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a>+ <a href="#bytebase.v1.SearchPlansRequest"><span class="badge">M</span>SearchPlansRequest</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status"><span class="badge">E</span>TaskRunLogEntry.TaskRunStatusUpdate.Status</a>+ <a href="#bytebase.v1.SearchPlansResponse"><span class="badge">M</span>SearchPlansResponse</a></li><li>- <a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type"><span class="badge">E</span>TaskRunLogEntry.TransactionControl.Type</a>+ <a href="#bytebase.v1.UpdatePlanRequest"><span class="badge">M</span>UpdatePlanRequest</a></li>+<li>- <a href="#bytebase.v1.TaskRunLogEntry.Type"><span class="badge">E</span>TaskRunLogEntry.Type</a>+ <a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type"><span class="badge">E</span>Plan.ChangeDatabaseConfig.Type</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Result.Status"><span class="badge">E</span>PlanCheckRun.Result.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Status"><span class="badge">E</span>PlanCheckRun.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.PlanCheckRun.Type"><span class="badge">E</span>PlanCheckRun.Type</a></li><li>- <a href="#bytebase.v1.RolloutService"><span class="badge">S</span>RolloutService</a>+ <a href="#bytebase.v1.PlanService"><span class="badge">S</span>PlanService</a></li></ul>@@ -2298,249 +2065,232 @@<li>- <a href="#v1%2fsubscription_service.proto">v1/subscription_service.proto</a>+ <a href="#v1%2fproject_service.proto">v1/project_service.proto</a><ul><li>- <a href="#bytebase.v1.Feature"><span class="badge">M</span>Feature</a>+ <a href="#bytebase.v1.Activity"><span class="badge">M</span>Activity</a></li><li>- <a href="#bytebase.v1.Feature.MatrixEntry"><span class="badge">M</span>Feature.MatrixEntry</a>+ <a href="#bytebase.v1.AddWebhookRequest"><span class="badge">M</span>AddWebhookRequest</a></li><li>- <a href="#bytebase.v1.FeatureMatrix"><span class="badge">M</span>FeatureMatrix</a>+ <a href="#bytebase.v1.BatchGetIamPolicyRequest"><span class="badge">M</span>BatchGetIamPolicyRequest</a></li><li>- <a href="#bytebase.v1.GetFeatureMatrixRequest"><span class="badge">M</span>GetFeatureMatrixRequest</a>+ <a href="#bytebase.v1.BatchGetIamPolicyResponse"><span class="badge">M</span>BatchGetIamPolicyResponse</a></li><li>- <a href="#bytebase.v1.GetSubscriptionRequest"><span class="badge">M</span>GetSubscriptionRequest</a>+ <a href="#bytebase.v1.BatchGetIamPolicyResponse.PolicyResult"><span class="badge">M</span>BatchGetIamPolicyResponse.PolicyResult</a></li><li>- <a href="#bytebase.v1.PatchSubscription"><span class="badge">M</span>PatchSubscription</a>+ <a href="#bytebase.v1.CreateProjectRequest"><span class="badge">M</span>CreateProjectRequest</a></li><li>- <a href="#bytebase.v1.Subscription"><span class="badge">M</span>Subscription</a>+ <a href="#bytebase.v1.DeleteProjectRequest"><span class="badge">M</span>DeleteProjectRequest</a></li><li>- <a href="#bytebase.v1.UpdateSubscriptionRequest"><span class="badge">M</span>UpdateSubscriptionRequest</a>+ <a href="#bytebase.v1.DeploymentConfig"><span class="badge">M</span>DeploymentConfig</a></li>-<li>- <a href="#bytebase.v1.PlanType"><span class="badge">E</span>PlanType</a>+ <a href="#bytebase.v1.DeploymentSpec"><span class="badge">M</span>DeploymentSpec</a></li>--<li>- <a href="#bytebase.v1.SubscriptionService"><span class="badge">S</span>SubscriptionService</a>+ <a href="#bytebase.v1.GetDeploymentConfigRequest"><span class="badge">M</span>GetDeploymentConfigRequest</a></li>- </ul>- </li>--- <li>- <a href="#v1%2fsetting_service.proto">v1/setting_service.proto</a>- <ul>-<li>- <a href="#bytebase.v1.AgentPluginSetting"><span class="badge">M</span>AgentPluginSetting</a>+ <a href="#bytebase.v1.GetProjectRequest"><span class="badge">M</span>GetProjectRequest</a></li><li>- <a href="#bytebase.v1.Announcement"><span class="badge">M</span>Announcement</a>+ <a href="#bytebase.v1.Label"><span class="badge">M</span>Label</a></li><li>- <a href="#bytebase.v1.AppIMSetting"><span class="badge">M</span>AppIMSetting</a>+ <a href="#bytebase.v1.LabelSelector"><span class="badge">M</span>LabelSelector</a></li><li>- <a href="#bytebase.v1.AppIMSetting.Feishu"><span class="badge">M</span>AppIMSetting.Feishu</a>+ <a href="#bytebase.v1.LabelSelectorRequirement"><span class="badge">M</span>LabelSelectorRequirement</a></li><li>- <a href="#bytebase.v1.AppIMSetting.Slack"><span class="badge">M</span>AppIMSetting.Slack</a>+ <a href="#bytebase.v1.ListProjectsRequest"><span class="badge">M</span>ListProjectsRequest</a></li><li>- <a href="#bytebase.v1.AppIMSetting.Wecom"><span class="badge">M</span>AppIMSetting.Wecom</a>+ <a href="#bytebase.v1.ListProjectsResponse"><span class="badge">M</span>ListProjectsResponse</a></li><li>- <a href="#bytebase.v1.DataClassificationSetting"><span class="badge">M</span>DataClassificationSetting</a>+ <a href="#bytebase.v1.Project"><span class="badge">M</span>Project</a></li><li>- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig</a>+ <a href="#bytebase.v1.RemoveWebhookRequest"><span class="badge">M</span>RemoveWebhookRequest</a></li><li>- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a>+ <a href="#bytebase.v1.Schedule"><span class="badge">M</span>Schedule</a></li><li>- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.DataClassification</a>+ <a href="#bytebase.v1.ScheduleDeployment"><span class="badge">M</span>ScheduleDeployment</a></li><li>- <a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level"><span class="badge">M</span>DataClassificationSetting.DataClassificationConfig.Level</a>+ <a href="#bytebase.v1.SearchProjectsRequest"><span class="badge">M</span>SearchProjectsRequest</a></li><li>- <a href="#bytebase.v1.ExternalApprovalSetting"><span class="badge">M</span>ExternalApprovalSetting</a>+ <a href="#bytebase.v1.SearchProjectsResponse"><span class="badge">M</span>SearchProjectsResponse</a></li><li>- <a href="#bytebase.v1.ExternalApprovalSetting.Node"><span class="badge">M</span>ExternalApprovalSetting.Node</a>+ <a href="#bytebase.v1.TestWebhookRequest"><span class="badge">M</span>TestWebhookRequest</a></li><li>- <a href="#bytebase.v1.GetSettingRequest"><span class="badge">M</span>GetSettingRequest</a>+ <a href="#bytebase.v1.TestWebhookResponse"><span class="badge">M</span>TestWebhookResponse</a></li><li>- <a href="#bytebase.v1.GetSettingResponse"><span class="badge">M</span>GetSettingResponse</a>+ <a href="#bytebase.v1.UndeleteProjectRequest"><span class="badge">M</span>UndeleteProjectRequest</a></li><li>- <a href="#bytebase.v1.ListSettingsRequest"><span class="badge">M</span>ListSettingsRequest</a>+ <a href="#bytebase.v1.UpdateDeploymentConfigRequest"><span class="badge">M</span>UpdateDeploymentConfigRequest</a></li><li>- <a href="#bytebase.v1.ListSettingsResponse"><span class="badge">M</span>ListSettingsResponse</a>+ <a href="#bytebase.v1.UpdateProjectRequest"><span class="badge">M</span>UpdateProjectRequest</a></li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting"><span class="badge">M</span>MaskingAlgorithmSetting</a>+ <a href="#bytebase.v1.UpdateWebhookRequest"><span class="badge">M</span>UpdateWebhookRequest</a></li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm</a>+ <a href="#bytebase.v1.Webhook"><span class="badge">M</span>Webhook</a></li>- <li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.FullMask</a>- </li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a>+ <a href="#bytebase.v1.Activity.Type"><span class="badge">E</span>Activity.Type</a></li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.MD5Mask</a>+ <a href="#bytebase.v1.OperatorType"><span class="badge">E</span>OperatorType</a></li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask</a>+ <a href="#bytebase.v1.Webhook.Type"><span class="badge">E</span>Webhook.Type</a></li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice"><span class="badge">M</span>MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a>+ <a href="#bytebase.v1.Workflow"><span class="badge">E</span>Workflow</a></li>- <li>- <a href="#bytebase.v1.MaximumSQLResultSizeSetting"><span class="badge">M</span>MaximumSQLResultSizeSetting</a>- </li>- <li>- <a href="#bytebase.v1.PasswordRestrictionSetting"><span class="badge">M</span>PasswordRestrictionSetting</a>- </li><li>- <a href="#bytebase.v1.SCIMSetting"><span class="badge">M</span>SCIMSetting</a>+ <a href="#bytebase.v1.ProjectService"><span class="badge">S</span>ProjectService</a></li>- <li>- <a href="#bytebase.v1.SMTPMailDeliverySettingValue"><span class="badge">M</span>SMTPMailDeliverySettingValue</a>- </li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2freview_config_service.proto">v1/review_config_service.proto</a>+ <ul><li>- <a href="#bytebase.v1.SchemaTemplateSetting"><span class="badge">M</span>SchemaTemplateSetting</a>+ <a href="#bytebase.v1.CreateReviewConfigRequest"><span class="badge">M</span>CreateReviewConfigRequest</a></li><li>- <a href="#bytebase.v1.SchemaTemplateSetting.ColumnType"><span class="badge">M</span>SchemaTemplateSetting.ColumnType</a>+ <a href="#bytebase.v1.DeleteReviewConfigRequest"><span class="badge">M</span>DeleteReviewConfigRequest</a></li><li>- <a href="#bytebase.v1.SchemaTemplateSetting.FieldTemplate"><span class="badge">M</span>SchemaTemplateSetting.FieldTemplate</a>+ <a href="#bytebase.v1.GetReviewConfigRequest"><span class="badge">M</span>GetReviewConfigRequest</a></li><li>- <a href="#bytebase.v1.SchemaTemplateSetting.TableTemplate"><span class="badge">M</span>SchemaTemplateSetting.TableTemplate</a>+ <a href="#bytebase.v1.ListReviewConfigsRequest"><span class="badge">M</span>ListReviewConfigsRequest</a></li><li>- <a href="#bytebase.v1.SemanticTypeSetting"><span class="badge">M</span>SemanticTypeSetting</a>+ <a href="#bytebase.v1.ListReviewConfigsResponse"><span class="badge">M</span>ListReviewConfigsResponse</a></li><li>- <a href="#bytebase.v1.SemanticTypeSetting.SemanticType"><span class="badge">M</span>SemanticTypeSetting.SemanticType</a>+ <a href="#bytebase.v1.ReviewConfig"><span class="badge">M</span>ReviewConfig</a></li><li>- <a href="#bytebase.v1.Setting"><span class="badge">M</span>Setting</a>+ <a href="#bytebase.v1.UpdateReviewConfigRequest"><span class="badge">M</span>UpdateReviewConfigRequest</a></li>- <li>- <a href="#bytebase.v1.UpdateSettingRequest"><span class="badge">M</span>UpdateSettingRequest</a>- </li>- <li>- <a href="#bytebase.v1.Value"><span class="badge">M</span>Value</a>- </li>- <li>- <a href="#bytebase.v1.WorkspaceApprovalSetting"><span class="badge">M</span>WorkspaceApprovalSetting</a>- </li><li>- <a href="#bytebase.v1.WorkspaceApprovalSetting.Rule"><span class="badge">M</span>WorkspaceApprovalSetting.Rule</a>+ <a href="#bytebase.v1.ReviewConfigService"><span class="badge">S</span>ReviewConfigService</a></li>+ </ul>+ </li>+++ <li>+ <a href="#v1%2frisk_service.proto">v1/risk_service.proto</a>+ <ul>+<li>- <a href="#bytebase.v1.WorkspaceProfileSetting"><span class="badge">M</span>WorkspaceProfileSetting</a>+ <a href="#bytebase.v1.CreateRiskRequest"><span class="badge">M</span>CreateRiskRequest</a></li><li>- <a href="#bytebase.v1.WorkspaceTrialSetting"><span class="badge">M</span>WorkspaceTrialSetting</a>+ <a href="#bytebase.v1.DeleteRiskRequest"><span class="badge">M</span>DeleteRiskRequest</a></li>-<li>- <a href="#bytebase.v1.Announcement.AlertLevel"><span class="badge">E</span>Announcement.AlertLevel</a>+ <a href="#bytebase.v1.ListRisksRequest"><span class="badge">M</span>ListRisksRequest</a></li><li>- <a href="#bytebase.v1.DatabaseChangeMode"><span class="badge">E</span>DatabaseChangeMode</a>+ <a href="#bytebase.v1.ListRisksResponse"><span class="badge">M</span>ListRisksResponse</a></li><li>- <a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType"><span class="badge">E</span>MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a>+ <a href="#bytebase.v1.Risk"><span class="badge">M</span>Risk</a></li><li>- <a href="#bytebase.v1.SMTPMailDeliverySettingValue.Authentication"><span class="badge">E</span>SMTPMailDeliverySettingValue.Authentication</a>+ <a href="#bytebase.v1.UpdateRiskRequest"><span class="badge">M</span>UpdateRiskRequest</a></li>+<li>- <a href="#bytebase.v1.SMTPMailDeliverySettingValue.Encryption"><span class="badge">E</span>SMTPMailDeliverySettingValue.Encryption</a>+ <a href="#bytebase.v1.Risk.Source"><span class="badge">E</span>Risk.Source</a></li><li>- <a href="#bytebase.v1.SettingService"><span class="badge">S</span>SettingService</a>+ <a href="#bytebase.v1.RiskService"><span class="badge">S</span>RiskService</a></li></ul>@@ -2548,42 +2298,38 @@<li>- <a href="#v1%2fsheet_service.proto">v1/sheet_service.proto</a>+ <a href="#v1%2frole_service.proto">v1/role_service.proto</a><ul><li>- <a href="#bytebase.v1.CreateSheetRequest"><span class="badge">M</span>CreateSheetRequest</a>+ <a href="#bytebase.v1.CreateRoleRequest"><span class="badge">M</span>CreateRoleRequest</a></li><li>- <a href="#bytebase.v1.GetSheetRequest"><span class="badge">M</span>GetSheetRequest</a>+ <a href="#bytebase.v1.DeleteRoleRequest"><span class="badge">M</span>DeleteRoleRequest</a></li><li>- <a href="#bytebase.v1.Sheet"><span class="badge">M</span>Sheet</a>+ <a href="#bytebase.v1.ListRolesRequest"><span class="badge">M</span>ListRolesRequest</a></li><li>- <a href="#bytebase.v1.SheetCommand"><span class="badge">M</span>SheetCommand</a>+ <a href="#bytebase.v1.ListRolesResponse"><span class="badge">M</span>ListRolesResponse</a></li><li>- <a href="#bytebase.v1.SheetPayload"><span class="badge">M</span>SheetPayload</a>+ <a href="#bytebase.v1.Role"><span class="badge">M</span>Role</a></li><li>- <a href="#bytebase.v1.UpdateSheetRequest"><span class="badge">M</span>UpdateSheetRequest</a>+ <a href="#bytebase.v1.UpdateRoleRequest"><span class="badge">M</span>UpdateRoleRequest</a></li>- <li>- <a href="#bytebase.v1.SheetPayload.Type"><span class="badge">E</span>SheetPayload.Type</a>- </li>-<li>- <a href="#bytebase.v1.SheetService"><span class="badge">S</span>SheetService</a>+ <a href="#bytebase.v1.RoleService"><span class="badge">S</span>RoleService</a></li></ul>@@ -2591,119 +2337,373 @@<li>- <a href="#v1%2fsql_service.proto">v1/sql_service.proto</a>+ <a href="#v1%2frollout_service.proto">v1/rollout_service.proto</a><ul><li>- <a href="#bytebase.v1.AdminExecuteRequest"><span class="badge">M</span>AdminExecuteRequest</a>+ <a href="#bytebase.v1.BatchCancelTaskRunsRequest"><span class="badge">M</span>BatchCancelTaskRunsRequest</a></li><li>- <a href="#bytebase.v1.AdminExecuteResponse"><span class="badge">M</span>AdminExecuteResponse</a>+ <a href="#bytebase.v1.BatchCancelTaskRunsResponse"><span class="badge">M</span>BatchCancelTaskRunsResponse</a></li><li>- <a href="#bytebase.v1.Advice"><span class="badge">M</span>Advice</a>+ <a href="#bytebase.v1.BatchRunTasksRequest"><span class="badge">M</span>BatchRunTasksRequest</a></li><li>- <a href="#bytebase.v1.CheckRequest"><span class="badge">M</span>CheckRequest</a>+ <a href="#bytebase.v1.BatchRunTasksResponse"><span class="badge">M</span>BatchRunTasksResponse</a></li><li>- <a href="#bytebase.v1.CheckResponse"><span class="badge">M</span>CheckResponse</a>+ <a href="#bytebase.v1.BatchSkipTasksRequest"><span class="badge">M</span>BatchSkipTasksRequest</a></li><li>- <a href="#bytebase.v1.DifferPreviewRequest"><span class="badge">M</span>DifferPreviewRequest</a>+ <a href="#bytebase.v1.BatchSkipTasksResponse"><span class="badge">M</span>BatchSkipTasksResponse</a></li><li>- <a href="#bytebase.v1.DifferPreviewResponse"><span class="badge">M</span>DifferPreviewResponse</a>+ <a href="#bytebase.v1.CreateRolloutRequest"><span class="badge">M</span>CreateRolloutRequest</a></li><li>- <a href="#bytebase.v1.ExecuteRequest"><span class="badge">M</span>ExecuteRequest</a>+ <a href="#bytebase.v1.GetRolloutRequest"><span class="badge">M</span>GetRolloutRequest</a></li><li>- <a href="#bytebase.v1.ExecuteResponse"><span class="badge">M</span>ExecuteResponse</a>+ <a href="#bytebase.v1.GetTaskRunLogRequest"><span class="badge">M</span>GetTaskRunLogRequest</a></li><li>- <a href="#bytebase.v1.ExportRequest"><span class="badge">M</span>ExportRequest</a>+ <a href="#bytebase.v1.GetTaskRunSessionRequest"><span class="badge">M</span>GetTaskRunSessionRequest</a></li><li>- <a href="#bytebase.v1.ExportResponse"><span class="badge">M</span>ExportResponse</a>+ <a href="#bytebase.v1.ListTaskRunsRequest"><span class="badge">M</span>ListTaskRunsRequest</a></li><li>- <a href="#bytebase.v1.GenerateRestoreSQLRequest"><span class="badge">M</span>GenerateRestoreSQLRequest</a>+ <a href="#bytebase.v1.ListTaskRunsResponse"><span class="badge">M</span>ListTaskRunsResponse</a></li><li>- <a href="#bytebase.v1.GenerateRestoreSQLResponse"><span class="badge">M</span>GenerateRestoreSQLResponse</a>+ <a href="#bytebase.v1.PreviewRolloutRequest"><span class="badge">M</span>PreviewRolloutRequest</a></li><li>- <a href="#bytebase.v1.ParseMyBatisMapperRequest"><span class="badge">M</span>ParseMyBatisMapperRequest</a>+ <a href="#bytebase.v1.PreviewTaskRunRollbackRequest"><span class="badge">M</span>PreviewTaskRunRollbackRequest</a></li><li>- <a href="#bytebase.v1.ParseMyBatisMapperResponse"><span class="badge">M</span>ParseMyBatisMapperResponse</a>+ <a href="#bytebase.v1.PreviewTaskRunRollbackResponse"><span class="badge">M</span>PreviewTaskRunRollbackResponse</a></li><li>- <a href="#bytebase.v1.PrettyRequest"><span class="badge">M</span>PrettyRequest</a>+ <a href="#bytebase.v1.Rollout"><span class="badge">M</span>Rollout</a></li><li>- <a href="#bytebase.v1.PrettyResponse"><span class="badge">M</span>PrettyResponse</a>+ <a href="#bytebase.v1.Stage"><span class="badge">M</span>Stage</a></li><li>- <a href="#bytebase.v1.QueryHistory"><span class="badge">M</span>QueryHistory</a>+ <a href="#bytebase.v1.Task"><span class="badge">M</span>Task</a></li><li>- <a href="#bytebase.v1.QueryRequest"><span class="badge">M</span>QueryRequest</a>+ <a href="#bytebase.v1.Task.DatabaseCreate"><span class="badge">M</span>Task.DatabaseCreate</a></li><li>- <a href="#bytebase.v1.QueryResponse"><span class="badge">M</span>QueryResponse</a>+ <a href="#bytebase.v1.Task.DatabaseCreate.LabelsEntry"><span class="badge">M</span>Task.DatabaseCreate.LabelsEntry</a></li><li>- <a href="#bytebase.v1.QueryResult"><span class="badge">M</span>QueryResult</a>+ <a href="#bytebase.v1.Task.DatabaseDataExport"><span class="badge">M</span>Task.DatabaseDataExport</a></li><li>- <a href="#bytebase.v1.QueryResult.PostgresError"><span class="badge">M</span>QueryResult.PostgresError</a>+ <a href="#bytebase.v1.Task.DatabaseDataUpdate"><span class="badge">M</span>Task.DatabaseDataUpdate</a></li><li>- <a href="#bytebase.v1.QueryRow"><span class="badge">M</span>QueryRow</a>+ <a href="#bytebase.v1.Task.DatabaseSchemaBaseline"><span class="badge">M</span>Task.DatabaseSchemaBaseline</a></li><li>- <a href="#bytebase.v1.RowValue"><span class="badge">M</span>RowValue</a>+ <a href="#bytebase.v1.Task.DatabaseSchemaUpdate"><span class="badge">M</span>Task.DatabaseSchemaUpdate</a></li><li>- <a href="#bytebase.v1.SearchQueryHistoriesRequest"><span class="badge">M</span>SearchQueryHistoriesRequest</a>+ <a href="#bytebase.v1.TaskRun"><span class="badge">M</span>TaskRun</a></li><li>- <a href="#bytebase.v1.SearchQueryHistoriesResponse"><span class="badge">M</span>SearchQueryHistoriesResponse</a>+ <a href="#bytebase.v1.TaskRun.PriorBackupDetail"><span class="badge">M</span>TaskRun.PriorBackupDetail</a></li><li>- <a href="#bytebase.v1.StringifyMetadataRequest"><span class="badge">M</span>StringifyMetadataRequest</a>+ <a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item"><span class="badge">M</span>TaskRun.PriorBackupDetail.Item</a></li><li>- <a href="#bytebase.v1.StringifyMetadataResponse"><span class="badge">M</span>StringifyMetadataResponse</a>+ <a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table"><span class="badge">M</span>TaskRun.PriorBackupDetail.Item.Table</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRun.SchedulerInfo"><span class="badge">M</span>TaskRun.SchedulerInfo</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause"><span class="badge">M</span>TaskRun.SchedulerInfo.WaitingCause</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task"><span class="badge">M</span>TaskRun.SchedulerInfo.WaitingCause.Task</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLog"><span class="badge">M</span>TaskRunLog</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry"><span class="badge">M</span>TaskRunLogEntry</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.CommandExecute"><span class="badge">M</span>TaskRunLogEntry.CommandExecute</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse"><span class="badge">M</span>TaskRunLogEntry.CommandExecute.CommandResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync"><span class="badge">M</span>TaskRunLogEntry.DatabaseSync</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.SchemaDump"><span class="badge">M</span>TaskRunLogEntry.SchemaDump</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate"><span class="badge">M</span>TaskRunLogEntry.TaskRunStatusUpdate</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.TransactionControl"><span class="badge">M</span>TaskRunLogEntry.TransactionControl</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunSession"><span class="badge">M</span>TaskRunSession</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunSession.Postgres"><span class="badge">M</span>TaskRunSession.Postgres</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunSession.Postgres.Session"><span class="badge">M</span>TaskRunSession.Postgres.Session</a>+ </li>+++ <li>+ <a href="#bytebase.v1.Task.Status"><span class="badge">E</span>Task.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.Task.Type"><span class="badge">E</span>Task.Type</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRun.ExportArchiveStatus"><span class="badge">E</span>TaskRun.ExportArchiveStatus</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status"><span class="badge">E</span>TaskRunLogEntry.TaskRunStatusUpdate.Status</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type"><span class="badge">E</span>TaskRunLogEntry.TransactionControl.Type</a>+ </li>++ <li>+ <a href="#bytebase.v1.TaskRunLogEntry.Type"><span class="badge">E</span>TaskRunLogEntry.Type</a>+ </li>++++ <li>+ <a href="#bytebase.v1.RolloutService"><span class="badge">S</span>RolloutService</a>+ </li>++ </ul>+ </li>+++ <li>+ <a href="#v1%2fsheet_service.proto">v1/sheet_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.CreateSheetRequest"><span class="badge">M</span>CreateSheetRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.GetSheetRequest"><span class="badge">M</span>GetSheetRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.Sheet"><span class="badge">M</span>Sheet</a>+ </li>++ <li>+ <a href="#bytebase.v1.SheetCommand"><span class="badge">M</span>SheetCommand</a>+ </li>++ <li>+ <a href="#bytebase.v1.SheetPayload"><span class="badge">M</span>SheetPayload</a>+ </li>++ <li>+ <a href="#bytebase.v1.UpdateSheetRequest"><span class="badge">M</span>UpdateSheetRequest</a>+ </li>+++ <li>+ <a href="#bytebase.v1.SheetPayload.Type"><span class="badge">E</span>SheetPayload.Type</a>+ </li>++++ <li>+ <a href="#bytebase.v1.SheetService"><span class="badge">S</span>SheetService</a>+ </li>++ </ul>+ </li>+++ <li>+ <a href="#v1%2fsql_service.proto">v1/sql_service.proto</a>+ <ul>++ <li>+ <a href="#bytebase.v1.AdminExecuteRequest"><span class="badge">M</span>AdminExecuteRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.AdminExecuteResponse"><span class="badge">M</span>AdminExecuteResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.Advice"><span class="badge">M</span>Advice</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckRequest"><span class="badge">M</span>CheckRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.CheckResponse"><span class="badge">M</span>CheckResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.DifferPreviewRequest"><span class="badge">M</span>DifferPreviewRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.DifferPreviewResponse"><span class="badge">M</span>DifferPreviewResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExecuteRequest"><span class="badge">M</span>ExecuteRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExecuteResponse"><span class="badge">M</span>ExecuteResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExportRequest"><span class="badge">M</span>ExportRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ExportResponse"><span class="badge">M</span>ExportResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.GenerateRestoreSQLRequest"><span class="badge">M</span>GenerateRestoreSQLRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.GenerateRestoreSQLResponse"><span class="badge">M</span>GenerateRestoreSQLResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.ParseMyBatisMapperRequest"><span class="badge">M</span>ParseMyBatisMapperRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.ParseMyBatisMapperResponse"><span class="badge">M</span>ParseMyBatisMapperResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.PrettyRequest"><span class="badge">M</span>PrettyRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.PrettyResponse"><span class="badge">M</span>PrettyResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryHistory"><span class="badge">M</span>QueryHistory</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryRequest"><span class="badge">M</span>QueryRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryResponse"><span class="badge">M</span>QueryResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryResult"><span class="badge">M</span>QueryResult</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryResult.PostgresError"><span class="badge">M</span>QueryResult.PostgresError</a>+ </li>++ <li>+ <a href="#bytebase.v1.QueryRow"><span class="badge">M</span>QueryRow</a>+ </li>++ <li>+ <a href="#bytebase.v1.RowValue"><span class="badge">M</span>RowValue</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchQueryHistoriesRequest"><span class="badge">M</span>SearchQueryHistoriesRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.SearchQueryHistoriesResponse"><span class="badge">M</span>SearchQueryHistoriesResponse</a>+ </li>++ <li>+ <a href="#bytebase.v1.StringifyMetadataRequest"><span class="badge">M</span>StringifyMetadataRequest</a>+ </li>++ <li>+ <a href="#bytebase.v1.StringifyMetadataResponse"><span class="badge">M</span>StringifyMetadataResponse</a></li>@@ -2996,13 +2996,13 @@<div class="file-heading">- <h2 id="v1/actuator_service.proto">v1/actuator_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/common.proto">v1/common.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.ActuatorInfo">ActuatorInfo</h3>- <p>ServerInfo is the API message for server info.</p><p>Actuator concept is similar to the Spring Boot Actuator.</p>+ <h3 id="bytebase.v1.Position">Position</h3>+ <p></p><table class="field-table">@@ -3012,188 +3012,17 @@<tbody><tr>- <td>version</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>version is the bytebase's server version </p></td>- </tr>-- <tr>- <td>git_commit</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>git_commit is the git commit hash of the build </p></td>- </tr>-- <tr>- <td>readonly</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>readonly flag means if the Bytebase is running in readonly mode. </p></td>- </tr>-- <tr>- <td>saas</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users. </p></td>- </tr>-- <tr>- <td>demo_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>demo_name specifies the demo name, empty string means no demo. </p></td>- </tr>-- <tr>- <td>host</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>host is the Bytebase instance host. </p></td>- </tr>-- <tr>- <td>port</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>port is the Bytebase instance port. </p></td>- </tr>-- <tr>- <td>external_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>external_url is the URL where user or webhook callback visits Bytebase. </p></td>- </tr>-- <tr>- <td>need_admin_setup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>need_admin_setup flag means the Bytebase instance doesn't have any end users. </p></td>- </tr>-- <tr>- <td>disallow_signup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>disallow_signup is the flag to disable self-service signup. </p></td>- </tr>-- <tr>- <td>last_active_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value. </p></td>- </tr>-- <tr>- <td>require_2fa</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>require_2fa is the flag to require 2FA for all users. </p></td>- </tr>-- <tr>- <td>workspace_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>workspace_id is the identifier for the workspace. </p></td>- </tr>-- <tr>- <td>gitops_webhook_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>gitops_webhook_url is the webhook URL for GitOps. </p></td>- </tr>-- <tr>- <td>debug</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>debug flag means if the debug mode is enabled. </p></td>- </tr>-- <tr>- <td>lsp</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>lsp is the enablement of lsp in SQL Editor. </p></td>- </tr>-- <tr>- <td>pre_update_backup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>pre_update_backup is the enablement of data backup prior to data update. </p></td>- </tr>-- <tr>- <td>iam_guard</td>- <td><a href="#bool">bool</a></td>+ <td>line</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>iam_guard is the enablement of IAM checks. </p></td>- </tr>-- <tr>- <td>unlicensed_features</td>- <td><a href="#string">string</a></td>- <td>repeated</td><td><p> </p></td></tr><tr>- <td>disallow_password_signin</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins) </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteCacheRequest">DeleteCacheRequest</h3>- <p></p>------ <h3 id="bytebase.v1.GetActuatorInfoRequest">GetActuatorInfoRequest</h3>- <p></p>------ <h3 id="bytebase.v1.GetResourcePackageRequest">GetResourcePackageRequest</h3>- <p>The request message for getting the theme resource.</p>------ <h3 id="bytebase.v1.ResourcePackage">ResourcePackage</h3>- <p>The theme resources.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>logo</td>- <td><a href="#bytes">bytes</a></td>+ <td>column</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The branding logo. </p></td>+ <td><p> </p></td></tr></tbody>@@ -3203,7 +3032,7 @@- <h3 id="bytebase.v1.UpdateActuatorInfoRequest">UpdateActuatorInfoRequest</h3>+ <h3 id="bytebase.v1.Range">Range</h3><p></p>@@ -3214,17 +3043,17 @@<tbody><tr>- <td>actuator</td>- <td><a href="#bytebase.v1.ActuatorInfo">ActuatorInfo</a></td>+ <td>start</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The actuator to update. </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>end</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -3236,194 +3065,334 @@----- <h3 id="bytebase.v1.ActuatorService">ActuatorService</h3>+ <h3 id="bytebase.v1.Engine">Engine</h3><p></p><table class="enum-table"><thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody><tr>- <td>GetActuatorInfo</td>- <td><a href="#bytebase.v1.GetActuatorInfoRequest">GetActuatorInfoRequest</a></td>- <td><a href="#bytebase.v1.ActuatorInfo">ActuatorInfo</a></td>+ <td>ENGINE_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>UpdateActuatorInfo</td>- <td><a href="#bytebase.v1.UpdateActuatorInfoRequest">UpdateActuatorInfoRequest</a></td>- <td><a href="#bytebase.v1.ActuatorInfo">ActuatorInfo</a></td>+ <td>CLICKHOUSE</td>+ <td>1</td><td><p></p></td></tr><tr>- <td>DeleteCache</td>- <td><a href="#bytebase.v1.DeleteCacheRequest">DeleteCacheRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>MYSQL</td>+ <td>2</td><td><p></p></td></tr><tr>- <td>GetResourcePackage</td>- <td><a href="#bytebase.v1.GetResourcePackageRequest">GetResourcePackageRequest</a></td>- <td><a href="#bytebase.v1.ResourcePackage">ResourcePackage</a></td>+ <td>POSTGRES</td>+ <td>3</td><td><p></p></td></tr>- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead><tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>+ <td>SNOWFLAKE</td>+ <td>4</td>+ <td><p></p></td></tr>- </thead>- <tbody>--<tr>- <td>GetActuatorInfo</td>- <td>GET</td>- <td>/v1/actuator/info</td>- <td></td>+ <td>SQLITE</td>+ <td>5</td>+ <td><p></p></td></tr>---<tr>- <td>UpdateActuatorInfo</td>- <td>PATCH</td>- <td>/v1/actuator/info</td>- <td>actuator</td>+ <td>TIDB</td>+ <td>6</td>+ <td><p></p></td></tr>---<tr>- <td>DeleteCache</td>- <td>DELETE</td>- <td>/v1/actuator/cache</td>- <td></td>+ <td>MONGODB</td>+ <td>7</td>+ <td><p></p></td></tr>---<tr>- <td>GetResourcePackage</td>- <td>GET</td>- <td>/v1/actuator/resources</td>- <td></td>+ <td>REDIS</td>+ <td>8</td>+ <td><p></p></td></tr>-- </tbody>- </table>---+ <tr>+ <td>ORACLE</td>+ <td>9</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SPANNER</td>+ <td>10</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MSSQL</td>+ <td>11</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REDSHIFT</td>+ <td>12</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MARIADB</td>+ <td>13</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OCEANBASE</td>+ <td>14</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DM</td>+ <td>15</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RISINGWAVE</td>+ <td>16</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OCEANBASE_ORACLE</td>+ <td>17</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>STARROCKS</td>+ <td>18</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DORIS</td>+ <td>19</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>HIVE</td>+ <td>20</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ELASTICSEARCH</td>+ <td>21</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BIGQUERY</td>+ <td>22</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DYNAMODB</td>+ <td>23</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABRICKS</td>+ <td>24</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>COCKROACHDB</td>+ <td>25</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <div class="file-heading">- <h2 id="v1/anomaly_service.proto">v1/anomaly_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>-+ <h3 id="bytebase.v1.ExportFormat">ExportFormat</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>FORMAT_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CSV</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>JSON</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SQL</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>XLSX</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <h3 id="bytebase.v1.Anomaly">Anomaly</h3>+ <h3 id="bytebase.v1.MaskingLevel">MaskingLevel</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>MASKING_LEVEL_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>NONE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PARTIAL</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FULL</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.State">State</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ACTIVE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DELETED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.VCSType">VCSType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>VCS_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GITHUB</td>+ <td>1</td>+ <td><p>GitHub type. Using for GitHub community edition(ce).</p></td>+ </tr>++ <tr>+ <td>GITLAB</td>+ <td>2</td>+ <td><p>GitLab type. Using for GitLab community edition(ce) and enterprise+edition(ee).</p></td>+ </tr>++ <tr>+ <td>BITBUCKET</td>+ <td>3</td>+ <td><p>BitBucket type. Using for BitBucket cloud or BitBucket server.</p></td>+ </tr>++ <tr>+ <td>AZURE_DEVOPS</td>+ <td>4</td>+ <td><p>Azure DevOps. Using for Azure DevOps GitOps workflow.</p></td>+ </tr>++ </tbody>+ </table>+-- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>resource</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource that is the target of the operation.-Format:-- Instance: instnaces/{instance}-- Database: instnaces/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</a></td>- <td></td>- <td><p>type is the type of the anomaly. </p></td>- </tr>-- <tr>- <td>severity</td>- <td><a href="#bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</a></td>- <td></td>- <td><p>severity is the severity of the anomaly. </p></td>- </tr>-- <tr>- <td>instance_connection_detail</td>- <td><a href="#bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_connection_detail</td>- <td><a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>database_schema_drift_detail</td>- <td><a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>----- <h3 id="bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</h3>- <p>Database level anomaly detial.</p><p>DatbaaseConnectionDetail is the detail for database connection anomaly.</p>+++++ <div class="file-heading">+ <h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</h3>+ <p></p><table class="field-table">@@ -3433,10 +3402,12 @@ Format:<tbody><tr>- <td>detail</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>detail is the detail of the database connection failure. </p></td>+ <td><p>The name of the role to retrieve.+Format: instances/{instance}/roles/{role name}+The role name is the unique name for the role. </p></td></tr></tbody>@@ -3446,8 +3417,8 @@ Format:- <h3 id="bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</h3>- <p>DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.</p>+ <h3 id="bytebase.v1.InstanceRole">InstanceRole</h3>+ <p>InstanceRole is the API message for instance role.</p><table class="field-table">@@ -3457,48 +3428,49 @@ Format:<tbody><tr>- <td>record_version</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>record_version is the record version of the database schema drift. </p></td>+ <td><p>The name of the role.+Format: instances/{instance}/roles/{role}+The role name is the unique name for the role. </p></td></tr><tr>- <td>expected_schema</td>+ <td>role_name</td><td><a href="#string">string</a></td><td></td>- <td><p>expected_schema is the expected schema in the database. </p></td>+ <td><p>The role name. It's unique within the instance. </p></td></tr><tr>- <td>actual_schema</td>+ <td>password</td><td><a href="#string">string</a></td>- <td></td>- <td><p>actual_schema is the actual schema in the database. </p></td>+ <td>optional</td>+ <td><p>The role password. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</h3>- <p>Instance level anomaly detail.</p><p>InstanceConnectionDetail is the detail for instance connection anomaly.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>connection_limit</td>+ <td><a href="#int32">int32</a></td>+ <td>optional</td>+ <td><p>The connection count limit for this role. </p></td>+ </tr><tr>- <td>detail</td>+ <td>valid_until</td><td><a href="#string">string</a></td>- <td></td>- <td><p>detail is the detail of the instance connection failure. </p></td>+ <td>optional</td>+ <td><p>The expiration for the role's password. </p></td>+ </tr>++ <tr>+ <td>attribute</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>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 </p></td></tr></tbody>@@ -3508,7 +3480,7 @@ Format:- <h3 id="bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</h3>+ <h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</h3><p></p>@@ -3519,24 +3491,20 @@ Format:<tbody><tr>- <td>filter</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>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".' </p></td>+ <td><p>The parent, which owns this collection of roles.+Format: instances/{instance} </p></td></tr><tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>Not used. The maximum number of anomalies to return. The service may return fewer than+ <td><p>The maximum number of roles to return. The service may return fewer thanthis value.-If unspecified, at most 50 anomalies will be returned.+If unspecified, at most 50 roles will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -3544,13 +3512,20 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used. A page token, received from a previous `SearchAnomalies` call.+ <td><p>A page token, received from a previous `ListRoles` call.Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `SearchAnomalies` must match+When paginating, all other parameters provided to `ListRoles` must matchthe call that provided the page token. </p></td></tr>+ <tr>+ <td>refresh</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Refresh will refresh and return the latest data. </p></td>+ </tr>+</tbody></table>@@ -3558,7 +3533,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</h3>+ <h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</h3><p></p>@@ -3569,17 +3544,17 @@ the call that provided the page token. </p></td><tbody><tr>- <td>anomalies</td>- <td><a href="#bytebase.v1.Anomaly">Anomaly</a></td>+ <td>roles</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td><td>repeated</td>- <td><p>anomalies is the list of anomalies. </p></td>+ <td><p>The roles from the specified request. </p></td></tr><tr><td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>Not used. A token, which can be sent as `page_token` to retrieve the next page.+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages. </p></td></tr>@@ -3592,104 +3567,30 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</h3>- <p>AnomalySeverity is the severity of the anomaly.</p>+++++ <h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3>+ <p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>ANOMALY_SEVERITY_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified anomaly severity.</p></td>- </tr>-- <tr>- <td>MEDIUM</td>- <td>1</td>- <td><p>MEDIUM is the info level anomaly severity.</p></td>- </tr>-- <tr>- <td>HIGH</td>- <td>2</td>- <td><p>HIGH is the warning level anomaly severity.</p></td>+ <td>GetInstanceRole</td>+ <td><a href="#bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</a></td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td><p></p></td></tr><tr>- <td>CRITICAL</td>- <td>3</td>- <td><p>CRITICAL is the critical level anomaly severity.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</h3>- <p>AnomalyType is the type of the anomaly.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ANOMALY_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified anomaly type.</p></td>- </tr>-- <tr>- <td>INSTANCE_CONNECTION</td>- <td>1</td>- <td><p>Instance level anomaly.--INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down.</p></td>- </tr>-- <tr>- <td>MIGRATION_SCHEMA</td>- <td>2</td>- <td><p>MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing.</p></td>- </tr>-- <tr>- <td>DATABASE_CONNECTION</td>- <td>5</td>- <td><p>Database level anomaly.--DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.</p></td>- </tr>-- <tr>- <td>DATABASE_SCHEMA_DRIFT</td>- <td>6</td>- <td><p>DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,-e.g. the database schema had been changed without bytebase migration.</p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.AnomalyService">AnomalyService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SearchAnomalies</td>- <td><a href="#bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</a></td>- <td><a href="#bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</a></td>- <td><p></p></td>+ <td>ListInstanceRoles</td>+ <td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>+ <td><a href="#bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</a></td>+ <td><p></p></td></tr></tbody>@@ -3713,10 +3614,20 @@ e.g. the database schema had been changed without bytebase migration.</p></td><tr>- <td>SearchAnomalies</td>- <td>POST</td>- <td>/v1/anomalies:search</td>- <td>*</td>+ <td>GetInstanceRole</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/roles/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListInstanceRoles</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*}/roles</td>+ <td></td></tr>@@ -3727,12 +3638,12 @@ e.g. the database schema had been changed without bytebase migration.</p></td><div class="file-heading">- <h2 id="v1/common.proto">v1/common.proto</h2><a href="#title">Top</a>+ <h2 id="v1/instance_service.proto">v1/instance_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.Position">Position</h3>+ <h3 id="bytebase.v1.AddDataSourceRequest">AddDataSourceRequest</h3><p></p>@@ -3743,17 +3654,26 @@ e.g. the database schema had been changed without bytebase migration.</p></td><tbody><tr>- <td>line</td>- <td><a href="#int32">int32</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the instance to add a data source to.+Format: instances/{instance} </p></td></tr><tr>- <td>column</td>- <td><a href="#int32">int32</a></td>+ <td>data_source</td>+ <td><a href="#bytebase.v1.DataSource">DataSource</a></td><td></td>- <td><p> </p></td>+ <td><p>Identified by data source ID.+Only READ_ONLY data source can be added. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Validate only also tests the data source connection. </p></td></tr></tbody>@@ -3763,7 +3683,7 @@ e.g. the database schema had been changed without bytebase migration.</p></td>- <h3 id="bytebase.v1.Range">Range</h3>+ <h3 id="bytebase.v1.BatchSyncInstancesRequest">BatchSyncInstancesRequest</h3><p></p>@@ -3774,17 +3694,60 @@ e.g. the database schema had been changed without bytebase migration.</p></td><tbody><tr>- <td>start</td>- <td><a href="#int32">int32</a></td>+ <td>requests</td>+ <td><a href="#bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</a></td>+ <td>repeated</td>+ <td><p>The request message specifying the instances to sync.+A maximum of 1000 instances can be synced in a batch. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchSyncInstancesResponse">BatchSyncInstancesResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.CreateInstanceRequest">CreateInstanceRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>instance</td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td><td></td>- <td><p> </p></td>+ <td><p>The instance to create. </p></td></tr><tr>- <td>end</td>- <td><a href="#int32">int32</a></td>+ <td>instance_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>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]-/. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Validate only also tests the data source connection. </p></td></tr></tbody>@@ -3794,335 +3757,7 @@ e.g. the database schema had been changed without bytebase migration.</p></td>--- <h3 id="bytebase.v1.Engine">Engine</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ENGINE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>CLICKHOUSE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>MYSQL</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>POSTGRES</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>SNOWFLAKE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>SQLITE</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>TIDB</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>MONGODB</td>- <td>7</td>- <td><p></p></td>- </tr>-- <tr>- <td>REDIS</td>- <td>8</td>- <td><p></p></td>- </tr>-- <tr>- <td>ORACLE</td>- <td>9</td>- <td><p></p></td>- </tr>-- <tr>- <td>SPANNER</td>- <td>10</td>- <td><p></p></td>- </tr>-- <tr>- <td>MSSQL</td>- <td>11</td>- <td><p></p></td>- </tr>-- <tr>- <td>REDSHIFT</td>- <td>12</td>- <td><p></p></td>- </tr>-- <tr>- <td>MARIADB</td>- <td>13</td>- <td><p></p></td>- </tr>-- <tr>- <td>OCEANBASE</td>- <td>14</td>- <td><p></p></td>- </tr>-- <tr>- <td>DM</td>- <td>15</td>- <td><p></p></td>- </tr>-- <tr>- <td>RISINGWAVE</td>- <td>16</td>- <td><p></p></td>- </tr>-- <tr>- <td>OCEANBASE_ORACLE</td>- <td>17</td>- <td><p></p></td>- </tr>-- <tr>- <td>STARROCKS</td>- <td>18</td>- <td><p></p></td>- </tr>-- <tr>- <td>DORIS</td>- <td>19</td>- <td><p></p></td>- </tr>-- <tr>- <td>HIVE</td>- <td>20</td>- <td><p></p></td>- </tr>-- <tr>- <td>ELASTICSEARCH</td>- <td>21</td>- <td><p></p></td>- </tr>-- <tr>- <td>BIGQUERY</td>- <td>22</td>- <td><p></p></td>- </tr>-- <tr>- <td>DYNAMODB</td>- <td>23</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABRICKS</td>- <td>24</td>- <td><p></p></td>- </tr>-- <tr>- <td>COCKROACHDB</td>- <td>25</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.ExportFormat">ExportFormat</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>FORMAT_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>CSV</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>JSON</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>SQL</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>XLSX</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.MaskingLevel">MaskingLevel</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>MASKING_LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>NONE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>PARTIAL</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>FULL</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.State">State</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ACTIVE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DELETED</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.VCSType">VCSType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>VCS_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>GITHUB</td>- <td>1</td>- <td><p>GitHub type. Using for GitHub community edition(ce).</p></td>- </tr>-- <tr>- <td>GITLAB</td>- <td>2</td>- <td><p>GitLab type. Using for GitLab community edition(ce) and enterprise-edition(ee).</p></td>- </tr>-- <tr>- <td>BITBUCKET</td>- <td>3</td>- <td><p>BitBucket type. Using for BitBucket cloud or BitBucket server.</p></td>- </tr>-- <tr>- <td>AZURE_DEVOPS</td>- <td>4</td>- <td><p>Azure DevOps. Using for Azure DevOps GitOps workflow.</p></td>- </tr>-- </tbody>- </table>-------- <div class="file-heading">- <h2 id="v1/iam_policy.proto">v1/iam_policy.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.Binding">Binding</h3>+ <h3 id="bytebase.v1.DataSource">DataSource</h3><p></p>@@ -4133,425 +3768,246 @@ edition(ee).</p></td><tbody><tr>- <td>role</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>The role that is assigned to the members.-Format: roles/{role} </p></td>+ <td><p> </p></td></tr><tr>- <td>members</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Specifies the principals requesting access for a Bytebase resource.-For users, the member should be: user:{email}-For groups, the member should be: group:{email} </p></td>+ <td>type</td>+ <td><a href="#bytebase.v1.DataSourceType">DataSourceType</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>username</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>parsed_expr</td>- <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>password</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The parsed expression of the condition. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BindingDelta">BindingDelta</h3>- <p>One delta entry for Binding. Each individual change (only one member in each</p><p>entry) to a binding will be a separate entry.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>action</td>- <td><a href="#bytebase.v1.BindingDelta.Action">BindingDelta.Action</a></td>+ <td>use_ssl</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The action that was performed on a Binding. </p></td>+ <td><p>Use SSL to connect to the data source. By default, we use system default SSL configuration. </p></td></tr><tr>- <td>role</td>+ <td>ssl_ca</td><td><a href="#string">string</a></td><td></td>- <td><p>Role that is assigned to `members`.-For example, `roles/projectOwner`. </p></td>+ <td><p> </p></td></tr><tr>- <td>member</td>+ <td>ssl_cert</td><td><a href="#string">string</a></td><td></td>- <td><p>Follows the same format of Binding.members. </p></td>+ <td><p> </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>ssl_key</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The condition that is associated with this binding. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>resource</td>+ <td>host</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the resource to get the IAM policy.-Format: projects/{project}-Format: workspaces/{workspace} </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.IamPolicy">IamPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>bindings</td>- <td><a href="#bytebase.v1.Binding">Binding</a></td>- <td>repeated</td>- <td><p>Collection of binding.-A binding binds one or more project members to a single project role. </p></td>+ <td>port</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>etag</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p>The current etag of the policy.-If an etag is provided and does not match the current etag of the poliy,-the call will be blocked and an ABORTED error will be returned. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.PolicyDelta">PolicyDelta</h3>- <p>The difference delta between two policies.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>binding_deltas</td>- <td><a href="#bytebase.v1.BindingDelta">BindingDelta</a></td>- <td>repeated</td>- <td><p>The delta for Bindings between two policies. </p></td>+ <td>srv</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>srv, authentication_database and replica_set are used for MongoDB. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>authentication_database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>resource</td>+ <td>sid</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the resource to set the IAM policy.-Format: projects/{project}-Format: workspaces/{workspace} </p></td>+ <td><p>sid and service_name are used for Oracle. </p></td></tr><tr>- <td>policy</td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td>service_name</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>etag</td>+ <td>ssh_host</td><td><a href="#string">string</a></td><td></td>- <td><p>The current etag of the policy. </p></td>+ <td><p>Connection over SSH.+The hostname of the SSH server agent.+Required. </p></td></tr>- </tbody>- </table>-------- <h3 id="bytebase.v1.BindingDelta.Action">BindingDelta.Action</h3>- <p>The type of action performed on a Binding in a policy.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ACTION_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ADD</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>REMOVE</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-------- <div class="file-heading">- <h2 id="v1/audit_log_service.proto">v1/audit_log_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.AuditData">AuditData</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>policy_delta</td>- <td><a href="#bytebase.v1.PolicyDelta">PolicyDelta</a></td>+ <td>ssh_port</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The port of the SSH server agent. It's 22 typically.+Required. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.AuditLog">AuditLog</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>+ <td>ssh_user</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the log.-Formats:-- projects/{project}/auditLogs/{uid}-- workspaces/{workspace}/auditLogs/{uid} </p></td>+ <td><p>The user to login the server.+Required. </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>ssh_password</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The password to login the server. If it's empty string, no password is required. </p></td></tr><tr>- <td>user</td>+ <td>ssh_private_key</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: users/[email protected] </p></td>+ <td><p>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"). </p></td></tr><tr>- <td>method</td>+ <td>authentication_private_key</td><td><a href="#string">string</a></td><td></td>- <td><p>e.g. `/bytebase.v1.SQLService/Query`, `bb.project.repository.push` </p></td>+ <td><p>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. </p></td></tr><tr>- <td>severity</td>- <td><a href="#bytebase.v1.AuditLog.Severity">AuditLog.Severity</a></td>+ <td>external_secret</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</a></td><td></td><td><p> </p></td></tr><tr>- <td>resource</td>- <td><a href="#string">string</a></td>+ <td>authentication_type</td>+ <td><a href="#bytebase.v1.DataSource.AuthenticationType">DataSource.AuthenticationType</a></td><td></td>- <td><p>The associated resource. </p></td>+ <td><p> </p></td></tr><tr>- <td>request</td>- <td><a href="#string">string</a></td>+ <td>sasl_config</td>+ <td><a href="#bytebase.v1.SASLConfig">SASLConfig</a></td><td></td>- <td><p>JSON-encoded request. </p></td>+ <td><p> </p></td></tr><tr>- <td>response</td>+ <td>additional_addresses</td>+ <td><a href="#bytebase.v1.DataSource.Address">DataSource.Address</a></td>+ <td>repeated</td>+ <td><p>additional_addresses is used for MongoDB replica set. </p></td>+ </tr>++ <tr>+ <td>replica_set</td><td><a href="#string">string</a></td><td></td>- <td><p>JSON-encoded response.-Some fields are omitted because they are too large or contain sensitive information. </p></td>+ <td><p>replica_set is used for MongoDB replica set. </p></td></tr><tr>- <td>status</td>- <td><a href="#google.rpc.Status">google.rpc.Status</a></td>+ <td>direct_connection</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. </p></td></tr><tr>- <td>service_data</td>- <td><a href="#google.protobuf.Any">google.protobuf.Any</a></td>+ <td>region</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>service-specific data about the request, response, and other activities. </p></td>+ <td><p>region is the location of where the DB is, works for AWS RDS. For example, us-east-1. </p></td></tr><tr>- <td>request_metadata</td>- <td><a href="#bytebase.v1.RequestMetadata">RequestMetadata</a></td>+ <td>warehouse_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Metadata about the operation. </p></td>+ <td><p>warehouse_id is used by Databricks. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ExportAuditLogsRequest">ExportAuditLogsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>parent</td>+ <td>master_name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>master_name is the master name used by connecting redis-master via redis sentinel. </p></td></tr><tr>- <td>filter</td>+ <td>master_username</td><td><a href="#string">string</a></td><td></td>- <td><p>The filter of the log. It should be a valid CEL expression.-For example:- - filter = "method == '/bytebase.v1.SQLService/Query'"- - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'"- - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'"- - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" </p></td>+ <td><p>master_username and master_password are master credentials used by redis sentinel mode. </p></td></tr><tr>- <td>order_by</td>+ <td>master_password</td><td><a href="#string">string</a></td><td></td>- <td><p>The order by of the log.-Only support order by create_time.-For example:- - order_by = "create_time asc"- - order_by = "create_time desc" </p></td>+ <td><p> </p></td></tr><tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td>redis_type</td>+ <td><a href="#bytebase.v1.DataSource.RedisType">DataSource.RedisType</a></td><td></td>- <td><p>The export format. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>cluster</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Cluster is the cluster name for the data source. Used by CockroachDB. </p></td></tr></tbody>@@ -4561,7 +4017,7 @@ For example:- <h3 id="bytebase.v1.ExportAuditLogsResponse">ExportAuditLogsResponse</h3>+ <h3 id="bytebase.v1.DataSource.Address">DataSource.Address</h3><p></p>@@ -4572,8 +4028,15 @@ For example:<tbody><tr>- <td>content</td>- <td><a href="#bytes">bytes</a></td>+ <td>host</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>port</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -4585,8 +4048,8 @@ For example:- <h3 id="bytebase.v1.RequestMetadata">RequestMetadata</h3>- <p>Metadata about the request.</p>+ <h3 id="bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</h3>+ <p></p><table class="field-table">@@ -4596,18 +4059,59 @@ For example:<tbody><tr>- <td>caller_ip</td>+ <td>secret_type</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>url</td><td><a href="#string">string</a></td><td></td>- <td><p>The IP address of the caller. </p></td>+ <td><p> </p></td></tr><tr>- <td>caller_supplied_user_agent</td>+ <td>auth_type</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>app_role</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>token</td><td><a href="#string">string</a></td><td></td>- <td><p>The user agent of the caller.-This information is not authenticated and should be treated accordingly. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>engine name is the name for secret engine. </p></td>+ </tr>++ <tr>+ <td>secret_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the secret name in the engine to store the password. </p></td>+ </tr>++ <tr>+ <td>password_key_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the key name for the password. </p></td></tr></tbody>@@ -4617,7 +4121,7 @@ This information is not authenticated and should be treated accordingly. </p></t- <h3 id="bytebase.v1.SearchAuditLogsRequest">SearchAuditLogsRequest</h3>+ <h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3><p></p>@@ -4628,51 +4132,31 @@ This information is not authenticated and should be treated accordingly. </p></t<tbody><tr>- <td>parent</td>+ <td>role_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The filter of the log. It should be a valid CEL expression.-For example:- - filter = "method == '/bytebase.v1.SQLService/Query'"- - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'"- - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'"- - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" </p></td>- </tr>-- <tr>- <td>order_by</td>+ <td>secret_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The order by of the log.-Only support order by create_time.-For example:- - order_by = "create_time asc"- - order_by = "create_time desc" </p></td>+ <td><p>the secret id for the role without ttl. </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>mount_path</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `SearchLogs` call.-Provide this to retrieve the subsequent page. </p></td>+ <td><p>The path where the approle auth method is mounted. </p></td></tr></tbody>@@ -4682,7 +4166,7 @@ Provide this to retrieve the subsequent page. </p></td>- <h3 id="bytebase.v1.SearchAuditLogsResponse">SearchAuditLogsResponse</h3>+ <h3 id="bytebase.v1.DeleteInstanceRequest">DeleteInstanceRequest</h3><p></p>@@ -4693,19 +4177,18 @@ Provide this to retrieve the subsequent page. </p></td><tbody><tr>- <td>audit_logs</td>- <td><a href="#bytebase.v1.AuditLog">AuditLog</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the instance to delete.+Format: instances/{instance} </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>force</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>A token to retrieve next page of log entities.-Pass this value in the page_token field in the subsequent call-to retrieve the next page of log entities. </p></td>+ <td><p>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. </p></td></tr></tbody>@@ -4715,164 +4198,7 @@ to retrieve the next page of log entities. </p></td>--- <h3 id="bytebase.v1.AuditLog.Severity">AuditLog.Severity</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>DEFAULT</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>DEBUG</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>INFO</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>NOTICE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>WARNING</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>ERROR</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>CRITICAL</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>ALERT</td>- <td>7</td>- <td><p></p></td>- </tr>-- <tr>- <td>EMERGENCY</td>- <td>8</td>- <td><p></p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.AuditLogService">AuditLogService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SearchAuditLogs</td>- <td><a href="#bytebase.v1.SearchAuditLogsRequest">SearchAuditLogsRequest</a></td>- <td><a href="#bytebase.v1.SearchAuditLogsResponse">SearchAuditLogsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ExportAuditLogs</td>- <td><a href="#bytebase.v1.ExportAuditLogsRequest">ExportAuditLogsRequest</a></td>- <td><a href="#bytebase.v1.ExportAuditLogsResponse">ExportAuditLogsResponse</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>SearchAuditLogs</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/auditLogs:search</td>- <td>*</td>- </tr>-- <tr>- <td>SearchAuditLogs</td>- <td>POST</td>- <td>/v1/auditLogs:search</td>- <td>*</td>- </tr>----- <tr>- <td>ExportAuditLogs</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/auditLogs:export</td>- <td>*</td>- </tr>-- <tr>- <td>ExportAuditLogs</td>- <td>POST</td>- <td>/v1/auditLogs:export</td>- <td>*</td>- </tr>--- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/auth_service.proto">v1/auth_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.CreateUserRequest">CreateUserRequest</h3>+ <h3 id="bytebase.v1.GetInstanceRequest">GetInstanceRequest</h3><p></p>@@ -4883,10 +4209,11 @@ to retrieve the next page of log entities. </p></td><tbody><tr>- <td>user</td>- <td><a href="#bytebase.v1.User">User</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The user to create. </p></td>+ <td><p>The name of the instance to retrieve.+Format: instances/{instance} </p></td></tr></tbody>@@ -4896,7 +4223,7 @@ to retrieve the next page of log entities. </p></td>- <h3 id="bytebase.v1.DeleteUserRequest">DeleteUserRequest</h3>+ <h3 id="bytebase.v1.Instance">Instance</h3><p></p>@@ -4910,8 +4237,79 @@ to retrieve the next page of log entities. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the user to delete.-Format: users/{user} </p></td>+ <td><p>The name of the instance.+Format: instances/{instance} </p></td>+ </tr>++ <tr>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>external_link</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>data_sources</td>+ <td><a href="#bytebase.v1.DataSource">DataSource</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>environment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The environment resource.+Format: environments/prod where prod is the environment resource ID. </p></td>+ </tr>++ <tr>+ <td>activation</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>options</td>+ <td><a href="#bytebase.v1.InstanceOptions">InstanceOptions</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>roles</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -4921,8 +4319,8 @@ Format: users/{user} </p></td>- <h3 id="bytebase.v1.GetUserRequest">GetUserRequest</h3>- <p></p>+ <h3 id="bytebase.v1.InstanceOptions">InstanceOptions</h3>+ <p>InstanceOptions is the option for instances.</p><table class="field-table">@@ -4932,11 +4330,18 @@ Format: users/{user} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>sync_interval</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The name of the user to retrieve.-Format: users/{user uid or user email} </p></td>+ <td><p>How often the instance is synced. </p></td>+ </tr>++ <tr>+ <td>maximum_connections</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of connections.+The default is 10 if the value is unset or zero. </p></td></tr></tbody>@@ -4946,7 +4351,7 @@ Format: users/{user uid or user email} </p></td>- <h3 id="bytebase.v1.IdentityProviderContext">IdentityProviderContext</h3>+ <h3 id="bytebase.v1.InstanceResource">InstanceResource</h3><p></p>@@ -4957,16 +4362,60 @@ Format: users/{user uid or user email} </p></td><tbody><tr>- <td>oauth2_context</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderContext">OAuth2IdentityProviderContext</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>oidc_context</td>- <td><a href="#bytebase.v1.OIDCIdentityProviderContext">OIDCIdentityProviderContext</a></td>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>data_sources</td>+ <td><a href="#bytebase.v1.DataSource">DataSource</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>activation</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the instance.+Format: instances/{instance} </p></td>+ </tr>++ <tr>+ <td>environment</td>+ <td><a href="#string">string</a></td><td></td>+ <td><p>The environment resource.+Format: environments/prod where prod is the environment resource ID. </p></td>+ </tr>++ <tr>+ <td>roles</td>+ <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -4977,7 +4426,73 @@ Format: users/{user uid or user email} </p></td>- <h3 id="bytebase.v1.ListUsersRequest">ListUsersRequest</h3>+ <h3 id="bytebase.v1.KerberosConfig">KerberosConfig</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>primary</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>instance</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>realm</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>keytab</td>+ <td><a href="#bytes">bytes</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_host</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_port</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>kdc_transport_protocol</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListInstancesRequest">ListInstancesRequest</h3><p></p>@@ -4991,9 +4506,9 @@ Format: users/{user uid or user email} </p></td><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of users to return. The service may return fewer than+ <td><p>The maximum number of instances to return. The service may return fewer thanthis value.-If unspecified, at most 50 users will be returned.+If unspecified, at most 50 instances will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -5001,10 +4516,10 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListUsers` call.+ <td><p>A page token, received from a previous `ListInstances` call.Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListUsers` must match+When paginating, all other parameters provided to `ListInstances` must matchthe call that provided the page token. </p></td></tr>@@ -5012,7 +4527,7 @@ the call that provided the page token. </p></td><td>show_deleted</td><td><a href="#bool">bool</a></td><td></td>- <td><p>Show deleted users if specified. </p></td>+ <td><p>Show deleted instances if specified. </p></td></tr></tbody>@@ -5022,7 +4537,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListUsersResponse">ListUsersResponse</h3>+ <h3 id="bytebase.v1.ListInstancesResponse">ListInstancesResponse</h3><p></p>@@ -5033,10 +4548,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>users</td>- <td><a href="#bytebase.v1.User">User</a></td>+ <td>instances</td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td><td>repeated</td>- <td><p>The users from the specified request. </p></td>+ <td><p>The instances from the specified request. </p></td></tr><tr>@@ -5054,7 +4569,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.LoginRequest">LoginRequest</h3>+ <h3 id="bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</h3><p></p>@@ -5065,60 +4580,19 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>email</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>web</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If web is set, we will set access token, refresh token, and user to the cookie. </p></td>- </tr>-- <tr>- <td>idp_name</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the identity provider.-Format: idps/{idp} </p></td>+ <td><p>The name of the instance to remove a data source from.+Format: instances/{instance} </p></td></tr><tr>- <td>idp_context</td>- <td><a href="#bytebase.v1.IdentityProviderContext">IdentityProviderContext</a></td>+ <td>data_source</td>+ <td><a href="#bytebase.v1.DataSource">DataSource</a></td><td></td>- <td><p>The idp_context is using to get the user information from identity provider. </p></td>- </tr>-- <tr>- <td>otp_code</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The otp_code is used to verify the user's identity by MFA. </p></td>- </tr>-- <tr>- <td>recovery_code</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The recovery_code is used to recovery the user's identity with MFA. </p></td>- </tr>-- <tr>- <td>mfa_temp_token</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The mfa_temp_token is used to verify the user's identity by MFA. </p></td>+ <td><p>Identified by data source ID.+Only READ_ONLY data source can be removed. </p></td></tr></tbody>@@ -5128,7 +4602,7 @@ Format: idps/{idp} </p></td>- <h3 id="bytebase.v1.LoginResponse">LoginResponse</h3>+ <h3 id="bytebase.v1.SASLConfig">SASLConfig</h3><p></p>@@ -5139,24 +4613,35 @@ Format: idps/{idp} </p></td><tbody><tr>- <td>token</td>- <td><a href="#string">string</a></td>+ <td>krb_config</td>+ <td><a href="#bytebase.v1.KerberosConfig">KerberosConfig</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>mfa_temp_token</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>require_reset_password</td>- <td><a href="#bool">bool</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of instance.+Format: instances/{instance} </p></td></tr></tbody>@@ -5166,14 +4651,14 @@ Format: idps/{idp} </p></td>- <h3 id="bytebase.v1.LogoutRequest">LogoutRequest</h3>+ <h3 id="bytebase.v1.SyncInstanceResponse">SyncInstanceResponse</h3><p></p>- <h3 id="bytebase.v1.OAuth2IdentityProviderContext">OAuth2IdentityProviderContext</h3>+ <h3 id="bytebase.v1.SyncSlowQueriesRequest">SyncSlowQueriesRequest</h3><p></p>@@ -5184,10 +4669,12 @@ Format: idps/{idp} </p></td><tbody><tr>- <td>code</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the instance to sync slow queries.+Format: instances/{instance} for one instance+ or projects/{project} for one project. </p></td></tr></tbody>@@ -5197,14 +4684,7 @@ Format: idps/{idp} </p></td>- <h3 id="bytebase.v1.OIDCIdentityProviderContext">OIDCIdentityProviderContext</h3>- <p></p>------ <h3 id="bytebase.v1.UndeleteUserRequest">UndeleteUserRequest</h3>+ <h3 id="bytebase.v1.UndeleteInstanceRequest">UndeleteInstanceRequest</h3><p></p>@@ -5218,8 +4698,8 @@ Format: idps/{idp} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted user.-Format: users/{user} </p></td>+ <td><p>The name of the deleted instance.+Format: instances/{instance} </p></td></tr></tbody>@@ -5229,7 +4709,7 @@ Format: users/{user} </p></td>- <h3 id="bytebase.v1.UpdateUserRequest">UpdateUserRequest</h3>+ <h3 id="bytebase.v1.UpdateDataSourceRequest">UpdateDataSourceRequest</h3><p></p>@@ -5240,42 +4720,32 @@ Format: users/{user} </p></td><tbody><tr>- <td>user</td>- <td><a href="#bytebase.v1.User">User</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The user to update.--The user's `name` field is used to identify the user to update.-Format: users/{user} </p></td>+ <td><p>The name of the instance to update a data source.+Format: instances/{instance} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>data_source</td>+ <td><a href="#bytebase.v1.DataSource">DataSource</a></td><td></td>- <td><p>The list of fields to update. </p></td>- </tr>-- <tr>- <td>otp_code</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The otp_code is used to verify the user's identity by MFA. </p></td>+ <td><p>Identified by data source ID. </p></td></tr><tr>- <td>regenerate_temp_mfa_secret</td>- <td><a href="#bool">bool</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The list of fields to update. </p></td></tr><tr>- <td>regenerate_recovery_codes</td>+ <td>validate_only</td><td><a href="#bool">bool</a></td><td></td>- <td><p>The regenerate_recovery_codes flag means to regenerate recovery codes for user. </p></td>+ <td><p>Validate only also tests the data source connection. </p></td></tr></tbody>@@ -5285,7 +4755,7 @@ This is used for MFA setup. The temporary MFA secret and recovery codes will be- <h3 id="bytebase.v1.User">User</h3>+ <h3 id="bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</h3><p></p>@@ -5296,127 +4766,20 @@ This is used for MFA setup. The temporary MFA secret and recovery codes will be<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the user.-Format: users/{user}. {user} is a system-generated unique ID. </p></td>- </tr>-- <tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>email</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>user_type</td>- <td><a href="#bytebase.v1.UserType">UserType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>service_key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>mfa_enabled</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>The mfa_enabled flag means if the user has enabled MFA. </p></td>- </tr>-- <tr>- <td>mfa_secret</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The mfa_secret is the temporary secret using in two phase verification. </p></td>- </tr>-- <tr>- <td>recovery_codes</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The recovery_codes is the temporary recovery codes using in two phase verification. </p></td>- </tr>-- <tr>- <td>phone</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Should be a valid E.164 compliant phone number.-Could be empty. </p></td>- </tr>-- <tr>- <td>profile</td>- <td><a href="#bytebase.v1.User.Profile">User.Profile</a></td>+ <td>instance</td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td><td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.User.Profile">User.Profile</h3>- <p></p>+ <td><p>The instance to update.-- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>last_login_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>last_change_password_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>+The instance's `name` field is used to identify the instance to update.+Format: instances/{instance} </p></td></tr><tr>- <td>source</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -5428,7 +4791,7 @@ Could be empty. </p></td>- <h3 id="bytebase.v1.UserType">UserType</h3>+ <h3 id="bytebase.v1.DataSource.AuthenticationType">DataSource.AuthenticationType</h3><p></p><table class="enum-table"><thead>@@ -5437,25 +4800,25 @@ Could be empty. </p></td><tbody><tr>- <td>USER_TYPE_UNSPECIFIED</td>+ <td>AUTHENTICATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>USER</td>+ <td>PASSWORD</td><td>1</td><td><p></p></td></tr><tr>- <td>SYSTEM_BOT</td>+ <td>GOOGLE_CLOUD_SQL_IAM</td><td>2</td><td><p></p></td></tr><tr>- <td>SERVICE_ACCOUNT</td>+ <td>AWS_RDS_IAM</td><td>3</td><td><p></p></td></tr>@@ -5463,92 +4826,272 @@ Could be empty. </p></td></tbody></table>----- <h3 id="bytebase.v1.AuthService">AuthService</h3>+ <h3 id="bytebase.v1.DataSource.RedisType">DataSource.RedisType</h3><p></p><table class="enum-table"><thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody><tr>- <td>GetUser</td>- <td><a href="#bytebase.v1.GetUserRequest">GetUserRequest</a></td>- <td><a href="#bytebase.v1.User">User</a></td>- <td><p>Get the user.-Any authenticated user can get the user.</p></td>+ <td>REDIS_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td></tr><tr>- <td>ListUsers</td>- <td><a href="#bytebase.v1.ListUsersRequest">ListUsersRequest</a></td>- <td><a href="#bytebase.v1.ListUsersResponse">ListUsersResponse</a></td>- <td><p>List all users.-Any authenticated user can list users.</p></td>+ <td>STANDALONE</td>+ <td>1</td>+ <td><p></p></td></tr><tr>- <td>CreateUser</td>- <td><a href="#bytebase.v1.CreateUserRequest">CreateUserRequest</a></td>- <td><a href="#bytebase.v1.User">User</a></td>- <td><p>Create a user.-When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user.-Otherwise, any unauthenticated user can create a user.</p></td>+ <td>SENTINEL</td>+ <td>2</td>+ <td><p></p></td></tr><tr>- <td>UpdateUser</td>- <td><a href="#bytebase.v1.UpdateUserRequest">UpdateUserRequest</a></td>- <td><a href="#bytebase.v1.User">User</a></td>- <td><p>Only the user itself and the user with bb.users.update permission on the workspace can update the user.</p></td>+ <td>CLUSTER</td>+ <td>3</td>+ <td><p></p></td></tr>- <tr>- <td>DeleteUser</td>- <td><a href="#bytebase.v1.DeleteUserRequest">DeleteUserRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p>Only the user with bb.users.delete permission on the workspace can delete the user.-The last remaining workspace admin cannot be deleted.</p></td>- </tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>UndeleteUser</td>- <td><a href="#bytebase.v1.UndeleteUserRequest">UndeleteUserRequest</a></td>- <td><a href="#bytebase.v1.User">User</a></td>- <td><p>Only the user with bb.users.undelete permission on the workspace can undelete the user.</p></td>+ <td>SECRET_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td></tr><tr>- <td>Login</td>- <td><a href="#bytebase.v1.LoginRequest">LoginRequest</a></td>- <td><a href="#bytebase.v1.LoginResponse">LoginResponse</a></td>+ <td>PLAIN</td>+ <td>1</td><td><p></p></td></tr><tr>- <td>Logout</td>- <td><a href="#bytebase.v1.LogoutRequest">LogoutRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>ENVIRONMENT</td>+ <td>2</td><td><p></p></td></tr></tbody></table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>++ <h3 id="bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>+ <td>AUTH_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TOKEN</td>+ <td>1</td>+ <td><p>ref: https://developer.hashicorp.com/vault/docs/auth/token</p></td>+ </tr>++ <tr>+ <td>VAULT_APP_ROLE</td>+ <td>2</td>+ <td><p>ref: https://developer.hashicorp.com/vault/docs/auth/approle</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SAECRET_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VAULT_KV_V2</td>+ <td>1</td>+ <td><p>ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2</p></td>+ </tr>++ <tr>+ <td>AWS_SECRETS_MANAGER</td>+ <td>2</td>+ <td><p>ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html</p></td>+ </tr>++ <tr>+ <td>GCP_SECRET_MANAGER</td>+ <td>3</td>+ <td><p>ref: https://cloud.google.com/secret-manager/docs</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.DataSourceType">DataSourceType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>DATA_SOURCE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ADMIN</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>READ_ONLY</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.InstanceService">InstanceService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetInstance</td>+ <td><a href="#bytebase.v1.GetInstanceRequest">GetInstanceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListInstances</td>+ <td><a href="#bytebase.v1.ListInstancesRequest">ListInstancesRequest</a></td>+ <td><a href="#bytebase.v1.ListInstancesResponse">ListInstancesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateInstance</td>+ <td><a href="#bytebase.v1.CreateInstanceRequest">CreateInstanceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateInstance</td>+ <td><a href="#bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteInstance</td>+ <td><a href="#bytebase.v1.DeleteInstanceRequest">DeleteInstanceRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UndeleteInstance</td>+ <td><a href="#bytebase.v1.UndeleteInstanceRequest">UndeleteInstanceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SyncInstance</td>+ <td><a href="#bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</a></td>+ <td><a href="#bytebase.v1.SyncInstanceResponse">SyncInstanceResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchSyncInstances</td>+ <td><a href="#bytebase.v1.BatchSyncInstancesRequest">BatchSyncInstancesRequest</a></td>+ <td><a href="#bytebase.v1.BatchSyncInstancesResponse">BatchSyncInstancesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>AddDataSource</td>+ <td><a href="#bytebase.v1.AddDataSourceRequest">AddDataSourceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RemoveDataSource</td>+ <td><a href="#bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateDataSource</td>+ <td><a href="#bytebase.v1.UpdateDataSourceRequest">UpdateDataSourceRequest</a></td>+ <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SyncSlowQueries</td>+ <td><a href="#bytebase.v1.SyncSlowQueriesRequest">SyncSlowQueriesRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td><td>Body</td></tr></thead>@@ -5557,9 +5100,9 @@ The last remaining workspace admin cannot be deleted.</p></td><tr>- <td>GetUser</td>+ <td>GetInstance</td><td>GET</td>- <td>/v1/{name=users/*}</td>+ <td>/v1/{name=instances/*}</td><td></td></tr>@@ -5567,9 +5110,9 @@ The last remaining workspace admin cannot be deleted.</p></td><tr>- <td>ListUsers</td>+ <td>ListInstances</td><td>GET</td>- <td>/v1/users</td>+ <td>/v1/instances</td><td></td></tr>@@ -5577,29 +5120,29 @@ The last remaining workspace admin cannot be deleted.</p></td><tr>- <td>CreateUser</td>+ <td>CreateInstance</td><td>POST</td>- <td>/v1/users</td>- <td>user</td>+ <td>/v1/instances</td>+ <td>instance</td></tr><tr>- <td>UpdateUser</td>+ <td>UpdateInstance</td><td>PATCH</td>- <td>/v1/{user.name=users/*}</td>- <td>user</td>+ <td>/v1/{instance.name=instances/*}</td>+ <td>instance</td></tr><tr>- <td>DeleteUser</td>+ <td>DeleteInstance</td><td>DELETE</td>- <td>/v1/{name=users/*}</td>+ <td>/v1/{name=instances/*}</td><td></td></tr>@@ -5607,9 +5150,9 @@ The last remaining workspace admin cannot be deleted.</p></td><tr>- <td>UndeleteUser</td>+ <td>UndeleteInstance</td><td>POST</td>- <td>/v1/{name=users/*}:undelete</td>+ <td>/v1/{name=instances/*}:undelete</td><td>*</td></tr>@@ -5617,9 +5160,9 @@ The last remaining workspace admin cannot be deleted.</p></td><tr>- <td>Login</td>+ <td>SyncInstance</td><td>POST</td>- <td>/v1/auth/login</td>+ <td>/v1/{name=instances/*}:sync</td><td>*</td></tr>@@ -5627,53 +5170,74 @@ The last remaining workspace admin cannot be deleted.</p></td><tr>- <td>Logout</td>+ <td>BatchSyncInstances</td><td>POST</td>- <td>/v1/auth/logout</td>+ <td>/v1/instances:batchSync</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>AddDataSource</td>+ <td>POST</td>+ <td>/v1/{name=instances/*}:addDataSource</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>RemoveDataSource</td>+ <td>POST</td>+ <td>/v1/{name=instances/*}:removeDataSource</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>UpdateDataSource</td>+ <td>PATCH</td>+ <td>/v1/{name=instances/*}:updateDataSource</td><td>*</td></tr>- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/instance_role_service.proto">v1/instance_role_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the role to retrieve.-Format: instances/{instance}/roles/{role name}-The role name is the unique name for the role. </p></td>- </tr>+ <tr>+ <td>SyncSlowQueries</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*}:syncSlowQueries</td>+ <td>*</td>+ </tr>++ <tr>+ <td>SyncSlowQueries</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}:syncSlowQueries</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.InstanceRole">InstanceRole</h3>- <p>InstanceRole is the API message for instance role.</p>+ <div class="file-heading">+ <h2 id="v1/database_service.proto">v1/database_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</h3>+ <p>AdviseIndexRequest is the request of advising index.</p><table class="field-table">@@ -5683,49 +5247,17 @@ The role name is the unique name for the role. </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the role.-Format: instances/{instance}/roles/{role}-The role name is the unique name for the role. </p></td>+ <td><p>Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>role_name</td>+ <td>statement</td><td><a href="#string">string</a></td><td></td>- <td><p>The role name. It's unique within the instance. </p></td>- </tr>-- <tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The role password. </p></td>- </tr>-- <tr>- <td>connection_limit</td>- <td><a href="#int32">int32</a></td>- <td>optional</td>- <td><p>The connection count limit for this role. </p></td>- </tr>-- <tr>- <td>valid_until</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The expiration for the role's password. </p></td>- </tr>-- <tr>- <td>attribute</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>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 </p></td>+ <td><p>The statement to be advised. </p></td></tr></tbody>@@ -5735,8 +5267,8 @@ For MySQL, it's the global privileges as GRANT statements, which means it on- <h3 id="bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</h3>- <p></p>+ <h3 id="bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</h3>+ <p>AdviseIndexResponse is the response of advising index.</p><table class="field-table">@@ -5746,39 +5278,24 @@ For MySQL, it's the global privileges as GRANT statements, which means it on<tbody><tr>- <td>parent</td>+ <td>current_index</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of roles.-Format: instances/{instance} </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>+ <td><p>The current index of the statement used. </p></td></tr><tr>- <td>page_token</td>+ <td>suggestion</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListRoles` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `ListRoles` must match-the call that provided the page token. </p></td>+ <td><p>The suggested index of the statement. </p></td></tr><tr>- <td>refresh</td>- <td><a href="#bool">bool</a></td>+ <td>create_index_statement</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Refresh will refresh and return the latest data. </p></td>+ <td><p>The create index statement of the suggested index. </p></td></tr></tbody>@@ -5788,7 +5305,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</h3>+ <h3 id="bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</h3><p></p>@@ -5799,18 +5316,21 @@ the call that provided the page token. </p></td><tbody><tr>- <td>roles</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td>repeated</td>- <td><p>The roles from the specified request. </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td>requests</td>+ <td><a href="#bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</a></td>+ <td>repeated</td>+ <td><p>The request message specifying the resources to update.+A maximum of 1000 databases can be modified in a batch. </p></td></tr></tbody>@@ -5820,85 +5340,31 @@ If this field is omitted, there are no subsequent pages. </p></td>------- <h3 id="bytebase.v1.InstanceRoleService">InstanceRoleService</h3>+ <h3 id="bytebase.v1.BatchUpdateDatabasesResponse">BatchUpdateDatabasesResponse</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetInstanceRole</td>- <td><a href="#bytebase.v1.GetInstanceRoleRequest">GetInstanceRoleRequest</a></td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListInstanceRoles</td>- <td><a href="#bytebase.v1.ListInstanceRolesRequest">ListInstanceRolesRequest</a></td>- <td><a href="#bytebase.v1.ListInstanceRolesResponse">ListInstanceRolesResponse</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetInstanceRole</td>- <td>GET</td>- <td>/v1/{name=instances/*/roles/*}</td>- <td></td>- </tr>---- <tr>- <td>ListInstanceRoles</td>- <td>GET</td>- <td>/v1/{parent=instances/*}/roles</td>- <td></td>- </tr>+ <tr>+ <td>databases</td>+ <td><a href="#bytebase.v1.Database">Database</a></td>+ <td>repeated</td>+ <td><p>Databases updated. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/instance_service.proto">v1/instance_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.AddDataSourceRequest">AddDataSourceRequest</h3>+ <h3 id="bytebase.v1.ChangeHistory">ChangeHistory</h3><p></p>@@ -5912,359 +5378,295 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance to add a data source to.-Format: instances/{instance} </p></td>+ <td><p>Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td></tr><tr>- <td>data_source</td>- <td><a href="#bytebase.v1.DataSource">DataSource</a></td>+ <td>creator</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Identified by data source ID.-Only READ_ONLY data source can be added. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>+ <td>updater</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Validate only also tests the data source connection. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BatchSyncInstancesRequest">BatchSyncInstancesRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>requests</td>- <td><a href="#bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</a></td>- <td>repeated</td>- <td><p>The request message specifying the instances to sync.-A maximum of 1000 instances can be synced in a batch. </p></td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BatchSyncInstancesResponse">BatchSyncInstancesResponse</h3>- <p></p>------ <h3 id="bytebase.v1.CreateInstanceRequest">CreateInstanceRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>instance</td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The instance to create. </p></td>+ <td><p> </p></td></tr><tr>- <td>instance_id</td>+ <td>release_version</td><td><a href="#string">string</a></td><td></td>- <td><p>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]-/. </p></td>+ <td><p>release version of Bytebase </p></td></tr><tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>+ <td>source</td>+ <td><a href="#bytebase.v1.ChangeHistory.Source">ChangeHistory.Source</a></td><td></td>- <td><p>Validate only also tests the data source connection. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DataSource">DataSource</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>id</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.ChangeHistory.Type">ChangeHistory.Type</a></td><td></td><td><p> </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.DataSourceType">DataSourceType</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.ChangeHistory.Status">ChangeHistory.Status</a></td><td></td><td><p> </p></td></tr><tr>- <td>username</td>+ <td>version</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>password</td>+ <td>description</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>use_ssl</td>- <td><a href="#bool">bool</a></td>+ <td>statement</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Use SSL to connect to the data source. By default, we use system default SSL configuration. </p></td>+ <td><p>The statement is used for preview purpose. </p></td></tr><tr>- <td>ssl_ca</td>- <td><a href="#string">string</a></td>+ <td>statement_size</td>+ <td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr><tr>- <td>ssl_cert</td>+ <td>statement_sheet</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the sheet resource.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>ssl_key</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>host</td>- <td><a href="#string">string</a></td>+ <td>schema_size</td>+ <td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr><tr>- <td>port</td>+ <td>prev_schema</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>database</td>- <td><a href="#string">string</a></td>+ <td>prev_schema_size</td>+ <td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr><tr>- <td>srv</td>- <td><a href="#bool">bool</a></td>+ <td>execution_duration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>srv, authentication_database and replica_set are used for MongoDB. </p></td>+ <td><p> </p></td></tr><tr>- <td>authentication_database</td>+ <td>issue</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>sid</td>- <td><a href="#string">string</a></td>+ <td>changed_resources</td>+ <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td><td></td>- <td><p>sid and service_name are used for Oracle. </p></td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ChangedResourceDatabase">ChangedResourceDatabase</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>service_name</td>+ <td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>ssh_host</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Connection over SSH.-The hostname of the SSH server agent.-Required. </p></td>+ <td>schemas</td>+ <td><a href="#bytebase.v1.ChangedResourceSchema">ChangedResourceSchema</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ChangedResourceFunction">ChangedResourceFunction</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>ssh_port</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The port of the SSH server agent. It's 22 typically.-Required. </p></td>+ <td><p> </p></td></tr><tr>- <td>ssh_user</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The user to login the server.-Required. </p></td>+ <td>ranges</td>+ <td><a href="#bytebase.v1.Range">Range</a></td>+ <td>repeated</td>+ <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ChangedResourceProcedure">ChangedResourceProcedure</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>ssh_password</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The password to login the server. If it's empty string, no password is required. </p></td>+ <td><p> </p></td></tr><tr>- <td>ssh_private_key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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"). </p></td>+ <td>ranges</td>+ <td><a href="#bytebase.v1.Range">Range</a></td>+ <td>repeated</td>+ <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ChangedResourceSchema">ChangedResourceSchema</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>authentication_private_key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>external_secret</td>- <td><a href="#bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</a></td>- <td></td>+ <td>tables</td>+ <td><a href="#bytebase.v1.ChangedResourceTable">ChangedResourceTable</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>authentication_type</td>- <td><a href="#bytebase.v1.DataSource.AuthenticationType">DataSource.AuthenticationType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>sasl_config</td>- <td><a href="#bytebase.v1.SASLConfig">SASLConfig</a></td>- <td></td>+ <td>views</td>+ <td><a href="#bytebase.v1.ChangedResourceView">ChangedResourceView</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>additional_addresses</td>- <td><a href="#bytebase.v1.DataSource.Address">DataSource.Address</a></td>+ <td>functions</td>+ <td><a href="#bytebase.v1.ChangedResourceFunction">ChangedResourceFunction</a></td><td>repeated</td>- <td><p>additional_addresses is used for MongoDB replica set. </p></td>- </tr>-- <tr>- <td>replica_set</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>replica_set is used for MongoDB replica set. </p></td>- </tr>-- <tr>- <td>direct_connection</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>direct_connection is used for MongoDB to dispatch all the operations to the node specified in the connection string. </p></td>- </tr>-- <tr>- <td>region</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>region is the location of where the DB is, works for AWS RDS. For example, us-east-1. </p></td>- </tr>-- <tr>- <td>warehouse_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>warehouse_id is used by Databricks. </p></td>- </tr>-- <tr>- <td>master_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>master_name is the master name used by connecting redis-master via redis sentinel. </p></td>- </tr>-- <tr>- <td>master_username</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>master_username and master_password are master credentials used by redis sentinel mode. </p></td>- </tr>-- <tr>- <td>master_password</td>- <td><a href="#string">string</a></td>- <td></td><td><p> </p></td></tr><tr>- <td>redis_type</td>- <td><a href="#bytebase.v1.DataSource.RedisType">DataSource.RedisType</a></td>- <td></td>+ <td>procedures</td>+ <td><a href="#bytebase.v1.ChangedResourceProcedure">ChangedResourceProcedure</a></td>+ <td>repeated</td><td><p> </p></td></tr>- <tr>- <td>cluster</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Cluster is the cluster name for the data source. Used by CockroachDB. </p></td>- </tr>-</tbody></table>@@ -6272,7 +5674,7 @@ Used for authentication when connecting to the data source. </p></td>- <h3 id="bytebase.v1.DataSource.Address">DataSource.Address</h3>+ <h3 id="bytebase.v1.ChangedResourceTable">ChangedResourceTable</h3><p></p>@@ -6283,17 +5685,17 @@ Used for authentication when connecting to the data source. </p></td><tbody><tr>- <td>host</td>+ <td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>port</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>ranges</td>+ <td><a href="#bytebase.v1.Range">Range</a></td>+ <td>repeated</td>+ <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td></tr></tbody>@@ -6303,7 +5705,7 @@ Used for authentication when connecting to the data source. </p></td>- <h3 id="bytebase.v1.DataSourceExternalSecret">DataSourceExternalSecret</h3>+ <h3 id="bytebase.v1.ChangedResourceView">ChangedResourceView</h3><p></p>@@ -6314,59 +5716,17 @@ Used for authentication when connecting to the data source. </p></td><tbody><tr>- <td>secret_type</td>- <td><a href="#bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>auth_type</td>- <td><a href="#bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>app_role</td>- <td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>engine_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>engine name is the name for secret engine. </p></td>- </tr>-- <tr>- <td>secret_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>the secret name in the engine to store the password. </p></td>- </tr>-- <tr>- <td>password_key_name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>the key name for the password. </p></td>+ <td>ranges</td>+ <td><a href="#bytebase.v1.Range">Range</a></td>+ <td>repeated</td>+ <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td></tr></tbody>@@ -6376,7 +5736,7 @@ Used for authentication when connecting to the data source. </p></td>- <h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption">DataSourceExternalSecret.AppRoleAuthOption</h3>+ <h3 id="bytebase.v1.ChangedResources">ChangedResources</h3><p></p>@@ -6387,31 +5747,41 @@ Used for authentication when connecting to the data source. </p></td><tbody><tr>- <td>role_id</td>- <td><a href="#string">string</a></td>- <td></td>+ <td>databases</td>+ <td><a href="#bytebase.v1.ChangedResourceDatabase">ChangedResourceDatabase</a></td>+ <td>repeated</td><td><p> </p></td></tr>- <tr>- <td>secret_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>the secret id for the role without ttl. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</h3>+ <p>CheckConstraintMetadata is the metadata for check constraints.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name is the name of a check constraint. </p></td></tr><tr>- <td>mount_path</td>+ <td>expression</td><td><a href="#string">string</a></td><td></td>- <td><p>The path where the approle auth method is mounted. </p></td>+ <td><p>The expression is the expression of a check constraint. </p></td></tr></tbody>@@ -6421,7 +5791,7 @@ Used for authentication when connecting to the data source. </p></td>- <h3 id="bytebase.v1.DeleteInstanceRequest">DeleteInstanceRequest</h3>+ <h3 id="bytebase.v1.ColumnConfig">ColumnConfig</h3><p></p>@@ -6435,15 +5805,28 @@ Used for authentication when connecting to the data source. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance to delete.-Format: instances/{instance} </p></td>+ <td><p>The name is the name of a column. </p></td></tr><tr>- <td>force</td>- <td><a href="#bool">bool</a></td>+ <td>semantic_type_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>labels</td>+ <td><a href="#bytebase.v1.ColumnConfig.LabelsEntry">ColumnConfig.LabelsEntry</a></td>+ <td>repeated</td>+ <td><p>The user labels for a column. </p></td>+ </tr>++ <tr>+ <td>classification_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -6453,7 +5836,7 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.GetInstanceRequest">GetInstanceRequest</h3>+ <h3 id="bytebase.v1.ColumnConfig.LabelsEntry">ColumnConfig.LabelsEntry</h3><p></p>@@ -6464,11 +5847,17 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>name</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance to retrieve.-Format: instances/{instance} </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -6478,8 +5867,8 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.Instance">Instance</h3>- <p></p>+ <h3 id="bytebase.v1.ColumnMetadata">ColumnMetadata</h3>+ <p>ColumnMetadata is the metadata for columns.</p><table class="field-table">@@ -6492,111 +5881,108 @@ Format: instances/{instance} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance.-Format: instances/{instance} </p></td>+ <td><p>The name is the name of a column. </p></td></tr><tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>+ <td>position</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>The position is the position in columns. </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>has_default</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td>default_null</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>engine_version</td>+ <td>default_string</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>external_link</td>+ <td>default_expression</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>data_sources</td>- <td><a href="#bytebase.v1.DataSource">DataSource</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>on_update</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td></tr><tr>- <td>environment</td>+ <td>nullable</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The nullable is the nullable of a column. </p></td>+ </tr>++ <tr>+ <td>type</td><td><a href="#string">string</a></td><td></td>- <td><p>The environment resource.-Format: environments/prod where prod is the environment resource ID. </p></td>+ <td><p>The type is the type of a column. </p></td></tr><tr>- <td>activation</td>- <td><a href="#bool">bool</a></td>+ <td>character_set</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The character_set is the character_set of a column. </p></td></tr><tr>- <td>options</td>- <td><a href="#bytebase.v1.InstanceOptions">InstanceOptions</a></td>+ <td>collation</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The collation is the collation of a column. </p></td></tr><tr>- <td>roles</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The comment is the comment of a column.+classification and user_comment is parsed from the comment. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.InstanceOptions">InstanceOptions</h3>- <p>InstanceOptions is the option for instances.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>user_comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The user_comment is the user comment of a column parsed from the comment. </p></td>+ </tr><tr>- <td>sync_interval</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>effective_masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td><td></td>- <td><p>How often the instance is synced. </p></td>+ <td><p>The effective_masking_level is the effective masking level of the column, evaluate from the+column masking data and global masking rules. </p></td></tr><tr>- <td>maximum_connections</td>- <td><a href="#int32">int32</a></td>+ <td>generation</td>+ <td><a href="#bytebase.v1.GenerationMetadata">GenerationMetadata</a></td><td></td>- <td><p>The maximum number of connections.-The default is 10 if the value is unset or zero. </p></td>+ <td><p>The generation is the generation of a column. </p></td></tr></tbody>@@ -6606,7 +5992,7 @@ The default is 10 if the value is unset or zero. </p></td>- <h3 id="bytebase.v1.InstanceResource">InstanceResource</h3>+ <h3 id="bytebase.v1.Database">Database</h3><p></p>@@ -6617,46 +6003,41 @@ The default is 10 if the value is unset or zero. </p></td><tbody><tr>- <td>title</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the database.+Format: instances/{instance}/databases/{database}+{database} is the database name in the instance. </p></td></tr><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td>sync_state</td>+ <td><a href="#bytebase.v1.State">State</a></td><td></td>- <td><p> </p></td>+ <td><p>The existence of a database on latest sync. </p></td></tr><tr>- <td>engine_version</td>- <td><a href="#string">string</a></td>+ <td>successful_sync_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>data_sources</td>- <td><a href="#bytebase.v1.DataSource">DataSource</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>The latest synchronization time. </p></td></tr><tr>- <td>activation</td>- <td><a href="#bool">bool</a></td>+ <td>project</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The project for a database.+Format: projects/{project} </p></td></tr><tr>- <td>name</td>+ <td>schema_version</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance.-Format: instances/{instance} </p></td>+ <td><p>The version of database schema. </p></td></tr><tr>@@ -6668,10 +6049,32 @@ Format: environments/prod where prod is the environment resource ID. </p></td></tr><tr>- <td>roles</td>- <td><a href="#bytebase.v1.InstanceRole">InstanceRole</a></td>+ <td>effective_environment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>labels</td>+ <td><a href="#bytebase.v1.Database.LabelsEntry">Database.LabelsEntry</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>Labels will be used for deployment and policy control. </p></td>+ </tr>++ <tr>+ <td>instance_resource</td>+ <td><a href="#bytebase.v1.InstanceResource">InstanceResource</a></td>+ <td></td>+ <td><p>The instance resource. </p></td>+ </tr>++ <tr>+ <td>backup_available</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The database is available for DML prior backup. </p></td></tr></tbody>@@ -6681,7 +6084,7 @@ Format: environments/prod where prod is the environment resource ID. </p></td>- <h3 id="bytebase.v1.KerberosConfig">KerberosConfig</h3>+ <h3 id="bytebase.v1.Database.LabelsEntry">Database.LabelsEntry</h3><p></p>@@ -6692,52 +6095,48 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>primary</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>instance</td>+ <td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>realm</td>+ <td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>keytab</td>- <td><a href="#bytes">bytes</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>kdc_host</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DatabaseConfig">DatabaseConfig</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>kdc_port</td>+ <td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>kdc_transport_protocol</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>schema_configs</td>+ <td><a href="#bytebase.v1.SchemaConfig">SchemaConfig</a></td>+ <td>repeated</td>+ <td><p>The schema_configs is the list of configs for schemas in a database. </p></td></tr></tbody>@@ -6747,8 +6146,8 @@ Format: environments/prod where prod is the environment resource ID. </p></td>- <h3 id="bytebase.v1.ListInstancesRequest">ListInstancesRequest</h3>- <p></p>+ <h3 id="bytebase.v1.DatabaseMetadata">DatabaseMetadata</h3>+ <p>DatabaseMetadata is the metadata for databases.</p><table class="field-table">@@ -6758,31 +6157,47 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The database metadata name.++Format: instances/{instance}/databases/{database}/metadata </p></td></tr><tr>- <td>page_token</td>+ <td>schemas</td>+ <td><a href="#bytebase.v1.SchemaMetadata">SchemaMetadata</a></td>+ <td>repeated</td>+ <td><p>The schemas is the list of schemas in a database. </p></td>+ </tr>++ <tr>+ <td>character_set</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The character_set is the character set of a database. </p></td></tr><tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>+ <td>collation</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Show deleted instances if specified. </p></td>+ <td><p>The collation is the collation of a database. </p></td>+ </tr>++ <tr>+ <td>extensions</td>+ <td><a href="#bytebase.v1.ExtensionMetadata">ExtensionMetadata</a></td>+ <td>repeated</td>+ <td><p>The extensions is the list of extensions in a database. </p></td>+ </tr>++ <tr>+ <td>schema_configs</td>+ <td><a href="#bytebase.v1.SchemaConfig">SchemaConfig</a></td>+ <td>repeated</td>+ <td><p>The schema_configs is the list of configs for schemas in a database. </p></td></tr></tbody>@@ -6792,8 +6207,8 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListInstancesResponse">ListInstancesResponse</h3>- <p></p>+ <h3 id="bytebase.v1.DatabaseSchema">DatabaseSchema</h3>+ <p>DatabaseSchema is the metadata for databases.</p><table class="field-table">@@ -6803,18 +6218,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>instances</td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td>repeated</td>- <td><p>The instances from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The schema dump from database. </p></td></tr></tbody>@@ -6824,7 +6231,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</h3>+ <h3 id="bytebase.v1.DeleteSecretRequest">DeleteSecretRequest</h3><p></p>@@ -6838,16 +6245,47 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance to remove a data source from.-Format: instances/{instance} </p></td>+ <td><p>The name of the secret to be deleted.+Format:+instances/{instance}/databases/{database}/secrets/{secret} </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DependentColumn">DependentColumn</h3>+ <p>DependentColumn is the metadata for dependent columns.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>data_source</td>- <td><a href="#bytebase.v1.DataSource">DataSource</a></td>+ <td>schema</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Identified by data source ID.-Only READ_ONLY data source can be removed. </p></td>+ <td><p>The schema is the schema of a reference column. </p></td>+ </tr>++ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The table is the table of a reference column. </p></td>+ </tr>++ <tr>+ <td>column</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The column is the name of a reference column. </p></td></tr></tbody>@@ -6857,7 +6295,7 @@ Only READ_ONLY data source can be removed. </p></td>- <h3 id="bytebase.v1.SASLConfig">SASLConfig</h3>+ <h3 id="bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</h3><p></p>@@ -6868,10 +6306,35 @@ Only READ_ONLY data source can be removed. </p></td><tbody><tr>- <td>krb_config</td>- <td><a href="#bytebase.v1.KerberosConfig">KerberosConfig</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the database or change history.+Format:+database: instances/{instance}/databases/{database}+change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The target schema. </p></td>+ </tr>++ <tr>+ <td>change_history</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the change history+Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ </tr>++ <tr>+ <td>sdl_format</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Format the schema dump into SDL format. </p></td></tr></tbody>@@ -6881,7 +6344,7 @@ Only READ_ONLY data source can be removed. </p></td>- <h3 id="bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</h3>+ <h3 id="bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</h3><p></p>@@ -6892,11 +6355,10 @@ Only READ_ONLY data source can be removed. </p></td><tbody><tr>- <td>name</td>+ <td>diff</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of instance.-Format: instances/{instance} </p></td>+ <td><p> </p></td></tr></tbody>@@ -6906,14 +6368,52 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.SyncInstanceResponse">SyncInstanceResponse</h3>- <p></p>+ <h3 id="bytebase.v1.ExtensionMetadata">ExtensionMetadata</h3>+ <p>ExtensionMetadata is the metadata for extensions.</p>+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name is the name of an extension. </p></td>+ </tr>++ <tr>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The schema is the extension that is installed to. But the extension usage is not limited to the schema. </p></td>+ </tr>++ <tr>+ <td>version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The version is the version of an extension. </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The description is the description of an extension. </p></td>+ </tr>++ </tbody>+ </table>++- <h3 id="bytebase.v1.SyncSlowQueriesRequest">SyncSlowQueriesRequest</h3>+ <h3 id="bytebase.v1.ExternalTableMetadata">ExternalTableMetadata</h3><p></p>@@ -6924,12 +6424,31 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance to sync slow queries.-Format: instances/{instance} for one instance- or projects/{project} for one project. </p></td>+ <td><p>The name is the name of a external table. </p></td>+ </tr>++ <tr>+ <td>external_server_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The external_server_name is the name of the external server. </p></td>+ </tr>++ <tr>+ <td>external_database_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The external_database_name is the name of the external database. </p></td>+ </tr>++ <tr>+ <td>columns</td>+ <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>+ <td>repeated</td>+ <td><p>The columns is the ordered list of columns in a foreign table. </p></td></tr></tbody>@@ -6939,8 +6458,8 @@ Format: instances/{instance} for one instance- <h3 id="bytebase.v1.UndeleteInstanceRequest">UndeleteInstanceRequest</h3>- <p></p>+ <h3 id="bytebase.v1.ForeignKeyMetadata">ForeignKeyMetadata</h3>+ <p>ForeignKeyMetadata is the metadata for foreign keys.</p><table class="field-table">@@ -6953,8 +6472,59 @@ Format: instances/{instance} for one instance<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted instance.-Format: instances/{instance} </p></td>+ <td><p>The name is the name of a foreign key. </p></td>+ </tr>++ <tr>+ <td>columns</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The columns are the ordered referencing columns of a foreign key. </p></td>+ </tr>++ <tr>+ <td>referenced_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>referenced_table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The referenced_table is the referenced table name of a foreign key. </p></td>+ </tr>++ <tr>+ <td>referenced_columns</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The referenced_columns are the ordered referenced columns of a foreign key. </p></td>+ </tr>++ <tr>+ <td>on_delete</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The on_delete is the on delete action of a foreign key. </p></td>+ </tr>++ <tr>+ <td>on_update</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The on_update is the on update action of a foreign key. </p></td>+ </tr>++ <tr>+ <td>match_type</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td></tr></tbody>@@ -6964,7 +6534,7 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.UpdateDataSourceRequest">UpdateDataSourceRequest</h3>+ <h3 id="bytebase.v1.FunctionConfig">FunctionConfig</h3><p></p>@@ -6978,29 +6548,30 @@ Format: instances/{instance} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the instance to update a data source.-Format: instances/{instance} </p></td>+ <td><p>The name is the name of a function. </p></td></tr><tr>- <td>data_source</td>- <td><a href="#bytebase.v1.DataSource">DataSource</a></td>+ <td>updater</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Identified by data source ID. </p></td>+ <td><p>The last updater of the function in branch.+Format: users/{email} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>source_branch</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>The last change come from branch.+Format: projcets/{project}/branches/{branch} </p></td></tr><tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>Validate only also tests the data source connection. </p></td>+ <td><p>The timestamp when the function is updated in branch. </p></td></tr></tbody>@@ -7010,8 +6581,8 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</h3>- <p></p>+ <h3 id="bytebase.v1.FunctionMetadata">FunctionMetadata</h3>+ <p>FunctionMetadata is the metadata for functions.</p><table class="field-table">@@ -7021,20 +6592,17 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>instance</td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The instance to update.--The instance's `name` field is used to identify the instance to update.-Format: instances/{instance} </p></td>+ <td><p>The name is the name of a function. </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>definition</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>The definition is the definition of a function. </p></td></tr></tbody>@@ -7044,475 +6612,269 @@ Format: instances/{instance} </p></td>+ <h3 id="bytebase.v1.GenerationMetadata">GenerationMetadata</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.GenerationMetadata.Type">GenerationMetadata.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>expression</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.DataSource.AuthenticationType">DataSource.AuthenticationType</h3>+ <h3 id="bytebase.v1.GetChangeHistoryRequest">GetChangeHistoryRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>AUTHENTICATION_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PASSWORD</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>GOOGLE_CLOUD_SQL_IAM</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>AWS_RDS_IAM</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the change history to retrieve.+Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ </tr>++ <tr>+ <td>view</td>+ <td><a href="#bytebase.v1.ChangeHistoryView">ChangeHistoryView</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>sdl_format</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Format the schema dump into SDL format. </p></td>+ </tr>++ <tr>+ <td>concise</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>When true, the schema dump will be concise. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.DataSource.RedisType">DataSource.RedisType</h3>+ <h3 id="bytebase.v1.GetDatabaseMetadataRequest">GetDatabaseMetadataRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>REDIS_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>STANDALONE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>SENTINEL</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>CLUSTER</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database to retrieve metadata.+Format: instances/{instance}/databases/{database}/metadata </p></td>+ </tr>++ <tr>+ <td>view</td>+ <td><a href="#bytebase.v1.DatabaseMetadataView">DatabaseMetadataView</a></td>+ <td></td>+ <td><p>The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC. </p></td>+ </tr>++ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.DataSourceExternalSecret.AppRoleAuthOption.SecretType">DataSourceExternalSecret.AppRoleAuthOption.SecretType</h3>+ <h3 id="bytebase.v1.GetDatabaseRequest">GetDatabaseRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SECRET_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PLAIN</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENVIRONMENT</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database to retrieve.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.DataSourceExternalSecret.AuthType">DataSourceExternalSecret.AuthType</h3>+ <h3 id="bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>AUTH_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>TOKEN</td>- <td>1</td>- <td><p>ref: https://developer.hashicorp.com/vault/docs/auth/token</p></td>- </tr>-- <tr>- <td>VAULT_APP_ROLE</td>- <td>2</td>- <td><p>ref: https://developer.hashicorp.com/vault/docs/auth/approle</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.DataSourceExternalSecret.SecretType">DataSourceExternalSecret.SecretType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SAECRET_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>VAULT_KV_V2</td>- <td>1</td>- <td><p>ref: https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v2</p></td>- </tr>-- <tr>- <td>AWS_SECRETS_MANAGER</td>- <td>2</td>- <td><p>ref: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html</p></td>- </tr>-- <tr>- <td>GCP_SECRET_MANAGER</td>- <td>3</td>- <td><p>ref: https://cloud.google.com/secret-manager/docs</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.DataSourceType">DataSourceType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>DATA_SOURCE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ADMIN</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>READ_ONLY</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>--++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database to retrieve schema.+Format: instances/{instance}/databases/{database}/schema </p></td>+ </tr>++ <tr>+ <td>sdl_format</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Format the schema dump into SDL format. </p></td>+ </tr>++ <tr>+ <td>concise</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>When true, the schema dump will be concise.+For Oracle, there will be tables and indexes only for Sync Schema. </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.InstanceService">InstanceService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetInstance</td>- <td><a href="#bytebase.v1.GetInstanceRequest">GetInstanceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListInstances</td>- <td><a href="#bytebase.v1.ListInstancesRequest">ListInstancesRequest</a></td>- <td><a href="#bytebase.v1.ListInstancesResponse">ListInstancesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateInstance</td>- <td><a href="#bytebase.v1.CreateInstanceRequest">CreateInstanceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateInstance</td>- <td><a href="#bytebase.v1.UpdateInstanceRequest">UpdateInstanceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteInstance</td>- <td><a href="#bytebase.v1.DeleteInstanceRequest">DeleteInstanceRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UndeleteInstance</td>- <td><a href="#bytebase.v1.UndeleteInstanceRequest">UndeleteInstanceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SyncInstance</td>- <td><a href="#bytebase.v1.SyncInstanceRequest">SyncInstanceRequest</a></td>- <td><a href="#bytebase.v1.SyncInstanceResponse">SyncInstanceResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchSyncInstances</td>- <td><a href="#bytebase.v1.BatchSyncInstancesRequest">BatchSyncInstancesRequest</a></td>- <td><a href="#bytebase.v1.BatchSyncInstancesResponse">BatchSyncInstancesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>AddDataSource</td>- <td><a href="#bytebase.v1.AddDataSourceRequest">AddDataSourceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>RemoveDataSource</td>- <td><a href="#bytebase.v1.RemoveDataSourceRequest">RemoveDataSourceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateDataSource</td>- <td><a href="#bytebase.v1.UpdateDataSourceRequest">UpdateDataSourceRequest</a></td>- <td><a href="#bytebase.v1.Instance">Instance</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SyncSlowQueries</td>- <td><a href="#bytebase.v1.SyncSlowQueriesRequest">SyncSlowQueriesRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <h3 id="bytebase.v1.IndexMetadata">IndexMetadata</h3>+ <p>IndexMetadata is the metadata for indexes.</p>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name is the name of an index. </p></td>+ </tr>- <tr>- <td>GetInstance</td>- <td>GET</td>- <td>/v1/{name=instances/*}</td>- <td></td>- </tr>+ <tr>+ <td>expressions</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The expressions are the ordered columns or expressions of an index.+This could refer to a column or an expression. </p></td>+ </tr>-+ <tr>+ <td>key_length</td>+ <td><a href="#int64">int64</a></td>+ <td>repeated</td>+ <td><p>The key_lengths are the ordered key lengths of an index.+If the key length is not specified, it's -1. </p></td>+ </tr>+ <tr>+ <td>descending</td>+ <td><a href="#bool">bool</a></td>+ <td>repeated</td>+ <td><p>The descending is the ordered descending of an index. </p></td>+ </tr>- <tr>- <td>ListInstances</td>- <td>GET</td>- <td>/v1/instances</td>- <td></td>- </tr>+ <tr>+ <td>type</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The type is the type of an index. </p></td>+ </tr>---- <tr>- <td>CreateInstance</td>- <td>POST</td>- <td>/v1/instances</td>- <td>instance</td>- </tr>----- <tr>- <td>UpdateInstance</td>- <td>PATCH</td>- <td>/v1/{instance.name=instances/*}</td>- <td>instance</td>- </tr>----- <tr>- <td>DeleteInstance</td>- <td>DELETE</td>- <td>/v1/{name=instances/*}</td>- <td></td>- </tr>----- <tr>- <td>UndeleteInstance</td>- <td>POST</td>- <td>/v1/{name=instances/*}:undelete</td>- <td>*</td>- </tr>----- <tr>- <td>SyncInstance</td>- <td>POST</td>- <td>/v1/{name=instances/*}:sync</td>- <td>*</td>- </tr>----- <tr>- <td>BatchSyncInstances</td>- <td>POST</td>- <td>/v1/instances:batchSync</td>- <td>*</td>- </tr>----- <tr>- <td>AddDataSource</td>- <td>POST</td>- <td>/v1/{name=instances/*}:addDataSource</td>- <td>*</td>- </tr>----- <tr>- <td>RemoveDataSource</td>- <td>POST</td>- <td>/v1/{name=instances/*}:removeDataSource</td>- <td>*</td>- </tr>----- <tr>- <td>UpdateDataSource</td>- <td>PATCH</td>- <td>/v1/{name=instances/*}:updateDataSource</td>- <td>*</td>- </tr>----- <tr>- <td>SyncSlowQueries</td>- <td>POST</td>- <td>/v1/{parent=instances/*}:syncSlowQueries</td>- <td>*</td>- </tr>+ <tr>+ <td>unique</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The unique is whether the index is unique. </p></td>+ </tr>- <tr>- <td>SyncSlowQueries</td>- <td>POST</td>- <td>/v1/{parent=projects/*}:syncSlowQueries</td>- <td>*</td>- </tr>+ <tr>+ <td>primary</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The primary is whether the index is a primary key index. </p></td>+ </tr>-- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/database_service.proto">v1/database_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</h3>- <p>AdviseIndexRequest is the request of advising index.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>visible</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The visible is whether the index is visible. </p></td>+ </tr><tr>- <td>parent</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: instances/{instance}/databases/{database} </p></td>+ <td><p>The comment is the comment of an index. </p></td></tr><tr>- <td>statement</td>+ <td>definition</td><td><a href="#string">string</a></td><td></td>- <td><p>The statement to be advised. </p></td>+ <td><p>The definition of an index. </p></td></tr></tbody>@@ -7522,8 +6884,8 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</h3>- <p>AdviseIndexResponse is the response of advising index.</p>+ <h3 id="bytebase.v1.ListChangeHistoriesRequest">ListChangeHistoriesRequest</h3>+ <p></p><table class="field-table">@@ -7533,24 +6895,73 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>current_index</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The current index of the statement used. </p></td>+ <td><p>The parent of the change histories.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>suggestion</td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The suggested index of the statement. </p></td>+ <td><p>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. </p></td></tr><tr>- <td>create_index_statement</td>+ <td>view</td>+ <td><a href="#bytebase.v1.ChangeHistoryView">ChangeHistoryView</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>The create index statement of the suggested index. </p></td>+ <td><p>The filter of the change histories.+follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.+Support filter by type, source or table.+For example:+table = "tableExists('{database}', '{schema}', '{table}')"+table = "tableExists('db', 'public', 'table1') || tableExists('db', 'public', 'table2')"+type = "MIGRATE | DATA"+source = "UI"+source = "VCS"++The table filter 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")+) </p></td></tr></tbody>@@ -7560,7 +6971,7 @@ Format: instances/{instance} </p></td>- <h3 id="bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</h3>+ <h3 id="bytebase.v1.ListChangeHistoriesResponse">ListChangeHistoriesResponse</h3><p></p>@@ -7571,21 +6982,18 @@ Format: instances/{instance} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>+ <td>change_histories</td>+ <td><a href="#bytebase.v1.ChangeHistory">ChangeHistory</a></td>+ <td>repeated</td>+ <td><p>The list of change histories. </p></td></tr><tr>- <td>requests</td>- <td><a href="#bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</a></td>- <td>repeated</td>- <td><p>The request message specifying the resources to update.-A maximum of 1000 databases can be modified in a batch. </p></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -7595,7 +7003,7 @@ A maximum of 1000 databases can be modified in a batch. </p></td>- <h3 id="bytebase.v1.BatchUpdateDatabasesResponse">BatchUpdateDatabasesResponse</h3>+ <h3 id="bytebase.v1.ListDatabasesRequest">ListDatabasesRequest</h3><p></p>@@ -7606,20 +7014,43 @@ A maximum of 1000 databases can be modified in a batch. </p></td><tbody><tr>- <td>databases</td>- <td><a href="#bytebase.v1.Database">Database</a></td>- <td>repeated</td>- <td><p>Databases updated. </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of databases.+- projects/{project}: list all databases in a project.+- workspaces/{workspace}: list all databases in a workspace. </p></td></tr>- </tbody>- </table>--+ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `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. </p></td>+ </tr>++ </tbody>+ </table>++- <h3 id="bytebase.v1.ChangeHistory">ChangeHistory</h3>+ <h3 id="bytebase.v1.ListDatabasesResponse">ListDatabasesResponse</h3><p></p>@@ -7630,151 +7061,106 @@ A maximum of 1000 databases can be modified in a batch. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>- </tr>-- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>-- <tr>- <td>updater</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>release_version</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>release version of Bytebase </p></td>- </tr>-- <tr>- <td>source</td>- <td><a href="#bytebase.v1.ChangeHistory.Source">ChangeHistory.Source</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.ChangeHistory.Type">ChangeHistory.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>status</td>- <td><a href="#bytebase.v1.ChangeHistory.Status">ChangeHistory.Status</a></td>- <td></td>- <td><p> </p></td>+ <td>databases</td>+ <td><a href="#bytebase.v1.Database">Database</a></td>+ <td>repeated</td>+ <td><p>The databases from the specified request. </p></td></tr><tr>- <td>version</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr>- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListInstanceDatabasesRequest">ListInstanceDatabasesRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>statement</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The statement is used for preview purpose. </p></td>- </tr>-- <tr>- <td>statement_size</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The parent, which owns this collection of databases.+- instances/{instance}: list all databases for an instance. Use "instances/-" to list all databases. </p></td></tr><tr>- <td>statement_sheet</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The name of the sheet resource.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>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. </p></td></tr><tr>- <td>schema</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>schema_size</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr><tr>- <td>prev_schema</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Deprecated.+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. </p></td></tr>- <tr>- <td>prev_schema_size</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListInstanceDatabasesResponse">ListInstanceDatabasesResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>execution_duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p> </p></td>+ <td>databases</td>+ <td><a href="#bytebase.v1.Database">Database</a></td>+ <td>repeated</td>+ <td><p>The databases from the specified request. </p></td></tr><tr>- <td>issue</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>changed_resources</td>- <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>- <td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -7784,7 +7170,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ChangedResourceDatabase">ChangedResourceDatabase</h3>+ <h3 id="bytebase.v1.ListSecretsRequest">ListSecretsRequest</h3><p></p>@@ -7795,17 +7181,32 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent of the secret.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>schemas</td>- <td><a href="#bytebase.v1.ChangedResourceSchema">ChangedResourceSchema</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A page token, received from a previous `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. </p></td></tr></tbody>@@ -7815,7 +7216,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ChangedResourceFunction">ChangedResourceFunction</h3>+ <h3 id="bytebase.v1.ListSecretsResponse">ListSecretsResponse</h3><p></p>@@ -7826,17 +7227,18 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>secrets</td>+ <td><a href="#bytebase.v1.Secret">Secret</a></td>+ <td>repeated</td>+ <td><p>The list of secrets. </p></td></tr><tr>- <td>ranges</td>- <td><a href="#bytebase.v1.Range">Range</a></td>- <td>repeated</td>- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td></tr></tbody>@@ -7846,8 +7248,8 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ChangedResourceProcedure">ChangedResourceProcedure</h3>- <p></p>+ <h3 id="bytebase.v1.ListSlowQueriesRequest">ListSlowQueriesRequest</h3>+ <p>ListSlowQueriesRequest is the request of listing slow query.</p><table class="field-table">@@ -7857,17 +7259,39 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: projects/{project} </p></td></tr><tr>- <td>ranges</td>- <td><a href="#bytebase.v1.Range">Range</a></td>- <td>repeated</td>- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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 database and start_time in SlowQueryDetails for now.+For example:+Search the slow query log of the specific database:+ - the specific database: database = "instances/{instance}/databases/{database}"+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. </p></td>+ </tr>++ <tr>+ <td>order_by</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td></tr></tbody>@@ -7877,8 +7301,8 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ChangedResourceSchema">ChangedResourceSchema</h3>- <p></p>+ <h3 id="bytebase.v1.ListSlowQueriesResponse">ListSlowQueriesResponse</h3>+ <p>ListSlowQueriesResponse is the response of listing slow query.</p><table class="field-table">@@ -7888,38 +7312,10 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>tables</td>- <td><a href="#bytebase.v1.ChangedResourceTable">ChangedResourceTable</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>views</td>- <td><a href="#bytebase.v1.ChangedResourceView">ChangedResourceView</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>functions</td>- <td><a href="#bytebase.v1.ChangedResourceFunction">ChangedResourceFunction</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>procedures</td>- <td><a href="#bytebase.v1.ChangedResourceProcedure">ChangedResourceProcedure</a></td>+ <td>slow_query_logs</td>+ <td><a href="#bytebase.v1.SlowQueryLog">SlowQueryLog</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>The slow query logs. </p></td></tr></tbody>@@ -7929,8 +7325,8 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ChangedResourceTable">ChangedResourceTable</h3>- <p></p>+ <h3 id="bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</h3>+ <p>MaterializedViewMetadata is the metadata for materialized views.</p><table class="field-table">@@ -7943,14 +7339,28 @@ Format: projects/{project}/sheets/{sheet} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name is the name of a materialized view. </p></td></tr><tr>- <td>ranges</td>- <td><a href="#bytebase.v1.Range">Range</a></td>+ <td>definition</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The definition is the definition of a materialized view. </p></td>+ </tr>++ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The comment is the comment of a materialized view. </p></td>+ </tr>++ <tr>+ <td>dependent_columns</td>+ <td><a href="#bytebase.v1.DependentColumn">DependentColumn</a></td><td>repeated</td>- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>+ <td><p>The dependent_columns is the list of dependent columns of a materialized view. </p></td></tr></tbody>@@ -7960,7 +7370,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ChangedResourceView">ChangedResourceView</h3>+ <h3 id="bytebase.v1.ProcedureConfig">ProcedureConfig</h3><p></p>@@ -7974,38 +7384,30 @@ Format: projects/{project}/sheets/{sheet} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name is the name of a procedure. </p></td></tr><tr>- <td>ranges</td>- <td><a href="#bytebase.v1.Range">Range</a></td>- <td>repeated</td>- <td><p>The ranges of sub-strings correspond to the statements on the sheet. </p></td>+ <td>updater</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The last updater of the procedure in branch.+Format: users/{email} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ChangedResources">ChangedResources</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>source_branch</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The last change come from branch.+Format: projcets/{project}/branches/{branch} </p></td>+ </tr><tr>- <td>databases</td>- <td><a href="#bytebase.v1.ChangedResourceDatabase">ChangedResourceDatabase</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The timestamp when the procedure is updated in branch. </p></td></tr></tbody>@@ -8015,8 +7417,8 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</h3>- <p>CheckConstraintMetadata is the metadata for check constraints.</p>+ <h3 id="bytebase.v1.ProcedureMetadata">ProcedureMetadata</h3>+ <p>ProcedureMetadata is the metadata for procedures.</p><table class="field-table">@@ -8029,14 +7431,14 @@ Format: projects/{project}/sheets/{sheet} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a check constraint. </p></td>+ <td><p>The name is the name of a procedure. </p></td></tr><tr>- <td>expression</td>+ <td>definition</td><td><a href="#string">string</a></td><td></td>- <td><p>The expression is the expression of a check constraint. </p></td>+ <td><p>The definition is the definition of a procedure. </p></td></tr></tbody>@@ -8046,7 +7448,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ColumnConfig">ColumnConfig</h3>+ <h3 id="bytebase.v1.SchemaConfig">SchemaConfig</h3><p></p>@@ -8060,27 +7462,35 @@ Format: projects/{project}/sheets/{sheet} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a column. </p></td>+ <td><p>The name is the schema name.+It is an empty string for databases without such concept such as MySQL. </p></td></tr><tr>- <td>semantic_type_id</td>- <td><a href="#string">string</a></td>- <td></td>+ <td>table_configs</td>+ <td><a href="#bytebase.v1.TableConfig">TableConfig</a></td>+ <td>repeated</td>+ <td><p>The table_configs is the list of configs for tables in a schema. </p></td>+ </tr>++ <tr>+ <td>function_configs</td>+ <td><a href="#bytebase.v1.FunctionConfig">FunctionConfig</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>labels</td>- <td><a href="#bytebase.v1.ColumnConfig.LabelsEntry">ColumnConfig.LabelsEntry</a></td>+ <td>procedure_configs</td>+ <td><a href="#bytebase.v1.ProcedureConfig">ProcedureConfig</a></td><td>repeated</td>- <td><p>The user labels for a column. </p></td>+ <td><p> </p></td></tr><tr>- <td>classification_id</td>- <td><a href="#string">string</a></td>- <td></td>+ <td>view_configs</td>+ <td><a href="#bytebase.v1.ViewConfig">ViewConfig</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -8091,8 +7501,8 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ColumnConfig.LabelsEntry">ColumnConfig.LabelsEntry</h3>- <p></p>+ <h3 id="bytebase.v1.SchemaMetadata">SchemaMetadata</h3>+ <p>SchemaMetadata is the metadata for schemas.</p><p>This is the concept of schema in Postgres, but it's a no-op for MySQL.</p><table class="field-table">@@ -8102,17 +7512,67 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name is the schema name.+It is an empty string for databases without such concept such as MySQL. </p></td></tr><tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>tables</td>+ <td><a href="#bytebase.v1.TableMetadata">TableMetadata</a></td>+ <td>repeated</td>+ <td><p>The tables is the list of tables in a schema. </p></td>+ </tr>++ <tr>+ <td>external_tables</td>+ <td><a href="#bytebase.v1.ExternalTableMetadata">ExternalTableMetadata</a></td>+ <td>repeated</td>+ <td><p>The external_tables is the list of external tables in a schema. </p></td>+ </tr>++ <tr>+ <td>views</td>+ <td><a href="#bytebase.v1.ViewMetadata">ViewMetadata</a></td>+ <td>repeated</td>+ <td><p>The views is the list of views in a schema. </p></td>+ </tr>++ <tr>+ <td>functions</td>+ <td><a href="#bytebase.v1.FunctionMetadata">FunctionMetadata</a></td>+ <td>repeated</td>+ <td><p>The functions is the list of functions in a schema. </p></td>+ </tr>++ <tr>+ <td>procedures</td>+ <td><a href="#bytebase.v1.ProcedureMetadata">ProcedureMetadata</a></td>+ <td>repeated</td>+ <td><p>The procedures is the list of procedures in a schema. </p></td>+ </tr>++ <tr>+ <td>streams</td>+ <td><a href="#bytebase.v1.StreamMetadata">StreamMetadata</a></td>+ <td>repeated</td>+ <td><p>The streams is the list of streams in a schema, currently, only used for Snowflake. </p></td>+ </tr>++ <tr>+ <td>tasks</td>+ <td><a href="#bytebase.v1.TaskMetadata">TaskMetadata</a></td>+ <td>repeated</td>+ <td><p>The routines is the list of routines in a schema, currently, only used for Snowflake. </p></td>+ </tr>++ <tr>+ <td>materialized_views</td>+ <td><a href="#bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</a></td>+ <td>repeated</td>+ <td><p>The materialized_views is the list of materialized views in a schema. </p></td></tr></tbody>@@ -8122,8 +7582,8 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.v1.ColumnMetadata">ColumnMetadata</h3>- <p>ColumnMetadata is the metadata for columns.</p>+ <h3 id="bytebase.v1.Secret">Secret</h3>+ <p>Secret is the secret of the database now.</p><table class="field-table">@@ -8136,108 +7596,136 @@ Format: projects/{project}/sheets/{sheet} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a column. </p></td>+ <td><p>name is the unique name of the secret, which is specified by the client.+Format:+instances/{instance}/databases/{database}/secrets/{secret} </p></td></tr><tr>- <td>position</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The position is the position in columns. </p></td>- </tr>-- <tr>- <td>has_default</td>- <td><a href="#bool">bool</a></td>+ <td>created_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used. The timestamp when the secret resource was created initially. </p></td></tr><tr>- <td>default_null</td>- <td><a href="#bool">bool</a></td>+ <td>updated_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p> </p></td>+ <td><p>Not used. The timestamp when the secret resource was updated. </p></td></tr><tr>- <td>default_string</td>+ <td>value</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The value of the secret. </p></td></tr><tr>- <td>default_expression</td>+ <td>description</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The description of the secret. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SlowQueryDetails">SlowQueryDetails</h3>+ <p>SlowQueryDetails is the details of the slow query log.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>on_update</td>- <td><a href="#string">string</a></td>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The start time of the slow query log. </p></td></tr><tr>- <td>nullable</td>- <td><a href="#bool">bool</a></td>+ <td>query_time</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The nullable is the nullable of a column. </p></td>+ <td><p>The query time of the slow query log. </p></td></tr><tr>- <td>type</td>- <td><a href="#string">string</a></td>+ <td>lock_time</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The type is the type of a column. </p></td>+ <td><p>The lock time of the slow query log. </p></td></tr><tr>- <td>character_set</td>- <td><a href="#string">string</a></td>+ <td>rows_sent</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The character_set is the character_set of a column. </p></td>+ <td><p>The rows sent of the slow query log. </p></td></tr><tr>- <td>collation</td>- <td><a href="#string">string</a></td>+ <td>rows_examined</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The collation is the collation of a column. </p></td>+ <td><p>The rows examined of the slow query log. </p></td></tr><tr>- <td>comment</td>+ <td>sql_text</td><td><a href="#string">string</a></td><td></td>- <td><p>The comment is the comment of a column.-classification and user_comment is parsed from the comment. </p></td>+ <td><p>The sql text of the slow query log. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SlowQueryLog">SlowQueryLog</h3>+ <p>SlowQueryLog is the slow query log.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>user_comment</td>+ <td>resource</td><td><a href="#string">string</a></td><td></td>- <td><p>The user_comment is the user comment of a column parsed from the comment. </p></td>+ <td><p>The resource of the slow query log.+The format is "instances/{instance}/databases/{database}". </p></td></tr><tr>- <td>effective_masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>+ <td>project</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The effective_masking_level is the effective masking level of the column, evaluate from the-column masking data and global masking rules. </p></td>+ <td><p>The project of the slow query log.+The format is "projects/{project}". </p></td></tr><tr>- <td>generation</td>- <td><a href="#bytebase.v1.GenerationMetadata">GenerationMetadata</a></td>+ <td>statistics</td>+ <td><a href="#bytebase.v1.SlowQueryStatistics">SlowQueryStatistics</a></td><td></td>- <td><p>The generation is the generation of a column. </p></td>+ <td><p>The statistics of the slow query log. </p></td></tr></tbody>@@ -8247,8 +7735,8 @@ column masking data and global masking rules. </p></td>- <h3 id="bytebase.v1.Database">Database</h3>- <p></p>+ <h3 id="bytebase.v1.SlowQueryStatistics">SlowQueryStatistics</h3>+ <p>SlowQueryStatistics is the statistics of the slow query log.</p><table class="field-table">@@ -8258,78 +7746,87 @@ column masking data and global masking rules. </p></td><tbody><tr>- <td>name</td>+ <td>sql_fingerprint</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database.-Format: instances/{instance}/databases/{database}-{database} is the database name in the instance. </p></td>+ <td><p>The fingerprint of the slow query log. </p></td></tr><tr>- <td>sync_state</td>- <td><a href="#bytebase.v1.State">State</a></td>+ <td>count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The existence of a database on latest sync. </p></td>+ <td><p>The count of the slow query log. </p></td></tr><tr>- <td>successful_sync_time</td>+ <td>latest_log_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The latest synchronization time. </p></td>+ <td><p>The latest log time of the slow query log. </p></td></tr><tr>- <td>project</td>- <td><a href="#string">string</a></td>+ <td>average_query_time</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The project for a database.-Format: projects/{project} </p></td>+ <td><p>The average query time of the slow query log. </p></td></tr><tr>- <td>schema_version</td>- <td><a href="#string">string</a></td>+ <td>maximum_query_time</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The version of database schema. </p></td>+ <td><p>The maximum query time of the slow query log. </p></td></tr><tr>- <td>environment</td>- <td><a href="#string">string</a></td>+ <td>average_rows_sent</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The environment resource.-Format: environments/prod where prod is the environment resource ID. </p></td>+ <td><p>The average rows sent of the slow query log. </p></td></tr><tr>- <td>effective_environment</td>- <td><a href="#string">string</a></td>+ <td>maximum_rows_sent</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The maximum rows sent of the slow query log. </p></td></tr><tr>- <td>labels</td>- <td><a href="#bytebase.v1.Database.LabelsEntry">Database.LabelsEntry</a></td>- <td>repeated</td>- <td><p>Labels will be used for deployment and policy control. </p></td>+ <td>average_rows_examined</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The average rows examined of the slow query log. </p></td></tr><tr>- <td>instance_resource</td>- <td><a href="#bytebase.v1.InstanceResource">InstanceResource</a></td>+ <td>maximum_rows_examined</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The instance resource. </p></td>+ <td><p>The maximum rows examined of the slow query log. </p></td></tr><tr>- <td>backup_available</td>- <td><a href="#bool">bool</a></td>+ <td>query_time_percent</td>+ <td><a href="#double">double</a></td><td></td>- <td><p>The database is available for DML prior backup. </p></td>+ <td><p>The percentage of the query time. </p></td>+ </tr>++ <tr>+ <td>count_percent</td>+ <td><a href="#double">double</a></td>+ <td></td>+ <td><p>The percentage of the count. </p></td>+ </tr>++ <tr>+ <td>samples</td>+ <td><a href="#bytebase.v1.SlowQueryDetails">SlowQueryDetails</a></td>+ <td>repeated</td>+ <td><p>Samples are details of the sample slow query logs with the same fingerprint. </p></td></tr></tbody>@@ -8339,7 +7836,7 @@ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-ove- <h3 id="bytebase.v1.Database.LabelsEntry">Database.LabelsEntry</h3>+ <h3 id="bytebase.v1.StreamMetadata">StreamMetadata</h3><p></p>@@ -8350,17 +7847,59 @@ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-ove<tbody><tr>- <td>key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name is the name of a stream. </p></td></tr><tr>- <td>value</td>+ <td>table_name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The table_name is the name of the table/view that the stream is created on. </p></td>+ </tr>++ <tr>+ <td>owner</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The owner of the stream. </p></td>+ </tr>++ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The comment of the stream. </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.StreamMetadata.Type">StreamMetadata.Type</a></td>+ <td></td>+ <td><p>The type of the stream. </p></td>+ </tr>++ <tr>+ <td>stale</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Indicates whether the stream was last read before the `stale_after` time. </p></td>+ </tr>++ <tr>+ <td>mode</td>+ <td><a href="#bytebase.v1.StreamMetadata.Mode">StreamMetadata.Mode</a></td>+ <td></td>+ <td><p>The mode of the stream. </p></td>+ </tr>++ <tr>+ <td>definition</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The definition of the stream. </p></td></tr></tbody>@@ -8370,7 +7909,7 @@ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-ove- <h3 id="bytebase.v1.DatabaseConfig">DatabaseConfig</h3>+ <h3 id="bytebase.v1.SyncDatabaseRequest">SyncDatabaseRequest</h3><p></p>@@ -8384,14 +7923,8 @@ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-ove<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>schema_configs</td>- <td><a href="#bytebase.v1.SchemaConfig">SchemaConfig</a></td>- <td>repeated</td>- <td><p>The schema_configs is the list of configs for schemas in a database. </p></td>+ <td><p>The name of the database to sync.+Format: instances/{instance}/databases/{database} </p></td></tr></tbody>@@ -8401,8 +7934,15 @@ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-ove- <h3 id="bytebase.v1.DatabaseMetadata">DatabaseMetadata</h3>- <p>DatabaseMetadata is the metadata for databases.</p>+ <h3 id="bytebase.v1.SyncDatabaseResponse">SyncDatabaseResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.TableConfig">TableConfig</h3>+ <p></p><table class="field-table">@@ -8415,44 +7955,44 @@ Inheritance follows https://cloud.google.com/resource-manager/docs/tags/tags-ove<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The database metadata name.--Format: instances/{instance}/databases/{database}/metadata </p></td>+ <td><p>The name is the name of a table. </p></td></tr><tr>- <td>schemas</td>- <td><a href="#bytebase.v1.SchemaMetadata">SchemaMetadata</a></td>+ <td>column_configs</td>+ <td><a href="#bytebase.v1.ColumnConfig">ColumnConfig</a></td><td>repeated</td>- <td><p>The schemas is the list of schemas in a database. </p></td>+ <td><p>The column_configs is the ordered list of configs for columns in a table. </p></td></tr><tr>- <td>character_set</td>+ <td>classification_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The character_set is the character set of a database. </p></td>+ <td><p> </p></td></tr><tr>- <td>collation</td>+ <td>updater</td><td><a href="#string">string</a></td><td></td>- <td><p>The collation is the collation of a database. </p></td>+ <td><p>The last updater of the table in branch.+Format: users/{email} </p></td></tr><tr>- <td>extensions</td>- <td><a href="#bytebase.v1.ExtensionMetadata">ExtensionMetadata</a></td>- <td>repeated</td>- <td><p>The extensions is the list of extensions in a database. </p></td>+ <td>source_branch</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The last change come from branch.+Format: projcets/{project}/branches/{branch} </p></td></tr><tr>- <td>schema_configs</td>- <td><a href="#bytebase.v1.SchemaConfig">SchemaConfig</a></td>- <td>repeated</td>- <td><p>The schema_configs is the list of configs for schemas in a database. </p></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The timestamp when the table is updated in branch. </p></td></tr></tbody>@@ -8462,8 +8002,8 @@ Format: instances/{instance}/databases/{database}/metadata </p></td>- <h3 id="bytebase.v1.DatabaseSchema">DatabaseSchema</h3>- <p>DatabaseSchema is the metadata for databases.</p>+ <h3 id="bytebase.v1.TableMetadata">TableMetadata</h3>+ <p>TableMetadata is the metadata for tables.</p><table class="field-table">@@ -8473,192 +8013,116 @@ Format: instances/{instance}/databases/{database}/metadata </p></td><tbody><tr>- <td>schema</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The schema dump from database. </p></td>+ <td><p>The name is the name of a table. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteSecretRequest">DeleteSecretRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the secret to be deleted.-Format:-instances/{instance}/databases/{database}/secrets/{secret} </p></td>+ <td>columns</td>+ <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>+ <td>repeated</td>+ <td><p>The columns is the ordered list of columns in a table. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DependentColumn">DependentColumn</h3>- <p>DependentColumn is the metadata for dependent columns.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>indexes</td>+ <td><a href="#bytebase.v1.IndexMetadata">IndexMetadata</a></td>+ <td>repeated</td>+ <td><p>The indexes is the list of indexes in a table. </p></td>+ </tr><tr>- <td>schema</td>+ <td>engine</td><td><a href="#string">string</a></td><td></td>- <td><p>The schema is the schema of a reference column. </p></td>+ <td><p>The engine is the engine of a table. </p></td></tr><tr>- <td>table</td>+ <td>collation</td><td><a href="#string">string</a></td><td></td>- <td><p>The table is the table of a reference column. </p></td>+ <td><p>The collation is the collation of a table. </p></td></tr><tr>- <td>column</td>+ <td>charset</td><td><a href="#string">string</a></td><td></td>- <td><p>The column is the name of a reference column. </p></td>+ <td><p>The character set of table. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>row_count</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p>The name of the database or change history.-Format:-database: instances/{instance}/databases/{database}-change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ <td><p>The row_count is the estimated number of rows of a table. </p></td></tr><tr>- <td>schema</td>- <td><a href="#string">string</a></td>+ <td>data_size</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p>The target schema. </p></td>+ <td><p>The data_size is the estimated data size of a table. </p></td></tr><tr>- <td>change_history</td>- <td><a href="#string">string</a></td>+ <td>index_size</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p>The resource name of the change history-Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ <td><p>The index_size is the estimated index size of a table. </p></td></tr><tr>- <td>sdl_format</td>- <td><a href="#bool">bool</a></td>+ <td>data_free</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p>Format the schema dump into SDL format. </p></td>+ <td><p>The data_free is the estimated free data size of a table. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>diff</td>+ <td>create_options</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The create_options is the create option of a table. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ExtensionMetadata">ExtensionMetadata</h3>- <p>ExtensionMetadata is the metadata for extensions.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of an extension. </p></td>+ <td><p>The comment is the comment of a table.+classification and user_comment is parsed from the comment. </p></td></tr><tr>- <td>schema</td>+ <td>user_comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The schema is the extension that is installed to. But the extension usage is not limited to the schema. </p></td>+ <td><p>The user_comment is the user comment of a table parsed from the comment. </p></td></tr><tr>- <td>version</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The version is the version of an extension. </p></td>+ <td>foreign_keys</td>+ <td><a href="#bytebase.v1.ForeignKeyMetadata">ForeignKeyMetadata</a></td>+ <td>repeated</td>+ <td><p>The foreign_keys is the list of foreign keys in a table. </p></td></tr><tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The description is the description of an extension. </p></td>+ <td>partitions</td>+ <td><a href="#bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</a></td>+ <td>repeated</td>+ <td><p>The partitions is the list of partitions in a table. </p></td>+ </tr>++ <tr>+ <td>check_constraints</td>+ <td><a href="#bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</a></td>+ <td>repeated</td>+ <td><p>The check_constraints is the list of check constraints in a table. </p></td></tr></tbody>@@ -8668,8 +8132,8 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory- <h3 id="bytebase.v1.ExternalTableMetadata">ExternalTableMetadata</h3>- <p></p>+ <h3 id="bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</h3>+ <p>TablePartitionMetadata is the metadata for table partitions.</p><table class="field-table">@@ -8682,28 +8146,54 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a external table. </p></td>+ <td><p>The name is the name of a table partition. </p></td></tr><tr>- <td>external_server_name</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.TablePartitionMetadata.Type">TablePartitionMetadata.Type</a></td><td></td>- <td><p>The external_server_name is the name of the external server. </p></td>+ <td><p>The type of a table partition. </p></td></tr><tr>- <td>external_database_name</td>+ <td>expression</td><td><a href="#string">string</a></td><td></td>- <td><p>The external_database_name is the name of the external database. </p></td>- </tr>-- <tr>- <td>columns</td>- <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>+ <td><p>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)} }. </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>use_default</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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}. </p></td>+ </tr>++ <tr>+ <td>subpartitions</td>+ <td><a href="#bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</a></td><td>repeated</td>- <td><p>The columns is the ordered list of columns in a foreign table. </p></td>+ <td><p>The subpartitions is the list of subpartitions in a table partition. </p></td></tr></tbody>@@ -8713,8 +8203,8 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory- <h3 id="bytebase.v1.ForeignKeyMetadata">ForeignKeyMetadata</h3>- <p>ForeignKeyMetadata is the metadata for foreign keys.</p>+ <h3 id="bytebase.v1.TaskMetadata">TaskMetadata</h3>+ <p></p><table class="field-table">@@ -8727,59 +8217,71 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a foreign key. </p></td>+ <td><p>The name is the name of a task. </p></td></tr><tr>- <td>columns</td>+ <td>id</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The columns are the ordered referencing columns of a foreign key. </p></td>+ <td></td>+ <td><p>The id is the snowflake-generated id of a task.+Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td></tr><tr>- <td>referenced_schema</td>+ <td>owner</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The owner of the task. </p></td></tr><tr>- <td>referenced_table</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The referenced_table is the referenced table name of a foreign key. </p></td>+ <td><p>The comment of the task. </p></td></tr><tr>- <td>referenced_columns</td>+ <td>warehouse</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The referenced_columns are the ordered referenced columns of a foreign key. </p></td>+ <td></td>+ <td><p>The warehouse of the task. </p></td></tr><tr>- <td>on_delete</td>+ <td>schedule</td><td><a href="#string">string</a></td><td></td>- <td><p>The on_delete is the on delete action of a foreign key. </p></td>+ <td><p>The schedule interval of the task. </p></td></tr><tr>- <td>on_update</td>+ <td>predecessors</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The predecessor tasks of the task. </p></td>+ </tr>++ <tr>+ <td>state</td>+ <td><a href="#bytebase.v1.TaskMetadata.State">TaskMetadata.State</a></td><td></td>- <td><p>The on_update is the on update action of a foreign key. </p></td>+ <td><p>The state of the task. </p></td></tr><tr>- <td>match_type</td>+ <td>condition</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The condition of the task. </p></td>+ </tr>++ <tr>+ <td>definition</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The definition of the task. </p></td></tr></tbody>@@ -8789,7 +8291,113 @@ It's empty string for other databases. </p></td>- <h3 id="bytebase.v1.FunctionConfig">FunctionConfig</h3>+ <h3 id="bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>database_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td></td>+ <td><p>The database metadata to update.++The database_metadata's `name` field is used to identify the database metadata to update.+Format: instances/{instance}/databases/{database}/metadata </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>database</td>+ <td><a href="#bytebase.v1.Database">Database</a></td>+ <td></td>+ <td><p>The database to update.++The database's `name` field is used to identify the database to update.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateSecretRequest">UpdateSecretRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>secret</td>+ <td><a href="#bytebase.v1.Secret">Secret</a></td>+ <td></td>+ <td><p>The secret to be created or updated. </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The mask of the fields to be updated. </p></td>+ </tr>++ <tr>+ <td>allow_missing</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If true, the secret will be created if it does not exist. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ViewConfig">ViewConfig</h3><p></p>@@ -8803,14 +8411,14 @@ It's empty string for other databases. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a function. </p></td>+ <td><p>The name is the name of a view. </p></td></tr><tr><td>updater</td><td><a href="#string">string</a></td><td></td>- <td><p>The last updater of the function in branch.+ <td><p>The last updater of the view in branch.Format: users/{email} </p></td></tr>@@ -8826,7 +8434,7 @@ Format: projcets/{project}/branches/{branch} </p></td><td>update_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The timestamp when the function is updated in branch. </p></td>+ <td><p>The timestamp when the view is updated in branch. </p></td></tr></tbody>@@ -8836,642 +8444,770 @@ Format: projcets/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.FunctionMetadata">FunctionMetadata</h3>- <p>FunctionMetadata is the metadata for functions.</p>+ <h3 id="bytebase.v1.ViewMetadata">ViewMetadata</h3>+ <p>ViewMetadata is the metadata for views.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name is the name of a view. </p></td>+ </tr>++ <tr>+ <td>definition</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The definition is the definition of a view. </p></td>+ </tr>++ <tr>+ <td>comment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The comment is the comment of a view. </p></td>+ </tr>++ <tr>+ <td>dependent_columns</td>+ <td><a href="#bytebase.v1.DependentColumn">DependentColumn</a></td>+ <td>repeated</td>+ <td><p>The dependent_columns is the list of dependent columns of a view. </p></td>+ </tr>++ <tr>+ <td>columns</td>+ <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>+ <td>repeated</td>+ <td><p>The columns is the ordered list of columns in a table. </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.ChangeHistory.Source">ChangeHistory.Source</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SOURCE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UI</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VCS</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LIBRARY</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ChangeHistory.Status">ChangeHistory.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ChangeHistory.Type">ChangeHistory.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BASELINE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MIGRATE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MIGRATE_SDL</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MIGRATE_GHOST</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BRANCH</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATA</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.ChangeHistoryView">ChangeHistoryView</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>CHANGE_HISTORY_VIEW_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The default / unset value.+The API will default to the BASIC view.</p></td>+ </tr>++ <tr>+ <td>CHANGE_HISTORY_VIEW_BASIC</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CHANGE_HISTORY_VIEW_FULL</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.DatabaseMetadataView">DatabaseMetadataView</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>DATABASE_METADATA_VIEW_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The default and unset value.+The API will default to the BASIC view.</p></td>+ </tr>++ <tr>+ <td>DATABASE_METADATA_VIEW_BASIC</td>+ <td>1</td>+ <td><p>Include basic information of schema object names such as schema, table, view, function names.</p></td>+ </tr>++ <tr>+ <td>DATABASE_METADATA_VIEW_FULL</td>+ <td>2</td>+ <td><p>Include everything such as columns and column masking level.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.GenerationMetadata.Type">GenerationMetadata.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_VIRTUAL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_STORED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.StreamMetadata.Mode">StreamMetadata.Mode</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>MODE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MODE_DEFAULT</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MODE_APPEND_ONLY</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MODE_INSERT_ONLY</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.StreamMetadata.Type">StreamMetadata.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_DELTA</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TablePartitionMetadata.Type">TablePartitionMetadata.Type</h3>+ <p>Type is the type of a table partition, some database engines may not support all types.</p><p>Only avilable for the following database engines now:</p><p>MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)</p><p>TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY</p><p>PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RANGE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RANGE_COLUMNS</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LIST</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LIST_COLUMNS</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>HASH</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LINEAR_HASH</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>KEY</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>LINEAR_KEY</td>+ <td>8</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskMetadata.State">TaskMetadata.State</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>STATE_STARTED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>STATE_SUSPENDED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DatabaseService">DatabaseService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetDatabase</td>+ <td><a href="#bytebase.v1.GetDatabaseRequest">GetDatabaseRequest</a></td>+ <td><a href="#bytebase.v1.Database">Database</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListInstanceDatabases</td>+ <td><a href="#bytebase.v1.ListInstanceDatabasesRequest">ListInstanceDatabasesRequest</a></td>+ <td><a href="#bytebase.v1.ListInstanceDatabasesResponse">ListInstanceDatabasesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListDatabases</td>+ <td><a href="#bytebase.v1.ListDatabasesRequest">ListDatabasesRequest</a></td>+ <td><a href="#bytebase.v1.ListDatabasesResponse">ListDatabasesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateDatabase</td>+ <td><a href="#bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</a></td>+ <td><a href="#bytebase.v1.Database">Database</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchUpdateDatabases</td>+ <td><a href="#bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</a></td>+ <td><a href="#bytebase.v1.BatchUpdateDatabasesResponse">BatchUpdateDatabasesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SyncDatabase</td>+ <td><a href="#bytebase.v1.SyncDatabaseRequest">SyncDatabaseRequest</a></td>+ <td><a href="#bytebase.v1.SyncDatabaseResponse">SyncDatabaseResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetDatabaseMetadata</td>+ <td><a href="#bytebase.v1.GetDatabaseMetadataRequest">GetDatabaseMetadataRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateDatabaseMetadata</td>+ <td><a href="#bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetDatabaseSchema</td>+ <td><a href="#bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseSchema">DatabaseSchema</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DiffSchema</td>+ <td><a href="#bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</a></td>+ <td><a href="#bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListSlowQueries</td>+ <td><a href="#bytebase.v1.ListSlowQueriesRequest">ListSlowQueriesRequest</a></td>+ <td><a href="#bytebase.v1.ListSlowQueriesResponse">ListSlowQueriesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListSecrets</td>+ <td><a href="#bytebase.v1.ListSecretsRequest">ListSecretsRequest</a></td>+ <td><a href="#bytebase.v1.ListSecretsResponse">ListSecretsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateSecret</td>+ <td><a href="#bytebase.v1.UpdateSecretRequest">UpdateSecretRequest</a></td>+ <td><a href="#bytebase.v1.Secret">Secret</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteSecret</td>+ <td><a href="#bytebase.v1.DeleteSecretRequest">DeleteSecretRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>AdviseIndex</td>+ <td><a href="#bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</a></td>+ <td><a href="#bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListChangeHistories</td>+ <td><a href="#bytebase.v1.ListChangeHistoriesRequest">ListChangeHistoriesRequest</a></td>+ <td><a href="#bytebase.v1.ListChangeHistoriesResponse">ListChangeHistoriesResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetChangeHistory</td>+ <td><a href="#bytebase.v1.GetChangeHistoryRequest">GetChangeHistoryRequest</a></td>+ <td><a href="#bytebase.v1.ChangeHistory">ChangeHistory</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the name of a function. </p></td>- </tr>-- <tr>- <td>definition</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The definition is the definition of a function. </p></td>- </tr>-- </tbody>- </table>----- <h3 id="bytebase.v1.GenerationMetadata">GenerationMetadata</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.GenerationMetadata.Type">GenerationMetadata.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>expression</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>----- <h3 id="bytebase.v1.GetChangeHistoryRequest">GetChangeHistoryRequest</h3>- <p></p>--- <table class="field-table">+ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the change history to retrieve.-Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>- </tr>-- <tr>- <td>view</td>- <td><a href="#bytebase.v1.ChangeHistoryView">ChangeHistoryView</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>sdl_format</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Format the schema dump into SDL format. </p></td>- </tr>+ <tr>+ <td>GetDatabase</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/databases/*}</td>+ <td></td>+ </tr>- <tr>- <td>concise</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>When true, the schema dump will be concise. </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.GetDatabaseMetadataRequest">GetDatabaseMetadataRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database to retrieve metadata.-Format: instances/{instance}/databases/{database}/metadata </p></td>- </tr>+ <tr>+ <td>ListInstanceDatabases</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*}/databases</td>+ <td></td>+ </tr>- <tr>- <td>view</td>- <td><a href="#bytebase.v1.DatabaseMetadataView">DatabaseMetadataView</a></td>- <td></td>- <td><p>The view to return. Defaults to DATABASE_METADATA_VIEW_BASIC. </p></td>- </tr>+- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetDatabaseRequest">GetDatabaseRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ListDatabases</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/databases</td>+ <td></td>+ </tr>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database to retrieve.-Format: instances/{instance}/databases/{database} </p></td>- </tr>+ <tr>+ <td>ListDatabases</td>+ <td>GET</td>+ <td>/v1/{parent=workspaces/*}/databases</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database to retrieve schema.-Format: instances/{instance}/databases/{database}/schema </p></td>- </tr>- <tr>- <td>sdl_format</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Format the schema dump into SDL format. </p></td>- </tr>+ <tr>+ <td>UpdateDatabase</td>+ <td>PATCH</td>+ <td>/v1/{database.name=instances/*/databases/*}</td>+ <td>database</td>+ </tr>- <tr>- <td>concise</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>When true, the schema dump will be concise.-For Oracle, there will be tables and indexes only for Sync Schema. </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.IndexMetadata">IndexMetadata</h3>- <p>IndexMetadata is the metadata for indexes.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the name of an index. </p></td>- </tr>+ <tr>+ <td>BatchUpdateDatabases</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*}/databases:batchUpdate</td>+ <td>*</td>+ </tr>- <tr>- <td>expressions</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The expressions are the ordered columns or expressions of an index.-This could refer to a column or an expression. </p></td>- </tr>+- <tr>- <td>key_length</td>- <td><a href="#int64">int64</a></td>- <td>repeated</td>- <td><p>The key_lengths are the ordered key lengths of an index.-If the key length is not specified, it's -1. </p></td>- </tr>- <tr>- <td>descending</td>- <td><a href="#bool">bool</a></td>- <td>repeated</td>- <td><p>The descending is the ordered descending of an index. </p></td>- </tr>+ <tr>+ <td>SyncDatabase</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/databases/*}:sync</td>+ <td>*</td>+ </tr>- <tr>- <td>type</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The type is the type of an index. </p></td>- </tr>+- <tr>- <td>unique</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>The unique is whether the index is unique. </p></td>- </tr>- <tr>- <td>primary</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>The primary is whether the index is a primary key index. </p></td>- </tr>+ <tr>+ <td>GetDatabaseMetadata</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/databases/*/metadata}</td>+ <td></td>+ </tr>- <tr>- <td>visible</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>The visible is whether the index is visible. </p></td>- </tr>+- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The comment is the comment of an index. </p></td>- </tr>- <tr>- <td>definition</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The definition of an index. </p></td>- </tr>+ <tr>+ <td>UpdateDatabaseMetadata</td>+ <td>PATCH</td>+ <td>/v1/{database_metadata.name=instances/*/databases/*/metadata}</td>+ <td>database_metadata</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListChangeHistoriesRequest">ListChangeHistoriesRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent of the change histories.-Format: instances/{instance}/databases/{database} </p></td>- </tr>- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>+ <tr>+ <td>GetDatabaseSchema</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/databases/*/schema}</td>+ <td></td>+ </tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A page token, received from a previous `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. </p></td>- </tr>+- <tr>- <td>view</td>- <td><a href="#bytebase.v1.ChangeHistoryView">ChangeHistoryView</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The filter of the change histories.-follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.-Support filter by type, source or table.-For example:-table = "tableExists('{database}', '{schema}', '{table}')"-table = "tableExists('db', 'public', 'table1') || tableExists('db', 'public', 'table2')"-type = "MIGRATE | DATA"-source = "UI"-source = "VCS"--The table filter 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")-) </p></td>- </tr>+ <tr>+ <td>DiffSchema</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/databases/*}:diffSchema</td>+ <td>*</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListChangeHistoriesResponse">ListChangeHistoriesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>DiffSchema</td>+ <td>POST</td>+ <td>/v1/{name=instances/*/databases/*/changeHistories/*}:diffSchema</td>+ <td>*</td>+ </tr>- <tr>- <td>change_histories</td>- <td><a href="#bytebase.v1.ChangeHistory">ChangeHistory</a></td>- <td>repeated</td>- <td><p>The list of change histories. </p></td>- </tr>+- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListDatabasesRequest">ListDatabasesRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ListSlowQueries</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/slowQueries</td>+ <td></td>+ </tr>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of databases.-- projects/{project}: list all databases in a project.-- workspaces/{workspace}: list all databases in a workspace. </p></td>- </tr>+- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `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. </p></td>- </tr>+ <tr>+ <td>ListSecrets</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*/databases/*}/secrets</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListDatabasesResponse">ListDatabasesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>databases</td>- <td><a href="#bytebase.v1.Database">Database</a></td>- <td>repeated</td>- <td><p>The databases from the specified request. </p></td>- </tr>- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>+ <tr>+ <td>UpdateSecret</td>+ <td>PATCH</td>+ <td>/v1/{secret.name=instances/*/databases/*/secrets/*}</td>+ <td>secret</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListInstanceDatabasesRequest">ListInstanceDatabasesRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of databases.-- instances/{instance}: list all databases for an instance. Use "instances/-" to list all databases. </p></td>- </tr>- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>+ <tr>+ <td>DeleteSecret</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/databases/*/secrets/*}</td>+ <td></td>+ </tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `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. </p></td>- </tr>+- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Deprecated.-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. </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListInstanceDatabasesResponse">ListInstanceDatabasesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>AdviseIndex</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*/databases/*}:adviseIndex</td>+ <td></td>+ </tr>- <tr>- <td>databases</td>- <td><a href="#bytebase.v1.Database">Database</a></td>- <td>repeated</td>- <td><p>The databases from the specified request. </p></td>- </tr>+- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListSecretsRequest">ListSecretsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>ListChangeHistories</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*/databases/*}/changeHistories</td>+ <td></td>+ </tr>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent of the secret.-Format: instances/{instance}/databases/{database} </p></td>- </tr>+- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Not used. The maximum number of 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. </p></td>- </tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Not used. A page token, received from a previous `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. </p></td>- </tr>+ <tr>+ <td>GetChangeHistory</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/databases/*/changeHistories/*}</td>+ <td></td>+ </tr>+</tbody></table>-++++ <div class="file-heading">+ <h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>-- <h3 id="bytebase.v1.ListSecretsResponse">ListSecretsResponse</h3>+ <h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</h3><p></p>@@ -9482,18 +9218,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>secrets</td>- <td><a href="#bytebase.v1.Secret">Secret</a></td>+ <td>steps</td>+ <td><a href="#bytebase.v1.ApprovalStep">ApprovalStep</a></td><td>repeated</td>- <td><p>The list of secrets. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9503,8 +9231,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListSlowQueriesRequest">ListSlowQueriesRequest</h3>- <p>ListSlowQueriesRequest is the request of listing slow query.</p>+ <h3 id="bytebase.v1.ApprovalNode">ApprovalNode</h3>+ <p></p><table class="field-table">@@ -9514,63 +9242,31 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</a></td><td></td>- <td><p>Format: projects/{project} </p></td>+ <td><p> </p></td></tr><tr>- <td>filter</td>- <td><a href="#string">string</a></td>+ <td>group_value</td>+ <td><a href="#bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td><td></td>- <td><p>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 database and start_time in SlowQueryDetails for now.-For example:-Search the slow query log of the specific database:- - the specific database: database = "instances/{instance}/databases/{database}"-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. </p></td>+ <td><p> </p></td></tr><tr>- <td>order_by</td>+ <td>role</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>Format: roles/{role} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ListSlowQueriesResponse">ListSlowQueriesResponse</h3>- <p>ListSlowQueriesResponse is the response of listing slow query.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>slow_query_logs</td>- <td><a href="#bytebase.v1.SlowQueryLog">SlowQueryLog</a></td>- <td>repeated</td>- <td><p>The slow query logs. </p></td>+ <td>external_node_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -9580,8 +9276,8 @@ Default: order by average_query_time desc. </p></td>- <h3 id="bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</h3>- <p>MaterializedViewMetadata is the metadata for materialized views.</p>+ <h3 id="bytebase.v1.ApprovalStep">ApprovalStep</h3>+ <p></p><table class="field-table">@@ -9591,31 +9287,17 @@ Default: order by average_query_time desc. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the name of a materialized view. </p></td>- </tr>-- <tr>- <td>definition</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The definition is the definition of a materialized view. </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</a></td><td></td>- <td><p>The comment is the comment of a materialized view. </p></td>+ <td><p> </p></td></tr><tr>- <td>dependent_columns</td>- <td><a href="#bytebase.v1.DependentColumn">DependentColumn</a></td>+ <td>nodes</td>+ <td><a href="#bytebase.v1.ApprovalNode">ApprovalNode</a></td><td>repeated</td>- <td><p>The dependent_columns is the list of dependent columns of a materialized view. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9625,7 +9307,7 @@ Default: order by average_query_time desc. </p></td>- <h3 id="bytebase.v1.ProcedureConfig">ProcedureConfig</h3>+ <h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</h3><p></p>@@ -9636,33 +9318,32 @@ Default: order by average_query_time desc. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>flow</td>+ <td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td><td></td>- <td><p>The name is the name of a procedure. </p></td>+ <td><p> </p></td></tr><tr>- <td>updater</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The last updater of the procedure in branch.-Format: users/{email} </p></td>+ <td><p> </p></td></tr><tr>- <td>source_branch</td>+ <td>description</td><td><a href="#string">string</a></td><td></td>- <td><p>The last change come from branch.-Format: projcets/{project}/branches/{branch} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>creator</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The timestamp when the procedure is updated in branch. </p></td>+ <td><p>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. </p></td></tr></tbody>@@ -9672,8 +9353,8 @@ Format: projcets/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.ProcedureMetadata">ProcedureMetadata</h3>- <p>ProcedureMetadata is the metadata for procedures.</p>+ <h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</h3>+ <p></p><table class="field-table">@@ -9686,14 +9367,15 @@ Format: projcets/{project}/branches/{branch} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a procedure. </p></td>+ <td><p>The name of the issue to add an approver.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>definition</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The definition is the definition of a procedure. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9703,7 +9385,7 @@ Format: projcets/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.SchemaConfig">SchemaConfig</h3>+ <h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</h3><p></p>@@ -9714,38 +9396,34 @@ Format: projcets/{project}/branches/{branch} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the schema name.-It is an empty string for databases without such concept such as MySQL. </p></td>- </tr>-- <tr>- <td>table_configs</td>- <td><a href="#bytebase.v1.TableConfig">TableConfig</a></td>- <td>repeated</td>- <td><p>The table_configs is the list of configs for tables in a schema. </p></td>+ <td><p>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. </p></td></tr><tr>- <td>function_configs</td>- <td><a href="#bytebase.v1.FunctionConfig">FunctionConfig</a></td>+ <td>issues</td>+ <td><a href="#string">string</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>The list of issues to update.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>procedure_configs</td>- <td><a href="#bytebase.v1.ProcedureConfig">ProcedureConfig</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td></td>+ <td><p>The new status. </p></td></tr><tr>- <td>view_configs</td>- <td><a href="#bytebase.v1.ViewConfig">ViewConfig</a></td>- <td>repeated</td>+ <td>reason</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr>@@ -9756,8 +9434,15 @@ It is an empty string for databases without such concept such as MySQL. </p></td- <h3 id="bytebase.v1.SchemaMetadata">SchemaMetadata</h3>- <p>SchemaMetadata is the metadata for schemas.</p><p>This is the concept of schema in Postgres, but it's a no-op for MySQL.</p>+ <h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3>+ <p></p><table class="field-table">@@ -9767,67 +9452,18 @@ It is an empty string for databases without such concept such as MySQL. </p></td<tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the schema name.-It is an empty string for databases without such concept such as MySQL. </p></td>- </tr>-- <tr>- <td>tables</td>- <td><a href="#bytebase.v1.TableMetadata">TableMetadata</a></td>- <td>repeated</td>- <td><p>The tables is the list of tables in a schema. </p></td>- </tr>-- <tr>- <td>external_tables</td>- <td><a href="#bytebase.v1.ExternalTableMetadata">ExternalTableMetadata</a></td>- <td>repeated</td>- <td><p>The external_tables is the list of external tables in a schema. </p></td>- </tr>-- <tr>- <td>views</td>- <td><a href="#bytebase.v1.ViewMetadata">ViewMetadata</a></td>- <td>repeated</td>- <td><p>The views is the list of views in a schema. </p></td>- </tr>-- <tr>- <td>functions</td>- <td><a href="#bytebase.v1.FunctionMetadata">FunctionMetadata</a></td>- <td>repeated</td>- <td><p>The functions is the list of functions in a schema. </p></td>- </tr>-- <tr>- <td>procedures</td>- <td><a href="#bytebase.v1.ProcedureMetadata">ProcedureMetadata</a></td>- <td>repeated</td>- <td><p>The procedures is the list of procedures in a schema. </p></td>- </tr>-- <tr>- <td>streams</td>- <td><a href="#bytebase.v1.StreamMetadata">StreamMetadata</a></td>- <td>repeated</td>- <td><p>The streams is the list of streams in a schema, currently, only used for Snowflake. </p></td>- </tr>-- <tr>- <td>tasks</td>- <td><a href="#bytebase.v1.TaskMetadata">TaskMetadata</a></td>- <td>repeated</td>- <td><p>The routines is the list of routines in a schema, currently, only used for Snowflake. </p></td>+ <td><p>The issue name+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>materialized_views</td>- <td><a href="#bytebase.v1.MaterializedViewMetadata">MaterializedViewMetadata</a></td>- <td>repeated</td>- <td><p>The materialized_views is the list of materialized views in a schema. </p></td>+ <td>issue_comment</td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -9837,8 +9473,8 @@ It is an empty string for databases without such concept such as MySQL. </p></td- <h3 id="bytebase.v1.Secret">Secret</h3>- <p>Secret is the secret of the database now.</p>+ <h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</h3>+ <p></p><table class="field-table">@@ -9848,40 +9484,50 @@ It is an empty string for databases without such concept such as MySQL. </p></td<tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>name is the unique name of the secret, which is specified by the client.-Format:-instances/{instance}/databases/{database}/secrets/{secret} </p></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project} </p></td></tr><tr>- <td>created_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>issue</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td><td></td>- <td><p>Not used. The timestamp when the secret resource was created initially. </p></td>+ <td><p>The issue to create. </p></td></tr>- <tr>- <td>updated_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>Not used. The timestamp when the secret resource was updated. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>value</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The value of the secret. </p></td>+ <td><p>The name of the issue to retrieve.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>description</td>- <td><a href="#string">string</a></td>+ <td>force</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The description of the secret. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9891,8 +9537,8 @@ instances/{instance}/databases/{database}/secrets/{secret} </p></td>- <h3 id="bytebase.v1.SlowQueryDetails">SlowQueryDetails</h3>- <p>SlowQueryDetails is the details of the slow query log.</p>+ <h3 id="bytebase.v1.GrantRequest">GrantRequest</h3>+ <p></p><table class="field-table">@@ -9902,45 +9548,33 @@ instances/{instance}/databases/{database}/secrets/{secret} </p></td><tbody><tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The start time of the slow query log. </p></td>- </tr>-- <tr>- <td>query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The query time of the slow query log. </p></td>- </tr>-- <tr>- <td>lock_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>role</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The lock time of the slow query log. </p></td>+ <td><p>The requested role.+Format: roles/EXPORTER. </p></td></tr><tr>- <td>rows_sent</td>- <td><a href="#int32">int32</a></td>+ <td>user</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The rows sent of the slow query log. </p></td>+ <td><p>The user to be granted.+Format: users/{email}. </p></td></tr><tr>- <td>rows_examined</td>- <td><a href="#int32">int32</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>The rows examined of the slow query log. </p></td>+ <td><p> </p></td></tr><tr>- <td>sql_text</td>- <td><a href="#string">string</a></td>+ <td>expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>The sql text of the slow query log. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9950,8 +9584,8 @@ instances/{instance}/databases/{database}/secrets/{secret} </p></td>- <h3 id="bytebase.v1.SlowQueryLog">SlowQueryLog</h3>- <p>SlowQueryLog is the slow query log.</p>+ <h3 id="bytebase.v1.Issue">Issue</h3>+ <p></p><table class="field-table">@@ -9961,127 +9595,228 @@ instances/{instance}/databases/{database}/secrets/{secret} </p></td><tbody><tr>- <td>resource</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource of the slow query log.-The format is "instances/{instance}/databases/{database}". </p></td>+ <td><p>The name of the issue.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>project</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The project of the slow query log.-The format is "projects/{project}". </p></td>+ <td><p> </p></td></tr><tr>- <td>statistics</td>- <td><a href="#bytebase.v1.SlowQueryStatistics">SlowQueryStatistics</a></td>+ <td>description</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The statistics of the slow query log. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SlowQueryStatistics">SlowQueryStatistics</h3>- <p>SlowQueryStatistics is the statistics of the slow query log.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>sql_fingerprint</td>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>approvers</td>+ <td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>approval_templates</td>+ <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>approval_finding_done</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>approval_finding_error</td><td><a href="#string">string</a></td><td></td>- <td><p>The fingerprint of the slow query log. </p></td>+ <td><p> </p></td></tr><tr>- <td>count</td>- <td><a href="#int32">int32</a></td>+ <td>subscribers</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The subscribers.+Format: users/[email protected] </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The count of the slow query log. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>latest_log_time</td>+ <td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The latest log time of the slow query log. </p></td>+ <td><p> </p></td></tr><tr>- <td>average_query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The average query time of the slow query log. </p></td>+ <td><p> </p></td></tr><tr>- <td>maximum_query_time</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>plan</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The maximum query time of the slow query log. </p></td>+ <td><p>The plan associated with the issue.+Can be empty.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>++ <tr>+ <td>rollout</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The rollout associated with the issue.+Can be empty.+Format: projects/{project}/rollouts/{rollout} </p></td>+ </tr>++ <tr>+ <td>grant_request</td>+ <td><a href="#bytebase.v1.GrantRequest">GrantRequest</a></td>+ <td></td>+ <td><p>Used if the issue type is GRANT_REQUEST. </p></td>+ </tr>++ <tr>+ <td>releasers</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>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} </p></td>+ </tr>++ <tr>+ <td>risk_level</td>+ <td><a href="#bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>task_status_count</td>+ <td><a href="#bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</a></td>+ <td>repeated</td>+ <td><p>The status count of the issue.+Keys are the following:+- NOT_STARTED+- SKIPPED+- PENDING+- RUNNING+- DONE+- FAILED+- CANCELED </p></td></tr><tr>- <td>average_rows_sent</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The average rows sent of the slow query log. </p></td>+ <td>labels</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>- <tr>- <td>maximum_rows_sent</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum rows sent of the slow query log. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Issue.Approver">Issue.Approver</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>average_rows_examined</td>- <td><a href="#int32">int32</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td><td></td>- <td><p>The average rows examined of the slow query log. </p></td>+ <td><p>The new status. </p></td></tr><tr>- <td>maximum_rows_examined</td>- <td><a href="#int32">int32</a></td>+ <td>principal</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The maximum rows examined of the slow query log. </p></td>+ <td><p>Format: users/[email protected] </p></td></tr>- <tr>- <td>query_time_percent</td>- <td><a href="#double">double</a></td>- <td></td>- <td><p>The percentage of the query time. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>count_percent</td>- <td><a href="#double">double</a></td>+ <td>key</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The percentage of the count. </p></td>+ <td><p> </p></td></tr><tr>- <td>samples</td>- <td><a href="#bytebase.v1.SlowQueryDetails">SlowQueryDetails</a></td>- <td>repeated</td>- <td><p>Samples are details of the sample slow query logs with the same fingerprint. </p></td>+ <td>value</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -10091,7 +9826,7 @@ The format is "projects/{project}". </p></td>- <h3 id="bytebase.v1.StreamMetadata">StreamMetadata</h3>+ <h3 id="bytebase.v1.IssueComment">IssueComment</h3><p></p>@@ -10105,56 +9840,77 @@ The format is "projects/{project}". </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a stream. </p></td>+ <td><p>Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid} </p></td></tr><tr>- <td>table_name</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The table_name is the name of the table/view that the stream is created on. </p></td>+ <td><p> </p></td></tr><tr>- <td>owner</td>+ <td>payload</td><td><a href="#string">string</a></td><td></td>- <td><p>The owner of the stream. </p></td>+ <td><p>TODO: use struct message instead. </p></td></tr><tr>- <td>comment</td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>creator</td><td><a href="#string">string</a></td><td></td>- <td><p>The comment of the stream. </p></td>+ <td><p>Format: users/{email} </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.StreamMetadata.Type">StreamMetadata.Type</a></td>+ <td>approval</td>+ <td><a href="#bytebase.v1.IssueComment.Approval">IssueComment.Approval</a></td><td></td>- <td><p>The type of the stream. </p></td>+ <td><p> </p></td></tr><tr>- <td>stale</td>- <td><a href="#bool">bool</a></td>+ <td>issue_update</td>+ <td><a href="#bytebase.v1.IssueComment.IssueUpdate">IssueComment.IssueUpdate</a></td><td></td>- <td><p>Indicates whether the stream was last read before the `stale_after` time. </p></td>+ <td><p> </p></td></tr><tr>- <td>mode</td>- <td><a href="#bytebase.v1.StreamMetadata.Mode">StreamMetadata.Mode</a></td>+ <td>stage_end</td>+ <td><a href="#bytebase.v1.IssueComment.StageEnd">IssueComment.StageEnd</a></td><td></td>- <td><p>The mode of the stream. </p></td>+ <td><p> </p></td></tr><tr>- <td>definition</td>- <td><a href="#string">string</a></td>+ <td>task_update</td>+ <td><a href="#bytebase.v1.IssueComment.TaskUpdate">IssueComment.TaskUpdate</a></td><td></td>- <td><p>The definition of the stream. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>task_prior_backup</td>+ <td><a href="#bytebase.v1.IssueComment.TaskPriorBackup">IssueComment.TaskPriorBackup</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -10164,7 +9920,7 @@ The format is "projects/{project}". </p></td>- <h3 id="bytebase.v1.SyncDatabaseRequest">SyncDatabaseRequest</h3>+ <h3 id="bytebase.v1.IssueComment.Approval">IssueComment.Approval</h3><p></p>@@ -10175,11 +9931,10 @@ The format is "projects/{project}". </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.IssueComment.Approval.Status">IssueComment.Approval.Status</a></td><td></td>- <td><p>The name of the database to sync.-Format: instances/{instance}/databases/{database} </p></td>+ <td><p> </p></td></tr></tbody>@@ -10189,14 +9944,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.SyncDatabaseResponse">SyncDatabaseResponse</h3>- <p></p>------ <h3 id="bytebase.v1.TableConfig">TableConfig</h3>+ <h3 id="bytebase.v1.IssueComment.IssueUpdate">IssueComment.IssueUpdate</h3><p></p>@@ -10207,47 +9955,59 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>name</td>+ <td>from_title</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the name of a table. </p></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>column_configs</td>- <td><a href="#bytebase.v1.ColumnConfig">ColumnConfig</a></td>- <td>repeated</td>- <td><p>The column_configs is the ordered list of configs for columns in a table. </p></td>+ <td>to_title</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>classification_id</td>+ <td>from_description</td><td><a href="#string">string</a></td>- <td></td>+ <td>optional</td><td><p> </p></td></tr><tr>- <td>updater</td>+ <td>to_description</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The last updater of the table in branch.-Format: users/{email} </p></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>source_branch</td>+ <td>from_status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>to_status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>from_labels</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The last change come from branch.-Format: projcets/{project}/branches/{branch} </p></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The timestamp when the table is updated in branch. </p></td>+ <td>to_labels</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -10257,8 +10017,8 @@ Format: projcets/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.TableMetadata">TableMetadata</h3>- <p>TableMetadata is the metadata for tables.</p>+ <h3 id="bytebase.v1.IssueComment.StageEnd">IssueComment.StageEnd</h3>+ <p></p><table class="field-table">@@ -10268,116 +10028,152 @@ Format: projcets/{project}/branches/{branch} </p></td><tbody><tr>- <td>name</td>+ <td>stage</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a table. </p></td>+ <td><p> </p></td></tr>- <tr>- <td>columns</td>- <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>- <td>repeated</td>- <td><p>The columns is the ordered list of columns in a table. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.IssueComment.TaskPriorBackup">IssueComment.TaskPriorBackup</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>indexes</td>- <td><a href="#bytebase.v1.IndexMetadata">IndexMetadata</a></td>- <td>repeated</td>- <td><p>The indexes is the list of indexes in a table. </p></td>+ <td>task</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>engine</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The engine is the engine of a table. </p></td>+ <td>tables</td>+ <td><a href="#bytebase.v1.IssueComment.TaskPriorBackup.Table">IssueComment.TaskPriorBackup.Table</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>collation</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The collation is the collation of a table. </p></td>+ <td>original_line</td>+ <td><a href="#int32">int32</a></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>charset</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p>The character set of table. </p></td>+ <td><p> </p></td></tr><tr>- <td>row_count</td>- <td><a href="#int64">int64</a></td>+ <td>error</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The row_count is the estimated number of rows of a table. </p></td>+ <td><p> </p></td></tr>- <tr>- <td>data_size</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p>The data_size is the estimated data size of a table. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.IssueComment.TaskPriorBackup.Table">IssueComment.TaskPriorBackup.Table</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>index_size</td>- <td><a href="#int64">int64</a></td>+ <td>schema</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The index_size is the estimated index size of a table. </p></td>+ <td><p> </p></td></tr><tr>- <td>data_free</td>- <td><a href="#int64">int64</a></td>+ <td>table</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The data_free is the estimated free data size of a table. </p></td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.IssueComment.TaskUpdate">IssueComment.TaskUpdate</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>create_options</td>+ <td>tasks</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The create_options is the create option of a table. </p></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>comment</td>+ <td>from_sheet</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The comment is the comment of a table.-classification and user_comment is parsed from the comment. </p></td>+ <td>optional</td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>user_comment</td>+ <td>to_sheet</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The user_comment is the user comment of a table parsed from the comment. </p></td>+ <td>optional</td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>foreign_keys</td>- <td><a href="#bytebase.v1.ForeignKeyMetadata">ForeignKeyMetadata</a></td>- <td>repeated</td>- <td><p>The foreign_keys is the list of foreign keys in a table. </p></td>+ <td>from_earliest_allowed_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>partitions</td>- <td><a href="#bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</a></td>- <td>repeated</td>- <td><p>The partitions is the list of partitions in a table. </p></td>+ <td>to_earliest_allowed_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>check_constraints</td>- <td><a href="#bytebase.v1.CheckConstraintMetadata">CheckConstraintMetadata</a></td>- <td>repeated</td>- <td><p>The check_constraints is the list of check constraints in a table. </p></td>+ <td>to_status</td>+ <td><a href="#bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</a></td>+ <td>optional</td>+ <td><p> </p></td></tr></tbody>@@ -10387,8 +10183,8 @@ classification and user_comment is parsed from the comment. </p></td>- <h3 id="bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</h3>- <p>TablePartitionMetadata is the metadata for table partitions.</p>+ <h3 id="bytebase.v1.ListIssueCommentsRequest">ListIssueCommentsRequest</h3>+ <p></p><table class="field-table">@@ -10398,57 +10194,63 @@ classification and user_comment is parsed from the comment. </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a table partition. </p></td>+ <td><p>Format: projects/{projects}/issues/{issue} </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.TablePartitionMetadata.Type">TablePartitionMetadata.Type</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The type of a table partition. </p></td>+ <td><p>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. </p></td></tr><tr>- <td>expression</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>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)} }. </p></td>+ <td><p>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. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListIssueCommentsResponse">ListIssueCommentsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>+ <td>issue_comments</td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>use_default</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>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}. </p></td>- </tr>-- <tr>- <td>subpartitions</td>- <td><a href="#bytebase.v1.TablePartitionMetadata">TablePartitionMetadata</a></td>- <td>repeated</td>- <td><p>The subpartitions is the list of subpartitions in a table partition. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -10458,7 +10260,7 @@ For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it- <h3 id="bytebase.v1.TaskMetadata">TaskMetadata</h3>+ <h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3><p></p>@@ -10469,74 +10271,78 @@ For MySQL, it's [INT] type, 0 means not use default partition, otherwise, it<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the name of a task. </p></td>- </tr>-- <tr>- <td>id</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The id is the snowflake-generated id of a task.-Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project} </p></td></tr><tr>- <td>owner</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The owner of the task. </p></td>+ <td><p>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. </p></td></tr><tr>- <td>comment</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The comment of the task. </p></td>+ <td><p>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. </p></td></tr><tr>- <td>warehouse</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>The warehouse of the task. </p></td>+ <td><p>Filter is used to filter issues returned in the list. </p></td></tr><tr>- <td>schedule</td>+ <td>query</td><td><a href="#string">string</a></td><td></td>- <td><p>The schedule interval of the task. </p></td>- </tr>-- <tr>- <td>predecessors</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The predecessor tasks of the task. </p></td>+ <td><p>Query is the query statement. </p></td></tr>- <tr>- <td>state</td>- <td><a href="#bytebase.v1.TaskMetadata.State">TaskMetadata.State</a></td>- <td></td>- <td><p>The state of the task. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>condition</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The condition of the task. </p></td>+ <td>issues</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>repeated</td>+ <td><p>The issues from the specified request. </p></td></tr><tr>- <td>definition</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The definition of the task. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -10546,7 +10352,7 @@ Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td>- <h3 id="bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</h3>+ <h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</h3><p></p>@@ -10557,20 +10363,18 @@ Example: 01ad32a0-1bb6-5e93-0000-000000000001 </p></td><tbody><tr>- <td>database_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The database metadata to update.--The database_metadata's `name` field is used to identify the database metadata to update.-Format: instances/{instance}/databases/{database}/metadata </p></td>+ <td><p>The name of the issue to add an rejection.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>comment</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -10580,7 +10384,7 @@ Format: instances/{instance}/databases/{database}/metadata </p></td>- <h3 id="bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</h3>+ <h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3><p></p>@@ -10591,20 +10395,18 @@ Format: instances/{instance}/databases/{database}/metadata </p></td><tbody><tr>- <td>database</td>- <td><a href="#bytebase.v1.Database">Database</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The database to update.--The database's `name` field is used to identify the database to update.-Format: instances/{instance}/databases/{database} </p></td>+ <td><p>The name of the issue to request a issue.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>comment</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -10614,7 +10416,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.UpdateSecretRequest">UpdateSecretRequest</h3>+ <h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</h3><p></p>@@ -10625,24 +10427,47 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>secret</td>- <td><a href="#bytebase.v1.Secret">Secret</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The secret to be created or updated. </p></td>+ <td><p>The parent, which owns this collection of issues.+Format: projects/{project}+Use "projects/-" to list all issues from all projects. </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The mask of the fields to be updated. </p></td>+ <td><p>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. </p></td></tr><tr>- <td>allow_missing</td>- <td><a href="#bool">bool</a></td>+ <td>page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>If true, the secret will be created if it does not exist. </p></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Filter is used to filter issues returned in the list. </p></td>+ </tr>++ <tr>+ <td>query</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Query is the query statement. </p></td></tr></tbody>@@ -10652,7 +10477,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.ViewConfig">ViewConfig</h3>+ <h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</h3><p></p>@@ -10663,33 +10488,18 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name is the name of a view. </p></td>- </tr>-- <tr>- <td>updater</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The last updater of the view in branch.-Format: users/{email} </p></td>+ <td>issues</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>repeated</td>+ <td><p>The issues from the specified request. </p></td></tr><tr>- <td>source_branch</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The last change come from branch.-Format: projcets/{project}/branches/{branch} </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The timestamp when the view is updated in branch. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -10699,8 +10509,8 @@ Format: projcets/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.ViewMetadata">ViewMetadata</h3>- <p>ViewMetadata is the metadata for views.</p>+ <h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3>+ <p></p><table class="field-table">@@ -10710,38 +10520,59 @@ Format: projcets/{project}/branches/{branch} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name is the name of a view. </p></td>+ <td><p>The issue name+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>definition</td>- <td><a href="#string">string</a></td>+ <td>issue_comment</td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td></td>- <td><p>The definition is the definition of a view. </p></td>+ <td><p> </p></td></tr><tr>- <td>comment</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>The comment is the comment of a view. </p></td>+ <td><p>The list of fields to update. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>dependent_columns</td>- <td><a href="#bytebase.v1.DependentColumn">DependentColumn</a></td>- <td>repeated</td>- <td><p>The dependent_columns is the list of dependent columns of a view. </p></td>+ <td>issue</td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td></td>+ <td><p>The issue to update.++The issue's `name` field is used to identify the issue to update.+Format: projects/{project}/issues/{issue} </p></td></tr><tr>- <td>columns</td>- <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>- <td>repeated</td>- <td><p>The columns is the ordered list of columns in a table. </p></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -10753,78 +10584,8 @@ Format: projcets/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.ChangeHistory.Source">ChangeHistory.Source</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SOURCE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>UI</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>VCS</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>LIBRARY</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.ChangeHistory.Status">ChangeHistory.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.ChangeHistory.Type">ChangeHistory.Type</h3>- <p></p>+ <h3 id="bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>+ <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -10832,52 +10593,63 @@ Format: projcets/{project}/branches/{branch} </p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>GROUP_VALUE_UNSPECIFILED</td><td>0</td><td><p></p></td></tr><tr>- <td>BASELINE</td>+ <td>WORKSPACE_OWNER</td><td>1</td><td><p></p></td></tr><tr>- <td>MIGRATE</td>+ <td>WORKSPACE_DBA</td><td>2</td><td><p></p></td></tr><tr>- <td>MIGRATE_SDL</td>+ <td>PROJECT_OWNER</td><td>3</td><td><p></p></td></tr><tr>- <td>MIGRATE_GHOST</td>+ <td>PROJECT_MEMBER</td><td>4</td><td><p></p></td></tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</h3>+ <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>BRANCH</td>- <td>5</td>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>DATA</td>- <td>6</td>+ <td>ANY_IN_GROUP</td>+ <td>1</td><td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.ChangeHistoryView">ChangeHistoryView</h3>- <p></p>+ <h3 id="bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</h3>+ <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -10885,20 +10657,19 @@ Format: projcets/{project}/branches/{branch} </p></td><tbody><tr>- <td>CHANGE_HISTORY_VIEW_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td>- <td><p>The default / unset value.-The API will default to the BASIC view.</p></td>+ <td><p></p></td></tr><tr>- <td>CHANGE_HISTORY_VIEW_BASIC</td>+ <td>ALL</td><td>1</td><td><p></p></td></tr><tr>- <td>CHANGE_HISTORY_VIEW_FULL</td>+ <td>ANY</td><td>2</td><td><p></p></td></tr>@@ -10906,7 +10677,7 @@ The API will default to the BASIC view.</p></td></tbody></table>- <h3 id="bytebase.v1.DatabaseMetadataView">DatabaseMetadataView</h3>+ <h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3><p></p><table class="enum-table"><thead>@@ -10915,28 +10686,33 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>DATABASE_METADATA_VIEW_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td>- <td><p>The default and unset value.-The API will default to the BASIC view.</p></td>+ <td><p></p></td></tr><tr>- <td>DATABASE_METADATA_VIEW_BASIC</td>+ <td>PENDING</td><td>1</td>- <td><p>Include basic information of schema object names such as schema, table, view, function names.</p></td>+ <td><p></p></td></tr><tr>- <td>DATABASE_METADATA_VIEW_FULL</td>+ <td>APPROVED</td><td>2</td>- <td><p>Include everything such as columns and column masking level.</p></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REJECTED</td>+ <td>3</td>+ <td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.GenerationMetadata.Type">GenerationMetadata.Type</h3>+ <h3 id="bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</h3><p></p><table class="enum-table"><thead>@@ -10945,27 +10721,33 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>RISK_LEVEL_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>TYPE_VIRTUAL</td>+ <td>LOW</td><td>1</td><td><p></p></td></tr><tr>- <td>TYPE_STORED</td>+ <td>MODERATE</td><td>2</td><td><p></p></td></tr>+ <tr>+ <td>HIGH</td>+ <td>3</td>+ <td><p></p></td>+ </tr>+</tbody></table>- <h3 id="bytebase.v1.StreamMetadata.Mode">StreamMetadata.Mode</h3>+ <h3 id="bytebase.v1.Issue.Type">Issue.Type</h3><p></p><table class="enum-table"><thead>@@ -10974,25 +10756,25 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>MODE_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>MODE_DEFAULT</td>+ <td>DATABASE_CHANGE</td><td>1</td><td><p></p></td></tr><tr>- <td>MODE_APPEND_ONLY</td>+ <td>GRANT_REQUEST</td><td>2</td><td><p></p></td></tr><tr>- <td>MODE_INSERT_ONLY</td>+ <td>DATABASE_DATA_EXPORT</td><td>3</td><td><p></p></td></tr>@@ -11000,7 +10782,7 @@ The API will default to the BASIC view.</p></td></tbody></table>- <h3 id="bytebase.v1.StreamMetadata.Type">StreamMetadata.Type</h3>+ <h3 id="bytebase.v1.IssueComment.Approval.Status">IssueComment.Approval.Status</h3><p></p><table class="enum-table"><thead>@@ -11009,22 +10791,34 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>TYPE_DELTA</td>+ <td>PENDING</td><td>1</td><td><p></p></td></tr>+ <tr>+ <td>APPROVED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>REJECTED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>+</tbody></table>- <h3 id="bytebase.v1.TablePartitionMetadata.Type">TablePartitionMetadata.Type</h3>- <p>Type is the type of a table partition, some database engines may not support all types.</p><p>Only avilable for the following database engines now:</p><p>MySQL: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, LINEAR HASH, KEY, LINEAR_KEY (https://dev.mysql.com/doc/refman/8.0/en/partitioning-types.html)</p><p>TiDB: RANGE, RANGE COLUMNS, LIST, LIST COLUMNS, HASH, KEY</p><p>PostgreSQL: RANGE, LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)</p>+ <h3 id="bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</h3>+ <p></p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -11032,63 +10826,51 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>RANGE</td>+ <td>PENDING</td><td>1</td><td><p></p></td></tr><tr>- <td>RANGE_COLUMNS</td>+ <td>RUNNING</td><td>2</td><td><p></p></td></tr><tr>- <td>LIST</td>+ <td>DONE</td><td>3</td><td><p></p></td></tr><tr>- <td>LIST_COLUMNS</td>+ <td>FAILED</td><td>4</td><td><p></p></td></tr><tr>- <td>HASH</td>+ <td>SKIPPED</td><td>5</td><td><p></p></td></tr><tr>- <td>LINEAR_HASH</td>+ <td>CANCELED</td><td>6</td><td><p></p></td></tr>- <tr>- <td>KEY</td>- <td>7</td>- <td><p></p></td>- </tr>-- <tr>- <td>LINEAR_KEY</td>- <td>8</td>- <td><p></p></td>- </tr>-</tbody></table>- <h3 id="bytebase.v1.TaskMetadata.State">TaskMetadata.State</h3>+ <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3><p></p><table class="enum-table"><thead>@@ -11097,23 +10879,29 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>STATE_UNSPECIFIED</td>+ <td>ISSUE_STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>STATE_STARTED</td>+ <td>OPEN</td><td>1</td><td><p></p></td></tr><tr>- <td>STATE_SUSPENDED</td>+ <td>DONE</td><td>2</td><td><p></p></td></tr>+ <tr>+ <td>CANCELED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>+</tbody></table>@@ -11121,7 +10909,7 @@ The API will default to the BASIC view.</p></td>- <h3 id="bytebase.v1.DatabaseService">DatabaseService</h3>+ <h3 id="bytebase.v1.IssueService">IssueService</h3><p></p><table class="enum-table"><thead>@@ -11130,122 +10918,90 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>GetDatabase</td>- <td><a href="#bytebase.v1.GetDatabaseRequest">GetDatabaseRequest</a></td>- <td><a href="#bytebase.v1.Database">Database</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListInstanceDatabases</td>- <td><a href="#bytebase.v1.ListInstanceDatabasesRequest">ListInstanceDatabasesRequest</a></td>- <td><a href="#bytebase.v1.ListInstanceDatabasesResponse">ListInstanceDatabasesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListDatabases</td>- <td><a href="#bytebase.v1.ListDatabasesRequest">ListDatabasesRequest</a></td>- <td><a href="#bytebase.v1.ListDatabasesResponse">ListDatabasesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateDatabase</td>- <td><a href="#bytebase.v1.UpdateDatabaseRequest">UpdateDatabaseRequest</a></td>- <td><a href="#bytebase.v1.Database">Database</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchUpdateDatabases</td>- <td><a href="#bytebase.v1.BatchUpdateDatabasesRequest">BatchUpdateDatabasesRequest</a></td>- <td><a href="#bytebase.v1.BatchUpdateDatabasesResponse">BatchUpdateDatabasesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>SyncDatabase</td>- <td><a href="#bytebase.v1.SyncDatabaseRequest">SyncDatabaseRequest</a></td>- <td><a href="#bytebase.v1.SyncDatabaseResponse">SyncDatabaseResponse</a></td>+ <td>GetIssue</td>+ <td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td><td><p></p></td></tr><tr>- <td>GetDatabaseMetadata</td>- <td><a href="#bytebase.v1.GetDatabaseMetadataRequest">GetDatabaseMetadataRequest</a></td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td>CreateIssue</td>+ <td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td><td><p></p></td></tr><tr>- <td>UpdateDatabaseMetadata</td>- <td><a href="#bytebase.v1.UpdateDatabaseMetadataRequest">UpdateDatabaseMetadataRequest</a></td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td>ListIssues</td>+ <td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>+ <td><a href="#bytebase.v1.ListIssuesResponse">ListIssuesResponse</a></td><td><p></p></td></tr><tr>- <td>GetDatabaseSchema</td>- <td><a href="#bytebase.v1.GetDatabaseSchemaRequest">GetDatabaseSchemaRequest</a></td>- <td><a href="#bytebase.v1.DatabaseSchema">DatabaseSchema</a></td>- <td><p></p></td>+ <td>SearchIssues</td>+ <td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>+ <td><a href="#bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</a></td>+ <td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.</p></td></tr><tr>- <td>DiffSchema</td>- <td><a href="#bytebase.v1.DiffSchemaRequest">DiffSchemaRequest</a></td>- <td><a href="#bytebase.v1.DiffSchemaResponse">DiffSchemaResponse</a></td>+ <td>UpdateIssue</td>+ <td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td><td><p></p></td></tr><tr>- <td>ListSlowQueries</td>- <td><a href="#bytebase.v1.ListSlowQueriesRequest">ListSlowQueriesRequest</a></td>- <td><a href="#bytebase.v1.ListSlowQueriesResponse">ListSlowQueriesResponse</a></td>+ <td>ListIssueComments</td>+ <td><a href="#bytebase.v1.ListIssueCommentsRequest">ListIssueCommentsRequest</a></td>+ <td><a href="#bytebase.v1.ListIssueCommentsResponse">ListIssueCommentsResponse</a></td><td><p></p></td></tr><tr>- <td>ListSecrets</td>- <td><a href="#bytebase.v1.ListSecretsRequest">ListSecretsRequest</a></td>- <td><a href="#bytebase.v1.ListSecretsResponse">ListSecretsResponse</a></td>+ <td>CreateIssueComment</td>+ <td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td><p></p></td></tr><tr>- <td>UpdateSecret</td>- <td><a href="#bytebase.v1.UpdateSecretRequest">UpdateSecretRequest</a></td>- <td><a href="#bytebase.v1.Secret">Secret</a></td>+ <td>UpdateIssueComment</td>+ <td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>+ <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td><td><p></p></td></tr><tr>- <td>DeleteSecret</td>- <td><a href="#bytebase.v1.DeleteSecretRequest">DeleteSecretRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>BatchUpdateIssuesStatus</td>+ <td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>+ <td><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</a></td><td><p></p></td></tr><tr>- <td>AdviseIndex</td>- <td><a href="#bytebase.v1.AdviseIndexRequest">AdviseIndexRequest</a></td>- <td><a href="#bytebase.v1.AdviseIndexResponse">AdviseIndexResponse</a></td>- <td><p></p></td>+ <td>ApproveIssue</td>+ <td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p>ApproveIssue approves the issue.+The access is based on approval flow.</p></td></tr><tr>- <td>ListChangeHistories</td>- <td><a href="#bytebase.v1.ListChangeHistoriesRequest">ListChangeHistoriesRequest</a></td>- <td><a href="#bytebase.v1.ListChangeHistoriesResponse">ListChangeHistoriesResponse</a></td>- <td><p></p></td>+ <td>RejectIssue</td>+ <td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p>RejectIssue rejects the issue.+The access is based on approval flow.</p></td></tr><tr>- <td>GetChangeHistory</td>- <td><a href="#bytebase.v1.GetChangeHistoryRequest">GetChangeHistoryRequest</a></td>- <td><a href="#bytebase.v1.ChangeHistory">ChangeHistory</a></td>- <td><p></p></td>+ <td>RequestIssue</td>+ <td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>+ <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td><p>RequestIssue requests the issue.+The access is based on approval flow.</p></td></tr></tbody>@@ -11269,9 +11025,9 @@ The API will default to the BASIC view.</p></td><tr>- <td>GetDatabase</td>+ <td>GetIssue</td><td>GET</td>- <td>/v1/{name=instances/*/databases/*}</td>+ <td>/v1/{name=projects/*/issues/*}</td><td></td></tr>@@ -11279,26 +11035,19 @@ The API will default to the BASIC view.</p></td><tr>- <td>ListInstanceDatabases</td>- <td>GET</td>- <td>/v1/{parent=instances/*}/databases</td>- <td></td>+ <td>CreateIssue</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/issues</td>+ <td>issue</td></tr><tr>- <td>ListDatabases</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/databases</td>- <td></td>- </tr>-- <tr>- <td>ListDatabases</td>+ <td>ListIssues</td><td>GET</td>- <td>/v1/{parent=workspaces/*}/databases</td>+ <td>/v1/{parent=projects/*}/issues</td><td></td></tr>@@ -11306,29 +11055,9 @@ The API will default to the BASIC view.</p></td><tr>- <td>UpdateDatabase</td>- <td>PATCH</td>- <td>/v1/{database.name=instances/*/databases/*}</td>- <td>database</td>- </tr>----- <tr>- <td>BatchUpdateDatabases</td>- <td>POST</td>- <td>/v1/{parent=instances/*}/databases:batchUpdate</td>- <td>*</td>- </tr>----- <tr>- <td>SyncDatabase</td>+ <td>SearchIssues</td><td>POST</td>- <td>/v1/{name=instances/*/databases/*}:sync</td>+ <td>/v1/{parent=projects/*}/issues:search</td><td>*</td></tr>@@ -11336,29 +11065,19 @@ The API will default to the BASIC view.</p></td><tr>- <td>GetDatabaseMetadata</td>- <td>GET</td>- <td>/v1/{name=instances/*/databases/*/metadata}</td>- <td></td>- </tr>----- <tr>- <td>UpdateDatabaseMetadata</td>+ <td>UpdateIssue</td><td>PATCH</td>- <td>/v1/{database_metadata.name=instances/*/databases/*/metadata}</td>- <td>database_metadata</td>+ <td>/v1/{issue.name=projects/*/issues/*}</td>+ <td>issue</td></tr><tr>- <td>GetDatabaseSchema</td>+ <td>ListIssueComments</td><td>GET</td>- <td>/v1/{name=instances/*/databases/*/schema}</td>+ <td>/v1/{parent=projects/*/issues/*}/issueComments</td><td></td></tr>@@ -11366,225 +11085,76 @@ The API will default to the BASIC view.</p></td><tr>- <td>DiffSchema</td>- <td>POST</td>- <td>/v1/{name=instances/*/databases/*}:diffSchema</td>- <td>*</td>- </tr>-- <tr>- <td>DiffSchema</td>+ <td>CreateIssueComment</td><td>POST</td>- <td>/v1/{name=instances/*/databases/*/changeHistories/*}:diffSchema</td>- <td>*</td>- </tr>----- <tr>- <td>ListSlowQueries</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/slowQueries</td>- <td></td>- </tr>----- <tr>- <td>ListSecrets</td>- <td>GET</td>- <td>/v1/{parent=instances/*/databases/*}/secrets</td>- <td></td>+ <td>/v1/{parent=projects/*/issues/*}:comment</td>+ <td>issue_comment</td></tr><tr>- <td>UpdateSecret</td>+ <td>UpdateIssueComment</td><td>PATCH</td>- <td>/v1/{secret.name=instances/*/databases/*/secrets/*}</td>- <td>secret</td>- </tr>----- <tr>- <td>DeleteSecret</td>- <td>DELETE</td>- <td>/v1/{name=instances/*/databases/*/secrets/*}</td>- <td></td>+ <td>/v1/{parent=projects/*/issues/*}:comment</td>+ <td>issue_comment</td></tr><tr>- <td>AdviseIndex</td>+ <td>BatchUpdateIssuesStatus</td><td>POST</td>- <td>/v1/{parent=instances/*/databases/*}:adviseIndex</td>- <td></td>+ <td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td>+ <td>*</td></tr><tr>- <td>ListChangeHistories</td>- <td>GET</td>- <td>/v1/{parent=instances/*/databases/*}/changeHistories</td>- <td></td>+ <td>ApproveIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:approve</td>+ <td>*</td></tr><tr>- <td>GetChangeHistory</td>- <td>GET</td>- <td>/v1/{name=instances/*/databases/*/changeHistories/*}</td>- <td></td>- </tr>--- </tbody>- </table>----- <div class="file-heading">- <h2 id="v1/branch_service.proto">v1/branch_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.v1.Branch">Branch</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the branch.-Format: projects/{project}/branches/{branch}-{branch} should be the id of a sheet. </p></td>- </tr>-- <tr>- <td>branch_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The branch ID. </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The schema of branch. AKA sheet's statement. </p></td>- </tr>-- <tr>- <td>schema_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>- <td></td>- <td><p>The metadata of the current editing schema. </p></td>- </tr>-- <tr>- <td>baseline_schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The baseline schema. </p></td>- </tr>-- <tr>- <td>baseline_schema_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>- <td></td>- <td><p>The metadata of the baseline schema. </p></td>- </tr>-- <tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p>The database engine of the branch. </p></td>- </tr>-- <tr>- <td>baseline_database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the baseline database.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>parent_branch</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent branch.-For main branch, it's empty.-For child branch, its format will be: projects/{project}/branches/{branch} </p></td>- </tr>-- <tr>- <td>etag</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The etag of the branch. </p></td>- </tr>-- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The creator of the branch.-Format: users/{email} </p></td>- </tr>+ <td>RejectIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:reject</td>+ <td>*</td>+ </tr>- <tr>- <td>updater</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The updater of the branch.-Format: users/{email} </p></td>- </tr>+- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The timestamp when the branch was created. </p></td>- </tr>- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>The timestamp when the branch was last updated. </p></td>- </tr>+ <tr>+ <td>RequestIssue</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/issues/*}:request</td>+ <td>*</td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.CreateBranchRequest">CreateBranchRequest</h3>+ <div class="file-heading">+ <h2 id="v1/subscription_service.proto">v1/subscription_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.Feature">Feature</h3><p></p>@@ -11595,27 +11165,17 @@ Format: users/{email} </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of branches.-Format: project/{project} </p></td>- </tr>-- <tr>- <td>branch</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td></td>- <td><p> </p></td>+ <td><p>Name is the feature name. </p></td></tr><tr>- <td>branch_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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-_/]+. </p></td>+ <td>matrix</td>+ <td><a href="#bytebase.v1.Feature.MatrixEntry">Feature.MatrixEntry</a></td>+ <td>repeated</td>+ <td><p>Matrix is the feature matrix for different plan. The key is the plan enum in string value. </p></td></tr></tbody>@@ -11625,7 +11185,7 @@ Format: [a-zA-Z][a-zA-Z0-9-_/]+. </p></td>- <h3 id="bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</h3>+ <h3 id="bytebase.v1.Feature.MatrixEntry">Feature.MatrixEntry</h3><p></p>@@ -11636,20 +11196,17 @@ Format: [a-zA-Z][a-zA-Z0-9-_/]+. </p></td><tbody><tr>- <td>name</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the branch to delete.-Format: projects/{project}/branches/{branch} </p></td>+ <td><p> </p></td></tr><tr>- <td>force</td>+ <td>value</td><td><a href="#bool">bool</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr></tbody>@@ -11659,7 +11216,7 @@ If true, server will delete the branch forcely but will not delete its children- <h3 id="bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</h3>+ <h3 id="bytebase.v1.FeatureMatrix">FeatureMatrix</h3><p></p>@@ -11670,17 +11227,48 @@ If true, server will delete the branch forcely but will not delete its children<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of branch. </p></td>+ <td>features</td>+ <td><a href="#bytebase.v1.Feature">Feature</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetFeatureMatrixRequest">GetFeatureMatrixRequest</h3>+ <p></p>++++++ <h3 id="bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</h3>+ <p></p>++++++ <h3 id="bytebase.v1.PatchSubscription">PatchSubscription</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>database</td>+ <td>license</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the databsae to merge the branch to. </p></td>+ <td><p> </p></td></tr></tbody>@@ -11690,7 +11278,7 @@ If true, server will delete the branch forcely but will not delete its children- <h3 id="bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</h3>+ <h3 id="bytebase.v1.Subscription">Subscription</h3><p></p>@@ -11701,28 +11289,52 @@ If true, server will delete the branch forcely but will not delete its children<tbody><tr>- <td>diff</td>- <td><a href="#string">string</a></td>+ <td>instance_count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The schema diff when merge occurs seamlessly. </p></td>+ <td><p> </p></td></tr><tr>- <td>schema</td>+ <td>expires_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>started_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>plan</td>+ <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>trialing</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>org_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The merged schema if there is no conflict. </p></td>+ <td><p> </p></td></tr><tr>- <td>conflict_schema</td>+ <td>org_name</td><td><a href="#string">string</a></td><td></td>- <td><p>The conflict schema when rebase has conflicts.-The conflict section is enclosed by the following.-<<<<< HEAD-====->>>>> main </p></td>+ <td><p> </p></td></tr></tbody>@@ -11732,52 +11344,161 @@ The conflict section is enclosed by the following.- <h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</h3>+ <h3 id="bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>patch</td>+ <td><a href="#bytebase.v1.PatchSubscription">PatchSubscription</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.PlanType">PlanType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>PLAN_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FREE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TEAM</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ENTERPRISE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SubscriptionService">SubscriptionService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetSubscription</td>+ <td><a href="#bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</a></td>+ <td><a href="#bytebase.v1.Subscription">Subscription</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetFeatureMatrix</td>+ <td><a href="#bytebase.v1.GetFeatureMatrixRequest">GetFeatureMatrixRequest</a></td>+ <td><a href="#bytebase.v1.FeatureMatrix">FeatureMatrix</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateSubscription</td>+ <td><a href="#bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</a></td>+ <td><a href="#bytebase.v1.Subscription">Subscription</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>source_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>- <td></td>- <td><p>The metadata of the source schema. </p></td>- </tr>- <tr>- <td>target_metadata</td>- <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>- <td></td>- <td><p>The metadata of the target schema. </p></td>- </tr>+ <tr>+ <td>GetSubscription</td>+ <td>GET</td>+ <td>/v1/subscription</td>+ <td></td>+ </tr>- <tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p>The database engine of the schema. </p></td>- </tr>+- <tr>- <td>classification_from_config</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If false, we will build the raw common by classification in database config. </p></td>- </tr>+ <tr>+ <td>GetFeatureMatrix</td>+ <td>GET</td>+ <td>/v1/feature</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UpdateSubscription</td>+ <td>PATCH</td>+ <td>/v1/subscription</td>+ <td>patch</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</h3>+ <div class="file-heading">+ <h2 id="v1/setting_service.proto">v1/setting_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.AgentPluginSetting">AgentPluginSetting</h3><p></p>@@ -11788,35 +11509,17 @@ The conflict section is enclosed by the following.<tbody><tr>- <td>diff</td>+ <td>url</td><td><a href="#string">string</a></td><td></td>- <td><p>The diff of the metadata. </p></td>+ <td><p>The URL for the agent API. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetBranchRequest">GetBranchRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>+ <td>token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the branch to retrieve.-Format: projects/{project}/branches/{branch} </p></td>+ <td><p>The token for the agent. </p></td></tr></tbody>@@ -11826,7 +11529,7 @@ Format: projects/{project}/branches/{branch} </p></td>- <h3 id="bytebase.v1.ListBranchesRequest">ListBranchesRequest</h3>+ <h3 id="bytebase.v1.Announcement">Announcement</h3><p></p>@@ -11837,78 +11540,24 @@ Format: projects/{project}/branches/{branch} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent resource of the branch.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>To filter the search result. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>level</td>+ <td><a href="#bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The alert level of announcemnt </p></td></tr><tr>- <td>page_token</td>+ <td>text</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>view</td>- <td><a href="#bytebase.v1.BranchView">BranchView</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListBranchesResponse">ListBranchesResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>branches</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td>repeated</td>- <td><p>The branches from the specified request. </p></td>+ <td><p>The text of announcemnt </p></td></tr><tr>- <td>next_page_token</td>+ <td>link</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The optional link, user can follow the link to check extra details </p></td></tr></tbody>@@ -11918,7 +11567,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MergeBranchRequest">MergeBranchRequest</h3>+ <h3 id="bytebase.v1.AppIMSetting">AppIMSetting</h3><p></p>@@ -11929,36 +11578,24 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the base branch to merge to.-Format: projects/{project}/branches/{branch} </p></td>- </tr>-- <tr>- <td>head_branch</td>- <td><a href="#string">string</a></td>+ <td>slack</td>+ <td><a href="#bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</a></td><td></td>- <td><p>The head branch to merge from.-Format: projects/{project}/branches/{branch} </p></td>+ <td><p> </p></td></tr><tr>- <td>etag</td>- <td><a href="#string">string</a></td>+ <td>feishu</td>+ <td><a href="#bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>+ <td>wecom</td>+ <td><a href="#bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</a></td><td></td>- <td><p>validate_only determines if the merge can occur seamlessly without any conflicts. </p></td>+ <td><p> </p></td></tr></tbody>@@ -11968,7 +11605,7 @@ The etag should be the etag from named branch. </p></td>- <h3 id="bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</h3>+ <h3 id="bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</h3><p></p>@@ -11979,54 +11616,24 @@ The etag should be the etag from named branch. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the base branch to merge to.-Format: projects/{project}/branches/{branch} </p></td>- </tr>-- <tr>- <td>source_database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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} </p></td>- </tr>-- <tr>- <td>source_branch</td>- <td><a href="#string">string</a></td>+ <td>enabled</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>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} </p></td>+ <td><p> </p></td></tr><tr>- <td>merged_schema</td>+ <td>app_id</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>etag</td>+ <td>app_secret</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>validate_only determines if the rebase can occur seamlessly without any conflicts. </p></td>+ <td><p> </p></td></tr></tbody>@@ -12036,7 +11643,7 @@ The etag should be specified for using merged_schema. The etag should be the eta- <h3 id="bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</h3>+ <h3 id="bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</h3><p></p>@@ -12047,21 +11654,17 @@ The etag should be specified for using merged_schema. The etag should be the eta<tbody><tr>- <td>branch</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td>enabled</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The rebased branch when rebase occurs seamlessly. </p></td>+ <td><p> </p></td></tr><tr>- <td>conflict_schema</td>+ <td>token</td><td><a href="#string">string</a></td><td></td>- <td><p>The conflict schema when rebase has conflicts.-The conflict section is enclosed by the following.-<<<<< HEAD-====->>>>> main </p></td>+ <td><p> </p></td></tr></tbody>@@ -12071,7 +11674,7 @@ The conflict section is enclosed by the following.- <h3 id="bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</h3>+ <h3 id="bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</h3><p></p>@@ -12082,30 +11685,31 @@ The conflict section is enclosed by the following.<tbody><tr>- <td>branch</td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td>enabled</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The branch to update.--The branch's `name` field is used to identify the branch to update.-Format: projects/{project}/branches/{branch} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>corp_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr><tr>- <td>etag</td>+ <td>agent_id</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>secret</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -12115,217 +11719,87 @@ The etag should be specified for using merged_schema. The etag should be the eta--- <h3 id="bytebase.v1.BranchView">BranchView</h3>+ <h3 id="bytebase.v1.DataClassificationSetting">DataClassificationSetting</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>BRANCH_VIEW_UNSPECIFIED</td>- <td>0</td>- <td><p>The default / unset value.-The API will default to the BASIC view.</p></td>- </tr>-- <tr>- <td>BRANCH_VIEW_BASIC</td>- <td>1</td>- <td><p>Exclude schema, baseline_schema.</p></td>- </tr>-- <tr>- <td>BRANCH_VIEW_FULL</td>- <td>2</td>- <td><p>Include everything.</p></td>- </tr>-- </tbody>- </table>--++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>configs</td>+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.BranchService">BranchService</h3>+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetBranch</td>- <td><a href="#bytebase.v1.GetBranchRequest">GetBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListBranches</td>- <td><a href="#bytebase.v1.ListBranchesRequest">ListBranchesRequest</a></td>- <td><a href="#bytebase.v1.ListBranchesResponse">ListBranchesResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateBranch</td>- <td><a href="#bytebase.v1.CreateBranchRequest">CreateBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateBranch</td>- <td><a href="#bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>MergeBranch</td>- <td><a href="#bytebase.v1.MergeBranchRequest">MergeBranchRequest</a></td>- <td><a href="#bytebase.v1.Branch">Branch</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>RebaseBranch</td>- <td><a href="#bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</a></td>- <td><a href="#bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteBranch</td>- <td><a href="#bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DiffMetadata</td>- <td><a href="#bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</a></td>- <td><a href="#bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetBranch</td>- <td>GET</td>- <td>/v1/{name=projects/*/branches/*}</td>- <td></td>- </tr>----- <tr>- <td>ListBranches</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/branches</td>- <td></td>- </tr>----- <tr>- <td>CreateBranch</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/branch</td>- <td>branch</td>- </tr>----- <tr>- <td>UpdateBranch</td>- <td>PATCH</td>- <td>/v1/{branch.name=projects/*/branches/*}</td>- <td>branch</td>- </tr>----- <tr>- <td>MergeBranch</td>- <td>POST</td>- <td>/v1/{name=projects/*/branches/*}:merge</td>- <td></td>- </tr>----- <tr>- <td>RebaseBranch</td>- <td>POST</td>- <td>/v1/{name=projects/*/branches/*}:rebase</td>- <td></td>- </tr>--+ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>id is the uuid for classification. Each project can chose one classification config. </p></td>+ </tr>- <tr>- <td>DeleteBranch</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/branches/*}</td>- <td></td>- </tr>+ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>levels</td>+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</a></td>+ <td>repeated</td>+ <td><p>levels is user defined level list for classification.+The order for the level decides its priority. </p></td>+ </tr>+ <tr>+ <td>classification</td>+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></td>+ <td>repeated</td>+ <td><p>classification is the id - DataClassification map.+The id should in [0-9]+-[0-9]+-[0-9]+ format. </p></td>+ </tr>- <tr>- <td>DiffMetadata</td>- <td>POST</td>- <td>/v1/schemaDesign:diffMetadata</td>- <td>*</td>- </tr>+ <tr>+ <td>classification_from_config</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If true, we will only store the classification in the config.+Otherwise we will get the classification from table/column comment,+and write back to the schema metadata. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/cel_service.proto">v1/cel_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</h3>+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</h3><p></p>@@ -12336,9 +11810,16 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>expressions</td>- <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>- <td>repeated</td>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</a></td>+ <td></td><td><p> </p></td></tr>@@ -12349,7 +11830,7 @@ The API will default to the BASIC view.</p></td>- <h3 id="bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</h3>+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</h3><p></p>@@ -12360,9 +11841,30 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>expressions</td>+ <td>id</td><td><a href="#string">string</a></td>- <td>repeated</td>+ <td></td>+ <td><p>id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>level_id</td>+ <td><a href="#string">string</a></td>+ <td>optional</td><td><p> </p></td></tr>@@ -12373,7 +11875,7 @@ The API will default to the BASIC view.</p></td>- <h3 id="bytebase.v1.BatchParseRequest">BatchParseRequest</h3>+ <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</h3><p></p>@@ -12384,9 +11886,23 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>expressions</td>+ <td>id</td><td><a href="#string">string</a></td>- <td>repeated</td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr>@@ -12397,7 +11913,7 @@ The API will default to the BASIC view.</p></td>- <h3 id="bytebase.v1.BatchParseResponse">BatchParseResponse</h3>+ <h3 id="bytebase.v1.ExternalApprovalSetting">ExternalApprovalSetting</h3><p></p>@@ -12408,8 +11924,8 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>expressions</td>- <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>nodes</td>+ <td><a href="#bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</a></td><td>repeated</td><td><p> </p></td></tr>@@ -12421,85 +11937,188 @@ The API will default to the BASIC view.</p></td>+ <h3 id="bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title of the node. </p></td>+ </tr>++ <tr>+ <td>endpoint</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The external endpoint for the relay service, e.g. "http://hello:1234". </p></td>+ </tr>++ </tbody>+ </table>++++ <h3 id="bytebase.v1.GetSettingRequest">GetSettingRequest</h3>+ <p>The request message for getting a setting.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the setting. </p></td>+ </tr>++ </tbody>+ </table>++++ <h3 id="bytebase.v1.GetSettingResponse">GetSettingResponse</h3>+ <p>The response message for getting a setting.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>setting</td>+ <td><a href="#bytebase.v1.Setting">Setting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.CelService">CelService</h3>+ <h3 id="bytebase.v1.ListSettingsRequest">ListSettingsRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>BatchParse</td>- <td><a href="#bytebase.v1.BatchParseRequest">BatchParseRequest</a></td>- <td><a href="#bytebase.v1.BatchParseResponse">BatchParseResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>BatchDeparse</td>- <td><a href="#bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</a></td>- <td><a href="#bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `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. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListSettingsResponse">ListSettingsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>BatchParse</td>- <td>POST</td>- <td>/v1/cel/batchParse</td>- <td>*</td>- </tr>--+ <tr>+ <td>settings</td>+ <td><a href="#bytebase.v1.Setting">Setting</a></td>+ <td>repeated</td>+ <td><p>The settings from the specified request. </p></td>+ </tr>- <tr>- <td>BatchDeparse</td>- <td>POST</td>- <td>/v1/cel/batchDeparse</td>- <td>*</td>- </tr>+ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>-</tbody></table>++-- <div class="file-heading">- <h2 id="v1/changelist_service.proto">v1/changelist_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting">MaskingAlgorithmSetting</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>algorithms</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</a></td>+ <td>repeated</td>+ <td><p>algorithms is the list of masking algorithms. </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.v1.Changelist">Changelist</h3>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</h3><p></p>@@ -12510,55 +12129,61 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>name</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the changelist resource.-Canonical parent is project.-Format: projects/{project}/changelists/{changelist} </p></td>+ <td><p>id is the uuid for masking algorithm. </p></td></tr><tr>- <td>description</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>title is the title for masking algorithm. </p></td></tr><tr>- <td>creator</td>+ <td>description</td><td><a href="#string">string</a></td><td></td>- <td><p>The creator of the changelist.-Format: users/{email} </p></td>+ <td><p>description is the description for masking algorithm. </p></td></tr><tr>- <td>updater</td>+ <td>category</td><td><a href="#string">string</a></td><td></td>- <td><p>The updater of the changelist.-Format: users/{email} </p></td>+ <td><p>Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.+The range of accepted Payload is decided by the category.+MASK: FullMask, RangeMask+HASH: MD5Mask </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>full_mask</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</a></td><td></td>- <td><p>The create time of the changelist. </p></td>+ <td><p> </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>range_mask</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</a></td><td></td>- <td><p>The last update time of the changelist. </p></td>+ <td><p> </p></td></tr><tr>- <td>changes</td>- <td><a href="#bytebase.v1.Changelist.Change">Changelist.Change</a></td>- <td>repeated</td>+ <td>md5_mask</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>inner_outer_mask</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a></td>+ <td></td><td><p> </p></td></tr>@@ -12569,7 +12194,7 @@ Format: users/{email} </p></td>- <h3 id="bytebase.v1.Changelist.Change">Changelist.Change</h3>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</h3><p></p>@@ -12580,27 +12205,11 @@ Format: users/{email} </p></td><tbody><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of a sheet. </p></td>- </tr>-- <tr>- <td>source</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The source of origin.-1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}.-2) branch: projects/{project}/branches/{branch}.-3) raw SQL if empty. </p></td>- </tr>-- <tr>- <td>version</td>+ <td>substitution</td><td><a href="#string">string</a></td><td></td>- <td><p>The migration version for a change. </p></td>+ <td><p>substitution is the string used to replace the original value, the+max length of the string is 16 bytes. </p></td></tr></tbody>@@ -12610,7 +12219,7 @@ Format: users/{email} </p></td>- <h3 id="bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</h3>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</h3><p></p>@@ -12621,29 +12230,31 @@ Format: users/{email} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>prefix_len</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The parent resource where this changelist will be created.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr><tr>- <td>changelist</td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>suffix_len</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The changelist to create. </p></td>+ <td><p> </p></td></tr><tr>- <td>changelist_id</td>+ <td>type</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>substitution</td><td><a href="#string">string</a></td><td></td>- <td><p>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]-/. </p></td>+ <td><p> </p></td></tr></tbody>@@ -12653,7 +12264,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</h3>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</h3><p></p>@@ -12664,11 +12275,10 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>name</td>+ <td>salt</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the changelist to delete.-Format: projects/{project}/changelists/{changelist} </p></td>+ <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td></tr></tbody>@@ -12678,7 +12288,7 @@ Format: projects/{project}/changelists/{changelist} </p></td>- <h3 id="bytebase.v1.GetChangelistRequest">GetChangelistRequest</h3>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</h3><p></p>@@ -12689,11 +12299,11 @@ Format: projects/{project}/changelists/{changelist} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the changelist to retrieve.-Format: projects/{project}/changelists/{changelist} </p></td>+ <td>slices</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a></td>+ <td>repeated</td>+ <td><p>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. </p></td></tr></tbody>@@ -12703,7 +12313,7 @@ Format: projects/{project}/changelists/{changelist} </p></td>- <h3 id="bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</h3>+ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</h3><p></p>@@ -12714,64 +12324,24 @@ Format: projects/{project}/changelists/{changelist} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of changelists.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>page_size</td>+ <td>start</td><td><a href="#int32">int32</a></td><td></td>- <td><p>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. </p></td>+ <td><p>start is the start index of the original value, start from 0 and should be less than stop. </p></td></tr><tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>end</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>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. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>changelists</td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>- <td>repeated</td>- <td><p>The changelists from the specified request. </p></td>+ <td><p>stop is the stop index of the original value, should be less than the length of the original value. </p></td></tr><tr>- <td>next_page_token</td>+ <td>substitution</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>substitution is the string used to replace the OriginalValue[start:end). </p></td></tr></tbody>@@ -12781,7 +12351,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</h3>+ <h3 id="bytebase.v1.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</h3><p></p>@@ -12792,20 +12362,11 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>changelist</td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>- <td></td>- <td><p>The changelist to update.--The changelist's `name` field is used to identify the changelist to update.-Format: projects/{project}/changelists/{changelist} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>limit</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p>The list of fields to be updated. </p></td>+ <td><p>The limit is in bytes.+The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. </p></td></tr></tbody>@@ -12815,136 +12376,73 @@ Format: projects/{project}/changelists/{changelist} </p></td>------- <h3 id="bytebase.v1.ChangelistService">ChangelistService</h3>+ <h3 id="bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>CreateChangelist</td>- <td><a href="#bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</a></td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetChangelist</td>- <td><a href="#bytebase.v1.GetChangelistRequest">GetChangelistRequest</a></td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListChangelists</td>- <td><a href="#bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</a></td>- <td><a href="#bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateChangelist</td>- <td><a href="#bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</a></td>- <td><a href="#bytebase.v1.Changelist">Changelist</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteChangelist</td>- <td><a href="#bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>CreateChangelist</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/changelists</td>- <td>changelist</td>- </tr>----- <tr>- <td>GetChangelist</td>- <td>GET</td>- <td>/v1/{name=projects/*/changelists/*}</td>- <td></td>- </tr>---- <tr>- <td>ListChangelists</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/changelists</td>- <td></td>- </tr>+ <tr>+ <td>min_length</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>min_length is the minimum length for password, should no less than 8. </p></td>+ </tr>-+ <tr>+ <td>require_number</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>require_number requires the password must contains at least one number. </p></td>+ </tr>+ <tr>+ <td>require_letter</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td>+ </tr>- <tr>- <td>UpdateChangelist</td>- <td>PATCH</td>- <td>/v1/{changelist.name=projects/*/changelists/*}</td>- <td>changelist</td>- </tr>+ <tr>+ <td>require_uppercase_letter</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td>+ </tr>-+ <tr>+ <td>require_special_character</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>require_uppercase_letter requires the password must contains at least one special character. </p></td>+ </tr>+ <tr>+ <td>require_reset_password_for_first_login</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>+ </tr>- <tr>- <td>DeleteChangelist</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/changelists/*}</td>- <td></td>- </tr>+ <tr>+ <td>password_rotation</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p>password_rotation requires users to reset their password after the duration. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/database_group_service.proto">v1/database_group_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</h3>+ <h3 id="bytebase.v1.SCIMSetting">SCIMSetting</h3><p></p>@@ -12955,36 +12453,10 @@ Format: projects/{project}/changelists/{changelist} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent resource where this database group will be created.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>database_group</td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td></td>- <td><p>The database group to create. </p></td>- </tr>-- <tr>- <td>database_group_id</td>+ <td>token</td><td><a href="#string">string</a></td><td></td>- <td><p>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]-/. </p></td>- </tr>-- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set, validate the create request and preview the full database group response, but do not actually create it. </p></td>+ <td><p> </p></td></tr></tbody>@@ -12994,7 +12466,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DatabaseGroup">DatabaseGroup</h3>+ <h3 id="bytebase.v1.SMTPMailDeliverySettingValue">SMTPMailDeliverySettingValue</h3><p></p>@@ -13005,47 +12477,81 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>name</td>+ <td>server</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the database group.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td><p>The SMTP server address. </p></td></tr><tr>- <td>database_placeholder</td>+ <td>port</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The SMTP server port. </p></td>+ </tr>++ <tr>+ <td>encryption</td>+ <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue.Encryption">SMTPMailDeliverySettingValue.Encryption</a></td>+ <td></td>+ <td><p>The SMTP server encryption. </p></td>+ </tr>++ <tr>+ <td>ca</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The CA, KEY, and CERT for the SMTP server.+Not used. </p></td>+ </tr>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>cert</td><td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>authentication</td>+ <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue.Authentication">SMTPMailDeliverySettingValue.Authentication</a></td><td></td>- <td><p>The short name used in actual databases specified by users.-For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". </p></td>+ <td><p> </p></td></tr><tr>- <td>database_expr</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>username</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The condition that is associated with this database group. </p></td>+ <td><p> </p></td></tr><tr>- <td>matched_databases</td>- <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>If not specified, server will use the existed password. </p></td></tr><tr>- <td>unmatched_databases</td>- <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>- <td>repeated</td>- <td><p>The list of databases that match the database group condition. </p></td>+ <td>from</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The sender email address. </p></td></tr><tr>- <td>multitenancy</td>- <td><a href="#bool">bool</a></td>+ <td>to</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The recipient email address, used with validate_only to send test email. </p></td></tr></tbody>@@ -13055,7 +12561,7 @@ For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1&#- <h3 id="bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</h3>+ <h3 id="bytebase.v1.SchemaTemplateSetting">SchemaTemplateSetting</h3><p></p>@@ -13066,36 +12572,24 @@ For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1&#<tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the database.-Format: instances/{instance}/databases/{database} </p></td>+ <td>field_templates</td>+ <td><a href="#bytebase.v1.SchemaTemplateSetting.FieldTemplate">SchemaTemplateSetting.FieldTemplate</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>column_types</td>+ <td><a href="#bytebase.v1.SchemaTemplateSetting.ColumnType">SchemaTemplateSetting.ColumnType</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database group to delete.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td>table_templates</td>+ <td><a href="#bytebase.v1.SchemaTemplateSetting.TableTemplate">SchemaTemplateSetting.TableTemplate</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -13105,7 +12599,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- <h3 id="bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</h3>+ <h3 id="bytebase.v1.SchemaTemplateSetting.ColumnType">SchemaTemplateSetting.ColumnType</h3><p></p>@@ -13116,18 +12610,24 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td><td></td>- <td><p>The name of the database group to retrieve.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>+ <td><p> </p></td></tr><tr>- <td>view</td>- <td><a href="#bytebase.v1.DatabaseGroupView">DatabaseGroupView</a></td>+ <td>enabled</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>types</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -13137,7 +12637,7 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- <h3 id="bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</h3>+ <h3 id="bytebase.v1.SchemaTemplateSetting.FieldTemplate">SchemaTemplateSetting.FieldTemplate</h3><p></p>@@ -13148,32 +12648,38 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td><tbody><tr>- <td>parent</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent resource whose database groups are to be listed.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>category</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>column</td>+ <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>config</td>+ <td><a href="#bytebase.v1.ColumnConfig">ColumnConfig</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -13183,7 +12689,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</h3>+ <h3 id="bytebase.v1.SchemaTemplateSetting.TableTemplate">SchemaTemplateSetting.TableTemplate</h3><p></p>@@ -13194,18 +12700,38 @@ the call that provided the page token. </p></td><tbody><tr>- <td>database_groups</td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td>repeated</td>- <td><p>database_groups is the list of database groups. </p></td>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>next_page_token</td>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>category</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>table</td>+ <td><a href="#bytebase.v1.TableMetadata">TableMetadata</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>config</td>+ <td><a href="#bytebase.v1.TableConfig">TableConfig</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -13215,7 +12741,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</h3>+ <h3 id="bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</h3><p></p>@@ -13226,20 +12752,10 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>database_group</td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td></td>- <td><p>The database group to update.--The database group's `name` field is used to identify the database group to update.-Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>+ <td>types</td>+ <td><a href="#bytebase.v1.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -13249,167 +12765,60 @@ Format: projects/{project}/databaseGroups/{databaseGroup} </p></td>--- <h3 id="bytebase.v1.DatabaseGroupView">DatabaseGroupView</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>DATABASE_GROUP_VIEW_UNSPECIFIED</td>- <td>0</td>- <td><p>The default / unset value.-The API will default to the BASIC view.</p></td>- </tr>-- <tr>- <td>DATABASE_GROUP_VIEW_BASIC</td>- <td>1</td>- <td><p>Include basic information about the database group, but exclude the list of matched databases and unmatched databases.</p></td>- </tr>-- <tr>- <td>DATABASE_GROUP_VIEW_FULL</td>- <td>2</td>- <td><p>Include everything.</p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.DatabaseGroupService">DatabaseGroupService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ListDatabaseGroups</td>- <td><a href="#bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</a></td>- <td><a href="#bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetDatabaseGroup</td>- <td><a href="#bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</a></td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateDatabaseGroup</td>- <td><a href="#bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</a></td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateDatabaseGroup</td>- <td><a href="#bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</a></td>- <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteDatabaseGroup</td>- <td><a href="#bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <h3 id="bytebase.v1.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</h3>+ <p></p>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>ListDatabaseGroups</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/databaseGroups</td>- <td></td>- </tr>----- <tr>- <td>GetDatabaseGroup</td>- <td>GET</td>- <td>/v1/{name=projects/*/databaseGroups/*}</td>- <td></td>- </tr>----- <tr>- <td>CreateDatabaseGroup</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/databaseGroups</td>- <td>database_group</td>- </tr>--+ <tr>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>id is the uuid for semantic type. </p></td>+ </tr>- <tr>- <td>UpdateDatabaseGroup</td>- <td>PATCH</td>- <td>/v1/{database_group.name=projects/*/databaseGroups/*}</td>- <td>database_group</td>- </tr>+ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the title of the semantic type, it should not be empty. </p></td>+ </tr>-+ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the description of the semantic type, it can be empty. </p></td>+ </tr>+ <tr>+ <td>partial_mask_algorithm_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the partial mask algorithm id for the semantic type, if it is empty, should use the default partial mask algorithm. </p></td>+ </tr>- <tr>- <td>DeleteDatabaseGroup</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/databaseGroups/*}</td>- <td></td>- </tr>+ <tr>+ <td>full_mask_algorithm_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>the full mask algorithm id for the semantic type, if it is empty, should use the default full mask algorithm. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/environment_service.proto">v1/environment_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</h3>- <p></p>+ <h3 id="bytebase.v1.Setting">Setting</h3>+ <p>The schema of setting.</p><table class="field-table">@@ -13419,21 +12828,20 @@ The API will default to the BASIC view.</p></td><tbody><tr>- <td>environment</td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The environment to create. </p></td>+ <td><p>The resource name of the setting. Must be one of the following forms:++- `setting/{setting}`+For example, "settings/bb.branding.logo" </p></td></tr><tr>- <td>environment_id</td>- <td><a href="#string">string</a></td>+ <td>value</td>+ <td><a href="#bytebase.v1.Value">Value</a></td><td></td>- <td><p>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]-/. </p></td>+ <td><p>The value of the setting. </p></td></tr></tbody>@@ -13443,8 +12851,8 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</h3>- <p></p>+ <h3 id="bytebase.v1.UpdateSettingRequest">UpdateSettingRequest</h3>+ <p>The request message for updating or creating a setting.</p><table class="field-table">@@ -13454,11 +12862,32 @@ are /[a-z][0-9]-/. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>setting</td>+ <td><a href="#bytebase.v1.Setting">Setting</a></td><td></td>- <td><p>The name of the environment to delete.-Format: environments/{environment} </p></td>+ <td><p>The setting to update. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>validate_only is a flag to indicate whether to validate the setting value,+server would not persist the setting value if it is true. </p></td>+ </tr>++ <tr>+ <td>allow_missing</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -13468,8 +12897,8 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.Environment">Environment</h3>- <p></p>+ <h3 id="bytebase.v1.Value">Value</h3>+ <p>The data in setting value.</p><table class="field-table">@@ -13479,37 +12908,106 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>name</td>+ <td>string_value</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the environment.-Format: environments/{environment} </p></td>+ <td><p>Defines this value as being a string value. </p></td></tr><tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>+ <td>smtp_mail_delivery_setting_value</td>+ <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue">SMTPMailDeliverySettingValue</a></td><td></td><td><p> </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>app_im_setting_value</td>+ <td><a href="#bytebase.v1.AppIMSetting">AppIMSetting</a></td><td></td><td><p> </p></td></tr><tr>- <td>order</td>- <td><a href="#int32">int32</a></td>+ <td>agent_plugin_setting_value</td>+ <td><a href="#bytebase.v1.AgentPluginSetting">AgentPluginSetting</a></td><td></td><td><p> </p></td></tr><tr>- <td>tier</td>- <td><a href="#bytebase.v1.EnvironmentTier">EnvironmentTier</a></td>+ <td>workspace_profile_setting_value</td>+ <td><a href="#bytebase.v1.WorkspaceProfileSetting">WorkspaceProfileSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>workspace_approval_setting_value</td>+ <td><a href="#bytebase.v1.WorkspaceApprovalSetting">WorkspaceApprovalSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>workspace_trial_setting_value</td>+ <td><a href="#bytebase.v1.WorkspaceTrialSetting">WorkspaceTrialSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>external_approval_setting_value</td>+ <td><a href="#bytebase.v1.ExternalApprovalSetting">ExternalApprovalSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>schema_template_setting_value</td>+ <td><a href="#bytebase.v1.SchemaTemplateSetting">SchemaTemplateSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>data_classification_setting_value</td>+ <td><a href="#bytebase.v1.DataClassificationSetting">DataClassificationSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>semantic_type_setting_value</td>+ <td><a href="#bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>masking_algorithm_setting_value</td>+ <td><a href="#bytebase.v1.MaskingAlgorithmSetting">MaskingAlgorithmSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>maximum_sql_result_size_setting</td>+ <td><a href="#bytebase.v1.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>scim_setting</td>+ <td><a href="#bytebase.v1.SCIMSetting">SCIMSetting</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>password_restriction_setting</td>+ <td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td><td></td><td><p> </p></td></tr>@@ -13521,7 +13019,7 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</h3>+ <h3 id="bytebase.v1.WorkspaceApprovalSetting">WorkspaceApprovalSetting</h3><p></p>@@ -13531,12 +13029,11 @@ Format: environments/{environment} </p></td></thead><tbody>- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the environment to retrieve.-Format: environments/{environment} </p></td>+ <tr>+ <td>rules</td>+ <td><a href="#bytebase.v1.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -13546,7 +13043,7 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</h3>+ <h3 id="bytebase.v1.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</h3><p></p>@@ -13557,31 +13054,17 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>template</td>+ <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>Show deleted environments if specified. </p></td>+ <td><p> </p></td></tr></tbody>@@ -13591,7 +13074,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</h3>+ <h3 id="bytebase.v1.WorkspaceProfileSetting">WorkspaceProfileSetting</h3><p></p>@@ -13602,43 +13085,91 @@ the call that provided the page token. </p></td><tbody><tr>- <td>environments</td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>external_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>disallow_signup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Disallow self-service signup, users can only be invited by the owner. </p></td>+ </tr>++ <tr>+ <td>require_2fa</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Require 2FA for all users. </p></td>+ </tr>++ <tr>+ <td>outbound_ip_list</td>+ <td><a href="#string">string</a></td><td>repeated</td>- <td><p>The environments from the specified request. </p></td>+ <td><p>outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. </p></td></tr><tr>- <td>next_page_token</td>+ <td>gitops_webhook_url</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The webhook URL for the GitOps workflow. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>token_duration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p>The duration for token. </p></td>+ </tr><tr>- <td>name</td>+ <td>announcement</td>+ <td><a href="#bytebase.v1.Announcement">Announcement</a></td>+ <td></td>+ <td><p>The setting of custom announcement </p></td>+ </tr>++ <tr>+ <td>maximum_role_expiration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td></td>+ <td><p>The max duration for role expired. </p></td>+ </tr>++ <tr>+ <td>domains</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>The workspace domain, e.g. bytebase.com. </p></td>+ </tr>++ <tr>+ <td>enforce_identity_domain</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The name of the deleted environment.-Format: environments/{environment} </p></td>+ <td><p>Only user and group from the domains can be created and login. </p></td>+ </tr>++ <tr>+ <td>database_change_mode</td>+ <td><a href="#bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</a></td>+ <td></td>+ <td><p>The workspace database change mode. </p></td>+ </tr>++ <tr>+ <td>disallow_password_signin</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to disallow password signin. (Except workspace admins) </p></td></tr></tbody>@@ -13648,7 +13179,7 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</h3>+ <h3 id="bytebase.v1.WorkspaceTrialSetting">WorkspaceTrialSetting</h3><p></p>@@ -13659,20 +13190,45 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>environment</td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>instance_count</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The environment to update.--The environment's `name` field is used to identify the environment to update.-Format: environments/{environment} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>expire_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>issued_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>subject</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>org_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>plan</td>+ <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -13684,8 +13240,102 @@ Format: environments/{environment} </p></td>- <h3 id="bytebase.v1.EnvironmentTier">EnvironmentTier</h3>- <p></p>+ <h3 id="bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</h3>+ <p>We support three levels of AlertLevel: INFO, WARNING, and ERROR.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ALERT_LEVEL_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ALERT_LEVEL_INFO</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ALERT_LEVEL_WARNING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ALERT_LEVEL_CRITICAL</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>DATABASE_CHANGE_MODE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PIPELINE</td>+ <td>1</td>+ <td><p>A more advanced database change process, including custom approval workflows and other advanced features.+Default to this mode.</p></td>+ </tr>++ <tr>+ <td>EDITOR</td>+ <td>2</td>+ <td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>MASK_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>INNER</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OUTER</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.SMTPMailDeliverySettingValue.Authentication">SMTPMailDeliverySettingValue.Authentication</h3>+ <p>We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -13693,77 +13343,103 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>ENVIRONMENT_TIER_UNSPECIFIED</td>+ <td>AUTHENTICATION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>PROTECTED</td>+ <td>AUTHENTICATION_NONE</td><td>1</td><td><p></p></td></tr><tr>- <td>UNPROTECTED</td>+ <td>AUTHENTICATION_PLAIN</td><td>2</td><td><p></p></td></tr>+ <tr>+ <td>AUTHENTICATION_LOGIN</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>AUTHENTICATION_CRAM_MD5</td>+ <td>4</td>+ <td><p></p></td>+ </tr>+</tbody></table>----- <h3 id="bytebase.v1.EnvironmentService">EnvironmentService</h3>- <p></p>+ <h3 id="bytebase.v1.SMTPMailDeliverySettingValue.Encryption">SMTPMailDeliverySettingValue.Encryption</h3>+ <p>We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.</p><table class="enum-table"><thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody><tr>- <td>GetEnvironment</td>- <td><a href="#bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>ENCRYPTION_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>ListEnvironments</td>- <td><a href="#bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</a></td>- <td><a href="#bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</a></td>+ <td>ENCRYPTION_NONE</td>+ <td>1</td><td><p></p></td></tr><tr>- <td>CreateEnvironment</td>- <td><a href="#bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>ENCRYPTION_STARTTLS</td>+ <td>2</td><td><p></p></td></tr><tr>- <td>UpdateEnvironment</td>- <td><a href="#bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>ENCRYPTION_SSL_TLS</td>+ <td>3</td><td><p></p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SettingService">SettingService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>DeleteEnvironment</td>- <td><a href="#bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>ListSettings</td>+ <td><a href="#bytebase.v1.ListSettingsRequest">ListSettingsRequest</a></td>+ <td><a href="#bytebase.v1.ListSettingsResponse">ListSettingsResponse</a></td><td><p></p></td></tr><tr>- <td>UndeleteEnvironment</td>- <td><a href="#bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</a></td>- <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>GetSetting</td>+ <td><a href="#bytebase.v1.GetSettingRequest">GetSettingRequest</a></td>+ <td><a href="#bytebase.v1.Setting">Setting</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateSetting</td>+ <td><a href="#bytebase.v1.UpdateSettingRequest">UpdateSettingRequest</a></td>+ <td><a href="#bytebase.v1.Setting">Setting</a></td><td><p></p></td></tr>@@ -13788,9 +13464,9 @@ Format: environments/{environment} </p></td><tr>- <td>GetEnvironment</td>+ <td>ListSettings</td><td>GET</td>- <td>/v1/{name=environments/*}</td>+ <td>/v1/settings</td><td></td></tr>@@ -13798,9 +13474,9 @@ Format: environments/{environment} </p></td><tr>- <td>ListEnvironments</td>+ <td>GetSetting</td><td>GET</td>- <td>/v1/environments</td>+ <td>/v1/{name=settings/*}</td><td></td></tr>@@ -13808,40 +13484,10 @@ Format: environments/{environment} </p></td><tr>- <td>CreateEnvironment</td>- <td>POST</td>- <td>/v1/environments</td>- <td>environment</td>- </tr>----- <tr>- <td>UpdateEnvironment</td>+ <td>UpdateSetting</td><td>PATCH</td>- <td>/v1/{environment.name=environments/*}</td>- <td>environment</td>- </tr>----- <tr>- <td>DeleteEnvironment</td>- <td>DELETE</td>- <td>/v1/{name=environments/*}</td>- <td></td>- </tr>----- <tr>- <td>UndeleteEnvironment</td>- <td>POST</td>- <td>/v1/{name=environments/*}:undelete</td>- <td>*</td>+ <td>/v1/{setting.name=settings/*}</td>+ <td>setting</td></tr>@@ -13852,13 +13498,13 @@ Format: environments/{environment} </p></td><div class="file-heading">- <h2 id="v1/group.proto">v1/group.proto</h2><a href="#title">Top</a>+ <h2 id="v1/actuator_service.proto">v1/actuator_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateGroupRequest">CreateGroupRequest</h3>- <p></p>+ <h3 id="bytebase.v1.ActuatorInfo">ActuatorInfo</h3>+ <p>ServerInfo is the API message for server info.</p><p>Actuator concept is similar to the Spring Boot Actuator.</p><table class="field-table">@@ -13868,159 +13514,148 @@ Format: environments/{environment} </p></td><tbody><tr>- <td>group</td>- <td><a href="#bytebase.v1.Group">Group</a></td>+ <td>version</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The group to create. </p></td>+ <td><p>version is the bytebase's server version </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteGroupRequest">DeleteGroupRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>git_commit</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>git_commit is the git commit hash of the build </p></td>+ </tr><tr>- <td>name</td>+ <td>readonly</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>readonly flag means if the Bytebase is running in readonly mode. </p></td>+ </tr>++ <tr>+ <td>saas</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>saas flag means if the Bytebase is running in SaaS mode, some features are not allowed to edit by users. </p></td>+ </tr>++ <tr>+ <td>demo_name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the group to delete.-Format: groups/{email} </p></td>+ <td><p>demo_name specifies the demo name, empty string means no demo. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetGroupRequest">GetGroupRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>host</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>host is the Bytebase instance host. </p></td>+ </tr>++ <tr>+ <td>port</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>port is the Bytebase instance port. </p></td>+ </tr>++ <tr>+ <td>external_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>external_url is the URL where user or webhook callback visits Bytebase. </p></td>+ </tr>++ <tr>+ <td>need_admin_setup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>need_admin_setup flag means the Bytebase instance doesn't have any end users. </p></td>+ </tr>++ <tr>+ <td>disallow_signup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>disallow_signup is the flag to disable self-service signup. </p></td>+ </tr>++ <tr>+ <td>last_active_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>last_active_time is the service last active time in UTC Time Format, any API calls will refresh this value. </p></td>+ </tr><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>require_2fa</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The name of the group to retrieve.-Format: groups/{email} </p></td>+ <td><p>require_2fa is the flag to require 2FA for all users. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Group">Group</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>+ <td>workspace_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the group to retrieve.-Format: groups/{group}, group is an email. </p></td>+ <td><p>workspace_id is the identifier for the workspace. </p></td></tr><tr>- <td>title</td>+ <td>gitops_webhook_url</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>gitops_webhook_url is the webhook URL for GitOps. </p></td></tr><tr>- <td>description</td>- <td><a href="#string">string</a></td>+ <td>debug</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>debug flag means if the debug mode is enabled. </p></td></tr><tr>- <td>creator</td>- <td><a href="#string">string</a></td>+ <td>lsp</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The name for the creator.-Format: users/[email protected] </p></td>+ <td><p>lsp is the enablement of lsp in SQL Editor. </p></td></tr><tr>- <td>members</td>- <td><a href="#bytebase.v1.GroupMember">GroupMember</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>pre_update_backup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>pre_update_backup is the enablement of data backup prior to data update. </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>iam_guard</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The timestamp when the group was created. </p></td>+ <td><p>iam_guard is the enablement of IAM checks. </p></td></tr><tr>- <td>source</td>+ <td>unlicensed_features</td><td><a href="#string">string</a></td>- <td></td>- <td><p>source means where the group comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td>+ <td>repeated</td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GroupMember">GroupMember</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>member</td>- <td><a href="#string">string</a></td>+ <td>disallow_password_signin</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Member is the principal who belong to this group.--Format: users/[email protected] </p></td>+ <td><p>disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins) </p></td></tr><tr>- <td>role</td>- <td><a href="#bytebase.v1.GroupMember.Role">GroupMember.Role</a></td>+ <td>password_restriction</td>+ <td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td><td></td><td><p> </p></td></tr>@@ -14032,46 +13667,29 @@ Format: users/[email protected] </p></td>- <h3 id="bytebase.v1.ListGroupsRequest">ListGroupsRequest</h3>+ <h3 id="bytebase.v1.DeleteCacheRequest">DeleteCacheRequest</h3><p></p>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of groups to return. The service may return fewer than-this value.-If unspecified, at most 50 groups will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListGroups` call.-Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListGroups` must match-the call that provided the page token. </p></td>- </tr>-- </tbody>- </table>+++ <h3 id="bytebase.v1.GetActuatorInfoRequest">GetActuatorInfoRequest</h3>+ <p></p>-+- <h3 id="bytebase.v1.ListGroupsResponse">ListGroupsResponse</h3>- <p></p>+ <h3 id="bytebase.v1.GetResourcePackageRequest">GetResourcePackageRequest</h3>+ <p>The request message for getting the theme resource.</p>++++++ <h3 id="bytebase.v1.ResourcePackage">ResourcePackage</h3>+ <p>The theme resources.</p><table class="field-table">@@ -14081,18 +13699,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>groups</td>- <td><a href="#bytebase.v1.Group">Group</a></td>- <td>repeated</td>- <td><p>The groups from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>logo</td>+ <td><a href="#bytes">bytes</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The branding logo. </p></td></tr></tbody>@@ -14102,7 +13712,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateGroupRequest">UpdateGroupRequest</h3>+ <h3 id="bytebase.v1.UpdateActuatorInfoRequest">UpdateActuatorInfoRequest</h3><p></p>@@ -14113,13 +13723,10 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>group</td>- <td><a href="#bytebase.v1.Group">Group</a></td>+ <td>actuator</td>+ <td><a href="#bytebase.v1.ActuatorInfo">ActuatorInfo</a></td><td></td>- <td><p>The group to update.--The group's `name` field is used to identify the group to update.-Format: groups/{email} </p></td>+ <td><p>The actuator to update. </p></td></tr><tr>@@ -14138,40 +13745,11 @@ Format: groups/{email} </p></td>- <h3 id="bytebase.v1.GroupMember.Role">GroupMember.Role</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ROLE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>OWNER</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>MEMBER</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.GroupService">GroupService</h3>+ <h3 id="bytebase.v1.ActuatorService">ActuatorService</h3><p></p><table class="enum-table"><thead>@@ -14180,38 +13758,30 @@ Format: groups/{email} </p></td><tbody><tr>- <td>GetGroup</td>- <td><a href="#bytebase.v1.GetGroupRequest">GetGroupRequest</a></td>- <td><a href="#bytebase.v1.Group">Group</a></td>+ <td>GetActuatorInfo</td>+ <td><a href="#bytebase.v1.GetActuatorInfoRequest">GetActuatorInfoRequest</a></td>+ <td><a href="#bytebase.v1.ActuatorInfo">ActuatorInfo</a></td><td><p></p></td></tr><tr>- <td>ListGroups</td>- <td><a href="#bytebase.v1.ListGroupsRequest">ListGroupsRequest</a></td>- <td><a href="#bytebase.v1.ListGroupsResponse">ListGroupsResponse</a></td>+ <td>UpdateActuatorInfo</td>+ <td><a href="#bytebase.v1.UpdateActuatorInfoRequest">UpdateActuatorInfoRequest</a></td>+ <td><a href="#bytebase.v1.ActuatorInfo">ActuatorInfo</a></td><td><p></p></td></tr><tr>- <td>CreateGroup</td>- <td><a href="#bytebase.v1.CreateGroupRequest">CreateGroupRequest</a></td>- <td><a href="#bytebase.v1.Group">Group</a></td>+ <td>DeleteCache</td>+ <td><a href="#bytebase.v1.DeleteCacheRequest">DeleteCacheRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr><tr>- <td>UpdateGroup</td>- <td><a href="#bytebase.v1.UpdateGroupRequest">UpdateGroupRequest</a></td>- <td><a href="#bytebase.v1.Group">Group</a></td>- <td><p>UpdateGroup updates the group.-Users with "bb.groups.update" permission on the workspace or the group owner can access this method.</p></td>- </tr>-- <tr>- <td>DeleteGroup</td>- <td><a href="#bytebase.v1.DeleteGroupRequest">DeleteGroupRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>GetResourcePackage</td>+ <td><a href="#bytebase.v1.GetResourcePackageRequest">GetResourcePackageRequest</a></td>+ <td><a href="#bytebase.v1.ResourcePackage">ResourcePackage</a></td><td><p></p></td></tr>@@ -14236,19 +13806,9 @@ Users with "bb.groups.update" permission on the workspace or the group o<tr>- <td>GetGroup</td>- <td>GET</td>- <td>/v1/{name=groups/*}</td>- <td></td>- </tr>----- <tr>- <td>ListGroups</td>+ <td>GetActuatorInfo</td><td>GET</td>- <td>/v1/groups</td>+ <td>/v1/actuator/info</td><td></td></tr>@@ -14256,29 +13816,29 @@ Users with "bb.groups.update" permission on the workspace or the group o<tr>- <td>CreateGroup</td>- <td>POST</td>- <td>/v1/groups</td>- <td>group</td>+ <td>UpdateActuatorInfo</td>+ <td>PATCH</td>+ <td>/v1/actuator/info</td>+ <td>actuator</td></tr>- <tr>- <td>UpdateGroup</td>- <td>PATCH</td>- <td>/v1/{group.name=groups/*}</td>- <td>group</td>+ <tr>+ <td>DeleteCache</td>+ <td>DELETE</td>+ <td>/v1/actuator/cache</td>+ <td></td></tr><tr>- <td>DeleteGroup</td>- <td>DELETE</td>- <td>/v1/{name=groups/*}</td>+ <td>GetResourcePackage</td>+ <td>GET</td>+ <td>/v1/actuator/resources</td><td></td></tr>@@ -14290,12 +13850,12 @@ Users with "bb.groups.update" permission on the workspace or the group o<div class="file-heading">- <h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/anomaly_service.proto">v1/anomaly_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.Anomaly">Anomaly</h3><p></p>@@ -14306,113 +13866,60 @@ Users with "bb.groups.update" permission on the workspace or the group o<tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>resource</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The identity provider to create. </p></td>+ <td><p>The resource that is the target of the operation.+Format:+- Instance: instnaces/{instance}+- Database: instnaces/{instance}/databases/{database} </p></td></tr><tr>- <td>identity_provider_id</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</a></td><td></td>- <td><p>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]-/. </p></td>+ <td><p>type is the type of the anomaly. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>severity</td>+ <td><a href="#bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</a></td><td></td>- <td><p>The name of the identity provider to delete.-Format: idps/{identity_provider} </p></td>+ <td><p>severity is the severity of the anomaly. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.FieldMapping">FieldMapping</h3>- <p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p><p>e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.</p><p>Then the identifier of FieldMapping will be `login`, display_name will be `name`,</p><p>and email will be `email`.</p><p>reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>identifier</td>- <td><a href="#string">string</a></td>+ <td>instance_connection_detail</td>+ <td><a href="#bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</a></td><td></td>- <td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td>+ <td><p> </p></td></tr><tr>- <td>display_name</td>- <td><a href="#string">string</a></td>+ <td>database_connection_detail</td>+ <td><a href="#bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</a></td><td></td>- <td><p>DisplayName is the field name of display name in 3rd-party idp user info. </p></td>+ <td><p> </p></td></tr><tr>- <td>email</td>- <td><a href="#string">string</a></td>+ <td>database_schema_drift_detail</td>+ <td><a href="#bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</a></td><td></td>- <td><p>Email is the field name of primary email in 3rd-party idp user info. </p></td>+ <td><p> </p></td></tr><tr>- <td>phone</td>- <td><a href="#string">string</a></td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>Phone is the field name of primary phone in 3rd-party idp user info. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>@@ -14424,8 +13931,8 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.IdentityProvider">IdentityProvider</h3>- <p></p>+ <h3 id="bytebase.v1.Anomaly.DatabaseConnectionDetail">Anomaly.DatabaseConnectionDetail</h3>+ <p>Database level anomaly detial.</p><p>DatbaaseConnectionDetail is the detail for database connection anomaly.</p><table class="field-table">@@ -14435,46 +13942,10 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the identity provider.-Format: idps/{idp} </p></td>- </tr>-- <tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>domain</td>+ <td>detail</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>config</td>- <td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td>- <td></td>- <td><p> </p></td>+ <td><p>detail is the detail of the database connection failure. </p></td></tr></tbody>@@ -14484,8 +13955,8 @@ Format: idps/{idp} </p></td>- <h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3>- <p></p>+ <h3 id="bytebase.v1.Anomaly.DatabaseSchemaDriftDetail">Anomaly.DatabaseSchemaDriftDetail</h3>+ <p>DatabaseSchemaDriftDetail is the detail for database schema drift anomaly.</p><table class="field-table">@@ -14495,24 +13966,24 @@ Format: idps/{idp} </p></td><tbody><tr>- <td>oauth2_config</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td>+ <td>record_version</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>record_version is the record version of the database schema drift. </p></td></tr><tr>- <td>oidc_config</td>- <td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td>+ <td>expected_schema</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>expected_schema is the expected schema in the database. </p></td></tr><tr>- <td>ldap_config</td>- <td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td>+ <td>actual_schema</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>actual_schema is the actual schema in the database. </p></td></tr></tbody>@@ -14522,84 +13993,21 @@ Format: idps/{idp} </p></td>- <h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3>- <p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p>+ <h3 id="bytebase.v1.Anomaly.InstanceConnectionDetail">Anomaly.InstanceConnectionDetail</h3>+ <p>Instance level anomaly detail.</p><p>InstanceConnectionDetail is the detail for instance connection anomaly.</p><table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>host</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Host is the hostname or IP address of the LDAP server, e.g.-"ldap.example.com". </p></td>- </tr>-- <tr>- <td>port</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td>- </tr>-- <tr>- <td>bind_dn</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BindDN is the DN of the user to bind as a service account to perform-search requests. </p></td>- </tr>-- <tr>- <td>bind_password</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BindPassword is the password of the user to bind as a service account. </p></td>- </tr>-- <tr>- <td>base_dn</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td>- </tr>-- <tr>- <td>user_filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td>- </tr>-- <tr>- <td>security_protocol</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>- </tr>+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td>detail</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>FieldMapping is the mapping of the user attributes returned by the LDAP-server. </p></td>+ <td><p>detail is the detail of the instance connection failure. </p></td></tr></tbody>@@ -14609,7 +14017,7 @@ server. </p></td>- <h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</h3>+ <h3 id="bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</h3><p></p>@@ -14619,13 +14027,25 @@ server. </p></td></thead><tbody>+ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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".' </p></td>+ </tr>+<tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of identity providers to return. The service may return fewer than+ <td><p>Not used. The maximum number of anomalies to return. The service may return fewer thanthis value.-If unspecified, at most 50 will be returned.+If unspecified, at most 50 anomalies will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -14633,20 +14053,13 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListIdentityProviders` call.+ <td><p>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 `ListIdentityProviders` must match+When paginating, all other parameters provided to `SearchAnomalies` must matchthe call that provided the page token. </p></td></tr>- <tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted identity providers if specified. </p></td>- </tr>-</tbody></table>@@ -14654,7 +14067,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</h3>+ <h3 id="bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</h3><p></p>@@ -14665,17 +14078,17 @@ the call that provided the page token. </p></td><tbody><tr>- <td>identity_providers</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>anomalies</td>+ <td><a href="#bytebase.v1.Anomaly">Anomaly</a></td><td>repeated</td>- <td><p>The identity providers from the specified request. </p></td>+ <td><p>anomalies is the list of anomalies. </p></td></tr><tr><td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.+ <td><p>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. </p></td></tr>@@ -14686,87 +14099,149 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3>- <p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p>+++ <h3 id="bytebase.v1.Anomaly.AnomalySeverity">Anomaly.AnomalySeverity</h3>+ <p>AnomalySeverity is the severity of the anomaly.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ANOMALY_SEVERITY_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified anomaly severity.</p></td>+ </tr>++ <tr>+ <td>MEDIUM</td>+ <td>1</td>+ <td><p>MEDIUM is the info level anomaly severity.</p></td>+ </tr>++ <tr>+ <td>HIGH</td>+ <td>2</td>+ <td><p>HIGH is the warning level anomaly severity.</p></td>+ </tr>++ <tr>+ <td>CRITICAL</td>+ <td>3</td>+ <td><p>CRITICAL is the critical level anomaly severity.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Anomaly.AnomalyType">Anomaly.AnomalyType</h3>+ <p>AnomalyType is the type of the anomaly.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ANOMALY_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified anomaly type.</p></td>+ </tr>++ <tr>+ <td>INSTANCE_CONNECTION</td>+ <td>1</td>+ <td><p>Instance level anomaly.++INSTANCE_CONNECTION is the anomaly type for instance connection, e.g. the instance is down.</p></td>+ </tr>++ <tr>+ <td>MIGRATION_SCHEMA</td>+ <td>2</td>+ <td><p>MIGRATION_SCHEMA is the anomaly type for migration schema, e.g. the migration schema in the instance is missing.</p></td>+ </tr>++ <tr>+ <td>DATABASE_CONNECTION</td>+ <td>5</td>+ <td><p>Database level anomaly.++DATABASE_CONNECTION is the anomaly type for database connection, e.g. the database had been deleted.</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_DRIFT</td>+ <td>6</td>+ <td><p>DATABASE_SCHEMA_DRIFT is the anomaly type for database schema drift,+e.g. the database schema had been changed without bytebase migration.</p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.AnomalyService">AnomalyService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SearchAnomalies</td>+ <td><a href="#bytebase.v1.SearchAnomaliesRequest">SearchAnomaliesRequest</a></td>+ <td><a href="#bytebase.v1.SearchAnomaliesResponse">SearchAnomaliesResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>auth_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>token_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>user_info_url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>client_secret</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>scopes</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>auth_style</td>- <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>SearchAnomalies</td>+ <td>POST</td>+ <td>/v1/anomalies:search</td>+ <td>*</td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</h3>+ <div class="file-heading">+ <h2 id="v1/iam_policy.proto">v1/iam_policy.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.Binding">Binding</h3><p></p>@@ -14777,10 +14252,36 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>code</td>+ <td>role</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The role that is assigned to the members.+Format: roles/{role} </p></td>+ </tr>++ <tr>+ <td>members</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>Specifies the principals requesting access for a Bytebase resource.+For users, the member should be: user:{email}+For groups, the member should be: group:{email} </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>Authorize code from website. </p></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>parsed_expr</td>+ <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td></td>+ <td><p>The parsed expression of the condition. </p></td></tr></tbody>@@ -14790,8 +14291,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3>- <p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p>+ <h3 id="bytebase.v1.BindingDelta">BindingDelta</h3>+ <p>One delta entry for Binding. Each individual change (only one member in each</p><p>entry) to a binding will be a separate entry.</p><table class="field-table">@@ -14801,52 +14302,58 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>issuer</td>- <td><a href="#string">string</a></td>+ <td>action</td>+ <td><a href="#bytebase.v1.BindingDelta.Action">BindingDelta.Action</a></td><td></td>- <td><p> </p></td>+ <td><p>The action that was performed on a Binding. </p></td></tr><tr>- <td>client_id</td>+ <td>role</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Role that is assigned to `members`.+For example, `roles/projectOwner`. </p></td></tr><tr>- <td>client_secret</td>+ <td>member</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>scopes</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>Follows the same format of Binding.members. </p></td></tr><tr>- <td>field_mapping</td>- <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p> </p></td>+ <td><p>The condition that is associated with this binding. </p></td></tr>- <tr>- <td>skip_tls_verify</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>auth_style</td>- <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>+ <td>resource</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the resource to get the IAM policy.+Format: projects/{project}+Format: workspaces/{workspace} </p></td></tr></tbody>@@ -14856,7 +14363,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.IamPolicy">IamPolicy</h3><p></p>@@ -14867,17 +14374,20 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td></td>- <td><p>The identity provider to test connection including uncreated. </p></td>+ <td>bindings</td>+ <td><a href="#bytebase.v1.Binding">Binding</a></td>+ <td>repeated</td>+ <td><p>Collection of binding.+A binding binds one or more project members to a single project role. </p></td></tr><tr>- <td>oauth2_context</td>- <td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td>+ <td>etag</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The current etag of the policy.+If an etag is provided and does not match the current etag of the poliy,+the call will be blocked and an ABORTED error will be returned. </p></td></tr></tbody>@@ -14887,15 +14397,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</h3>- <p></p>------ <h3 id="bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</h3>- <p></p>+ <h3 id="bytebase.v1.PolicyDelta">PolicyDelta</h3>+ <p>The difference delta between two policies.</p><table class="field-table">@@ -14905,11 +14408,10 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the deleted identity provider.-Format: idps/{identity_provider} </p></td>+ <td>binding_deltas</td>+ <td><a href="#bytebase.v1.BindingDelta">BindingDelta</a></td>+ <td>repeated</td>+ <td><p>The delta for Bindings between two policies. </p></td></tr></tbody>@@ -14919,7 +14421,7 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</h3>+ <h3 id="bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</h3><p></p>@@ -14930,20 +14432,26 @@ Format: idps/{identity_provider} </p></td><tbody><tr>- <td>identity_provider</td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>resource</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The identity provider to update.--The identity provider's `name` field is used to identify the identity provider to update.-Format: idps/{identity_provider} </p></td>+ <td><p>The name of the resource to set the IAM policy.+Format: projects/{project}+Format: workspaces/{workspace} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>policy</td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>etag</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The current etag of the policy. </p></td></tr></tbody>@@ -14955,234 +14463,72 @@ Format: idps/{identity_provider} </p></td>- <h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>OAUTH2</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>OIDC</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>LDAP</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3>- <p></p>+ <h3 id="bytebase.v1.BindingDelta.Action">BindingDelta.Action</h3>+ <p>The type of action performed on a Binding in a policy.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr></thead><tbody>-- <tr>- <td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>IN_PARAMS</td>- <td>1</td>- <td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST body-as application/x-www-form-urlencoded parameters.</p></td>- </tr>-- <tr>- <td>IN_HEADER</td>- <td>2</td>- <td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.-This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GetIdentityProvider</td>- <td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListIdentityProviders</td>- <td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>- <td><a href="#bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateIdentityProvider</td>- <td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateIdentityProvider</td>- <td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteIdentityProvider</td>- <td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>++ <tr>+ <td>ACTION_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>UndeleteIdentityProvider</td>- <td><a href="#bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>ADD</td>+ <td>1</td><td><p></p></td></tr><tr>- <td>TestIdentityProvider</td>- <td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>- <td><a href="#bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</a></td>+ <td>REMOVE</td>+ <td>2</td><td><p></p></td></tr></tbody></table>++++++++ <div class="file-heading">+ <h2 id="v1/audit_log_service.proto">v1/audit_log_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.AuditData">AuditData</h3>+ <p></p>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>GetIdentityProvider</td>- <td>GET</td>- <td>/v1/{name=idps/*}</td>- <td></td>- </tr>----- <tr>- <td>ListIdentityProviders</td>- <td>GET</td>- <td>/v1/idps</td>- <td></td>- </tr>----- <tr>- <td>CreateIdentityProvider</td>- <td>POST</td>- <td>/v1/idps</td>- <td>identity_provider</td>- </tr>----- <tr>- <td>UpdateIdentityProvider</td>- <td>PATCH</td>- <td>/v1/{identity_provider.name=idps/*}</td>- <td>identity_provider</td>- </tr>----- <tr>- <td>DeleteIdentityProvider</td>- <td>DELETE</td>- <td>/v1/{name=idps/*}</td>- <td></td>- </tr>----- <tr>- <td>UndeleteIdentityProvider</td>- <td>POST</td>- <td>/v1/{name=idps/*}:undelete</td>- <td>*</td>- </tr>---- <tr>- <td>TestIdentityProvider</td>- <td>POST</td>- <td>/v1/idps/*:test</td>- <td>*</td>- </tr>+ <tr>+ <td>policy_delta</td>+ <td><a href="#bytebase.v1.PolicyDelta">PolicyDelta</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/issue_service.proto">v1/issue_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.ApprovalFlow">ApprovalFlow</h3>+ <h3 id="bytebase.v1.AuditLog">AuditLog</h3><p></p>@@ -15193,12 +14539,86 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tbody><tr>- <td>steps</td>- <td><a href="#bytebase.v1.ApprovalStep">ApprovalStep</a></td>- <td>repeated</td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the log.+Formats:+- projects/{project}/auditLogs/{uid}+- workspaces/{workspace}/auditLogs/{uid} </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>user</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td>+ </tr>++ <tr>+ <td>method</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>e.g. `/bytebase.v1.SQLService/Query`, `bb.project.repository.push` </p></td>+ </tr>++ <tr>+ <td>severity</td>+ <td><a href="#bytebase.v1.AuditLog.Severity">AuditLog.Severity</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>resource</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The associated resource. </p></td>+ </tr>++ <tr>+ <td>request</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>JSON-encoded request. </p></td>+ </tr>++ <tr>+ <td>response</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>JSON-encoded response.+Some fields are omitted because they are too large or contain sensitive information. </p></td>+ </tr>++ <tr>+ <td>status</td>+ <td><a href="#google.rpc.Status">google.rpc.Status</a></td>+ <td></td><td><p> </p></td></tr>+ <tr>+ <td>service_data</td>+ <td><a href="#google.protobuf.Any">google.protobuf.Any</a></td>+ <td></td>+ <td><p>service-specific data about the request, response, and other activities. </p></td>+ </tr>++ <tr>+ <td>request_metadata</td>+ <td><a href="#bytebase.v1.RequestMetadata">RequestMetadata</a></td>+ <td></td>+ <td><p>Metadata about the operation. </p></td>+ </tr>+</tbody></table>@@ -15206,7 +14626,7 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t- <h3 id="bytebase.v1.ApprovalNode">ApprovalNode</h3>+ <h3 id="bytebase.v1.ExportAuditLogsRequest">ExportAuditLogsRequest</h3><p></p>@@ -15217,29 +14637,62 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>group_value</td>- <td><a href="#bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td>+ <td>filter</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The filter of the log. It should be a valid CEL expression.+For example:+ - filter = "method == '/bytebase.v1.SQLService/Query'"+ - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'"+ - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'"+ - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" </p></td></tr><tr>- <td>role</td>+ <td>order_by</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: roles/{role} </p></td>+ <td><p>The order by of the log.+Only support order by create_time.+For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc" </p></td></tr><tr>- <td>external_node_id</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td></td>+ <td><p>The export format. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ExportAuditLogsResponse">ExportAuditLogsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>content</td>+ <td><a href="#bytes">bytes</a></td><td></td><td><p> </p></td></tr>@@ -15251,8 +14704,8 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t- <h3 id="bytebase.v1.ApprovalStep">ApprovalStep</h3>- <p></p>+ <h3 id="bytebase.v1.RequestMetadata">RequestMetadata</h3>+ <p>Metadata about the request.</p><table class="field-table">@@ -15262,17 +14715,18 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</a></td>+ <td>caller_ip</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The IP address of the caller. </p></td></tr><tr>- <td>nodes</td>- <td><a href="#bytebase.v1.ApprovalNode">ApprovalNode</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>caller_supplied_user_agent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The user agent of the caller.+This information is not authenticated and should be treated accordingly. </p></td></tr></tbody>@@ -15282,7 +14736,7 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t- <h3 id="bytebase.v1.ApprovalTemplate">ApprovalTemplate</h3>+ <h3 id="bytebase.v1.SearchAuditLogsRequest">SearchAuditLogsRequest</h3><p></p>@@ -15293,64 +14747,51 @@ This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></t<tbody><tr>- <td>flow</td>- <td><a href="#bytebase.v1.ApprovalFlow">ApprovalFlow</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>title</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>description</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The filter of the log. It should be a valid CEL expression.+For example:+ - filter = "method == '/bytebase.v1.SQLService/Query'"+ - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR'"+ - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && user == 'users/[email protected]'"+ - filter = "method == '/bytebase.v1.SQLService/Query' && severity == 'ERROR' && create_time <= '2021-01-01T00:00:00Z' && create_time >= '2020-01-01T00:00:00Z'" </p></td></tr><tr>- <td>creator</td>+ <td>order_by</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The order by of the log.+Only support order by create_time.+For example:+ - order_by = "create_time asc"+ - order_by = "create_time desc" </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The name of the issue to add an approver.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>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. </p></td></tr><tr>- <td>comment</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A page token, received from a previous `SearchLogs` call.+Provide this to retrieve the subsequent page. </p></td></tr></tbody>@@ -15360,7 +14801,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</h3>+ <h3 id="bytebase.v1.SearchAuditLogsResponse">SearchAuditLogsResponse</h3><p></p>@@ -15371,35 +14812,19 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>issues</td>- <td><a href="#string">string</a></td>+ <td>audit_logs</td>+ <td><a href="#bytebase.v1.AuditLog">AuditLog</a></td><td>repeated</td>- <td><p>The list of issues to update.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>- <td></td>- <td><p>The new status. </p></td>+ <td><p> </p></td></tr><tr>- <td>reason</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token to retrieve next page of log entities.+Pass this value in the page_token field in the subsequent call+to retrieve the next page of log entities. </p></td></tr></tbody>@@ -15409,46 +14834,164 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</h3>+++ <h3 id="bytebase.v1.AuditLog.Severity">AuditLog.Severity</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>DEFAULT</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DEBUG</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>INFO</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>NOTICE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WARNING</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ERROR</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CRITICAL</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ALERT</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>EMERGENCY</td>+ <td>8</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+-+-- <h3 id="bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</h3>+ <h3 id="bytebase.v1.AuditLogService">AuditLogService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>SearchAuditLogs</td>+ <td><a href="#bytebase.v1.SearchAuditLogsRequest">SearchAuditLogsRequest</a></td>+ <td><a href="#bytebase.v1.SearchAuditLogsResponse">SearchAuditLogsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ExportAuditLogs</td>+ <td><a href="#bytebase.v1.ExportAuditLogsRequest">ExportAuditLogsRequest</a></td>+ <td><a href="#bytebase.v1.ExportAuditLogsResponse">ExportAuditLogsResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The issue name-Format: projects/{project}/issues/{issue} </p></td>- </tr>- <tr>- <td>issue_comment</td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>SearchAuditLogs</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/auditLogs:search</td>+ <td>*</td>+ </tr>++ <tr>+ <td>SearchAuditLogs</td>+ <td>POST</td>+ <td>/v1/auditLogs:search</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>ExportAuditLogs</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/auditLogs:export</td>+ <td>*</td>+ </tr>++ <tr>+ <td>ExportAuditLogs</td>+ <td>POST</td>+ <td>/v1/auditLogs:export</td>+ <td>*</td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.CreateIssueRequest">CreateIssueRequest</h3>+ <div class="file-heading">+ <h2 id="v1/auth_service.proto">v1/auth_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateUserRequest">CreateUserRequest</h3><p></p>@@ -15459,18 +15002,10 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>issue</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>user</td>+ <td><a href="#bytebase.v1.User">User</a></td><td></td>- <td><p>The issue to create. </p></td>+ <td><p>The user to create. </p></td></tr></tbody>@@ -15480,7 +15015,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetIssueRequest">GetIssueRequest</h3>+ <h3 id="bytebase.v1.DeleteUserRequest">DeleteUserRequest</h3><p></p>@@ -15494,15 +15029,8 @@ Format: projects/{project} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the issue to retrieve.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>force</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the user to delete.+Format: users/{user} </p></td></tr></tbody>@@ -15512,7 +15040,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.GrantRequest">GrantRequest</h3>+ <h3 id="bytebase.v1.GetUserRequest">GetUserRequest</h3><p></p>@@ -15523,33 +15051,11 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>role</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The requested role.-Format: roles/EXPORTER. </p></td>- </tr>-- <tr>- <td>user</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The user to be granted.-Format: users/{email}. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>expiration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the user to retrieve.+Format: users/{user uid or user email} </p></td></tr></tbody>@@ -15559,7 +15065,7 @@ Format: users/{email}. </p></td>- <h3 id="bytebase.v1.Issue">Issue</h3>+ <h3 id="bytebase.v1.IdentityProviderContext">IdentityProviderContext</h3><p></p>@@ -15570,168 +15076,19 @@ Format: users/{email}. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Issue.Type">Issue.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>approvers</td>- <td><a href="#bytebase.v1.Issue.Approver">Issue.Approver</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>approval_templates</td>- <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>approval_finding_done</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>approval_finding_error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>subscribers</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The subscribers.-Format: users/[email protected] </p></td>- </tr>-- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>oauth2_context</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderContext">OAuth2IdentityProviderContext</a></td><td></td><td><p> </p></td></tr><tr>- <td>plan</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The plan associated with the issue.-Can be empty.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- <tr>- <td>rollout</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The rollout associated with the issue.-Can be empty.-Format: projects/{project}/rollouts/{rollout} </p></td>- </tr>-- <tr>- <td>grant_request</td>- <td><a href="#bytebase.v1.GrantRequest">GrantRequest</a></td>- <td></td>- <td><p>Used if the issue type is GRANT_REQUEST. </p></td>- </tr>-- <tr>- <td>releasers</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>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} </p></td>- </tr>-- <tr>- <td>risk_level</td>- <td><a href="#bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</a></td>+ <td>oidc_context</td>+ <td><a href="#bytebase.v1.OIDCIdentityProviderContext">OIDCIdentityProviderContext</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>task_status_count</td>- <td><a href="#bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</a></td>- <td>repeated</td>- <td><p>The status count of the issue.-Keys are the following:-- NOT_STARTED-- SKIPPED-- PENDING-- RUNNING-- DONE-- FAILED-- CANCELED </p></td>- </tr>-- <tr>- <td>labels</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-</tbody></table>@@ -15739,7 +15096,7 @@ Keys are the following:- <h3 id="bytebase.v1.Issue.Approver">Issue.Approver</h3>+ <h3 id="bytebase.v1.ListUsersRequest">ListUsersRequest</h3><p></p>@@ -15750,17 +15107,31 @@ Keys are the following:<tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The new status. </p></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `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. </p></td></tr><tr>- <td>principal</td>- <td><a href="#string">string</a></td>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Format: users/[email protected] </p></td>+ <td><p>Show deleted users if specified. </p></td></tr></tbody>@@ -15770,7 +15141,7 @@ Keys are the following:- <h3 id="bytebase.v1.Issue.TaskStatusCountEntry">Issue.TaskStatusCountEntry</h3>+ <h3 id="bytebase.v1.ListUsersResponse">ListUsersResponse</h3><p></p>@@ -15781,17 +15152,18 @@ Keys are the following:<tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>users</td>+ <td><a href="#bytebase.v1.User">User</a></td>+ <td>repeated</td>+ <td><p>The users from the specified request. </p></td></tr><tr>- <td>value</td>- <td><a href="#int32">int32</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -15801,7 +15173,7 @@ Keys are the following:- <h3 id="bytebase.v1.IssueComment">IssueComment</h3>+ <h3 id="bytebase.v1.LoginRequest">LoginRequest</h3><p></p>@@ -15812,78 +15184,127 @@ Keys are the following:<tbody><tr>- <td>name</td>+ <td>email</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/issues/{issue}/issueComments/{issueComment-uid} </p></td>+ <td><p> </p></td></tr><tr>- <td>comment</td>+ <td>password</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>payload</td>- <td><a href="#string">string</a></td>+ <td>web</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>TODO: use struct message instead. </p></td>+ <td><p>If web is set, we will set access token, refresh token, and user to the cookie. </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>idp_name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the identity provider.+Format: idps/{idp} </p></td></tr><tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>idp_context</td>+ <td><a href="#bytebase.v1.IdentityProviderContext">IdentityProviderContext</a></td><td></td>- <td><p> </p></td>+ <td><p>The idp_context is using to get the user information from identity provider. </p></td></tr><tr>- <td>creator</td>+ <td>otp_code</td><td><a href="#string">string</a></td>- <td></td>- <td><p>Format: users/{email} </p></td>+ <td>optional</td>+ <td><p>The otp_code is used to verify the user's identity by MFA. </p></td></tr><tr>- <td>approval</td>- <td><a href="#bytebase.v1.IssueComment.Approval">IssueComment.Approval</a></td>- <td></td>- <td><p> </p></td>+ <td>recovery_code</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The recovery_code is used to recovery the user's identity with MFA. </p></td></tr><tr>- <td>issue_update</td>- <td><a href="#bytebase.v1.IssueComment.IssueUpdate">IssueComment.IssueUpdate</a></td>+ <td>mfa_temp_token</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The mfa_temp_token is used to verify the user's identity by MFA. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.LoginResponse">LoginResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>token</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>stage_end</td>- <td><a href="#bytebase.v1.IssueComment.StageEnd">IssueComment.StageEnd</a></td>- <td></td>+ <td>mfa_temp_token</td>+ <td><a href="#string">string</a></td>+ <td>optional</td><td><p> </p></td></tr><tr>- <td>task_update</td>- <td><a href="#bytebase.v1.IssueComment.TaskUpdate">IssueComment.TaskUpdate</a></td>+ <td>require_reset_password</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.LogoutRequest">LogoutRequest</h3>+ <p></p>++++++ <h3 id="bytebase.v1.OAuth2IdentityProviderContext">OAuth2IdentityProviderContext</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>task_prior_backup</td>- <td><a href="#bytebase.v1.IssueComment.TaskPriorBackup">IssueComment.TaskPriorBackup</a></td>+ <td>code</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -15895,7 +15316,14 @@ Keys are the following:- <h3 id="bytebase.v1.IssueComment.Approval">IssueComment.Approval</h3>+ <h3 id="bytebase.v1.OIDCIdentityProviderContext">OIDCIdentityProviderContext</h3>+ <p></p>++++++ <h3 id="bytebase.v1.UndeleteUserRequest">UndeleteUserRequest</h3><p></p>@@ -15906,10 +15334,11 @@ Keys are the following:<tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.IssueComment.Approval.Status">IssueComment.Approval.Status</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the deleted user.+Format: users/{user} </p></td></tr></tbody>@@ -15919,7 +15348,7 @@ Keys are the following:- <h3 id="bytebase.v1.IssueComment.IssueUpdate">IssueComment.IssueUpdate</h3>+ <h3 id="bytebase.v1.UpdateUserRequest">UpdateUserRequest</h3><p></p>@@ -15930,58 +15359,144 @@ Keys are the following:<tbody><tr>- <td>from_title</td>+ <td>user</td>+ <td><a href="#bytebase.v1.User">User</a></td>+ <td></td>+ <td><p>The user to update.++The user's `name` field is used to identify the user to update.+Format: users/{user} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ <tr>+ <td>otp_code</td><td><a href="#string">string</a></td><td>optional</td>- <td><p> </p></td>+ <td><p>The otp_code is used to verify the user's identity by MFA. </p></td></tr><tr>- <td>to_title</td>+ <td>regenerate_temp_mfa_secret</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>regenerate_recovery_codes</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The regenerate_recovery_codes flag means to regenerate recovery codes for user. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.User">User</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td><td><a href="#string">string</a></td>- <td>optional</td>+ <td></td>+ <td><p>The name of the user.+Format: users/{user}. {user} is a system-generated unique ID. </p></td>+ </tr>++ <tr>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>from_description</td>+ <td>email</td><td><a href="#string">string</a></td>- <td>optional</td>+ <td></td><td><p> </p></td></tr><tr>- <td>to_description</td>+ <td>title</td><td><a href="#string">string</a></td>- <td>optional</td>+ <td></td><td><p> </p></td></tr><tr>- <td>from_status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>- <td>optional</td>+ <td>user_type</td>+ <td><a href="#bytebase.v1.UserType">UserType</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>to_status</td>- <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>- <td>optional</td>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>service_key</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>from_labels</td>+ <td>mfa_enabled</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>The mfa_enabled flag means if the user has enabled MFA. </p></td>+ </tr>++ <tr>+ <td>mfa_secret</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The mfa_secret is the temporary secret using in two phase verification. </p></td>+ </tr>++ <tr>+ <td>recovery_codes</td><td><a href="#string">string</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>The recovery_codes is the temporary recovery codes using in two phase verification. </p></td></tr><tr>- <td>to_labels</td>+ <td>phone</td><td><a href="#string">string</a></td>- <td>repeated</td>+ <td></td>+ <td><p>Should be a valid E.164 compliant phone number.+Could be empty. </p></td>+ </tr>++ <tr>+ <td>profile</td>+ <td><a href="#bytebase.v1.User.Profile">User.Profile</a></td>+ <td></td><td><p> </p></td></tr>@@ -15992,7 +15507,7 @@ Keys are the following:- <h3 id="bytebase.v1.IssueComment.StageEnd">IssueComment.StageEnd</h3>+ <h3 id="bytebase.v1.User.Profile">User.Profile</h3><p></p>@@ -16003,20 +15518,254 @@ Keys are the following:<tbody><tr>- <td>stage</td>- <td><a href="#string">string</a></td>+ <td>last_login_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>+ <tr>+ <td>last_change_password_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>source</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>source means where the user comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td>+ </tr>+</tbody></table>-+++++ <h3 id="bytebase.v1.UserType">UserType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>USER_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>USER</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SYSTEM_BOT</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SERVICE_ACCOUNT</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.AuthService">AuthService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetUser</td>+ <td><a href="#bytebase.v1.GetUserRequest">GetUserRequest</a></td>+ <td><a href="#bytebase.v1.User">User</a></td>+ <td><p>Get the user.+Any authenticated user can get the user.</p></td>+ </tr>++ <tr>+ <td>ListUsers</td>+ <td><a href="#bytebase.v1.ListUsersRequest">ListUsersRequest</a></td>+ <td><a href="#bytebase.v1.ListUsersResponse">ListUsersResponse</a></td>+ <td><p>List all users.+Any authenticated user can list users.</p></td>+ </tr>++ <tr>+ <td>CreateUser</td>+ <td><a href="#bytebase.v1.CreateUserRequest">CreateUserRequest</a></td>+ <td><a href="#bytebase.v1.User">User</a></td>+ <td><p>Create a user.+When Disallow Signup is enabled, only the caller with bb.users.create on the workspace can create a user.+Otherwise, any unauthenticated user can create a user.</p></td>+ </tr>++ <tr>+ <td>UpdateUser</td>+ <td><a href="#bytebase.v1.UpdateUserRequest">UpdateUserRequest</a></td>+ <td><a href="#bytebase.v1.User">User</a></td>+ <td><p>Only the user itself and the user with bb.users.update permission on the workspace can update the user.</p></td>+ </tr>++ <tr>+ <td>DeleteUser</td>+ <td><a href="#bytebase.v1.DeleteUserRequest">DeleteUserRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p>Only the user with bb.users.delete permission on the workspace can delete the user.+The last remaining workspace admin cannot be deleted.</p></td>+ </tr>++ <tr>+ <td>UndeleteUser</td>+ <td><a href="#bytebase.v1.UndeleteUserRequest">UndeleteUserRequest</a></td>+ <td><a href="#bytebase.v1.User">User</a></td>+ <td><p>Only the user with bb.users.undelete permission on the workspace can undelete the user.</p></td>+ </tr>++ <tr>+ <td>Login</td>+ <td><a href="#bytebase.v1.LoginRequest">LoginRequest</a></td>+ <td><a href="#bytebase.v1.LoginResponse">LoginResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>Logout</td>+ <td><a href="#bytebase.v1.LogoutRequest">LogoutRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>++++ <tr>+ <td>GetUser</td>+ <td>GET</td>+ <td>/v1/{name=users/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListUsers</td>+ <td>GET</td>+ <td>/v1/users</td>+ <td></td>+ </tr>+++++ <tr>+ <td>CreateUser</td>+ <td>POST</td>+ <td>/v1/users</td>+ <td>user</td>+ </tr>+++++ <tr>+ <td>UpdateUser</td>+ <td>PATCH</td>+ <td>/v1/{user.name=users/*}</td>+ <td>user</td>+ </tr>+++++ <tr>+ <td>DeleteUser</td>+ <td>DELETE</td>+ <td>/v1/{name=users/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UndeleteUser</td>+ <td>POST</td>+ <td>/v1/{name=users/*}:undelete</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>Login</td>+ <td>POST</td>+ <td>/v1/auth/login</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>Logout</td>+ <td>POST</td>+ <td>/v1/auth/logout</td>+ <td>*</td>+ </tr>+++ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/branch_service.proto">v1/branch_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+- <h3 id="bytebase.v1.IssueComment.TaskPriorBackup">IssueComment.TaskPriorBackup</h3>+ <h3 id="bytebase.v1.Branch">Branch</h3><p></p>@@ -16027,128 +15776,108 @@ Keys are the following:<tbody><tr>- <td>task</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the branch.+Format: projects/{project}/branches/{branch}+{branch} should be the id of a sheet. </p></td></tr><tr>- <td>tables</td>- <td><a href="#bytebase.v1.IssueComment.TaskPriorBackup.Table">IssueComment.TaskPriorBackup.Table</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>branch_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The branch ID. </p></td></tr><tr>- <td>original_line</td>- <td><a href="#int32">int32</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The schema of branch. AKA sheet's statement. </p></td></tr><tr>- <td>database</td>- <td><a href="#string">string</a></td>+ <td>schema_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td><td></td>- <td><p> </p></td>+ <td><p>The metadata of the current editing schema. </p></td></tr><tr>- <td>error</td>+ <td>baseline_schema</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The baseline schema. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment.TaskPriorBackup.Table">IssueComment.TaskPriorBackup.Table</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>baseline_schema_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td></td>+ <td><p>The metadata of the baseline schema. </p></td>+ </tr><tr>- <td>schema</td>- <td><a href="#string">string</a></td>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td><td></td>- <td><p> </p></td>+ <td><p>The database engine of the branch. </p></td></tr><tr>- <td>table</td>+ <td>baseline_database</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the baseline database.+Format: instances/{instance}/databases/{database} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment.TaskUpdate">IssueComment.TaskUpdate</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>tasks</td>+ <td>parent_branch</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td></td>+ <td><p>The name of the parent branch.+For main branch, it's empty.+For child branch, its format will be: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>from_sheet</td>+ <td>etag</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ <td></td>+ <td><p>The etag of the branch. </p></td></tr><tr>- <td>to_sheet</td>+ <td>creator</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ <td></td>+ <td><p>The creator of the branch.+Format: users/{email} </p></td></tr><tr>- <td>from_earliest_allowed_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>updater</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The updater of the branch.+Format: users/{email} </p></td></tr><tr>- <td>to_earliest_allowed_time</td>+ <td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td>optional</td>- <td><p> </p></td>+ <td></td>+ <td><p>The timestamp when the branch was created. </p></td></tr><tr>- <td>to_status</td>- <td><a href="#bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The timestamp when the branch was last updated. </p></td></tr></tbody>@@ -16158,7 +15887,7 @@ Keys are the following:- <h3 id="bytebase.v1.ListIssueCommentsRequest">ListIssueCommentsRequest</h3>+ <h3 id="bytebase.v1.CreateBranchRequest">CreateBranchRequest</h3><p></p>@@ -16172,28 +15901,24 @@ Keys are the following:<td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{projects}/issues/{issue} </p></td>+ <td><p>The parent, which owns this collection of branches.+Format: project/{project} </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>branch</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>branch_id</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>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-_/]+. </p></td></tr></tbody>@@ -16203,7 +15928,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListIssueCommentsResponse">ListIssueCommentsResponse</h3>+ <h3 id="bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</h3><p></p>@@ -16214,18 +15939,20 @@ the call that provided the page token. </p></td><tbody><tr>- <td>issue_comments</td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the branch to delete.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>force</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>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. </p></td></tr></tbody>@@ -16235,7 +15962,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListIssuesRequest">ListIssuesRequest</h3>+ <h3 id="bytebase.v1.DiffDatabaseRequest">DiffDatabaseRequest</h3><p></p>@@ -16246,46 +15973,59 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project} </p></td>+ <td><p>The name of branch. </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>database</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The name of the databsae to merge the branch to. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DiffDatabaseResponse">DiffDatabaseResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>page_token</td>+ <td>diff</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The schema diff when merge occurs seamlessly. </p></td></tr><tr>- <td>filter</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td>- <td><p>Filter is used to filter issues returned in the list. </p></td>+ <td><p>The merged schema if there is no conflict. </p></td></tr><tr>- <td>query</td>+ <td>conflict_schema</td><td><a href="#string">string</a></td><td></td>- <td><p>Query is the query statement. </p></td>+ <td><p>The conflict schema when rebase has conflicts.+The conflict section is enclosed by the following.+<<<<< HEAD+====+>>>>> main </p></td></tr></tbody>@@ -16295,7 +16035,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListIssuesResponse">ListIssuesResponse</h3>+ <h3 id="bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</h3><p></p>@@ -16306,18 +16046,31 @@ the call that provided the page token. </p></td><tbody><tr>- <td>issues</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td>repeated</td>- <td><p>The issues from the specified request. </p></td>+ <td>source_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td></td>+ <td><p>The metadata of the source schema. </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>target_metadata</td>+ <td><a href="#bytebase.v1.DatabaseMetadata">DatabaseMetadata</a></td>+ <td></td>+ <td><p>The metadata of the target schema. </p></td>+ </tr>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p>The database engine of the schema. </p></td>+ </tr>++ <tr>+ <td>classification_from_config</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>If false, we will build the raw common by classification in database config. </p></td></tr></tbody>@@ -16327,7 +16080,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.RejectIssueRequest">RejectIssueRequest</h3>+ <h3 id="bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</h3><p></p>@@ -16338,18 +16091,10 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the issue to add an rejection.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>comment</td>+ <td>diff</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The diff of the metadata. </p></td></tr></tbody>@@ -16359,7 +16104,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.RequestIssueRequest">RequestIssueRequest</h3>+ <h3 id="bytebase.v1.GetBranchRequest">GetBranchRequest</h3><p></p>@@ -16373,15 +16118,8 @@ Format: projects/{project}/issues/{issue} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the issue to request a issue.-Format: projects/{project}/issues/{issue} </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the branch to retrieve.+Format: projects/{project}/branches/{branch} </p></td></tr></tbody>@@ -16391,7 +16129,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</h3>+ <h3 id="bytebase.v1.ListBranchesRequest">ListBranchesRequest</h3><p></p>@@ -16405,18 +16143,24 @@ Format: projects/{project}/issues/{issue} </p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of issues.-Format: projects/{project}-Use "projects/-" to list all issues from all projects. </p></td>+ <td><p>The parent resource of the branch.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>To filter the search result. </p></td></tr><tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of issues to return. The service may return fewer than+ <td><p>The maximum number of branches to return. The service may return fewer thanthis value.-If unspecified, at most 50 issues will be returned.+If unspecified, at most 50 branches will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -16424,25 +16168,18 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListIssues` call.+ <td><p>A page token, received from a previous `ListBranches` call.Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListIssues` must match+When paginating, all other parameters provided to `ListBranches` must matchthe call that provided the page token. </p></td></tr><tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Filter is used to filter issues returned in the list. </p></td>- </tr>-- <tr>- <td>query</td>- <td><a href="#string">string</a></td>+ <td>view</td>+ <td><a href="#bytebase.v1.BranchView">BranchView</a></td><td></td>- <td><p>Query is the query statement. </p></td>+ <td><p> </p></td></tr></tbody>@@ -16452,7 +16189,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</h3>+ <h3 id="bytebase.v1.ListBranchesResponse">ListBranchesResponse</h3><p></p>@@ -16463,10 +16200,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>issues</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>branches</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td><td>repeated</td>- <td><p>The issues from the specified request. </p></td>+ <td><p>The branches from the specified request. </p></td></tr><tr>@@ -16484,7 +16221,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</h3>+ <h3 id="bytebase.v1.MergeBranchRequest">MergeBranchRequest</h3><p></p>@@ -16495,25 +16232,36 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The issue name-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The name of the base branch to merge to.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>issue_comment</td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>+ <td>head_branch</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The head branch to merge from.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>etag</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>validate_only determines if the merge can occur seamlessly without any conflicts. </p></td></tr></tbody>@@ -16523,7 +16271,7 @@ Format: projects/{project}/issues/{issue} </p></td>- <h3 id="bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</h3>+ <h3 id="bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</h3><p></p>@@ -16534,230 +16282,145 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>issue</td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The issue to update.--The issue's `name` field is used to identify the issue to update.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The name of the base branch to merge to.+Format: projects/{project}/branches/{branch} </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>source_database</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p>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} </p></td>+ </tr>++ <tr>+ <td>source_branch</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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} </p></td>+ </tr>++ <tr>+ <td>merged_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>etag</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>validate_only determines if the rebase can occur seamlessly without any conflicts. </p></td></tr></tbody></table>------ <h3 id="bytebase.v1.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>- <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>GROUP_VALUE_UNSPECIFILED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>WORKSPACE_OWNER</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>WORKSPACE_DBA</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>PROJECT_OWNER</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>PROJECT_MEMBER</td>- <td>4</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.ApprovalNode.Type">ApprovalNode.Type</h3>- <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ANY_IN_GROUP</td>- <td>1</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.ApprovalStep.Type">ApprovalStep.Type</h3>- <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ALL</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>ANY</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>++- <h3 id="bytebase.v1.Issue.Approver.Status">Issue.Approver.Status</h3>+ <h3 id="bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>APPROVED</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>REJECTED</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>branch</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td></td>+ <td><p>The rebased branch when rebase occurs seamlessly. </p></td>+ </tr>++ <tr>+ <td>conflict_schema</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The conflict schema when rebase has conflicts.+The conflict section is enclosed by the following.+<<<<< HEAD+====+>>>>> main </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.Issue.RiskLevel">Issue.RiskLevel</h3>+ <h3 id="bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>RISK_LEVEL_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>LOW</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>MODERATE</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>HIGH</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>branch</td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td></td>+ <td><p>The branch to update.++The branch's `name` field is used to identify the branch to update.+Format: projects/{project}/branches/{branch} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ <tr>+ <td>etag</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.Issue.Type">Issue.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_CHANGE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>GRANT_REQUEST</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_DATA_EXPORT</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+- <h3 id="bytebase.v1.IssueComment.Approval.Status">IssueComment.Approval.Status</h3>+ <h3 id="bytebase.v1.BranchView">BranchView</h3><p></p><table class="enum-table"><thead>@@ -16766,217 +16429,327 @@ Format: projects/{project}/issues/{issue} </p></td><tbody><tr>- <td>STATUS_UNSPECIFIED</td>+ <td>BRANCH_VIEW_UNSPECIFIED</td><td>0</td>- <td><p></p></td>+ <td><p>The default / unset value.+The API will default to the BASIC view.</p></td></tr><tr>- <td>PENDING</td>+ <td>BRANCH_VIEW_BASIC</td><td>1</td>- <td><p></p></td>+ <td><p>Exclude schema, baseline_schema.</p></td></tr><tr>- <td>APPROVED</td>+ <td>BRANCH_VIEW_FULL</td><td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>REJECTED</td>- <td>3</td>- <td><p></p></td>+ <td><p>Include everything.</p></td></tr></tbody></table>- <h3 id="bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</h3>+++++ <h3 id="bytebase.v1.BranchService">BranchService</h3><p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>3</td>+ <td>GetBranch</td>+ <td><a href="#bytebase.v1.GetBranchRequest">GetBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td><td><p></p></td></tr><tr>- <td>FAILED</td>- <td>4</td>+ <td>ListBranches</td>+ <td><a href="#bytebase.v1.ListBranchesRequest">ListBranchesRequest</a></td>+ <td><a href="#bytebase.v1.ListBranchesResponse">ListBranchesResponse</a></td><td><p></p></td></tr><tr>- <td>SKIPPED</td>- <td>5</td>+ <td>CreateBranch</td>+ <td><a href="#bytebase.v1.CreateBranchRequest">CreateBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td><td><p></p></td></tr><tr>- <td>CANCELED</td>- <td>6</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>+ <td>UpdateBranch</td>+ <td><a href="#bytebase.v1.UpdateBranchRequest">UpdateBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td>+ <td><p></p></td>+ </tr><tr>- <td>ISSUE_STATUS_UNSPECIFIED</td>- <td>0</td>+ <td>MergeBranch</td>+ <td><a href="#bytebase.v1.MergeBranchRequest">MergeBranchRequest</a></td>+ <td><a href="#bytebase.v1.Branch">Branch</a></td><td><p></p></td></tr><tr>- <td>OPEN</td>- <td>1</td>+ <td>RebaseBranch</td>+ <td><a href="#bytebase.v1.RebaseBranchRequest">RebaseBranchRequest</a></td>+ <td><a href="#bytebase.v1.RebaseBranchResponse">RebaseBranchResponse</a></td><td><p></p></td></tr><tr>- <td>DONE</td>- <td>2</td>+ <td>DeleteBranch</td>+ <td><a href="#bytebase.v1.DeleteBranchRequest">DeleteBranchRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr><tr>- <td>CANCELED</td>- <td>3</td>+ <td>DiffMetadata</td>+ <td><a href="#bytebase.v1.DiffMetadataRequest">DiffMetadataRequest</a></td>+ <td><a href="#bytebase.v1.DiffMetadataResponse">DiffMetadataResponse</a></td><td><p></p></td></tr></tbody></table>----- <h3 id="bytebase.v1.IssueService">IssueService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead><tr>- <td>GetIssue</td>- <td><a href="#bytebase.v1.GetIssueRequest">GetIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td></tr>+ </thead>+ <tbody>++<tr>- <td>CreateIssue</td>- <td><a href="#bytebase.v1.CreateIssueRequest">CreateIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>+ <td>GetBranch</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/branches/*}</td>+ <td></td></tr>+++<tr>- <td>ListIssues</td>- <td><a href="#bytebase.v1.ListIssuesRequest">ListIssuesRequest</a></td>- <td><a href="#bytebase.v1.ListIssuesResponse">ListIssuesResponse</a></td>- <td><p></p></td>+ <td>ListBranches</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/branches</td>+ <td></td></tr>+++<tr>- <td>SearchIssues</td>- <td><a href="#bytebase.v1.SearchIssuesRequest">SearchIssuesRequest</a></td>- <td><a href="#bytebase.v1.SearchIssuesResponse">SearchIssuesResponse</a></td>- <td><p>Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.</p></td>+ <td>CreateBranch</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/branch</td>+ <td>branch</td></tr>+++<tr>- <td>UpdateIssue</td>- <td><a href="#bytebase.v1.UpdateIssueRequest">UpdateIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p></p></td>+ <td>UpdateBranch</td>+ <td>PATCH</td>+ <td>/v1/{branch.name=projects/*/branches/*}</td>+ <td>branch</td></tr>+++<tr>- <td>ListIssueComments</td>- <td><a href="#bytebase.v1.ListIssueCommentsRequest">ListIssueCommentsRequest</a></td>- <td><a href="#bytebase.v1.ListIssueCommentsResponse">ListIssueCommentsResponse</a></td>- <td><p></p></td>+ <td>MergeBranch</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/branches/*}:merge</td>+ <td></td></tr>+++<tr>- <td>CreateIssueComment</td>- <td><a href="#bytebase.v1.CreateIssueCommentRequest">CreateIssueCommentRequest</a></td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td><p></p></td>+ <td>RebaseBranch</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/branches/*}:rebase</td>+ <td></td></tr>+++<tr>- <td>UpdateIssueComment</td>- <td><a href="#bytebase.v1.UpdateIssueCommentRequest">UpdateIssueCommentRequest</a></td>- <td><a href="#bytebase.v1.IssueComment">IssueComment</a></td>- <td><p></p></td>+ <td>DeleteBranch</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/branches/*}</td>+ <td></td></tr>+++<tr>- <td>BatchUpdateIssuesStatus</td>- <td><a href="#bytebase.v1.BatchUpdateIssuesStatusRequest">BatchUpdateIssuesStatusRequest</a></td>- <td><a href="#bytebase.v1.BatchUpdateIssuesStatusResponse">BatchUpdateIssuesStatusResponse</a></td>- <td><p></p></td>+ <td>DiffMetadata</td>+ <td>POST</td>+ <td>/v1/schemaDesign:diffMetadata</td>+ <td>*</td></tr>+- <tr>- <td>ApproveIssue</td>- <td><a href="#bytebase.v1.ApproveIssueRequest">ApproveIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p>ApproveIssue approves the issue.-The access is based on approval flow.</p></td>- </tr>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/cel_service.proto">v1/cel_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>expressions</td>+ <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>expressions</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchParseRequest">BatchParseRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>expressions</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.BatchParseResponse">BatchParseResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>expressions</td>+ <td><a href="#google.api.expr.v1alpha1.ParsedExpr">google.api.expr.v1alpha1.ParsedExpr</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++++++++ <h3 id="bytebase.v1.CelService">CelService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>RejectIssue</td>- <td><a href="#bytebase.v1.RejectIssueRequest">RejectIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p>RejectIssue rejects the issue.-The access is based on approval flow.</p></td>+ <td>BatchParse</td>+ <td><a href="#bytebase.v1.BatchParseRequest">BatchParseRequest</a></td>+ <td><a href="#bytebase.v1.BatchParseResponse">BatchParseResponse</a></td>+ <td><p></p></td></tr><tr>- <td>RequestIssue</td>- <td><a href="#bytebase.v1.RequestIssueRequest">RequestIssueRequest</a></td>- <td><a href="#bytebase.v1.Issue">Issue</a></td>- <td><p>RequestIssue requests the issue.-The access is based on approval flow.</p></td>+ <td>BatchDeparse</td>+ <td><a href="#bytebase.v1.BatchDeparseRequest">BatchDeparseRequest</a></td>+ <td><a href="#bytebase.v1.BatchDeparseResponse">BatchDeparseResponse</a></td>+ <td><p></p></td></tr></tbody>@@ -17000,39 +16773,9 @@ The access is based on approval flow.</p></td><tr>- <td>GetIssue</td>- <td>GET</td>- <td>/v1/{name=projects/*/issues/*}</td>- <td></td>- </tr>----- <tr>- <td>CreateIssue</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/issues</td>- <td>issue</td>- </tr>----- <tr>- <td>ListIssues</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/issues</td>- <td></td>- </tr>----- <tr>- <td>SearchIssues</td>+ <td>BatchParse</td><td>POST</td>- <td>/v1/{parent=projects/*}/issues:search</td>+ <td>/v1/cel/batchParse</td><td>*</td></tr>@@ -17040,96 +16783,137 @@ The access is based on approval flow.</p></td><tr>- <td>UpdateIssue</td>- <td>PATCH</td>- <td>/v1/{issue.name=projects/*/issues/*}</td>- <td>issue</td>- </tr>----- <tr>- <td>ListIssueComments</td>- <td>GET</td>- <td>/v1/{parent=projects/*/issues/*}/issueComments</td>- <td></td>- </tr>----- <tr>- <td>CreateIssueComment</td>+ <td>BatchDeparse</td><td>POST</td>- <td>/v1/{parent=projects/*/issues/*}:comment</td>- <td>issue_comment</td>- </tr>----- <tr>- <td>UpdateIssueComment</td>- <td>PATCH</td>- <td>/v1/{parent=projects/*/issues/*}:comment</td>- <td>issue_comment</td>+ <td>/v1/cel/batchDeparse</td>+ <td>*</td></tr>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/changelist_service.proto">v1/changelist_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.Changelist">Changelist</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the changelist resource.+Canonical parent is project.+Format: projects/{project}/changelists/{changelist} </p></td>+ </tr>- <tr>- <td>BatchUpdateIssuesStatus</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/issues:batchUpdateStatus</td>- <td>*</td>- </tr>+ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The creator of the changelist.+Format: users/{email} </p></td>+ </tr>+ <tr>+ <td>updater</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The updater of the changelist.+Format: users/{email} </p></td>+ </tr>- <tr>- <td>ApproveIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:approve</td>- <td>*</td>- </tr>+ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The create time of the changelist. </p></td>+ </tr>-+ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p>The last update time of the changelist. </p></td>+ </tr>+ <tr>+ <td>changes</td>+ <td><a href="#bytebase.v1.Changelist.Change">Changelist.Change</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>- <tr>- <td>RejectIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:reject</td>- <td>*</td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Changelist.Change">Changelist.Change</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>-+ <tr>+ <td>sheet</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of a sheet. </p></td>+ </tr>+ <tr>+ <td>source</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The source of origin.+1) change history: instances/{instance}/databases/{database}/changeHistories/{changeHistory}.+2) branch: projects/{project}/branches/{branch}.+3) raw SQL if empty. </p></td>+ </tr>- <tr>- <td>RequestIssue</td>- <td>POST</td>- <td>/v1/{name=projects/*/issues/*}:request</td>- <td>*</td>- </tr>+ <tr>+ <td>version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The migration version for a change. </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/org_policy_service.proto">v1/org_policy_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</h3>+ <h3 id="bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</h3><p></p>@@ -17143,25 +16927,26 @@ The access is based on approval flow.</p></td><td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The parent resource where this changelist will be created.+Format: projects/{project} </p></td></tr><tr>- <td>policy</td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>changelist</td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td><td></td>- <td><p>The policy to create. </p></td>+ <td><p>The changelist to create. </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>+ <td>changelist_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>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]-/. </p></td></tr></tbody>@@ -17171,7 +16956,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.DataSourceQueryPolicy">DataSourceQueryPolicy</h3>+ <h3 id="bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</h3><p></p>@@ -17182,10 +16967,11 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tbody><tr>- <td>admin_data_source_restriction</td>- <td><a href="#bytebase.v1.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the changelist to delete.+Format: projects/{project}/changelists/{changelist} </p></td></tr></tbody>@@ -17195,7 +16981,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</h3>+ <h3 id="bytebase.v1.GetChangelistRequest">GetChangelistRequest</h3><p></p>@@ -17209,12 +16995,8 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The policy's `name` field is used to identify the instance to update.-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. </p></td>+ <td><p>The name of the changelist to retrieve.+Format: projects/{project}/changelists/{changelist} </p></td></tr></tbody>@@ -17224,7 +17006,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</h3>+ <h3 id="bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</h3><p></p>@@ -17235,10 +17017,32 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tbody><tr>- <td>active</td>- <td><a href="#bool">bool</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent, which owns this collection of changelists.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `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. </p></td></tr></tbody>@@ -17248,7 +17052,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.GetPolicyRequest">GetPolicyRequest</h3>+ <h3 id="bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</h3><p></p>@@ -17259,11 +17063,18 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tbody><tr>- <td>name</td>+ <td>changelists</td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td>repeated</td>+ <td><p>The changelists from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the policy to retrieve.-Format: {resource type}/{resource id}/policies/{policy type} </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -17273,7 +17084,7 @@ Format: {resource type}/{resource id}/policies/{policy type} </p></td>- <h3 id="bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</h3>+ <h3 id="bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</h3><p></p>@@ -17284,46 +17095,20 @@ Format: {resource type}/{resource id}/policies/{policy type} </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of policies.-Format: {resource type}/{resource id} </p></td>- </tr>-- <tr>- <td>policy_type</td>- <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>+ <td>changelist</td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td><td></td>- <td><p>A page token, received from a previous `GetPolicies` call.-Provide this to retrieve the subsequent page.+ <td><p>The changelist to update.-When paginating, all other parameters provided to `GetPolicies` must match-the call that provided the page token. </p></td>+The changelist's `name` field is used to identify the changelist to update.+Format: projects/{project}/changelists/{changelist} </p></td></tr><tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>Show deleted policies if specified. </p></td>+ <td><p>The list of fields to be updated. </p></td></tr></tbody>@@ -17333,7 +17118,136 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</h3>+++++++ <h3 id="bytebase.v1.ChangelistService">ChangelistService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>CreateChangelist</td>+ <td><a href="#bytebase.v1.CreateChangelistRequest">CreateChangelistRequest</a></td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetChangelist</td>+ <td><a href="#bytebase.v1.GetChangelistRequest">GetChangelistRequest</a></td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListChangelists</td>+ <td><a href="#bytebase.v1.ListChangelistsRequest">ListChangelistsRequest</a></td>+ <td><a href="#bytebase.v1.ListChangelistsResponse">ListChangelistsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateChangelist</td>+ <td><a href="#bytebase.v1.UpdateChangelistRequest">UpdateChangelistRequest</a></td>+ <td><a href="#bytebase.v1.Changelist">Changelist</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteChangelist</td>+ <td><a href="#bytebase.v1.DeleteChangelistRequest">DeleteChangelistRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr>+ </thead>+ <tbody>++++ <tr>+ <td>CreateChangelist</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/changelists</td>+ <td>changelist</td>+ </tr>+++++ <tr>+ <td>GetChangelist</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/changelists/*}</td>+ <td></td>+ </tr>+++++ <tr>+ <td>ListChangelists</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/changelists</td>+ <td></td>+ </tr>+++++ <tr>+ <td>UpdateChangelist</td>+ <td>PATCH</td>+ <td>/v1/{changelist.name=projects/*/changelists/*}</td>+ <td>changelist</td>+ </tr>+++++ <tr>+ <td>DeleteChangelist</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/changelists/*}</td>+ <td></td>+ </tr>+++ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/database_group_service.proto">v1/database_group_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</h3><p></p>@@ -17344,18 +17258,36 @@ the call that provided the page token. </p></td><tbody><tr>- <td>policies</td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td>repeated</td>- <td><p>The policies from the specified request. </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource where this database group will be created.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>database_group</td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td></td>+ <td><p>The database group to create. </p></td></tr><tr>- <td>next_page_token</td>+ <td>database_group_id</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The 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]-/. </p></td>+ </tr>++ <tr>+ <td>validate_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If set, validate the create request and preview the full database group response, but do not actually create it. </p></td></tr></tbody>@@ -17365,7 +17297,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskData">MaskData</h3>+ <h3 id="bytebase.v1.DatabaseGroup">DatabaseGroup</h3><p></p>@@ -17376,43 +17308,45 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>schema</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the database group.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr><tr>- <td>table</td>+ <td>database_placeholder</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The short name used in actual databases specified by users.+For example, the placeholder for db1_2010, db1_2021, db1_2023 will be "db1". </p></td></tr><tr>- <td>column</td>- <td><a href="#string">string</a></td>+ <td>database_expr</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p> </p></td>+ <td><p>The condition that is associated with this database group. </p></td></tr><tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p> </p></td>+ <td>matched_databases</td>+ <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>+ <td>repeated</td>+ <td><p>The list of databases that match the database group condition. </p></td></tr><tr>- <td>full_masking_algorithm_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>unmatched_databases</td>+ <td><a href="#bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</a></td>+ <td>repeated</td>+ <td><p>The list of databases that match the database group condition. </p></td></tr><tr>- <td>partial_masking_algorithm_id</td>- <td><a href="#string">string</a></td>+ <td>multitenancy</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>@@ -17424,8 +17358,8 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</h3>- <p>MaskingExceptionPolicy is the allowlist of users who can access sensitive data.</p>+ <h3 id="bytebase.v1.DatabaseGroup.Database">DatabaseGroup.Database</h3>+ <p></p><table class="field-table">@@ -17435,10 +17369,11 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>masking_exceptions</td>- <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the database.+Format: instances/{instance}/databases/{database} </p></td></tr></tbody>@@ -17448,7 +17383,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</h3>+ <h3 id="bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</h3><p></p>@@ -17459,34 +17394,43 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>action</td>- <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>action is the action that the user can access sensitive data. </p></td>+ <td><p>The name of the database group to delete.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr>- <tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>- <td></td>- <td><p>Level is the masking level that the user can access sensitive data. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>member</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Member is the principal who bind to this exception policy instance.--- `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.-- `group:{email}`: An email address for group. </p></td>+ <td><p>The name of the database group to retrieve.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>view</td>+ <td><a href="#bytebase.v1.DatabaseGroupView">DatabaseGroupView</a></td><td></td>- <td><p>The condition that is associated with this exception policy instance. </p></td>+ <td><p>The view to return. Defaults to DATABASE_GROUP_VIEW_BASIC. </p></td></tr></tbody>@@ -17496,7 +17440,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskingPolicy">MaskingPolicy</h3>+ <h3 id="bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</h3><p></p>@@ -17507,10 +17451,32 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>mask_data</td>- <td><a href="#bytebase.v1.MaskData">MaskData</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent resource whose database groups are to be listed.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>Not used. The maximum number of 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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Not used. A page token, received from a previous `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. </p></td></tr></tbody>@@ -17520,7 +17486,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</h3>+ <h3 id="bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</h3><p></p>@@ -17531,10 +17497,18 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>rules</td>- <td><a href="#bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td>+ <td>database_groups</td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>database_groups is the list of database groups. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td></tr></tbody>@@ -17544,7 +17518,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3>+ <h3 id="bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</h3><p></p>@@ -17555,24 +17529,20 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A unique identifier for a node in UUID format. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>database_group</td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td><td></td>- <td><p> </p></td>+ <td><p>The database group to update.++The database group's `name` field is used to identify the database group to update.+Format: projects/{project}/databaseGroups/{databaseGroup} </p></td></tr><tr>- <td>masking_level</td>- <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -17582,127 +17552,166 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Policy">Policy</h3>+++ <h3 id="bytebase.v1.DatabaseGroupView">DatabaseGroupView</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>DATABASE_GROUP_VIEW_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The default / unset value.+The API will default to the BASIC view.</p></td>+ </tr>++ <tr>+ <td>DATABASE_GROUP_VIEW_BASIC</td>+ <td>1</td>+ <td><p>Include basic information about the database group, but exclude the list of matched databases and unmatched databases.</p></td>+ </tr>++ <tr>+ <td>DATABASE_GROUP_VIEW_FULL</td>+ <td>2</td>+ <td><p>Include everything.</p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DatabaseGroupService">DatabaseGroupService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ListDatabaseGroups</td>+ <td><a href="#bytebase.v1.ListDatabaseGroupsRequest">ListDatabaseGroupsRequest</a></td>+ <td><a href="#bytebase.v1.ListDatabaseGroupsResponse">ListDatabaseGroupsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetDatabaseGroup</td>+ <td><a href="#bytebase.v1.GetDatabaseGroupRequest">GetDatabaseGroupRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateDatabaseGroup</td>+ <td><a href="#bytebase.v1.CreateDatabaseGroupRequest">CreateDatabaseGroupRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateDatabaseGroup</td>+ <td><a href="#bytebase.v1.UpdateDatabaseGroupRequest">UpdateDatabaseGroupRequest</a></td>+ <td><a href="#bytebase.v1.DatabaseGroup">DatabaseGroup</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteDatabaseGroup</td>+ <td><a href="#bytebase.v1.DeleteDatabaseGroupRequest">DeleteDatabaseGroupRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>- </tr>- <tr>- <td>inherit_from_parent</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>ListDatabaseGroups</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/databaseGroups</td>+ <td></td>+ </tr>- <tr>- <td>type</td>- <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>rollout_policy</td>- <td><a href="#bytebase.v1.RolloutPolicy">RolloutPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>masking_policy</td>- <td><a href="#bytebase.v1.MaskingPolicy">MaskingPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetDatabaseGroup</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/databaseGroups/*}</td>+ <td></td>+ </tr>- <tr>- <td>slow_query_policy</td>- <td><a href="#bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>disable_copy_data_policy</td>- <td><a href="#bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>masking_rule_policy</td>- <td><a href="#bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>CreateDatabaseGroup</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/databaseGroups</td>+ <td>database_group</td>+ </tr>- <tr>- <td>masking_exception_policy</td>- <td><a href="#bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>restrict_issue_creation_for_sql_review_policy</td>- <td><a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>tag_policy</td>- <td><a href="#bytebase.v1.TagPolicy">TagPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>UpdateDatabaseGroup</td>+ <td>PATCH</td>+ <td>/v1/{database_group.name=projects/*/databaseGroups/*}</td>+ <td>database_group</td>+ </tr>- <tr>- <td>data_source_query_policy</td>- <td><a href="#bytebase.v1.DataSourceQueryPolicy">DataSourceQueryPolicy</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>enforce</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>resource_type</td>- <td><a href="#bytebase.v1.PolicyResourceType">PolicyResourceType</a></td>- <td></td>- <td><p>The resource type for the policy. </p></td>- </tr>+ <tr>+ <td>DeleteDatabaseGroup</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/databaseGroups/*}</td>+ <td></td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</h3>+ <div class="file-heading">+ <h2 id="v1/environment_service.proto">v1/environment_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</h3><p></p>@@ -17713,10 +17722,21 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tbody><tr>- <td>disallow</td>- <td><a href="#bool">bool</a></td>+ <td>environment</td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td></td>- <td><p> </p></td>+ <td><p>The environment to create. </p></td>+ </tr>++ <tr>+ <td>environment_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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]-/. </p></td></tr></tbody>@@ -17726,7 +17746,7 @@ Database resource name: instances/instance-id/databases/database-name. </p></td>- <h3 id="bytebase.v1.RolloutPolicy">RolloutPolicy</h3>+ <h3 id="bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</h3><p></p>@@ -17737,32 +17757,11 @@ Database resource name: instances/instance-id/databases/database-name. </p></td><tbody><tr>- <td>automatic</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>workspace_roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>project_roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>issue_roles</td>+ <td>name</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>roles/LAST_APPROVER-roles/CREATOR </p></td>+ <td></td>+ <td><p>The name of the environment to delete.+Format: environments/{environment} </p></td></tr></tbody>@@ -17772,7 +17771,7 @@ roles/CREATOR </p></td>- <h3 id="bytebase.v1.SQLReviewRule">SQLReviewRule</h3>+ <h3 id="bytebase.v1.Environment">Environment</h3><p></p>@@ -17783,60 +17782,37 @@ roles/CREATOR </p></td><tbody><tr>- <td>type</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the environment.+Format: environments/{environment} </p></td></tr><tr>- <td>level</td>- <td><a href="#bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</a></td>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td><td></td><td><p> </p></td></tr><tr>- <td>payload</td>+ <td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>comment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <td>order</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>active</td>- <td><a href="#bool">bool</a></td>+ <td>tier</td>+ <td><a href="#bytebase.v1.EnvironmentTier">EnvironmentTier</a></td><td></td><td><p> </p></td></tr>@@ -17848,7 +17824,7 @@ roles/CREATOR </p></td>- <h3 id="bytebase.v1.TagPolicy">TagPolicy</h3>+ <h3 id="bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</h3><p></p>@@ -17859,11 +17835,11 @@ roles/CREATOR </p></td><tbody><tr>- <td>tags</td>- <td><a href="#bytebase.v1.TagPolicy.TagsEntry">TagPolicy.TagsEntry</a></td>- <td>repeated</td>- <td><p>tags is the key - value map for resources.-for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}" </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the environment to retrieve.+Format: environments/{environment} </p></td></tr></tbody>@@ -17873,7 +17849,7 @@ for example, the environment resource can have the sql review config tag, like &- <h3 id="bytebase.v1.TagPolicy.TagsEntry">TagPolicy.TagsEntry</h3>+ <h3 id="bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</h3><p></p>@@ -17884,17 +17860,31 @@ for example, the environment resource can have the sql review config tag, like &<tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr><tr>- <td>value</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Show deleted environments if specified. </p></td></tr></tbody>@@ -17904,7 +17894,7 @@ for example, the environment resource can have the sql review config tag, like &- <h3 id="bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</h3>+ <h3 id="bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</h3><p></p>@@ -17915,32 +17905,18 @@ for example, the environment resource can have the sql review config tag, like &<tbody><tr>- <td>policy</td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>- <td></td>- <td><p>The policy to update.--The policy's `name` field is used to identify the instance to update.-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. </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>+ <td>environments</td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td>repeated</td>+ <td><p>The environments from the specified request. </p></td></tr><tr>- <td>allow_missing</td>- <td><a href="#bool">bool</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>If set to true, and the policy is not found, a new policy will be created.-In this situation, `update_mask` is ignored. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -17950,185 +17926,68 @@ In this situation, `update_mask` is ignored. </p></td>--- <h3 id="bytebase.v1.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>RESTRICTION_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>FALLBACK</td>- <td>1</td>- <td><p>Allow to query admin data sources when there is no read-only data source.</p></td>- </tr>-- <tr>- <td>DISALLOW</td>- <td>2</td>- <td><p>Disallow to query admin data sources.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ACTION_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>QUERY</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>EXPORT</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PolicyResourceType">PolicyResourceType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>RESOURCE_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>WORKSPACE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENVIRONMENT</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>PROJECT</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>INSTANCE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE</td>- <td>5</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PolicyType">PolicyType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>POLICY_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ROLLOUT_POLICY</td>- <td>11</td>- <td><p></p></td>- </tr>-- <tr>- <td>MASKING</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>SLOW_QUERY</td>- <td>7</td>- <td><p></p></td>- </tr>-- <tr>- <td>DISABLE_COPY_DATA</td>- <td>8</td>- <td><p></p></td>- </tr>-- <tr>- <td>MASKING_RULE</td>- <td>9</td>- <td><p></p></td>- </tr>-- <tr>- <td>MASKING_EXCEPTION</td>- <td>10</td>- <td><p></p></td>- </tr>-- <tr>- <td>RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW</td>- <td>12</td>- <td><p></p></td>- </tr>-- <tr>- <td>TAG</td>- <td>13</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATA_SOURCE_QUERY</td>- <td>14</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+ <h3 id="bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the deleted environment.+Format: environments/{environment} </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</h3>+ <h3 id="bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>environment</td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td></td>+ <td><p>The environment to update.++The environment's `name` field is used to identify the environment to update.+Format: environments/{environment} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.v1.EnvironmentTier">EnvironmentTier</h3><p></p><table class="enum-table"><thead>@@ -18137,29 +17996,23 @@ In this situation, `update_mask` is ignored. </p></td><tbody><tr>- <td>LEVEL_UNSPECIFIED</td>+ <td>ENVIRONMENT_TIER_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>ERROR</td>+ <td>PROTECTED</td><td>1</td><td><p></p></td></tr><tr>- <td>WARNING</td>+ <td>UNPROTECTED</td><td>2</td><td><p></p></td></tr>- <tr>- <td>DISABLED</td>- <td>3</td>- <td><p></p></td>- </tr>-</tbody></table>@@ -18167,7 +18020,7 @@ In this situation, `update_mask` is ignored. </p></td>- <h3 id="bytebase.v1.OrgPolicyService">OrgPolicyService</h3>+ <h3 id="bytebase.v1.EnvironmentService">EnvironmentService</h3><p></p><table class="enum-table"><thead>@@ -18176,40 +18029,47 @@ In this situation, `update_mask` is ignored. </p></td><tbody><tr>- <td>GetPolicy</td>- <td><a href="#bytebase.v1.GetPolicyRequest">GetPolicyRequest</a></td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>GetEnvironment</td>+ <td><a href="#bytebase.v1.GetEnvironmentRequest">GetEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td><p></p></td></tr><tr>- <td>ListPolicies</td>- <td><a href="#bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</a></td>- <td><a href="#bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</a></td>+ <td>ListEnvironments</td>+ <td><a href="#bytebase.v1.ListEnvironmentsRequest">ListEnvironmentsRequest</a></td>+ <td><a href="#bytebase.v1.ListEnvironmentsResponse">ListEnvironmentsResponse</a></td><td><p></p></td></tr><tr>- <td>CreatePolicy</td>- <td><a href="#bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</a></td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>CreateEnvironment</td>+ <td><a href="#bytebase.v1.CreateEnvironmentRequest">CreateEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td><p></p></td></tr><tr>- <td>UpdatePolicy</td>- <td><a href="#bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</a></td>- <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>UpdateEnvironment</td>+ <td><a href="#bytebase.v1.UpdateEnvironmentRequest">UpdateEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td><td><p></p></td></tr><tr>- <td>DeletePolicy</td>- <td><a href="#bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</a></td>+ <td>DeleteEnvironment</td>+ <td><a href="#bytebase.v1.DeleteEnvironmentRequest">DeleteEnvironmentRequest</a></td><td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr>+ <tr>+ <td>UndeleteEnvironment</td>+ <td><a href="#bytebase.v1.UndeleteEnvironmentRequest">UndeleteEnvironmentRequest</a></td>+ <td><a href="#bytebase.v1.Environment">Environment</a></td>+ <td><p></p></td>+ </tr>+</tbody></table>@@ -18226,195 +18086,65 @@ In this situation, `update_mask` is ignored. </p></td><td>Body</td></tr></thead>- <tbody>---- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=projects/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=environments/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=instances/*/policies/*}</td>- <td></td>- </tr>-- <tr>- <td>GetPolicy</td>- <td>GET</td>- <td>/v1/{name=instances/*/databases/*/policies/*}</td>- <td></td>- </tr>----- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=projects/*}/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=environments/*}/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=instances/*}/policies</td>- <td></td>- </tr>-- <tr>- <td>ListPolicies</td>- <td>GET</td>- <td>/v1/{parent=instances/*/databases/*}/policies</td>- <td></td>- </tr>----- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=environments/*}/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=instances/*}/policies</td>- <td>policy</td>- </tr>-- <tr>- <td>CreatePolicy</td>- <td>POST</td>- <td>/v1/{parent=instances/*/databases/*}/policies</td>- <td>policy</td>- </tr>----- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=projects/*/policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=environments/*/policies/*}</td>- <td>policy</td>- </tr>-- <tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=instances/*/policies/*}</td>- <td>policy</td>- </tr>+ <tbody>++<tr>- <td>UpdatePolicy</td>- <td>PATCH</td>- <td>/v1/{policy.name=instances/*/databases/*/policies/*}</td>- <td>policy</td>+ <td>GetEnvironment</td>+ <td>GET</td>+ <td>/v1/{name=environments/*}</td>+ <td></td></tr><tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=policies/*}</td>+ <td>ListEnvironments</td>+ <td>GET</td>+ <td>/v1/environments</td><td></td></tr>+++<tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=projects/*/policies/*}</td>- <td></td>+ <td>CreateEnvironment</td>+ <td>POST</td>+ <td>/v1/environments</td>+ <td>environment</td></tr>+++<tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=environments/*/policies/*}</td>- <td></td>+ <td>UpdateEnvironment</td>+ <td>PATCH</td>+ <td>/v1/{environment.name=environments/*}</td>+ <td>environment</td></tr>+++<tr>- <td>DeletePolicy</td>+ <td>DeleteEnvironment</td><td>DELETE</td>- <td>/v1/{name=instances/*/policies/*}</td>+ <td>/v1/{name=environments/*}</td><td></td></tr>+++<tr>- <td>DeletePolicy</td>- <td>DELETE</td>- <td>/v1/{name=instances/*/databases/*/policies/*}</td>- <td></td>+ <td>UndeleteEnvironment</td>+ <td>POST</td>+ <td>/v1/{name=environments/*}:undelete</td>+ <td>*</td></tr>@@ -18425,163 +18155,12 @@ In this situation, `update_mask` is ignored. </p></td><div class="file-heading">- <h2 id="v1/plan_service.proto">v1/plan_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/group.proto">v1/group.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.BatchCancelPlanCheckRunsRequest">BatchCancelPlanCheckRunsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the parent of the planChecks.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- <tr>- <td>plan_check_runs</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>TODO(d): update this API.-The planCheckRuns to cancel.-Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.BatchCancelPlanCheckRunsResponse">BatchCancelPlanCheckRunsResponse</h3>- <p></p>------ <h3 id="bytebase.v1.CreatePlanRequest">CreatePlanRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent project where this plan will be created.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>plan</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td></td>- <td><p>The plan to create. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.GetPlanRequest">GetPlanRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the plan to retrieve.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plan check runs.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `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. </p></td>- </tr>-- <tr>- <td>latest_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set to true, only the latest plan check run will be returned. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</h3>+ <h3 id="bytebase.v1.CreateGroupRequest">CreateGroupRequest</h3><p></p>@@ -18592,18 +18171,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>plan_check_runs</td>- <td><a href="#bytebase.v1.PlanCheckRun">PlanCheckRun</a></td>- <td>repeated</td>- <td><p>The plan check runs from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>group</td>+ <td><a href="#bytebase.v1.Group">Group</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The group to create. </p></td></tr></tbody>@@ -18613,7 +18184,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ListPlansRequest">ListPlansRequest</h3>+ <h3 id="bytebase.v1.DeleteGroupRequest">DeleteGroupRequest</h3><p></p>@@ -18623,34 +18194,12 @@ If this field is omitted, there are no subsequent pages. </p></td></thead><tbody>- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}-Use "projects/-" to list all plans from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of 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. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `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. </p></td>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the group to delete.+Format: groups/{email} </p></td></tr></tbody>@@ -18660,7 +18209,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListPlansResponse">ListPlansResponse</h3>+ <h3 id="bytebase.v1.GetGroupRequest">GetGroupRequest</h3><p></p>@@ -18671,18 +18220,11 @@ the call that provided the page token. </p></td><tbody><tr>- <td>plans</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td>repeated</td>- <td><p>The plans from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the group to retrieve.+Format: groups/{email} </p></td></tr></tbody>@@ -18692,7 +18234,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Plan">Plan</h3>+ <h3 id="bytebase.v1.Group">Group</h3><p></p>@@ -18706,17 +18248,8 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the plan.-`plan` is a system generated ID.-Format: projects/{project}/plans/{plan} </p></td>- </tr>-- <tr>- <td>issue</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the issue associated with this plan.-Format: projects/{project}/issues/{issue} </p></td>+ <td><p>The name of the group to retrieve.+Format: groups/{group}, group is an email. </p></td></tr><tr>@@ -18733,50 +18266,33 @@ Format: projects/{project}/issues/{issue} </p></td><td><p> </p></td></tr>- <tr>- <td>steps</td>- <td><a href="#bytebase.v1.Plan.Step">Plan.Step</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>vcs_source</td>- <td><a href="#bytebase.v1.Plan.VCSSource">Plan.VCSSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>creator</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: users/[email protected] </p></td>+ <td><p>The name for the creator.+Format: users/[email protected] </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>+ <td>members</td>+ <td><a href="#bytebase.v1.GroupMember">GroupMember</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>update_time</td>+ <td>create_time</td><td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p> </p></td>+ <td><p>The timestamp when the group was created. </p></td></tr><tr>- <td>plan_check_run_status_count</td>- <td><a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry">Plan.PlanCheckRunStatusCountEntry</a></td>- <td>repeated</td>- <td><p>The status count of the latest plan check runs.-Keys are:-- SUCCESS-- WARNING-- ERROR </p></td>+ <td>source</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>source means where the group comes from. For now we support Entra ID SCIM sync, so the source could be Entra ID. </p></td></tr></tbody>@@ -18786,7 +18302,7 @@ Keys are:- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</h3>+ <h3 id="bytebase.v1.GroupMember">GroupMember</h3><p></p>@@ -18797,49 +18313,89 @@ Keys are:<tbody><tr>- <td>target</td>+ <td>member</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the target.-Format: instances/{instance-id}/databases/{database-name}.-Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td>+ <td><p>Member is the principal who belong to this group.++Format: users/[email protected] </p></td></tr><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.GroupMember.Role">GroupMember.Role</a></td><td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListGroupsRequest">ListGroupsRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>type</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>The maximum number of groups to return. The service may return fewer than+this value.+If unspecified, at most 50 groups will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>schema_version</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>schema_version is parsed from VCS file name.-It is automatically generated in the UI workflow. </p></td>+ <td><p>A page token, received from a previous `ListGroups` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListGroups` must match+the call that provided the page token. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListGroupsResponse">ListGroupsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>ghost_flags</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</a></td>+ <td>groups</td>+ <td><a href="#bytebase.v1.Group">Group</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>The groups from the specified request. </p></td></tr><tr>- <td>pre_update_backup_detail</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a></td>- <td>optional</td>- <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -18849,7 +18405,7 @@ It is automatically generated in the UI workflow. </p></td>- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</h3>+ <h3 id="bytebase.v1.UpdateGroupRequest">UpdateGroupRequest</h3><p></p>@@ -18860,17 +18416,20 @@ It is automatically generated in the UI workflow. </p></td><tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>group</td>+ <td><a href="#bytebase.v1.Group">Group</a></td><td></td>- <td><p> </p></td>+ <td><p>The group to update.++The group's `name` field is used to identify the group to update.+Format: groups/{email} </p></td></tr><tr>- <td>value</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -18880,146 +18439,166 @@ It is automatically generated in the UI workflow. </p></td>- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</h3>+++ <h3 id="bytebase.v1.GroupMember.Role">GroupMember.Role</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ROLE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OWNER</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MEMBER</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GroupService">GroupService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetGroup</td>+ <td><a href="#bytebase.v1.GetGroupRequest">GetGroupRequest</a></td>+ <td><a href="#bytebase.v1.Group">Group</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListGroups</td>+ <td><a href="#bytebase.v1.ListGroupsRequest">ListGroupsRequest</a></td>+ <td><a href="#bytebase.v1.ListGroupsResponse">ListGroupsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateGroup</td>+ <td><a href="#bytebase.v1.CreateGroupRequest">CreateGroupRequest</a></td>+ <td><a href="#bytebase.v1.Group">Group</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateGroup</td>+ <td><a href="#bytebase.v1.UpdateGroupRequest">UpdateGroupRequest</a></td>+ <td><a href="#bytebase.v1.Group">Group</a></td>+ <td><p>UpdateGroup updates the group.+Users with "bb.groups.update" permission on the workspace or the group owner can access this method.</p></td>+ </tr>++ <tr>+ <td>DeleteGroup</td>+ <td><a href="#bytebase.v1.DeleteGroupRequest">DeleteGroupRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database for keeping the backup data.-Format: instances/{instance}/databases/{database} </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>GetGroup</td>+ <td>GET</td>+ <td>/v1/{name=groups/*}</td>+ <td></td>+ </tr>- <tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the instance on which the database is created.-Format: instances/{instance} </p></td>- </tr>+- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The name of the database to create. </p></td>- </tr>- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>- </tr>+ <tr>+ <td>ListGroups</td>+ <td>GET</td>+ <td>/v1/groups</td>+ <td></td>+ </tr>- <tr>- <td>character_set</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>character_set is the character set of the database. </p></td>- </tr>+- <tr>- <td>collation</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>collation is the collation of the database. </p></td>- </tr>- <tr>- <td>cluster</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td>- </tr>+ <tr>+ <td>CreateGroup</td>+ <td>POST</td>+ <td>/v1/groups</td>+ <td>group</td>+ </tr>- <tr>- <td>owner</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td>- </tr>+- <tr>- <td>environment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The environment resource.-Format: environments/prod where prod is the environment resource ID. </p></td>- </tr>- <tr>- <td>labels</td>- <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</a></td>- <td>repeated</td>- <td><p>labels of the database. </p></td>- </tr>+ <tr>+ <td>UpdateGroup</td>+ <td>PATCH</td>+ <td>/v1/{group.name=groups/*}</td>+ <td>group</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>DeleteGroup</td>+ <td>DELETE</td>+ <td>/v1/{name=groups/*}</td>+ <td></td>+ </tr>+</tbody></table>--+- <h3 id="bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</h3>+ <div class="file-heading">+ <h2 id="v1/idp_service.proto">v1/idp_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</h3><p></p>@@ -19030,34 +18609,21 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>target</td>- <td><a href="#string">string</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td>- <td><p>The resource name of the target.-Format: instances/{instance-id}/databases/{database-name} </p></td>+ <td><p>The identity provider to create. </p></td></tr><tr>- <td>sheet</td>+ <td>identity_provider_id</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>- <td></td>- <td><p>The format of the exported file. </p></td>- </tr>-- <tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The zip password provide by users.-Leave it empty if no needs to encrypt the zip file. </p></td>+ <td><p>The 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]-/. </p></td></tr></tbody>@@ -19067,7 +18633,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Plan.PlanCheckRunStatusCountEntry">Plan.PlanCheckRunStatusCountEntry</h3>+ <h3 id="bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</h3><p></p>@@ -19078,17 +18644,11 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>value</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the identity provider to delete.+Format: idps/{identity_provider} </p></td></tr></tbody>@@ -19098,8 +18658,8 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3>- <p></p>+ <h3 id="bytebase.v1.FieldMapping">FieldMapping</h3>+ <p>FieldMapping saves the field names from user info API of identity provider.</p><p>As we save all raw json string of user info response data into `principal.idp_user_info`,</p><p>we can extract the relevant data based with `FieldMapping`.</p><p>e.g. For GitHub authenticated user API, it will return `login`, `name` and `email` in response.</p><p>Then the identifier of FieldMapping will be `login`, display_name will be `name`,</p><p>and email will be `email`.</p><p>reference: https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user</p><table class="field-table">@@ -19109,44 +18669,53 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>earliest_allowed_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>identifier</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>earliest_allowed_time the earliest execution time of the change. </p></td>+ <td><p>Identifier is the field name of the unique identifier in 3rd-party idp user info. Required. </p></td></tr><tr>- <td>id</td>+ <td>display_name</td><td><a href="#string">string</a></td><td></td>- <td><p>A UUID4 string that uniquely identifies the Spec. </p></td>+ <td><p>DisplayName is the field name of display name in 3rd-party idp user info. </p></td></tr><tr>- <td>depends_on_specs</td>+ <td>email</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>IDs of the specs that this spec depends on.-Must be a subset of the specs in the same step. </p></td>- </tr>-- <tr>- <td>create_database_config</td>- <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td><td></td>- <td><p> </p></td>+ <td><p>Email is the field name of primary email in 3rd-party idp user info. </p></td></tr><tr>- <td>change_database_config</td>- <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</a></td>+ <td>phone</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Phone is the field name of primary phone in 3rd-party idp user info. </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>export_data_config</td>- <td><a href="#bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -19158,7 +18727,7 @@ Must be a subset of the specs in the same step. </p></td>- <h3 id="bytebase.v1.Plan.Step">Plan.Step</h3>+ <h3 id="bytebase.v1.IdentityProvider">IdentityProvider</h3><p></p>@@ -19168,6 +18737,21 @@ Must be a subset of the specs in the same step. </p></td></thead><tbody>+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the identity provider.+Format: idps/{idp} </p></td>+ </tr>++ <tr>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+<tr><td>title</td><td><a href="#string">string</a></td>@@ -19176,9 +18760,23 @@ Must be a subset of the specs in the same step. </p></td></tr><tr>- <td>specs</td>- <td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td>- <td>repeated</td>+ <td>domain</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.IdentityProviderType">IdentityProviderType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>config</td>+ <td><a href="#bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</a></td>+ <td></td><td><p> </p></td></tr>@@ -19189,7 +18787,7 @@ Must be a subset of the specs in the same step. </p></td>- <h3 id="bytebase.v1.Plan.VCSSource">Plan.VCSSource</h3>+ <h3 id="bytebase.v1.IdentityProviderConfig">IdentityProviderConfig</h3><p></p>@@ -19200,24 +18798,22 @@ Must be a subset of the specs in the same step. </p></td><tbody><tr>- <td>vcs_type</td>- <td><a href="#bytebase.v1.VCSType">VCSType</a></td>+ <td>oauth2_config</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</a></td><td></td><td><p> </p></td></tr><tr>- <td>vcs_connector</td>- <td><a href="#string">string</a></td>+ <td>oidc_config</td>+ <td><a href="#bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</a></td><td></td>- <td><p>Optional.-If present, we will update the pull request for rollout status.-Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>+ <td><p> </p></td></tr><tr>- <td>pull_request_url</td>- <td><a href="#string">string</a></td>+ <td>ldap_config</td>+ <td><a href="#bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</a></td><td></td><td><p> </p></td></tr>@@ -19229,8 +18825,8 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun">PlanCheckRun</h3>- <p></p>+ <h3 id="bytebase.v1.LDAPIdentityProviderConfig">LDAPIdentityProviderConfig</h3>+ <p>LDAPIdentityProviderConfig is the structure for LDAP identity provider config.</p><table class="field-table">@@ -19240,59 +18836,73 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><tbody><tr>- <td>name</td>+ <td>host</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} </p></td>+ <td><p>Host is the hostname or IP address of the LDAP server, e.g.+"ldap.example.com". </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</a></td>+ <td>port</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr><tr>- <td>status</td>- <td><a href="#bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</a></td>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>SkipTLSVerify controls whether to skip TLS certificate verification. </p></td></tr><tr>- <td>target</td>+ <td>bind_dn</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: instances/{instance}/databases/{database} </p></td>+ <td><p>BindDN is the DN of the user to bind as a service account to perform+search requests. </p></td></tr><tr>- <td>sheet</td>+ <td>bind_password</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: project/{project}/sheets/{sheet} </p></td>+ <td><p>BindPassword is the password of the user to bind as a service account. </p></td></tr><tr>- <td>results</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>base_dn</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>BaseDN is the base DN to search for users, e.g. "ou=users,dc=example,dc=com". </p></td></tr><tr>- <td>error</td>+ <td>user_filter</td><td><a href="#string">string</a></td><td></td>- <td><p>error is set if the Status is FAILED. </p></td>+ <td><p>UserFilter is the filter to search for users, e.g. "(uid=%s)". </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>security_protocol</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td>+ <td></td>+ <td><p>FieldMapping is the mapping of the user attributes returned by the LDAP+server. </p></td></tr></tbody>@@ -19302,7 +18912,7 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</h3>+ <h3 id="bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</h3><p></p>@@ -19313,45 +18923,63 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr><tr>- <td>title</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr><tr>- <td>content</td>- <td><a href="#string">string</a></td>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Show deleted identity providers if specified. </p></td></tr>- <tr>- <td>code</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>sql_summary_report</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</a></td>- <td></td>- <td><p> </p></td>+ <td>identity_providers</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td>repeated</td>+ <td><p>The identity providers from the specified request. </p></td></tr><tr>- <td>sql_review_report</td>- <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</a></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -19361,8 +18989,8 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>- <h3 id="bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</h3>- <p></p>+ <h3 id="bytebase.v1.OAuth2IdentityProviderConfig">OAuth2IdentityProviderConfig</h3>+ <p>OAuth2IdentityProviderConfig is the structure for OAuth2 identity provider config.</p><table class="field-table">@@ -19372,89 +19000,64 @@ Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td><tbody><tr>- <td>line</td>- <td><a href="#int32">int32</a></td>+ <td>auth_url</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>column</td>- <td><a href="#int32">int32</a></td>+ <td>token_url</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>detail</td>+ <td>user_info_url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>code</td>- <td><a href="#int32">int32</a></td>+ <td>client_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Code from sql review. </p></td>+ <td><p> </p></td></tr><tr>- <td>start_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>+ <td>client_secret</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>1-based Position of the SQL statement.-To supersede `line` and `column` above. </p></td>+ <td><p> </p></td></tr><tr>- <td>end_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>- <td></td>+ <td>scopes</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td><td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>code</td>- <td><a href="#int32">int32</a></td>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td><td><p> </p></td></tr><tr>- <td>statement_types</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>statement_types are the types of statements that are found in the sql. </p></td>- </tr>-- <tr>- <td>affected_rows</td>- <td><a href="#int32">int32</a></td>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>changed_resources</td>- <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>+ <td>auth_style</td>+ <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td><td></td><td><p> </p></td></tr>@@ -19466,7 +19069,7 @@ To supersede `line` and `column` above. </p></td>- <h3 id="bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</h3>+ <h3 id="bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</h3><p></p>@@ -19477,11 +19080,10 @@ To supersede `line` and `column` above. </p></td><tbody><tr>- <td>name</td>+ <td>code</td><td><a href="#string">string</a></td><td></td>- <td><p>The plan to run plan checks.-Format: projects/{project}/plans/{plan} </p></td>+ <td><p>Authorize code from website. </p></td></tr></tbody>@@ -19491,15 +19093,8 @@ Format: projects/{project}/plans/{plan} </p></td>- <h3 id="bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</h3>- <p></p>------ <h3 id="bytebase.v1.SearchPlansRequest">SearchPlansRequest</h3>- <p></p>+ <h3 id="bytebase.v1.OIDCIdentityProviderConfig">OIDCIdentityProviderConfig</h3>+ <p>OIDCIdentityProviderConfig is the structure for OIDC identity provider config.</p><table class="field-table">@@ -19509,40 +19104,52 @@ Format: projects/{project}/plans/{plan} </p></td><tbody><tr>- <td>parent</td>+ <td>issuer</td><td><a href="#string">string</a></td><td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}-Use "projects/-" to list all plans from all projects. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>client_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>client_secret</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>filter</td>+ <td>scopes</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>field_mapping</td>+ <td><a href="#bytebase.v1.FieldMapping">FieldMapping</a></td><td></td>- <td><p>Filter is used to filter plans returned in the list. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>skip_tls_verify</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>auth_style</td>+ <td><a href="#bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -19552,7 +19159,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.SearchPlansResponse">SearchPlansResponse</h3>+ <h3 id="bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</h3><p></p>@@ -19563,18 +19170,49 @@ the call that provided the page token. </p></td><tbody><tr>- <td>plans</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td>repeated</td>- <td><p>The plans from the specified request. </p></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td></td>+ <td><p>The identity provider to test connection including uncreated. </p></td></tr><tr>- <td>next_page_token</td>+ <td>oauth2_context</td>+ <td><a href="#bytebase.v1.OAuth2IdentityProviderTestRequestContext">OAuth2IdentityProviderTestRequestContext</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the deleted identity provider.+Format: idps/{identity_provider} </p></td></tr></tbody>@@ -19584,7 +19222,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</h3>+ <h3 id="bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</h3><p></p>@@ -19595,13 +19233,13 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>plan</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>identity_provider</td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td></td>- <td><p>The plan to update.+ <td><p>The identity provider to update.-The plan's `name` field is used to identify the plan to update.-Format: projects/{project}/plans/{plan} </p></td>+The identity provider's `name` field is used to identify the identity provider to update.+Format: idps/{identity_provider} </p></td></tr><tr>@@ -19620,91 +19258,7 @@ Format: projects/{project}/plans/{plan} </p></td>- <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</h3>- <p>Type is the database change type.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>BASELINE</td>- <td>1</td>- <td><p>Used for establishing schema baseline, this is used when-1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.-2. Had schema drift and need to re-establish the baseline.</p></td>- </tr>-- <tr>- <td>MIGRATE</td>- <td>2</td>- <td><p>Used for DDL changes including CREATE DATABASE.</p></td>- </tr>-- <tr>- <td>MIGRATE_SDL</td>- <td>3</td>- <td><p>Used for schema changes via state-based schema migration including CREATE DATABASE.</p></td>- </tr>-- <tr>- <td>MIGRATE_GHOST</td>- <td>4</td>- <td><p>Used for DDL changes using gh-ost.</p></td>- </tr>-- <tr>- <td>DATA</td>- <td>6</td>- <td><p>Used for DML change.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ERROR</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>WARNING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>SUCCESS</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</h3>+ <h3 id="bytebase.v1.IdentityProviderType">IdentityProviderType</h3><p></p><table class="enum-table"><thead>@@ -19713,39 +19267,33 @@ Format: projects/{project}/plans/{plan} </p></td><tbody><tr>- <td>STATUS_UNSPECIFIED</td>+ <td>IDENTITY_PROVIDER_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>RUNNING</td>+ <td>OAUTH2</td><td>1</td><td><p></p></td></tr><tr>- <td>DONE</td>+ <td>OIDC</td><td>2</td><td><p></p></td></tr><tr>- <td>FAILED</td>+ <td>LDAP</td><td>3</td><td><p></p></td></tr>- <tr>- <td>CANCELED</td>- <td>4</td>- <td><p></p></td>- </tr>-</tbody></table>- <h3 id="bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</h3>+ <h3 id="bytebase.v1.OAuth2AuthStyle">OAuth2AuthStyle</h3><p></p><table class="enum-table"><thead>@@ -19754,39 +19302,23 @@ Format: projects/{project}/plans/{plan} </p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>OAUTH2_AUTH_STYLE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>DATABASE_STATEMENT_FAKE_ADVISE</td>+ <td>IN_PARAMS</td><td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_ADVISE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_STATEMENT_SUMMARY_REPORT</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATABASE_CONNECT</td>- <td>6</td>- <td><p></p></td>+ <td><p>IN_PARAMS sends the "client_id" and "client_secret" in the POST body+as application/x-www-form-urlencoded parameters.</p></td></tr><tr>- <td>DATABASE_GHOST_SYNC</td>- <td>7</td>- <td><p></p></td>+ <td>IN_HEADER</td>+ <td>2</td>+ <td><p>IN_HEADER sends the client_id and client_password using HTTP Basic Authorization.+This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.</p></td></tr></tbody>@@ -19796,7 +19328,7 @@ Format: projects/{project}/plans/{plan} </p></td>- <h3 id="bytebase.v1.PlanService">PlanService</h3>+ <h3 id="bytebase.v1.IdentityProviderService">IdentityProviderService</h3><p></p><table class="enum-table"><thead>@@ -19805,59 +19337,51 @@ Format: projects/{project}/plans/{plan} </p></td><tbody><tr>- <td>GetPlan</td>- <td><a href="#bytebase.v1.GetPlanRequest">GetPlanRequest</a></td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>GetIdentityProvider</td>+ <td><a href="#bytebase.v1.GetIdentityProviderRequest">GetIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>ListPlans</td>- <td><a href="#bytebase.v1.ListPlansRequest">ListPlansRequest</a></td>- <td><a href="#bytebase.v1.ListPlansResponse">ListPlansResponse</a></td>+ <td>ListIdentityProviders</td>+ <td><a href="#bytebase.v1.ListIdentityProvidersRequest">ListIdentityProvidersRequest</a></td>+ <td><a href="#bytebase.v1.ListIdentityProvidersResponse">ListIdentityProvidersResponse</a></td><td><p></p></td></tr><tr>- <td>SearchPlans</td>- <td><a href="#bytebase.v1.SearchPlansRequest">SearchPlansRequest</a></td>- <td><a href="#bytebase.v1.SearchPlansResponse">SearchPlansResponse</a></td>- <td><p>Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.</p></td>- </tr>-- <tr>- <td>CreatePlan</td>- <td><a href="#bytebase.v1.CreatePlanRequest">CreatePlanRequest</a></td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>CreateIdentityProvider</td>+ <td><a href="#bytebase.v1.CreateIdentityProviderRequest">CreateIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>UpdatePlan</td>- <td><a href="#bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</a></td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td><p>UpdatePlan updates the plan.-The plan creator and the user with bb.plans.update permission on the project can update the plan.</p></td>+ <td>UpdateIdentityProvider</td>+ <td><a href="#bytebase.v1.UpdateIdentityProviderRequest">UpdateIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td>+ <td><p></p></td></tr><tr>- <td>ListPlanCheckRuns</td>- <td><a href="#bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</a></td>- <td><a href="#bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</a></td>+ <td>DeleteIdentityProvider</td>+ <td><a href="#bytebase.v1.DeleteIdentityProviderRequest">DeleteIdentityProviderRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr><tr>- <td>RunPlanChecks</td>- <td><a href="#bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</a></td>- <td><a href="#bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</a></td>+ <td>UndeleteIdentityProvider</td>+ <td><a href="#bytebase.v1.UndeleteIdentityProviderRequest">UndeleteIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.IdentityProvider">IdentityProvider</a></td><td><p></p></td></tr><tr>- <td>BatchCancelPlanCheckRuns</td>- <td><a href="#bytebase.v1.BatchCancelPlanCheckRunsRequest">BatchCancelPlanCheckRunsRequest</a></td>- <td><a href="#bytebase.v1.BatchCancelPlanCheckRunsResponse">BatchCancelPlanCheckRunsResponse</a></td>+ <td>TestIdentityProvider</td>+ <td><a href="#bytebase.v1.TestIdentityProviderRequest">TestIdentityProviderRequest</a></td>+ <td><a href="#bytebase.v1.TestIdentityProviderResponse">TestIdentityProviderResponse</a></td><td><p></p></td></tr>@@ -19882,9 +19406,9 @@ The plan creator and the user with bb.plans.update permission on the project can<tr>- <td>GetPlan</td>+ <td>GetIdentityProvider</td><td>GET</td>- <td>/v1/{name=projects/*/plans/*}</td>+ <td>/v1/{name=idps/*}</td><td></td></tr>@@ -19892,9 +19416,9 @@ The plan creator and the user with bb.plans.update permission on the project can<tr>- <td>ListPlans</td>+ <td>ListIdentityProviders</td><td>GET</td>- <td>/v1/{parent=projects/*}/plans</td>+ <td>/v1/idps</td><td></td></tr>@@ -19902,39 +19426,29 @@ The plan creator and the user with bb.plans.update permission on the project can<tr>- <td>SearchPlans</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/plans:search</td>- <td>*</td>- </tr>----- <tr>- <td>CreatePlan</td>+ <td>CreateIdentityProvider</td><td>POST</td>- <td>/v1/{parent=projects/*}/plans</td>- <td>plan</td>+ <td>/v1/idps</td>+ <td>identity_provider</td></tr><tr>- <td>UpdatePlan</td>+ <td>UpdateIdentityProvider</td><td>PATCH</td>- <td>/v1/{plan.name=projects/*/plans/*}</td>- <td>plan</td>+ <td>/v1/{identity_provider.name=idps/*}</td>+ <td>identity_provider</td></tr><tr>- <td>ListPlanCheckRuns</td>- <td>GET</td>- <td>/v1/{parent=projects/*/plans/*}/planCheckRuns</td>+ <td>DeleteIdentityProvider</td>+ <td>DELETE</td>+ <td>/v1/{name=idps/*}</td><td></td></tr>@@ -19942,9 +19456,9 @@ The plan creator and the user with bb.plans.update permission on the project can<tr>- <td>RunPlanChecks</td>+ <td>UndeleteIdentityProvider</td><td>POST</td>- <td>/v1/{name=projects/*/plans/*}:runPlanChecks</td>+ <td>/v1/{name=idps/*}:undelete</td><td>*</td></tr>@@ -19952,9 +19466,9 @@ The plan creator and the user with bb.plans.update permission on the project can<tr>- <td>BatchCancelPlanCheckRuns</td>+ <td>TestIdentityProvider</td><td>POST</td>- <td>/v1/{parent=projects/*/plans/*}/planCheckRuns:batchCancel</td>+ <td>/v1/idps/*:test</td><td>*</td></tr>@@ -19966,19 +19480,12 @@ The plan creator and the user with bb.plans.update permission on the project can<div class="file-heading">- <h2 id="v1/project_service.proto">v1/project_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/org_policy_service.proto">v1/org_policy_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.Activity">Activity</h3>- <p>TODO(zp): move to activity later.</p>------ <h3 id="bytebase.v1.AddWebhookRequest">AddWebhookRequest</h3>+ <h3 id="bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</h3><p></p>@@ -19989,48 +19496,27 @@ The plan creator and the user with bb.plans.update permission on the project can<tbody><tr>- <td>project</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to add the webhook to.-Format: projects/{project} </p></td>+ <td><p>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. </p></td></tr><tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>policy</td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td><td></td>- <td><p>The webhook to add. </p></td>+ <td><p>The policy to create. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>scope</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td><td></td>- <td><p>The scope of the batch get. Typically it's "projects/-". </p></td>- </tr>-- <tr>- <td>names</td>- <td><a href="#string">string</a></td>- <td>repeated</td><td><p> </p></td></tr>@@ -20041,7 +19527,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</h3>+ <h3 id="bytebase.v1.DataSourceQueryPolicy">DataSourceQueryPolicy</h3><p></p>@@ -20052,9 +19538,9 @@ Format: projects/{project} </p></td><tbody><tr>- <td>policy_results</td>- <td><a href="#bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</a></td>- <td>repeated</td>+ <td>admin_data_source_restriction</td>+ <td><a href="#bytebase.v1.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</a></td>+ <td></td><td><p> </p></td></tr>@@ -20065,7 +19551,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</h3>+ <h3 id="bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</h3><p></p>@@ -20076,17 +19562,15 @@ Format: projects/{project} </p></td><tbody><tr>- <td>project</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>policy</td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The policy's `name` field is used to identify the instance to update.+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. </p></td></tr></tbody>@@ -20096,7 +19580,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.CreateProjectRequest">CreateProjectRequest</h3>+ <h3 id="bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</h3><p></p>@@ -20107,21 +19591,10 @@ Format: projects/{project} </p></td><tbody><tr>- <td>project</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td></td>- <td><p>The project to create. </p></td>- </tr>-- <tr>- <td>project_id</td>- <td><a href="#string">string</a></td>+ <td>active</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>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]-/. </p></td>+ <td><p> </p></td></tr></tbody>@@ -20131,7 +19604,7 @@ are /[a-z][0-9]-/. </p></td>- <h3 id="bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</h3>+ <h3 id="bytebase.v1.GetPolicyRequest">GetPolicyRequest</h3><p></p>@@ -20145,15 +19618,8 @@ are /[a-z][0-9]-/. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to delete.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>force</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>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. </p></td>+ <td><p>The name of the policy to retrieve.+Format: {resource type}/{resource id}/policies/{policy type} </p></td></tr></tbody>@@ -20163,7 +19629,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.DeploymentConfig">DeploymentConfig</h3>+ <h3 id="bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</h3><p></p>@@ -20174,49 +19640,46 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the resource.-Format: projects/{project}/deploymentConfigs/default. </p></td>+ <td><p>The parent, which owns this collection of policies.+Format: {resource type}/{resource id} </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The title of the deployment config. </p></td>+ <td>policy_type</td>+ <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>schedule</td>- <td><a href="#bytebase.v1.Schedule">Schedule</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.DeploymentSpec">DeploymentSpec</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr><tr>- <td>label_selector</td>- <td><a href="#bytebase.v1.LabelSelector">LabelSelector</a></td>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Show deleted policies if specified. </p></td></tr></tbody>@@ -20226,7 +19689,7 @@ Format: projects/{project}/deploymentConfigs/default. </p></td>- <h3 id="bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</h3>+ <h3 id="bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</h3><p></p>@@ -20237,11 +19700,18 @@ Format: projects/{project}/deploymentConfigs/default. </p></td><tbody><tr>- <td>name</td>+ <td>policies</td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td>+ <td>repeated</td>+ <td><p>The policies from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the resource.-Format: projects/{project}/deploymentConfigs/default. </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -20251,7 +19721,7 @@ Format: projects/{project}/deploymentConfigs/default. </p></td>- <h3 id="bytebase.v1.GetProjectRequest">GetProjectRequest</h3>+ <h3 id="bytebase.v1.MaskData">MaskData</h3><p></p>@@ -20262,46 +19732,42 @@ Format: projects/{project}/deploymentConfigs/default. </p></td><tbody><tr>- <td>name</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project to retrieve.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.Label">Label</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>value</td>+ <td>column</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>color</td>+ <td>masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>full_masking_algorithm_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>group</td>+ <td>partial_masking_algorithm_id</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -20314,8 +19780,8 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.LabelSelector">LabelSelector</h3>- <p></p>+ <h3 id="bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</h3>+ <p>MaskingExceptionPolicy is the allowlist of users who can access sensitive data.</p><table class="field-table">@@ -20325,8 +19791,8 @@ Format: projects/{project} </p></td><tbody><tr>- <td>match_expressions</td>- <td><a href="#bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</a></td>+ <td>masking_exceptions</td>+ <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</a></td><td>repeated</td><td><p> </p></td></tr>@@ -20338,7 +19804,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</h3>+ <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException">MaskingExceptionPolicy.MaskingException</h3><p></p>@@ -20349,24 +19815,34 @@ Format: projects/{project} </p></td><tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>action</td>+ <td><a href="#bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</a></td><td></td>- <td><p> </p></td>+ <td><p>action is the action that the user can access sensitive data. </p></td></tr><tr>- <td>operator</td>- <td><a href="#bytebase.v1.OperatorType">OperatorType</a></td>+ <td>masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td><td></td>- <td><p> </p></td>+ <td><p>Level is the masking level that the user can access sensitive data. </p></td></tr><tr>- <td>values</td>+ <td>member</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td></td>+ <td><p>Member is the principal who bind to this exception policy instance.++- `user:{email}`: An email address that represents a specific Bytebase account. For example, `[email protected]`.+- `group:{email}`: An email address for group. </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p>The condition that is associated with this exception policy instance. </p></td></tr></tbody>@@ -20376,7 +19852,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.ListProjectsRequest">ListProjectsRequest</h3>+ <h3 id="bytebase.v1.MaskingPolicy">MaskingPolicy</h3><p></p>@@ -20387,31 +19863,34 @@ Format: projects/{project} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>+ <td>mask_data</td>+ <td><a href="#bytebase.v1.MaskData">MaskData</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `ListProjects` call.-Provide this to retrieve the subsequent page.+ </tbody>+ </table>-When paginating, all other parameters provided to `ListProjects` must match-the call that provided the page token. </p></td>- </tr>+++++ <h3 id="bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted projects if specified. </p></td>+ <td>rules</td>+ <td><a href="#bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -20421,7 +19900,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListProjectsResponse">ListProjectsResponse</h3>+ <h3 id="bytebase.v1.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3><p></p>@@ -20432,18 +19911,24 @@ the call that provided the page token. </p></td><tbody><tr>- <td>projects</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td>repeated</td>- <td><p>The projects from the specified request. </p></td>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A unique identifier for a node in UUID format. </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>masking_level</td>+ <td><a href="#bytebase.v1.MaskingLevel">MaskingLevel</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -20453,7 +19938,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Project">Project</h3>+ <h3 id="bytebase.v1.Policy">Policy</h3><p></p>@@ -20467,123 +19952,103 @@ If this field is omitted, there are no subsequent pages. </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project.-Format: projects/{project} </p></td>+ <td><p>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. </p></td></tr><tr>- <td>state</td>- <td><a href="#bytebase.v1.State">State</a></td>+ <td>inherit_from_parent</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The title or name of a project. It's not unique within the workspace. </p></td>- </tr>-- <tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.PolicyType">PolicyType</a></td><td></td>- <td><p>The key is a short and upper-case identifier for a project. It's unique within the workspace. </p></td>+ <td><p> </p></td></tr><tr>- <td>workflow</td>- <td><a href="#bytebase.v1.Workflow">Workflow</a></td>+ <td>rollout_policy</td>+ <td><a href="#bytebase.v1.RolloutPolicy">RolloutPolicy</a></td><td></td><td><p> </p></td></tr><tr>- <td>webhooks</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>- <td>repeated</td>+ <td>masking_policy</td>+ <td><a href="#bytebase.v1.MaskingPolicy">MaskingPolicy</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>data_classification_config_id</td>- <td><a href="#string">string</a></td>+ <td>slow_query_policy</td>+ <td><a href="#bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</a></td><td></td><td><p> </p></td></tr><tr>- <td>issue_labels</td>- <td><a href="#bytebase.v1.Label">Label</a></td>- <td>repeated</td>+ <td>disable_copy_data_policy</td>+ <td><a href="#bytebase.v1.DisableCopyDataPolicy">DisableCopyDataPolicy</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>force_issue_labels</td>- <td><a href="#bool">bool</a></td>+ <td>masking_rule_policy</td>+ <td><a href="#bytebase.v1.MaskingRulePolicy">MaskingRulePolicy</a></td><td></td>- <td><p>Force issue labels to be used when creating an issue. </p></td>+ <td><p> </p></td></tr><tr>- <td>allow_modify_statement</td>- <td><a href="#bool">bool</a></td>+ <td>masking_exception_policy</td>+ <td><a href="#bytebase.v1.MaskingExceptionPolicy">MaskingExceptionPolicy</a></td><td></td>- <td><p>Allow modifying statement after issue is created. </p></td>+ <td><p> </p></td></tr><tr>- <td>auto_resolve_issue</td>- <td><a href="#bool">bool</a></td>+ <td>restrict_issue_creation_for_sql_review_policy</td>+ <td><a href="#bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</a></td><td></td>- <td><p>Enable auto resolve issue. </p></td>+ <td><p> </p></td></tr><tr>- <td>enforce_issue_title</td>- <td><a href="#bool">bool</a></td>+ <td>tag_policy</td>+ <td><a href="#bytebase.v1.TagPolicy">TagPolicy</a></td><td></td>- <td><p>Enforce issue title created by user instead of generated by Bytebase. </p></td>+ <td><p> </p></td></tr><tr>- <td>auto_enable_backup</td>- <td><a href="#bool">bool</a></td>+ <td>data_source_query_policy</td>+ <td><a href="#bytebase.v1.DataSourceQueryPolicy">DataSourceQueryPolicy</a></td><td></td>- <td><p>Whether to automatically enable backup. </p></td>+ <td><p> </p></td></tr><tr>- <td>skip_backup_errors</td>+ <td>enforce</td><td><a href="#bool">bool</a></td><td></td>- <td><p>Whether to skip backup errors and continue the data migration. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>resource_type</td>+ <td><a href="#bytebase.v1.PolicyResourceType">PolicyResourceType</a></td><td></td>- <td><p>The webhook to remove. Identified by its url. </p></td>+ <td><p>The resource type for the policy. </p></td></tr></tbody>@@ -20593,7 +20058,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Schedule">Schedule</h3>+ <h3 id="bytebase.v1.RestrictIssueCreationForSQLReviewPolicy">RestrictIssueCreationForSQLReviewPolicy</h3><p></p>@@ -20604,9 +20069,9 @@ Format: projects/{project} </p></td><tbody><tr>- <td>deployments</td>- <td><a href="#bytebase.v1.ScheduleDeployment">ScheduleDeployment</a></td>- <td>repeated</td>+ <td>disallow</td>+ <td><a href="#bool">bool</a></td>+ <td></td><td><p> </p></td></tr>@@ -20617,7 +20082,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.ScheduleDeployment">ScheduleDeployment</h3>+ <h3 id="bytebase.v1.RolloutPolicy">RolloutPolicy</h3><p></p>@@ -20628,65 +20093,32 @@ Format: projects/{project} </p></td><tbody><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>automatic</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The title of the deployment (stage) in a schedule. </p></td>+ <td><p> </p></td></tr><tr>- <td>spec</td>- <td><a href="#bytebase.v1.DeploymentSpec">DeploymentSpec</a></td>- <td></td>+ <td>workspace_roles</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td><td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>show_deleted</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Show deleted projects if specified. </p></td>+ <td>project_roles</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>projects</td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>issue_roles</td>+ <td><a href="#string">string</a></td><td>repeated</td>- <td><p>The projects from the specified request. </p></td>+ <td><p>roles/LAST_APPROVER+roles/CREATOR </p></td></tr></tbody>@@ -20696,7 +20128,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.TestWebhookRequest">TestWebhookRequest</h3>+ <h3 id="bytebase.v1.SQLReviewRule">SQLReviewRule</h3><p></p>@@ -20707,67 +20139,38 @@ Format: projects/{project} </p></td><tbody><tr>- <td>project</td>+ <td>type</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project which owns the webhook to test.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr><tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>level</td>+ <td><a href="#bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</a></td><td></td>- <td><p>The webhook to test. Identified by its url. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TestWebhookResponse">TestWebhookResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>error</td>+ <td>payload</td><td><a href="#string">string</a></td><td></td>- <td><p>The result of the test, empty if the test is successful. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>engine</td>+ <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td></td>+ <td><p> </p></td>+ </tr><tr>- <td>name</td>+ <td>comment</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the deleted project.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr></tbody>@@ -20777,7 +20180,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</h3>+ <h3 id="bytebase.v1.SlowQueryPolicy">SlowQueryPolicy</h3><p></p>@@ -20788,8 +20191,8 @@ Format: projects/{project} </p></td><tbody><tr>- <td>deployment_config</td>- <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>+ <td>active</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>@@ -20801,7 +20204,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</h3>+ <h3 id="bytebase.v1.TagPolicy">TagPolicy</h3><p></p>@@ -20812,20 +20215,11 @@ Format: projects/{project} </p></td><tbody><tr>- <td>project</td>- <td><a href="#bytebase.v1.Project">Project</a></td>- <td></td>- <td><p>The project to update.--The project's `name` field is used to identify the project to update.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>+ <td>tags</td>+ <td><a href="#bytebase.v1.TagPolicy.TagsEntry">TagPolicy.TagsEntry</a></td>+ <td>repeated</td>+ <td><p>tags is the key - value map for resources.+for example, the environment resource can have the sql review config tag, like "bb.tag.review_config": "reviewConfigs/{review config resource id}" </p></td></tr></tbody>@@ -20835,7 +20229,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</h3>+ <h3 id="bytebase.v1.TagPolicy.TagsEntry">TagPolicy.TagsEntry</h3><p></p>@@ -20846,17 +20240,17 @@ Format: projects/{project} </p></td><tbody><tr>- <td>webhook</td>- <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>key</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The webhook to modify. </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>value</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -20866,7 +20260,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Webhook">Webhook</h3>+ <h3 id="bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</h3><p></p>@@ -20877,56 +20271,32 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>name is the name of the webhook, generated by the server.-format: projects/{project}/webhooks/{webhook} </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.v1.Webhook.Type">Webhook.Type</a></td>- <td></td>- <td><p>type is the type of the webhook. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>policy</td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td><td></td>- <td><p>title is the title of the webhook. </p></td>+ <td><p>The policy to update.++The policy's `name` field is used to identify the instance to update.+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. </p></td></tr><tr>- <td>url</td>- <td><a href="#string">string</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p>url is the url of the webhook, should be unique within the project. </p></td>+ <td><p>The list of fields to update. </p></td></tr><tr>- <td>direct_message</td>+ <td>allow_missing</td><td><a href="#bool">bool</a></td>- <td></td>- <td><p>if direct_message is set, the notification is sent directly-to the persons and url will be ignored.-IM integration setting should be set for this function to work. </p></td>- </tr>-- <tr>- <td>notification_types</td>- <td><a href="#bytebase.v1.Activity.Type">Activity.Type</a></td>- <td>repeated</td>- <td><p>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 should 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_CREATE </p></td>+ <td></td>+ <td><p>If set to true, and the policy is not found, a new policy will be created.+In this situation, `update_mask` is ignored. </p></td></tr></tbody>@@ -20938,7 +20308,7 @@ It should not be empty, and should be a subset of the following:- <h3 id="bytebase.v1.Activity.Type">Activity.Type</h3>+ <h3 id="bytebase.v1.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</h3><p></p><table class="enum-table"><thead>@@ -20947,150 +20317,27 @@ It should not be empty, and should be a subset of the following:<tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>RESTRICTION_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>TYPE_NOTIFY_ISSUE_APPROVED</td>- <td>23</td>- <td><p>Notifications via webhooks.--TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>- </tr>-- <tr>- <td>TYPE_NOTIFY_PIPELINE_ROLLOUT</td>- <td>24</td>- <td><p>TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_CREATE</td>+ <td>FALLBACK</td><td>1</td>- <td><p>Issue related activity types.--TYPE_ISSUE_CREATE represents creating an issue.</p></td>+ <td><p>Allow to query admin data sources when there is no read-only data source.</p></td></tr><tr>- <td>TYPE_ISSUE_COMMENT_CREATE</td>+ <td>DISALLOW</td><td>2</td>- <td><p>TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_FIELD_UPDATE</td>- <td>3</td>- <td><p>TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_STATUS_UPDATE</td>- <td>4</td>- <td><p>TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_APPROVAL_NOTIFY</td>- <td>21</td>- <td><p>TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE</td>- <td>5</td>- <td><p>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE</td>- <td>6</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE</td>- <td>22</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE</td>- <td>8</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td>- </tr>-- <tr>- <td>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>- <td>9</td>- <td><p>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td>- </tr>-- <tr>- <td>TYPE_MEMBER_CREATE</td>- <td>10</td>- <td><p>Member related activity types.--TYPE_MEMBER_CREATE represents creating a members.</p></td>- </tr>-- <tr>- <td>TYPE_MEMBER_ROLE_UPDATE</td>- <td>11</td>- <td><p>TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER.</p></td>- </tr>-- <tr>- <td>TYPE_MEMBER_ACTIVATE</td>- <td>12</td>- <td><p>TYPE_MEMBER_ACTIVATE represents activating a deactivated member.</p></td>- </tr>-- <tr>- <td>TYPE_MEMBER_DEACTIVATE</td>- <td>13</td>- <td><p>TYPE_MEMBER_DEACTIVATE represents deactivating an active member.</p></td>- </tr>-- <tr>- <td>TYPE_PROJECT_REPOSITORY_PUSH</td>- <td>14</td>- <td><p>Project related activity types.--TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td>- </tr>-- <tr>- <td>TYPE_PROJECT_DATABASE_TRANSFER</td>- <td>15</td>- <td><p>TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another.</p></td>- </tr>-- <tr>- <td>TYPE_PROJECT_MEMBER_CREATE</td>- <td>16</td>- <td><p>TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>- </tr>-- <tr>- <td>TYPE_PROJECT_MEMBER_DELETE</td>- <td>17</td>- <td><p>TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td>- </tr>-- <tr>- <td>TYPE_SQL_EDITOR_QUERY</td>- <td>19</td>- <td><p>SQL Editor related activity types.-TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td>+ <td><p>Disallow to query admin data sources.</p></td></tr></tbody></table>- <h3 id="bytebase.v1.OperatorType">OperatorType</h3>+ <h3 id="bytebase.v1.MaskingExceptionPolicy.MaskingException.Action">MaskingExceptionPolicy.MaskingException.Action</h3><p></p><table class="enum-table"><thead>@@ -21099,33 +20346,27 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>OPERATOR_TYPE_UNSPECIFIED</td>+ <td>ACTION_UNSPECIFIED</td><td>0</td>- <td><p>The operator is not specified.</p></td>+ <td><p></p></td></tr><tr>- <td>OPERATOR_TYPE_IN</td>+ <td>QUERY</td><td>1</td>- <td><p>The operator is "In".</p></td>+ <td><p></p></td></tr><tr>- <td>OPERATOR_TYPE_EXISTS</td>+ <td>EXPORT</td><td>2</td>- <td><p>The operator is "Exists".</p></td>- </tr>-- <tr>- <td>OPERATOR_TYPE_NOT_IN</td>- <td>3</td>- <td><p>The operator is "Not In".</p></td>+ <td><p></p></td></tr></tbody></table>- <h3 id="bytebase.v1.Webhook.Type">Webhook.Type</h3>+ <h3 id="bytebase.v1.PolicyResourceType">PolicyResourceType</h3><p></p><table class="enum-table"><thead>@@ -21134,57 +20375,45 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>RESOURCE_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>TYPE_SLACK</td>+ <td>WORKSPACE</td><td>1</td><td><p></p></td></tr><tr>- <td>TYPE_DISCORD</td>+ <td>ENVIRONMENT</td><td>2</td><td><p></p></td></tr><tr>- <td>TYPE_TEAMS</td>+ <td>PROJECT</td><td>3</td><td><p></p></td></tr><tr>- <td>TYPE_DINGTALK</td>+ <td>INSTANCE</td><td>4</td><td><p></p></td></tr><tr>- <td>TYPE_FEISHU</td>+ <td>DATABASE</td><td>5</td><td><p></p></td></tr>- <tr>- <td>TYPE_WECOM</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>TYPE_CUSTOM</td>- <td>7</td>- <td><p></p></td>- </tr>-</tbody></table>- <h3 id="bytebase.v1.Workflow">Workflow</h3>+ <h3 id="bytebase.v1.PolicyType">PolicyType</h3><p></p><table class="enum-table"><thead>@@ -21193,147 +20422,147 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>WORKFLOW_UNSPECIFIED</td>+ <td>POLICY_TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>UI</td>- <td>1</td>+ <td>ROLLOUT_POLICY</td>+ <td>11</td><td><p></p></td></tr><tr>- <td>VCS</td>- <td>2</td>+ <td>MASKING</td>+ <td>5</td><td><p></p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.ProjectService">ProjectService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>GetProject</td>- <td><a href="#bytebase.v1.GetProjectRequest">GetProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>SLOW_QUERY</td>+ <td>7</td><td><p></p></td></tr><tr>- <td>ListProjects</td>- <td><a href="#bytebase.v1.ListProjectsRequest">ListProjectsRequest</a></td>- <td><a href="#bytebase.v1.ListProjectsResponse">ListProjectsResponse</a></td>+ <td>DISABLE_COPY_DATA</td>+ <td>8</td><td><p></p></td></tr><tr>- <td>SearchProjects</td>- <td><a href="#bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</a></td>- <td><a href="#bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</a></td>+ <td>MASKING_RULE</td>+ <td>9</td><td><p></p></td></tr><tr>- <td>CreateProject</td>- <td><a href="#bytebase.v1.CreateProjectRequest">CreateProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>MASKING_EXCEPTION</td>+ <td>10</td><td><p></p></td></tr><tr>- <td>UpdateProject</td>- <td><a href="#bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>RESTRICT_ISSUE_CREATION_FOR_SQL_REVIEW</td>+ <td>12</td><td><p></p></td></tr><tr>- <td>DeleteProject</td>- <td><a href="#bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>TAG</td>+ <td>13</td><td><p></p></td></tr><tr>- <td>UndeleteProject</td>- <td><a href="#bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>DATA_SOURCE_QUERY</td>+ <td>14</td><td><p></p></td></tr>+ </tbody>+ </table>++ <h3 id="bytebase.v1.SQLReviewRuleLevel">SQLReviewRuleLevel</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>GetIamPolicy</td>- <td><a href="#bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</a></td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td>LEVEL_UNSPECIFIED</td>+ <td>0</td><td><p></p></td></tr><tr>- <td>BatchGetIamPolicy</td>- <td><a href="#bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</a></td>- <td><a href="#bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</a></td>- <td><p>Deprecated.</p></td>+ <td>ERROR</td>+ <td>1</td>+ <td><p></p></td></tr><tr>- <td>SetIamPolicy</td>- <td><a href="#bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</a></td>- <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td>WARNING</td>+ <td>2</td><td><p></p></td></tr><tr>- <td>GetDeploymentConfig</td>- <td><a href="#bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</a></td>- <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>+ <td>DISABLED</td>+ <td>3</td><td><p></p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.OrgPolicyService">OrgPolicyService</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>UpdateDeploymentConfig</td>- <td><a href="#bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</a></td>- <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>+ <td>GetPolicy</td>+ <td><a href="#bytebase.v1.GetPolicyRequest">GetPolicyRequest</a></td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td><td><p></p></td></tr><tr>- <td>AddWebhook</td>- <td><a href="#bytebase.v1.AddWebhookRequest">AddWebhookRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>ListPolicies</td>+ <td><a href="#bytebase.v1.ListPoliciesRequest">ListPoliciesRequest</a></td>+ <td><a href="#bytebase.v1.ListPoliciesResponse">ListPoliciesResponse</a></td><td><p></p></td></tr><tr>- <td>UpdateWebhook</td>- <td><a href="#bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>CreatePolicy</td>+ <td><a href="#bytebase.v1.CreatePolicyRequest">CreatePolicyRequest</a></td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td><td><p></p></td></tr><tr>- <td>RemoveWebhook</td>- <td><a href="#bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</a></td>- <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>UpdatePolicy</td>+ <td><a href="#bytebase.v1.UpdatePolicyRequest">UpdatePolicyRequest</a></td>+ <td><a href="#bytebase.v1.Policy">Policy</a></td><td><p></p></td></tr><tr>- <td>TestWebhook</td>- <td><a href="#bytebase.v1.TestWebhookRequest">TestWebhookRequest</a></td>- <td><a href="#bytebase.v1.TestWebhookResponse">TestWebhookResponse</a></td>+ <td>DeletePolicy</td>+ <td><a href="#bytebase.v1.DeletePolicyRequest">DeletePolicyRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr>@@ -21358,89 +20587,75 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tr>- <td>GetProject</td>+ <td>GetPolicy</td><td>GET</td>- <td>/v1/{name=projects/*}</td>+ <td>/v1/{name=policies/*}</td><td></td></tr>---<tr>- <td>ListProjects</td>+ <td>GetPolicy</td><td>GET</td>- <td>/v1/projects</td>+ <td>/v1/{name=projects/*/policies/*}</td><td></td></tr>---<tr>- <td>SearchProjects</td>- <td>POST</td>- <td>/v1/projects:search</td>- <td>*</td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=environments/*/policies/*}</td>+ <td></td></tr>---<tr>- <td>CreateProject</td>- <td>POST</td>- <td>/v1/projects</td>- <td>project</td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/policies/*}</td>+ <td></td></tr>---<tr>- <td>UpdateProject</td>- <td>PATCH</td>- <td>/v1/{project.name=projects/*}</td>- <td>project</td>+ <td>GetPolicy</td>+ <td>GET</td>+ <td>/v1/{name=instances/*/databases/*/policies/*}</td>+ <td></td></tr><tr>- <td>DeleteProject</td>- <td>DELETE</td>- <td>/v1/{name=projects/*}</td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/policies</td><td></td></tr>---<tr>- <td>UndeleteProject</td>- <td>POST</td>- <td>/v1/{name=projects/*}:undelete</td>- <td>*</td>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/policies</td>+ <td></td></tr>---<tr>- <td>GetIamPolicy</td>+ <td>ListPolicies</td><td>GET</td>- <td>/v1/{resource=projects/*}:getIamPolicy</td>+ <td>/v1/{parent=environments/*}/policies</td><td></td></tr>--+ <tr>+ <td>ListPolicies</td>+ <td>GET</td>+ <td>/v1/{parent=instances/*}/policies</td>+ <td></td>+ </tr><tr>- <td>BatchGetIamPolicy</td>+ <td>ListPolicies</td><td>GET</td>- <td>/v1/{scope=*/*}/iamPolicies:batchGet</td>+ <td>/v1/{parent=instances/*/databases/*}/policies</td><td></td></tr>@@ -21448,70 +20663,114 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tr>- <td>SetIamPolicy</td>+ <td>CreatePolicy</td><td>POST</td>- <td>/v1/{resource=projects/*}:setIamPolicy</td>- <td>*</td>+ <td>/v1/policies</td>+ <td>policy</td></tr>-+ <tr>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/policies</td>+ <td>policy</td>+ </tr>+ <tr>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=environments/*}/policies</td>+ <td>policy</td>+ </tr><tr>- <td>GetDeploymentConfig</td>- <td>GET</td>- <td>/v1/{name=projects/*/deploymentConfigs/*}</td>- <td></td>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*}/policies</td>+ <td>policy</td>+ </tr>++ <tr>+ <td>CreatePolicy</td>+ <td>POST</td>+ <td>/v1/{parent=instances/*/databases/*}/policies</td>+ <td>policy</td></tr><tr>- <td>UpdateDeploymentConfig</td>+ <td>UpdatePolicy</td><td>PATCH</td>- <td>/v1/{deployment_config.name=projects/*/deploymentConfigs/*}</td>- <td>deployment_config</td>+ <td>/v1/{policy.name=policies/*}</td>+ <td>policy</td></tr>---<tr>- <td>AddWebhook</td>- <td>POST</td>- <td>/v1/{project=projects/*}:addWebhook</td>- <td>*</td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=projects/*/policies/*}</td>+ <td>policy</td></tr>-+ <tr>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=environments/*/policies/*}</td>+ <td>policy</td>+ </tr>+ <tr>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=instances/*/policies/*}</td>+ <td>policy</td>+ </tr><tr>- <td>UpdateWebhook</td>- <td>POST</td>- <td>/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook</td>- <td>*</td>+ <td>UpdatePolicy</td>+ <td>PATCH</td>+ <td>/v1/{policy.name=instances/*/databases/*/policies/*}</td>+ <td>policy</td></tr><tr>- <td>RemoveWebhook</td>- <td>POST</td>- <td>/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook</td>- <td>*</td>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=policies/*}</td>+ <td></td></tr>-+ <tr>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*/policies/*}</td>+ <td></td>+ </tr>++ <tr>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=environments/*/policies/*}</td>+ <td></td>+ </tr>+ <tr>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/policies/*}</td>+ <td></td>+ </tr><tr>- <td>TestWebhook</td>- <td>POST</td>- <td>/v1/{project=projects/*}:testWebhook</td>- <td>*</td>+ <td>DeletePolicy</td>+ <td>DELETE</td>+ <td>/v1/{name=instances/*/databases/*/policies/*}</td>+ <td></td></tr>@@ -21522,12 +20781,12 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><div class="file-heading">- <h2 id="v1/review_config_service.proto">v1/review_config_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/plan_service.proto">v1/plan_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</h3>+ <h3 id="bytebase.v1.BatchCancelPlanCheckRunsRequest">BatchCancelPlanCheckRunsRequest</h3><p></p>@@ -21538,10 +20797,20 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>review_config</td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The sql review to create. </p></td>+ <td><p>The name of the parent of the planChecks.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>++ <tr>+ <td>plan_check_runs</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>TODO(d): update this API.+The planCheckRuns to cancel.+Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} </p></td></tr></tbody>@@ -21551,7 +20820,14 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td>- <h3 id="bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</h3>+ <h3 id="bytebase.v1.BatchCancelPlanCheckRunsResponse">BatchCancelPlanCheckRunsResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.CreatePlanRequest">CreatePlanRequest</h3><p></p>@@ -21562,11 +20838,18 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td><tbody><tr>- <td>name</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the sql review to delete.-Format: reviewConfigs/{reviewConfig} </p></td>+ <td><p>The parent project where this plan will be created.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>plan</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td></td>+ <td><p>The plan to create. </p></td></tr></tbody>@@ -21576,7 +20859,7 @@ Format: reviewConfigs/{reviewConfig} </p></td>- <h3 id="bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</h3>+ <h3 id="bytebase.v1.GetPlanRequest">GetPlanRequest</h3><p></p>@@ -21590,8 +20873,8 @@ Format: reviewConfigs/{reviewConfig} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the sql review to retrieve.-Format: reviewConfigs/{reviewConfig} </p></td>+ <td><p>The name of the plan to retrieve.+Format: projects/{project}/plans/{plan} </p></td></tr></tbody>@@ -21601,7 +20884,7 @@ Format: reviewConfigs/{reviewConfig} </p></td>- <h3 id="bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</h3>+ <h3 id="bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</h3><p></p>@@ -21611,13 +20894,21 @@ Format: reviewConfigs/{reviewConfig} </p></td></thead><tbody>+ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of plan check runs.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>+<tr><td>page_size</td><td><a href="#int32">int32</a></td><td></td>- <td><p>The maximum number of sql review to return. The service may return fewer than+ <td><p>The maximum number of plan check runs to return. The service may return fewer thanthis value.-If unspecified, at most 50 sql review will be returned.+If unspecified, at most 50 plans will be returned.The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr>@@ -21625,12 +20916,20 @@ The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td><td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, provide this to retrieve the subsequent page.+ <td><p>A page token, received from a previous `ListPlanCheckRuns` call.+Provide this to retrieve the subsequent page.-When paginating, all other parameters provided to `ListSQLReviews` must match+When paginating, all other parameters provided to `ListPlanCheckRuns` must matchthe call that provided the page token. </p></td></tr>+ <tr>+ <td>latest_only</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If set to true, only the latest plan check run will be returned. </p></td>+ </tr>+</tbody></table>@@ -21638,7 +20937,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</h3>+ <h3 id="bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</h3><p></p>@@ -21649,10 +20948,10 @@ the call that provided the page token. </p></td><tbody><tr>- <td>review_configs</td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>plan_check_runs</td>+ <td><a href="#bytebase.v1.PlanCheckRun">PlanCheckRun</a></td><td>repeated</td>- <td><p>The sql review from the specified request. </p></td>+ <td><p>The plan check runs from the specified request. </p></td></tr><tr>@@ -21670,7 +20969,180 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.ReviewConfig">ReviewConfig</h3>+ <h3 id="bytebase.v1.ListPlansRequest">ListPlansRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of plans.+Format: projects/{project}+Use "projects/-" to list all plans from all projects. </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of 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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `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. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListPlansResponse">ListPlansResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>plans</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>repeated</td>+ <td><p>The plans from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Plan">Plan</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the plan.+`plan` is a system generated ID.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>++ <tr>+ <td>issue</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the issue associated with this plan.+Format: projects/{project}/issues/{issue} </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>description</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>steps</td>+ <td><a href="#bytebase.v1.Plan.Step">Plan.Step</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>vcs_source</td>+ <td><a href="#bytebase.v1.Plan.VCSSource">Plan.VCSSource</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>creator</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td>+ </tr>++ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>plan_check_run_status_count</td>+ <td><a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry">Plan.PlanCheckRunStatusCountEntry</a></td>+ <td>repeated</td>+ <td><p>The status count of the latest plan check runs.+Keys are:+- SUCCESS+- WARNING+- ERROR </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</h3><p></p>@@ -21681,61 +21153,49 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the sql review to retrieve.-Format: reviewConfigs/{reviewConfig} </p></td>+ <td><p>The resource name of the target.+Format: instances/{instance-id}/databases/{database-name}.+Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td></tr><tr>- <td>title</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>enabled</td>- <td><a href="#bool">bool</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</a></td><td></td><td><p> </p></td></tr><tr>- <td>creator</td>+ <td>schema_version</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: users/[email protected] </p></td>- </tr>-- <tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>+ <td><p>schema_version is parsed from VCS file name.+It is automatically generated in the UI workflow. </p></td></tr><tr>- <td>rules</td>- <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>+ <td>ghost_flags</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</a></td><td>repeated</td><td><p> </p></td></tr><tr>- <td>resources</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>resources using the config.-Format: {resurce}/{resource id}, for example, environments/test. </p></td>+ <td>pre_update_backup_detail</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</a></td>+ <td>optional</td>+ <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td></tr></tbody>@@ -21745,7 +21205,7 @@ Format: {resurce}/{resource id}, for example, environments/test. </p></td>- <h3 id="bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</h3>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry">Plan.ChangeDatabaseConfig.GhostFlagsEntry</h3><p></p>@@ -21756,19 +21216,17 @@ Format: {resurce}/{resource id}, for example, environments/test. </p></td><tbody><tr>- <td>review_config</td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td>key</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The sql review to update.--The name field is used to identify the sql review to update. </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td>value</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The list of fields to update. </p></td>+ <td><p> </p></td></tr></tbody>@@ -21778,136 +21236,32 @@ The name field is used to identify the sql review to update. </p></td>------- <h3 id="bytebase.v1.ReviewConfigService">ReviewConfigService</h3>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail">Plan.ChangeDatabaseConfig.PreUpdateBackupDetail</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>CreateReviewConfig</td>- <td><a href="#bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</a></td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListReviewConfigs</td>- <td><a href="#bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</a></td>- <td><a href="#bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetReviewConfig</td>- <td><a href="#bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</a></td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateReviewConfig</td>- <td><a href="#bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</a></td>- <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteReviewConfig</td>- <td><a href="#bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>--- <h4>Methods with HTTP bindings</h4>- <table>+ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>CreateReviewConfig</td>- <td>POST</td>- <td>/v1/reviewConfigs</td>- <td>review_config</td>- </tr>----- <tr>- <td>ListReviewConfigs</td>- <td>GET</td>- <td>/v1/reviewConfigs</td>- <td></td>- </tr>----- <tr>- <td>GetReviewConfig</td>- <td>GET</td>- <td>/v1/{name=reviewConfigs/*}</td>- <td></td>- </tr>---- <tr>- <td>UpdateReviewConfig</td>- <td>PATCH</td>- <td>/v1/{review_config.name=reviewConfigs/*}</td>- <td>review_config</td>- </tr>----- <tr>- <td>DeleteReviewConfig</td>- <td>DELETE</td>- <td>/v1/{name=reviewConfigs/*}</td>- <td></td>- </tr>+ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The database for keeping the backup data.+Format: instances/{instance}/databases/{database} </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/risk_service.proto">v1/risk_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateRiskRequest">CreateRiskRequest</h3>+ <h3 id="bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</h3><p></p>@@ -21918,10 +21272,69 @@ The name field is used to identify the sql review to update. </p></td><tbody><tr>- <td>risk</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>target</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The risk to create. </p></td>+ <td><p>The resource name of the instance on which the database is created.+Format: instances/{instance} </p></td>+ </tr>++ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database to create. </p></td>+ </tr>++ <tr>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>character_set</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>character_set is the character set of the database. </p></td>+ </tr>++ <tr>+ <td>collation</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>collation is the collation of the database. </p></td>+ </tr>++ <tr>+ <td>cluster</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td>+ </tr>++ <tr>+ <td>owner</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td>+ </tr>++ <tr>+ <td>environment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The environment resource.+Format: environments/prod where prod is the environment resource ID. </p></td>+ </tr>++ <tr>+ <td>labels</td>+ <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</a></td>+ <td>repeated</td>+ <td><p>labels of the database. </p></td></tr></tbody>@@ -21931,7 +21344,7 @@ The name field is used to identify the sql review to update. </p></td>- <h3 id="bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</h3>+ <h3 id="bytebase.v1.Plan.CreateDatabaseConfig.LabelsEntry">Plan.CreateDatabaseConfig.LabelsEntry</h3><p></p>@@ -21942,11 +21355,17 @@ The name field is used to identify the sql review to update. </p></td><tbody><tr>- <td>name</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the risk to delete.-Format: risks/{risk} </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -21956,7 +21375,7 @@ Format: risks/{risk} </p></td>- <h3 id="bytebase.v1.ListRisksRequest">ListRisksRequest</h3>+ <h3 id="bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</h3><p></p>@@ -21967,24 +21386,34 @@ Format: risks/{risk} </p></td><tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>target</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The resource name of the target.+Format: instances/{instance-id}/databases/{database-name} </p></td></tr><tr>- <td>page_token</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `ListRisks` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `LiskRisks` must match-the call that provided the page token. </p></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>+ <td></td>+ <td><p>The format of the exported file. </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The zip password provide by users.+Leave it empty if no needs to encrypt the zip file. </p></td></tr></tbody>@@ -21994,7 +21423,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListRisksResponse">ListRisksResponse</h3>+ <h3 id="bytebase.v1.Plan.PlanCheckRunStatusCountEntry">Plan.PlanCheckRunStatusCountEntry</h3><p></p>@@ -22005,18 +21434,17 @@ the call that provided the page token. </p></td><tbody><tr>- <td>risks</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td>repeated</td>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>+ <td>value</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td></tr></tbody>@@ -22026,7 +21454,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Risk">Risk</h3>+ <h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3><p></p>@@ -22037,43 +21465,44 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>earliest_allowed_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>Format: risks/{risk} </p></td>+ <td><p>earliest_allowed_time the earliest execution time of the change. </p></td></tr><tr>- <td>source</td>- <td><a href="#bytebase.v1.Risk.Source">Risk.Source</a></td>+ <td>id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr><tr>- <td>title</td>+ <td>depends_on_specs</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>IDs of the specs that this spec depends on.+Must be a subset of the specs in the same step. </p></td></tr><tr>- <td>level</td>- <td><a href="#int32">int32</a></td>+ <td>create_database_config</td>+ <td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td><td></td><td><p> </p></td></tr><tr>- <td>active</td>- <td><a href="#bool">bool</a></td>+ <td>change_database_config</td>+ <td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig">Plan.ChangeDatabaseConfig</a></td><td></td><td><p> </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>export_data_config</td>+ <td><a href="#bytebase.v1.Plan.ExportDataConfig">Plan.ExportDataConfig</a></td><td></td><td><p> </p></td></tr>@@ -22085,7 +21514,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</h3>+ <h3 id="bytebase.v1.Plan.Step">Plan.Step</h3><p></p>@@ -22096,20 +21525,17 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>risk</td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The risk to update.--The risk's `name` field is used to identify the risk to update.-Format: risks/{risk} </p></td>+ <td><p> </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>- <td><p>The list of fields to update. </p></td>+ <td>specs</td>+ <td><a href="#bytebase.v1.Plan.Spec">Plan.Spec</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -22119,172 +21545,120 @@ Format: risks/{risk} </p></td>--- <h3 id="bytebase.v1.Risk.Source">Risk.Source</h3>+ <h3 id="bytebase.v1.Plan.VCSSource">Plan.VCSSource</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>SOURCE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>DDL</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>DML</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>CREATE_DATABASE</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>REQUEST_QUERY</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>REQUEST_EXPORT</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>DATA_EXPORT</td>- <td>6</td>- <td><p></p></td>- </tr>-- </tbody>- </table>--++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>vcs_type</td>+ <td><a href="#bytebase.v1.VCSType">VCSType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>vcs_connector</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Optional.+If present, we will update the pull request for rollout status.+Format: projects/{project-ID}/vcsConnectors/{vcs-connector} </p></td>+ </tr>++ <tr>+ <td>pull_request_url</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>-- <h3 id="bytebase.v1.RiskService">RiskService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ListRisks</td>- <td><a href="#bytebase.v1.ListRisksRequest">ListRisksRequest</a></td>- <td><a href="#bytebase.v1.ListRisksResponse">ListRisksResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateRisk</td>- <td><a href="#bytebase.v1.CreateRiskRequest">CreateRiskRequest</a></td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>UpdateRisk</td>- <td><a href="#bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</a></td>- <td><a href="#bytebase.v1.Risk">Risk</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>DeleteRisk</td>- <td><a href="#bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>- <td><p></p></td>- </tr>-- </tbody>- </table>+--- <h4>Methods with HTTP bindings</h4>- <table>++ <h3 id="bytebase.v1.PlanCheckRun">PlanCheckRun</h3>+ <p></p>+++ <table class="field-table"><thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>---- <tr>- <td>ListRisks</td>- <td>GET</td>- <td>/v1/risks</td>- <td></td>- </tr>--+ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/plans/{plan}/planCheckRuns/{planCheckRun} </p></td>+ </tr>- <tr>- <td>CreateRisk</td>- <td>POST</td>- <td>/v1/risks</td>- <td>risk</td>- </tr>+ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-+ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>target</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: instances/{instance}/databases/{database} </p></td>+ </tr>- <tr>- <td>UpdateRisk</td>- <td>PATCH</td>- <td>/v1/{risk.name=risks/*}</td>- <td>risk</td>- </tr>+ <tr>+ <td>sheet</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: project/{project}/sheets/{sheet} </p></td>+ </tr>-+ <tr>+ <td>results</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>+ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>error is set if the Status is FAILED. </p></td>+ </tr>- <tr>- <td>DeleteRisk</td>- <td>DELETE</td>- <td>/v1/{name=risks/*}</td>- <td></td>- </tr>+ <tr>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>-</tbody></table>+---- <div class="file-heading">- <h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a>- </div>- <p></p>+- <h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Result">PlanCheckRun.Result</h3><p></p>@@ -22295,21 +21669,45 @@ Format: risks/{risk} </p></td><tbody><tr>- <td>role</td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</a></td><td></td><td><p> </p></td></tr><tr>- <td>role_id</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>The ID to use for the role, which will become the final component-of the role's resource name.--This value should be 4-63 characters, and valid characters-are /[a-z][A-Z][0-9]/. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>content</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>code</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>sql_summary_report</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>sql_review_report</td>+ <td><a href="#bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -22319,7 +21717,7 @@ are /[a-z][A-Z][0-9]/. </p></td>- <h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Result.SqlReviewReport">PlanCheckRun.Result.SqlReviewReport</h3><p></p>@@ -22330,10 +21728,46 @@ are /[a-z][A-Z][0-9]/. </p></td><tbody><tr>- <td>name</td>+ <td>line</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>column</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>detail</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: roles/{role} </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>code</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>Code from sql review. </p></td>+ </tr>++ <tr>+ <td>start_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p>1-based Position of the SQL statement.+To supersede `line` and `column` above. </p></td>+ </tr>++ <tr>+ <td>end_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -22343,7 +21777,7 @@ are /[a-z][A-Z][0-9]/. </p></td>- <h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3>+ <h3 id="bytebase.v1.PlanCheckRun.Result.SqlSummaryReport">PlanCheckRun.Result.SqlSummaryReport</h3><p></p>@@ -22354,24 +21788,56 @@ are /[a-z][A-Z][0-9]/. </p></td><tbody><tr>- <td>page_size</td>+ <td>code</td><td><a href="#int32">int32</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr><tr>- <td>page_token</td>+ <td>statement_types</td><td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>statement_types are the types of statements that are found in the sql. </p></td>+ </tr>++ <tr>+ <td>affected_rows</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>A page token, received from a previous `ListRoles` call.-Provide this to retrieve the subsequent page.+ <td><p> </p></td>+ </tr>++ <tr>+ <td>changed_resources</td>+ <td><a href="#bytebase.v1.ChangedResources">ChangedResources</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>-When paginating, all other parameters provided to `ListRoles` must match-the call that provided the page token. </p></td>+++++ <h3 id="bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The plan to run plan checks.+Format: projects/{project}/plans/{plan} </p></td></tr></tbody>@@ -22381,7 +21847,14 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3>+ <h3 id="bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</h3>+ <p></p>++++++ <h3 id="bytebase.v1.SearchPlansRequest">SearchPlansRequest</h3><p></p>@@ -22392,18 +21865,40 @@ the call that provided the page token. </p></td><tbody><tr>- <td>roles</td>- <td><a href="#bytebase.v1.Role">Role</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent, which owns this collection of plans.+Format: projects/{project}+Use "projects/-" to list all plans from all projects. </p></td>+ </tr>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of 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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `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. </p></td></tr><tr>- <td>next_page_token</td>+ <td>filter</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>Filter is used to filter plans returned in the list. </p></td></tr></tbody>@@ -22413,7 +21908,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.Role">Role</h3>+ <h3 id="bytebase.v1.SearchPlansResponse">SearchPlansResponse</h3><p></p>@@ -22424,31 +21919,18 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: roles/{role} </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>plans</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>repeated</td>+ <td><p>The plans from the specified request. </p></td></tr><tr>- <td>description</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>permissions</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -22458,7 +21940,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3>+ <h3 id="bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</h3><p></p>@@ -22469,17 +21951,20 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>role</td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>plan</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td></td>- <td><p> </p></td>+ <td><p>The plan to update.++The plan's `name` field is used to identify the plan to update.+Format: projects/{project}/plans/{plan} </p></td></tr><tr><td>update_mask</td><td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -22491,11 +21976,183 @@ If this field is omitted, there are no subsequent pages. </p></td>+ <h3 id="bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</h3>+ <p>Type is the database change type.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BASELINE</td>+ <td>1</td>+ <td><p>Used for establishing schema baseline, this is used when+1. Onboard the database into Bytebase since Bytebase needs to know the current database schema.+2. Had schema drift and need to re-establish the baseline.</p></td>+ </tr>++ <tr>+ <td>MIGRATE</td>+ <td>2</td>+ <td><p>Used for DDL changes including CREATE DATABASE.</p></td>+ </tr>++ <tr>+ <td>MIGRATE_SDL</td>+ <td>3</td>+ <td><p>Used for schema changes via state-based schema migration including CREATE DATABASE.</p></td>+ </tr>++ <tr>+ <td>MIGRATE_GHOST</td>+ <td>4</td>+ <td><p>Used for DDL changes using gh-ost.</p></td>+ </tr>++ <tr>+ <td>DATA</td>+ <td>6</td>+ <td><p>Used for DML change.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.PlanCheckRun.Result.Status">PlanCheckRun.Result.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ERROR</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WARNING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SUCCESS</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.PlanCheckRun.Status">PlanCheckRun.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RUNNING</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.PlanCheckRun.Type">PlanCheckRun.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_STATEMENT_FAKE_ADVISE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_STATEMENT_ADVISE</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_STATEMENT_SUMMARY_REPORT</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CONNECT</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_GHOST_SYNC</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+- <h3 id="bytebase.v1.RoleService">RoleService</h3>+ <h3 id="bytebase.v1.PlanService">PlanService</h3><p></p><table class="enum-table"><thead>@@ -22504,30 +22161,59 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>ListRoles</td>- <td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>- <td><a href="#bytebase.v1.ListRolesResponse">ListRolesResponse</a></td>+ <td>GetPlan</td>+ <td><a href="#bytebase.v1.GetPlanRequest">GetPlanRequest</a></td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListPlans</td>+ <td><a href="#bytebase.v1.ListPlansRequest">ListPlansRequest</a></td>+ <td><a href="#bytebase.v1.ListPlansResponse">ListPlansResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SearchPlans</td>+ <td><a href="#bytebase.v1.SearchPlansRequest">SearchPlansRequest</a></td>+ <td><a href="#bytebase.v1.SearchPlansResponse">SearchPlansResponse</a></td>+ <td><p>Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.</p></td>+ </tr>++ <tr>+ <td>CreatePlan</td>+ <td><a href="#bytebase.v1.CreatePlanRequest">CreatePlanRequest</a></td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td><p></p></td></tr><tr>- <td>CreateRole</td>- <td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>UpdatePlan</td>+ <td><a href="#bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</a></td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td><p>UpdatePlan updates the plan.+The plan creator and the user with bb.plans.update permission on the project can update the plan.</p></td>+ </tr>++ <tr>+ <td>ListPlanCheckRuns</td>+ <td><a href="#bytebase.v1.ListPlanCheckRunsRequest">ListPlanCheckRunsRequest</a></td>+ <td><a href="#bytebase.v1.ListPlanCheckRunsResponse">ListPlanCheckRunsResponse</a></td><td><p></p></td></tr><tr>- <td>UpdateRole</td>- <td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>- <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>RunPlanChecks</td>+ <td><a href="#bytebase.v1.RunPlanChecksRequest">RunPlanChecksRequest</a></td>+ <td><a href="#bytebase.v1.RunPlanChecksResponse">RunPlanChecksResponse</a></td><td><p></p></td></tr><tr>- <td>DeleteRole</td>- <td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>- <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td>BatchCancelPlanCheckRuns</td>+ <td><a href="#bytebase.v1.BatchCancelPlanCheckRunsRequest">BatchCancelPlanCheckRunsRequest</a></td>+ <td><a href="#bytebase.v1.BatchCancelPlanCheckRunsResponse">BatchCancelPlanCheckRunsResponse</a></td><td><p></p></td></tr>@@ -22552,9 +22238,9 @@ If this field is omitted, there are no subsequent pages. </p></td><tr>- <td>ListRoles</td>+ <td>GetPlan</td><td>GET</td>- <td>/v1/roles</td>+ <td>/v1/{name=projects/*/plans/*}</td><td></td></tr>@@ -22562,33 +22248,73 @@ If this field is omitted, there are no subsequent pages. </p></td><tr>- <td>CreateRole</td>+ <td>ListPlans</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*}/plans</td>+ <td></td>+ </tr>+++++ <tr>+ <td>SearchPlans</td><td>POST</td>- <td>/v1/roles</td>- <td>role</td>+ <td>/v1/{parent=projects/*}/plans:search</td>+ <td>*</td></tr><tr>- <td>UpdateRole</td>+ <td>CreatePlan</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/plans</td>+ <td>plan</td>+ </tr>+++++ <tr>+ <td>UpdatePlan</td><td>PATCH</td>- <td>/v1/{role.name=roles/*}</td>- <td>role</td>+ <td>/v1/{plan.name=projects/*/plans/*}</td>+ <td>plan</td></tr><tr>- <td>DeleteRole</td>- <td>DELETE</td>- <td>/v1/{name=roles/*}</td>+ <td>ListPlanCheckRuns</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/plans/*}/planCheckRuns</td><td></td></tr>+++ <tr>+ <td>RunPlanChecks</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/plans/*}:runPlanChecks</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>BatchCancelPlanCheckRuns</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/plans/*}/planCheckRuns:batchCancel</td>+ <td>*</td>+ </tr>++</tbody></table>@@ -22596,12 +22322,19 @@ If this field is omitted, there are no subsequent pages. </p></td><div class="file-heading">- <h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/project_service.proto">v1/project_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3>+ <h3 id="bytebase.v1.Activity">Activity</h3>+ <p>TODO(zp): move to activity later.</p>++++++ <h3 id="bytebase.v1.AddWebhookRequest">AddWebhookRequest</h3><p></p>@@ -22612,27 +22345,18 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>parent</td>+ <td>project</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the parent of the taskRuns.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}-Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td>- </tr>-- <tr>- <td>task_runs</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The taskRuns to cancel.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td><p>The name of the project to add the webhook to.+Format: projects/{project} </p></td></tr><tr>- <td>reason</td>- <td><a href="#string">string</a></td>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td>- <td><p> </p></td>+ <td><p>The webhook to add. </p></td></tr></tbody>@@ -22642,14 +22366,7 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRu- <h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3>- <p></p>------ <h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3>+ <h3 id="bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</h3><p></p>@@ -22660,25 +22377,16 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRu<tbody><tr>- <td>parent</td>+ <td>scope</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the parent of the tasks.-Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>+ <td><p>The scope of the batch get. Typically it's "projects/-". </p></td></tr><tr>- <td>tasks</td>+ <td>names</td><td><a href="#string">string</a></td><td>repeated</td>- <td><p>The tasks to run.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>-- <tr>- <td>reason</td>- <td><a href="#string">string</a></td>- <td></td><td><p> </p></td></tr>@@ -22689,14 +22397,31 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></- <h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3>+ <h3 id="bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</h3><p></p>+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>policy_results</td>+ <td><a href="#bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++- <h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3>+ <h3 id="bytebase.v1.BatchGetIamPolicyResponse.PolicyResult">BatchGetIamPolicyResponse.PolicyResult</h3><p></p>@@ -22707,24 +22432,15 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></<tbody><tr>- <td>parent</td>+ <td>project</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the parent of the tasks.-Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>- </tr>-- <tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The tasks to skip.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ <td><p> </p></td></tr><tr>- <td>reason</td>- <td><a href="#string">string</a></td>+ <td>policy</td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td><td></td><td><p> </p></td></tr>@@ -22736,14 +22452,7 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></- <h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3>- <p></p>------ <h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3>+ <h3 id="bytebase.v1.CreateProjectRequest">CreateProjectRequest</h3><p></p>@@ -22754,18 +22463,21 @@ Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></<tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>project</td>+ <td><a href="#bytebase.v1.Project">Project</a></td><td></td>- <td><p>The parent project where this rollout will be created.-Format: projects/{project} </p></td>+ <td><p>The project to create. </p></td></tr><tr>- <td>rollout</td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>+ <td>project_id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The rollout to create. </p></td>+ <td><p>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]-/. </p></td></tr></tbody>@@ -22775,7 +22487,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3>+ <h3 id="bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</h3><p></p>@@ -22789,8 +22501,15 @@ Format: projects/{project} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the rollout to retrieve.-Format: projects/{project}/rollouts/{rollout} </p></td>+ <td><p>The name of the project to delete.+Format: projects/{project} </p></td>+ </tr>++ <tr>+ <td>force</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>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. </p></td></tr></tbody>@@ -22800,7 +22519,7 @@ Format: projects/{project}/rollouts/{rollout} </p></td>- <h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3>+ <h3 id="bytebase.v1.DeploymentConfig">DeploymentConfig</h3><p></p>@@ -22811,11 +22530,25 @@ Format: projects/{project}/rollouts/{rollout} </p></td><tbody><tr>- <td>parent</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}-TODO(d): check the resource_reference. </p></td>+ <td><p>The name of the resource.+Format: projects/{project}/deploymentConfigs/default. </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The title of the deployment config. </p></td>+ </tr>++ <tr>+ <td>schedule</td>+ <td><a href="#bytebase.v1.Schedule">Schedule</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -22825,7 +22558,7 @@ TODO(d): check the resource_reference. </p></td>- <h3 id="bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</h3>+ <h3 id="bytebase.v1.DeploymentSpec">DeploymentSpec</h3><p></p>@@ -22836,10 +22569,10 @@ TODO(d): check the resource_reference. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>+ <td>label_selector</td>+ <td><a href="#bytebase.v1.LabelSelector">LabelSelector</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td><p> </p></td></tr></tbody>@@ -22849,7 +22582,7 @@ TODO(d): check the resource_reference. </p></td>- <h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3>+ <h3 id="bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</h3><p></p>@@ -22860,33 +22593,11 @@ TODO(d): check the resource_reference. </p></td><tbody><tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}-Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A page token, received from a previous `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. </p></td>+ <td><p>The name of the resource.+Format: projects/{project}/deploymentConfigs/default. </p></td></tr></tbody>@@ -22896,7 +22607,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3>+ <h3 id="bytebase.v1.GetProjectRequest">GetProjectRequest</h3><p></p>@@ -22907,18 +22618,11 @@ the call that provided the page token. </p></td><tbody><tr>- <td>task_runs</td>- <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td>- <td>repeated</td>- <td><p>The taskRuns from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p>The name of the project to retrieve.+Format: projects/{project} </p></td></tr></tbody>@@ -22928,7 +22632,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</h3>+ <h3 id="bytebase.v1.Label">Label</h3><p></p>@@ -22939,18 +22643,24 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>project</td>+ <td>value</td><td><a href="#string">string</a></td><td></td>- <td><p>The name of the project.-Format: projects/{project} </p></td>+ <td><p> </p></td></tr><tr>- <td>plan</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>+ <td>color</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The plan used to preview rollout. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>group</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -22960,7 +22670,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</h3>+ <h3 id="bytebase.v1.LabelSelector">LabelSelector</h3><p></p>@@ -22971,10 +22681,10 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td>match_expressions</td>+ <td><a href="#bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -22984,7 +22694,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</h3>+ <h3 id="bytebase.v1.LabelSelectorRequirement">LabelSelectorRequirement</h3><p></p>@@ -22995,12 +22705,26 @@ Format: projects/{project} </p></td><tbody><tr>- <td>statement</td>+ <td>key</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>+ <tr>+ <td>operator</td>+ <td><a href="#bytebase.v1.OperatorType">OperatorType</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>values</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -23008,7 +22732,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Rollout">Rollout</h3>+ <h3 id="bytebase.v1.ListProjectsRequest">ListProjectsRequest</h3><p></p>@@ -23019,33 +22743,31 @@ Format: projects/{project} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The resource name of the rollout.-Format: projects/{project}/rollouts/{rollout} </p></td>+ <td><p>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. </p></td></tr><tr>- <td>plan</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p>The plan that this rollout is based on.-Format: projects/{project}/plans/{plan} </p></td>+ <td><p>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. </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>stages</td>- <td><a href="#bytebase.v1.Stage">Stage</a></td>- <td>repeated</td>- <td><p>stages and thus tasks of the rollout. </p></td>+ <td><p>Show deleted projects if specified. </p></td></tr></tbody>@@ -23055,7 +22777,7 @@ Format: projects/{project}/plans/{plan} </p></td>- <h3 id="bytebase.v1.Stage">Stage</h3>+ <h3 id="bytebase.v1.ListProjectsResponse">ListProjectsResponse</h3><p></p>@@ -23066,24 +22788,18 @@ Format: projects/{project}/plans/{plan} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td>+ <td>projects</td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>repeated</td>+ <td><p>The projects from the specified request. </p></td></tr><tr>- <td>title</td>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>tasks</td>- <td><a href="#bytebase.v1.Task">Task</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -23093,7 +22809,7 @@ Format: projects/{project}/plans/{plan} </p></td>- <h3 id="bytebase.v1.Task">Task</h3>+ <h3 id="bytebase.v1.Project">Project</h3><p></p>@@ -23107,93 +22823,123 @@ Format: projects/{project}/plans/{plan} </p></td><td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ <td><p>The name of the project.+Format: projects/{project} </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>state</td>+ <td><a href="#bytebase.v1.State">State</a></td><td></td><td><p> </p></td></tr><tr>- <td>spec_id</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>A UUID4 string that uniquely identifies the Spec.-Could be empty if the rollout of the task does not have an associating plan. </p></td>+ <td><p>The title or name of a project. It's not unique within the workspace. </p></td></tr><tr>- <td>status</td>- <td><a href="#bytebase.v1.Task.Status">Task.Status</a></td>+ <td>key</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Status is the status of the task. </p></td>+ <td><p>The key is a short and upper-case identifier for a project. It's unique within the workspace. </p></td></tr><tr>- <td>skipped_reason</td>- <td><a href="#string">string</a></td>+ <td>workflow</td>+ <td><a href="#bytebase.v1.Workflow">Workflow</a></td><td></td><td><p> </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.Task.Type">Task.Type</a></td>- <td></td>+ <td>webhooks</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>depends_on_tasks</td>+ <td>data_classification_config_id</td><td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>issue_labels</td>+ <td><a href="#bytebase.v1.Label">Label</a></td><td>repeated</td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ <td><p> </p></td></tr><tr>- <td>target</td>- <td><a href="#string">string</a></td>+ <td>force_issue_labels</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Format: instances/{instance} if the task is DatabaseCreate.-Format: instances/{instance}/databases/{database} </p></td>+ <td><p>Force issue labels to be used when creating an issue. </p></td></tr><tr>- <td>database_create</td>- <td><a href="#bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</a></td>+ <td>allow_modify_statement</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Allow modifying statement after issue is created. </p></td></tr><tr>- <td>database_schema_baseline</td>- <td><a href="#bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</a></td>+ <td>auto_resolve_issue</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Enable auto resolve issue. </p></td></tr><tr>- <td>database_schema_update</td>- <td><a href="#bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</a></td>+ <td>enforce_issue_title</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Enforce issue title created by user instead of generated by Bytebase. </p></td></tr><tr>- <td>database_data_update</td>- <td><a href="#bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</a></td>+ <td>auto_enable_backup</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Whether to automatically enable backup. </p></td></tr><tr>- <td>database_data_export</td>- <td><a href="#bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</a></td>+ <td>skip_backup_errors</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to skip backup errors and continue the data migration. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td>- <td><p> </p></td>+ <td><p>The webhook to remove. Identified by its url. </p></td></tr></tbody>@@ -23203,7 +22949,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</h3>+ <h3 id="bytebase.v1.Schedule">Schedule</h3><p></p>@@ -23214,58 +22960,8 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>project</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The project owning the database.-Format: projects/{project} </p></td>- </tr>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>database name </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>table name </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>character_set</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>collation</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>environment</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>labels</td>- <td><a href="#bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</a></td>+ <td>deployments</td>+ <td><a href="#bytebase.v1.ScheduleDeployment">ScheduleDeployment</a></td><td>repeated</td><td><p> </p></td></tr>@@ -23277,7 +22973,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</h3>+ <h3 id="bytebase.v1.ScheduleDeployment">ScheduleDeployment</h3><p></p>@@ -23288,15 +22984,15 @@ Format: projects/{project} </p></td><tbody><tr>- <td>key</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The title of the deployment (stage) in a schedule. </p></td></tr><tr>- <td>value</td>- <td><a href="#string">string</a></td>+ <td>spec</td>+ <td><a href="#bytebase.v1.DeploymentSpec">DeploymentSpec</a></td><td></td><td><p> </p></td></tr>@@ -23308,7 +23004,7 @@ Format: projects/{project} </p></td>- <h3 id="bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</h3>+ <h3 id="bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</h3><p></p>@@ -23319,34 +23015,34 @@ Format: projects/{project} </p></td><tbody><tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the target.-Format: instances/{instance-id}/databases/{database-name} </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>+ <td>show_deleted</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>Show deleted projects if specified. </p></td></tr>- <tr>- <td>format</td>- <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td>- <td></td>- <td><p>The format of the exported file. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The zip password provide by users.-Leave it empty if no needs to encrypt the zip file. </p></td>+ <td>projects</td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td>repeated</td>+ <td><p>The projects from the specified request. </p></td></tr></tbody>@@ -23356,7 +23052,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</h3>+ <h3 id="bytebase.v1.TestWebhookRequest">TestWebhookRequest</h3><p></p>@@ -23367,17 +23063,18 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>sheet</td>+ <td>project</td><td><a href="#string">string</a></td><td></td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>The name of the project which owns the webhook to test.+Format: projects/{project} </p></td></tr><tr>- <td>schema_version</td>- <td><a href="#string">string</a></td>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td>- <td><p> </p></td>+ <td><p>The webhook to test. Identified by its url. </p></td></tr></tbody>@@ -23387,7 +23084,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</h3>+ <h3 id="bytebase.v1.TestWebhookResponse">TestWebhookResponse</h3><p></p>@@ -23398,10 +23095,10 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>schema_version</td>+ <td>error</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The result of the test, empty if the test is successful. </p></td></tr></tbody>@@ -23411,7 +23108,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</h3>+ <h3 id="bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</h3><p></p>@@ -23422,17 +23119,11 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>schema_version</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the deleted project.+Format: projects/{project} </p></td></tr></tbody>@@ -23442,7 +23133,7 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.TaskRun">TaskRun</h3>+ <h3 id="bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</h3><p></p>@@ -23453,102 +23144,145 @@ Leave it empty if no needs to encrypt the zip file. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>deployment_config</td>+ <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td>+ <td><p> </p></td></tr>- <tr>- <td>creator</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: user/[email protected] </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>updater</td>- <td><a href="#string">string</a></td>+ <td>project</td>+ <td><a href="#bytebase.v1.Project">Project</a></td><td></td>- <td><p>Format: user/[email protected] </p></td>+ <td><p>The project to update.++The project's `name` field is used to identify the project to update.+Format: projects/{project} </p></td></tr><tr>- <td>create_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr>- <tr>- <td>update_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>webhook</td>+ <td><a href="#bytebase.v1.Webhook">Webhook</a></td><td></td>- <td><p> </p></td>+ <td><p>The webhook to modify. </p></td></tr><tr>- <td>status</td>- <td><a href="#bytebase.v1.TaskRun.Status">TaskRun.Status</a></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td>- <td><p> </p></td>+ <td><p>The list of fields to update. </p></td></tr>- <tr>- <td>detail</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Below are the results of a task run. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Webhook">Webhook</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>change_history</td>+ <td>name</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the change history-Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td>+ <td></td>+ <td><p>name is the name of the webhook, generated by the server.+format: projects/{project}/webhooks/{webhook} </p></td></tr><tr>- <td>schema_version</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.Webhook.Type">Webhook.Type</a></td><td></td>- <td><p> </p></td>+ <td><p>type is the type of the webhook. </p></td></tr><tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>title is the title of the webhook. </p></td></tr><tr>- <td>export_archive_status</td>- <td><a href="#bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</a></td>+ <td>url</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>url is the url of the webhook, should be unique within the project. </p></td></tr><tr>- <td>prior_backup_detail</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>+ <td>direct_message</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The prior backup detail that will be used to rollback the task run. </p></td>+ <td><p>if direct_message is set, the notification is sent directly+to the persons and url will be ignored.+IM integration setting should be set for this function to work. </p></td></tr><tr>- <td>scheduler_info</td>- <td><a href="#bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</a></td>- <td></td>- <td><p> </p></td>+ <td>notification_types</td>+ <td><a href="#bytebase.v1.Activity.Type">Activity.Type</a></td>+ <td>repeated</td>+ <td><p>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 should 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_CREATE </p></td></tr></tbody>@@ -23558,434 +23292,598 @@ Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory- <h3 id="bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</h3>+++ <h3 id="bytebase.v1.Activity.Type">Activity.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_NOTIFY_ISSUE_APPROVED</td>+ <td>23</td>+ <td><p>Notifications via webhooks.++TYPE_NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>+ </tr>++ <tr>+ <td>TYPE_NOTIFY_PIPELINE_ROLLOUT</td>+ <td>24</td>+ <td><p>TYPE_NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_CREATE</td>+ <td>1</td>+ <td><p>Issue related activity types.++TYPE_ISSUE_CREATE represents creating an issue.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_COMMENT_CREATE</td>+ <td>2</td>+ <td><p>TYPE_ISSUE_COMMENT_CREATE represents commenting on an issue.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_FIELD_UPDATE</td>+ <td>3</td>+ <td><p>TYPE_ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_STATUS_UPDATE</td>+ <td>4</td>+ <td><p>TYPE_ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL fow now.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_APPROVAL_NOTIFY</td>+ <td>21</td>+ <td><p>TYPE_ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE</td>+ <td>5</td>+ <td><p>TYPE_ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE</td>+ <td>6</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_STATUS_UPDATE represents the pipeline task status change, including PENDING, PENDING_APPROVAL, RUNNING, SUCCESS, FAILURE, CANCELED for now.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE</td>+ <td>22</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE</td>+ <td>8</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_STATEMENT_UPDATE represents the manual update of the task statement.</p></td>+ </tr>++ <tr>+ <td>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE</td>+ <td>9</td>+ <td><p>TYPE_ISSUE_PIPELINE_TASK_EARLIEST_ALLOWED_TIME_UPDATE represents the manual update of the task earliest allowed time.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_CREATE</td>+ <td>10</td>+ <td><p>Member related activity types.++TYPE_MEMBER_CREATE represents creating a members.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_ROLE_UPDATE</td>+ <td>11</td>+ <td><p>TYPE_MEMBER_ROLE_UPDATE represents updating the member role, for example, from ADMIN to MEMBER.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_ACTIVATE</td>+ <td>12</td>+ <td><p>TYPE_MEMBER_ACTIVATE represents activating a deactivated member.</p></td>+ </tr>++ <tr>+ <td>TYPE_MEMBER_DEACTIVATE</td>+ <td>13</td>+ <td><p>TYPE_MEMBER_DEACTIVATE represents deactivating an active member.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_REPOSITORY_PUSH</td>+ <td>14</td>+ <td><p>Project related activity types.++TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the project repository.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_DATABASE_TRANSFER</td>+ <td>15</td>+ <td><p>TYPE_PROJECT_DATABASE_TRANFER represents transfering the database from one project to another.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_MEMBER_CREATE</td>+ <td>16</td>+ <td><p>TYPE_PROJECT_MEMBER_CREATE represents adding a member to the project.</p></td>+ </tr>++ <tr>+ <td>TYPE_PROJECT_MEMBER_DELETE</td>+ <td>17</td>+ <td><p>TYPE_PROJECT_MEMBER_DELETE represents removing a member from the project.</p></td>+ </tr>++ <tr>+ <td>TYPE_SQL_EDITOR_QUERY</td>+ <td>19</td>+ <td><p>SQL Editor related activity types.+TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.OperatorType">OperatorType</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>OPERATOR_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p>The operator is not specified.</p></td>+ </tr>++ <tr>+ <td>OPERATOR_TYPE_IN</td>+ <td>1</td>+ <td><p>The operator is "In".</p></td>+ </tr>++ <tr>+ <td>OPERATOR_TYPE_EXISTS</td>+ <td>2</td>+ <td><p>The operator is "Exists".</p></td>+ </tr>++ <tr>+ <td>OPERATOR_TYPE_NOT_IN</td>+ <td>3</td>+ <td><p>The operator is "Not In".</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Webhook.Type">Webhook.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_SLACK</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_DISCORD</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_TEAMS</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_DINGTALK</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_FEISHU</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_WECOM</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TYPE_CUSTOM</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Workflow">Workflow</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>WORKFLOW_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UI</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>VCS</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+-- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>items</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>--+-- <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</h3>+ <h3 id="bytebase.v1.ProjectService">ProjectService</h3><p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>GetProject</td>+ <td><a href="#bytebase.v1.GetProjectRequest">GetProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ListProjects</td>+ <td><a href="#bytebase.v1.ListProjectsRequest">ListProjectsRequest</a></td>+ <td><a href="#bytebase.v1.ListProjectsResponse">ListProjectsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SearchProjects</td>+ <td><a href="#bytebase.v1.SearchProjectsRequest">SearchProjectsRequest</a></td>+ <td><a href="#bytebase.v1.SearchProjectsResponse">SearchProjectsResponse</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CreateProject</td>+ <td><a href="#bytebase.v1.CreateProjectRequest">CreateProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateProject</td>+ <td><a href="#bytebase.v1.UpdateProjectRequest">UpdateProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteProject</td>+ <td><a href="#bytebase.v1.DeleteProjectRequest">DeleteProjectRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UndeleteProject</td>+ <td><a href="#bytebase.v1.UndeleteProjectRequest">UndeleteProjectRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetIamPolicy</td>+ <td><a href="#bytebase.v1.GetIamPolicyRequest">GetIamPolicyRequest</a></td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BatchGetIamPolicy</td>+ <td><a href="#bytebase.v1.BatchGetIamPolicyRequest">BatchGetIamPolicyRequest</a></td>+ <td><a href="#bytebase.v1.BatchGetIamPolicyResponse">BatchGetIamPolicyResponse</a></td>+ <td><p>Deprecated.</p></td>+ </tr>++ <tr>+ <td>SetIamPolicy</td>+ <td><a href="#bytebase.v1.SetIamPolicyRequest">SetIamPolicyRequest</a></td>+ <td><a href="#bytebase.v1.IamPolicy">IamPolicy</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GetDeploymentConfig</td>+ <td><a href="#bytebase.v1.GetDeploymentConfigRequest">GetDeploymentConfigRequest</a></td>+ <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateDeploymentConfig</td>+ <td><a href="#bytebase.v1.UpdateDeploymentConfigRequest">UpdateDeploymentConfigRequest</a></td>+ <td><a href="#bytebase.v1.DeploymentConfig">DeploymentConfig</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>AddWebhook</td>+ <td><a href="#bytebase.v1.AddWebhookRequest">AddWebhookRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UpdateWebhook</td>+ <td><a href="#bytebase.v1.UpdateWebhookRequest">UpdateWebhookRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RemoveWebhook</td>+ <td><a href="#bytebase.v1.RemoveWebhookRequest">RemoveWebhookRequest</a></td>+ <td><a href="#bytebase.v1.Project">Project</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TestWebhook</td>+ <td><a href="#bytebase.v1.TestWebhookRequest">TestWebhookRequest</a></td>+ <td><a href="#bytebase.v1.TestWebhookResponse">TestWebhookResponse</a></td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>- <table class="field-table">+++ <h4>Methods with HTTP bindings</h4>+ <table><thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ <tr>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td>+ </tr></thead><tbody>+- <tr>- <td>source_table</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The original table information. </p></td>- </tr>- <tr>- <td>target_table</td>- <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td>- <td></td>- <td><p>The target backup table information. </p></td>- </tr>+ <tr>+ <td>GetProject</td>+ <td>GET</td>+ <td>/v1/{name=projects/*}</td>+ <td></td>+ </tr>- <tr>- <td>start_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>- <td></td>- <td><p> </p></td>- </tr>++++ <tr>+ <td>ListProjects</td>+ <td>GET</td>+ <td>/v1/projects</td>+ <td></td>+ </tr>++- <tr>- <td>end_position</td>- <td><a href="#bytebase.v1.Position">Position</a></td>- <td></td>- <td><p> </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>SearchProjects</td>+ <td>POST</td>+ <td>/v1/projects:search</td>+ <td>*</td>+ </tr>- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database information.-Format: instances/{instance}/databases/{database} </p></td>- </tr>+- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>CreateProject</td>+ <td>POST</td>+ <td>/v1/projects</td>+ <td>project</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>report_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>waiting_cause</td>- <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>UpdateProject</td>+ <td>PATCH</td>+ <td>/v1/{project.name=projects/*}</td>+ <td>project</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>connection_limit</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>task</td>- <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>DeleteProject</td>+ <td>DELETE</td>+ <td>/v1/{name=projects/*}</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>task</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>- </tr>- <tr>- <td>issue</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/issues/{issue} </p></td>- </tr>+ <tr>+ <td>UndeleteProject</td>+ <td>POST</td>+ <td>/v1/{name=projects/*}:undelete</td>+ <td>*</td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLog">TaskRunLog</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>name</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log </p></td>- </tr>- <tr>- <td>entries</td>- <td><a href="#bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetIamPolicy</td>+ <td>GET</td>+ <td>/v1/{resource=projects/*}:getIamPolicy</td>+ <td></td>+ </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+- <tr>- <td>type</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>BatchGetIamPolicy</td>+ <td>GET</td>+ <td>/v1/{scope=*/*}/iamPolicies:batchGet</td>+ <td></td>+ </tr>- <tr>- <td>deploy_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>schema_dump</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>command_execute</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>SetIamPolicy</td>+ <td>POST</td>+ <td>/v1/{resource=projects/*}:setIamPolicy</td>+ <td>*</td>+ </tr>++- <tr>- <td>database_sync</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>task_run_status_update</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>GetDeploymentConfig</td>+ <td>GET</td>+ <td>/v1/{name=projects/*/deploymentConfigs/*}</td>+ <td></td>+ </tr>- <tr>- <td>transaction_control</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</a></td>- <td></td>- <td><p> </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>UpdateDeploymentConfig</td>+ <td>PATCH</td>+ <td>/v1/{deployment_config.name=projects/*/deploymentConfigs/*}</td>+ <td>deployment_config</td>+ </tr>- <tr>- <td>command_indexes</td>- <td><a href="#int32">int32</a></td>- <td>repeated</td>- <td><p>The indexes of the executed commands. </p></td>- </tr>+- <tr>- <td>response</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</a></td>- <td></td>- <td><p> </p></td>- </tr>- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>AddWebhook</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:addWebhook</td>+ <td>*</td>+ </tr>- <tr>- <td>log_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>- <tr>- <td>affected_rows</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>UpdateWebhook</td>+ <td>POST</td>+ <td>/v1/{webhook.name=projects/*/webhooks/*}:updateWebhook</td>+ <td>*</td>+ </tr>- <tr>- <td>all_affected_rows</td>- <td><a href="#int32">int32</a></td>- <td>repeated</td>- <td><p>`all_affected_rows` is the affected rows of each command.-`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td>- </tr>+- </tbody>- </table>------ <h3 id="bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>- <tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>RemoveWebhook</td>+ <td>POST</td>+ <td>/v1/{webhook.name=projects/*/webhooks/*}:removeWebhook</td>+ <td>*</td>+ </tr>- <tr>- <td>end_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ <tr>+ <td>TestWebhook</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:testWebhook</td>+ <td>*</td>+ </tr>++</tbody></table>--+- <h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3>+ <div class="file-heading">+ <h2 id="v1/review_config_service.proto">v1/review_config_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</h3><p></p>@@ -23996,24 +23894,10 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>start_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>end_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>error</td>- <td><a href="#string">string</a></td>+ <td>review_config</td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td></td>- <td><p> </p></td>+ <td><p>The sql review to create. </p></td></tr></tbody>@@ -24023,7 +23907,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</h3>+ <h3 id="bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</h3><p></p>@@ -24034,10 +23918,11 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>status</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the sql review to delete.+Format: reviewConfigs/{reviewConfig} </p></td></tr></tbody>@@ -24047,7 +23932,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</h3>+ <h3 id="bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</h3><p></p>@@ -24058,17 +23943,11 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>type</td>- <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>error</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the sql review to retrieve.+Format: reviewConfigs/{reviewConfig} </p></td></tr></tbody>@@ -24078,7 +23957,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunSession">TaskRunSession</h3>+ <h3 id="bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</h3><p></p>@@ -24089,17 +23968,23 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session </p></td>+ <td><p>The maximum number of sql review to return. The service may return fewer than+this value.+If unspecified, at most 50 sql review will be returned.+The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td></tr><tr>- <td>postgres</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</a></td>+ <td>page_token</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A page token, provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListSQLReviews` must match+the call that provided the page token. </p></td></tr></tbody>@@ -24109,7 +23994,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</h3>+ <h3 id="bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</h3><p></p>@@ -24119,25 +24004,19 @@ Format: instances/{instance}/databases/{database} </p></td></thead><tbody>- <tr>- <td>session</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>- <td></td>- <td><p>`session` is the session of the task run executing commands. </p></td>- </tr>-- <tr>- <td>blocking_sessions</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <tr>+ <td>review_configs</td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td>repeated</td>- <td><p>`blocking_sessions` block `session`. </p></td>+ <td><p>The sql review from the specified request. </p></td></tr><tr>- <td>blocked_sessions</td>- <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>- <td>repeated</td>- <td><p>`blocked_sessions` are blocked by `session`. </p></td>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -24147,8 +24026,8 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</h3>- <p>Read from `pg_stat_activity`</p>+ <h3 id="bytebase.v1.ReviewConfig">ReviewConfig</h3>+ <p></p><table class="field-table">@@ -24158,101 +24037,94 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>pid</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>blocked_by_pids</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td><p>The name of the sql review to retrieve.+Format: reviewConfigs/{reviewConfig} </p></td></tr><tr>- <td>query</td>+ <td>title</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>state</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>wait_event_type</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>wait_event</td>- <td><a href="#string">string</a></td>- <td>optional</td>+ <td>enabled</td>+ <td><a href="#bool">bool</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>datname</td>+ <td>creator</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>+ <td></td>+ <td><p>Format: users/[email protected] </p></td></tr><tr>- <td>usename</td>- <td><a href="#string">string</a></td>- <td>optional</td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>application_name</td>- <td><a href="#string">string</a></td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>client_addr</td>- <td><a href="#string">string</a></td>- <td>optional</td>+ <td>rules</td>+ <td><a href="#bytebase.v1.SQLReviewRule">SQLReviewRule</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>client_port</td>+ <td>resources</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>resources using the config.+Format: {resurce}/{resource id}, for example, environments/test. </p></td></tr>- <tr>- <td>backend_start</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>xact_start</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>review_config</td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td></td>+ <td><p>The sql review to update.++The name field is used to identify the sql review to update. </p></td></tr><tr>- <td>query_start</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td></tr></tbody>@@ -24264,242 +24136,348 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.Task.Status">Task.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>NOT_STARTED</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>3</td>- <td><p></p></td>- </tr>-- <tr>- <td>DONE</td>- <td>4</td>- <td><p></p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>5</td>- <td><p></p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>6</td>- <td><p></p></td>- </tr>-- <tr>- <td>SKIPPED</td>- <td>7</td>- <td><p></p></td>- </tr>-- </tbody>- </table>+- <h3 id="bytebase.v1.Task.Type">Task.Type</h3>+++ <h3 id="bytebase.v1.ReviewConfigService">ReviewConfigService</h3><p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>GENERAL</td>- <td>1</td>+ <td>CreateReviewConfig</td>+ <td><a href="#bytebase.v1.CreateReviewConfigRequest">CreateReviewConfigRequest</a></td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td><p></p></td></tr><tr>- <td>DATABASE_CREATE</td>- <td>2</td>- <td><p>use payload DatabaseCreate</p></td>- </tr>-- <tr>- <td>DATABASE_SCHEMA_BASELINE</td>- <td>3</td>- <td><p>use payload DatabaseSchemaBaseline</p></td>- </tr>-- <tr>- <td>DATABASE_SCHEMA_UPDATE</td>- <td>4</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>- </tr>-- <tr>- <td>DATABASE_SCHEMA_UPDATE_SDL</td>- <td>5</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>- </tr>-- <tr>- <td>DATABASE_SCHEMA_UPDATE_GHOST_SYNC</td>- <td>6</td>- <td><p>use payload DatabaseSchemaUpdate</p></td>- </tr>-- <tr>- <td>DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER</td>- <td>7</td>- <td><p>use payload nil</p></td>- </tr>-- <tr>- <td>DATABASE_DATA_UPDATE</td>- <td>8</td>- <td><p>use payload DatabaseDataUpdate</p></td>- </tr>-- <tr>- <td>DATABASE_DATA_EXPORT</td>- <td>12</td>- <td><p>use payload DatabaseDataExport</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td>- <td>0</td>+ <td>ListReviewConfigs</td>+ <td><a href="#bytebase.v1.ListReviewConfigsRequest">ListReviewConfigsRequest</a></td>+ <td><a href="#bytebase.v1.ListReviewConfigsResponse">ListReviewConfigsResponse</a></td><td><p></p></td></tr><tr>- <td>READY</td>- <td>1</td>+ <td>GetReviewConfig</td>+ <td><a href="#bytebase.v1.GetReviewConfigRequest">GetReviewConfigRequest</a></td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td><td><p></p></td></tr><tr>- <td>EXPORTED</td>- <td>2</td>+ <td>UpdateReviewConfig</td>+ <td><a href="#bytebase.v1.UpdateReviewConfigRequest">UpdateReviewConfigRequest</a></td>+ <td><a href="#bytebase.v1.ReviewConfig">ReviewConfig</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteReviewConfig</td>+ <td><a href="#bytebase.v1.DeleteReviewConfigRequest">DeleteReviewConfigRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr></tbody></table>-- <h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead><tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td></tr>+ </thead>+ <tbody>++<tr>- <td>PENDING</td>- <td>1</td>- <td><p></p></td>+ <td>CreateReviewConfig</td>+ <td>POST</td>+ <td>/v1/reviewConfigs</td>+ <td>review_config</td></tr>+++<tr>- <td>RUNNING</td>- <td>2</td>- <td><p></p></td>+ <td>ListReviewConfigs</td>+ <td>GET</td>+ <td>/v1/reviewConfigs</td>+ <td></td></tr>+++<tr>- <td>DONE</td>- <td>3</td>- <td><p></p></td>+ <td>GetReviewConfig</td>+ <td>GET</td>+ <td>/v1/{name=reviewConfigs/*}</td>+ <td></td></tr>+++<tr>- <td>FAILED</td>- <td>4</td>- <td><p></p></td>+ <td>UpdateReviewConfig</td>+ <td>PATCH</td>+ <td>/v1/{review_config.name=reviewConfigs/*}</td>+ <td>review_config</td></tr>+++<tr>- <td>CANCELED</td>- <td>5</td>- <td><p></p></td>+ <td>DeleteReviewConfig</td>+ <td>DELETE</td>+ <td>/v1/{name=reviewConfigs/*}</td>+ <td></td></tr>+- </tbody>- </table>+ </tbody>+ </table>+++++ <div class="file-heading">+ <h2 id="v1/risk_service.proto">v1/risk_service.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.v1.CreateRiskRequest">CreateRiskRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>risk</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td></td>+ <td><p>The risk to create. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the risk to delete.+Format: risks/{risk} </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListRisksRequest">ListRisksRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListRisks` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `LiskRisks` must match+the call that provided the page token. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.ListRisksResponse">ListRisksResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>risks</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.v1.Risk">Risk</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: risks/{risk} </p></td>+ </tr>++ <tr>+ <td>source</td>+ <td><a href="#bytebase.v1.Risk.Source">Risk.Source</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>level</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>active</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</h3>+ <h3 id="bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</h3><p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>RUNNING_WAITING</td>- <td>1</td>- <td><p>the task run is ready to be executed by the scheduler</p></td>- </tr>-- <tr>- <td>RUNNING_RUNNING</td>- <td>2</td>- <td><p>the task run is being executed by the scheduler</p></td>- </tr>-- </tbody>- </table>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>risk</td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td></td>+ <td><p>The risk to update.++The risk's `name` field is used to identify the risk to update.+Format: risks/{risk} </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>+ <td></td>+ <td><p>The list of fields to update. </p></td>+ </tr>++ </tbody>+ </table>++++- <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3>+++ <h3 id="bytebase.v1.Risk.Source">Risk.Source</h3><p></p><table class="enum-table"><thead>@@ -24508,73 +24486,44 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>TYPE_UNSPECIFIED</td>+ <td>SOURCE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>BEGIN</td>+ <td>DDL</td><td>1</td><td><p></p></td></tr><tr>- <td>COMMIT</td>+ <td>DML</td><td>2</td><td><p></p></td></tr><tr>- <td>ROLLBACK</td>+ <td>CREATE_DATABASE</td><td>3</td><td><p></p></td></tr>- </tbody>- </table>-- <h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>SCHEMA_DUMP</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>COMMAND_EXECUTE</td>- <td>2</td>- <td><p></p></td>- </tr>-<tr>- <td>DATABASE_SYNC</td>- <td>3</td>+ <td>REQUEST_QUERY</td>+ <td>4</td><td><p></p></td></tr><tr>- <td>TASK_RUN_STATUS_UPDATE</td>- <td>4</td>+ <td>REQUEST_EXPORT</td>+ <td>5</td><td><p></p></td></tr><tr>- <td>TRANSACTION_CONTROL</td>- <td>5</td>+ <td>DATA_EXPORT</td>+ <td>6</td><td><p></p></td></tr>@@ -24585,7 +24534,7 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.v1.RolloutService">RolloutService</h3>+ <h3 id="bytebase.v1.RiskService">RiskService</h3><p></p><table class="enum-table"><thead>@@ -24594,154 +24543,57 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>GetRollout</td>- <td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>CreateRollout</td>- <td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>PreviewRollout</td>- <td><a href="#bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</a></td>- <td><a href="#bytebase.v1.Rollout">Rollout</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>ListTaskRuns</td>- <td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>- <td><a href="#bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetTaskRunLog</td>- <td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>- <td><a href="#bytebase.v1.TaskRunLog">TaskRunLog</a></td>- <td><p></p></td>- </tr>-- <tr>- <td>GetTaskRunSession</td>- <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>- <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td>+ <td>ListRisks</td>+ <td><a href="#bytebase.v1.ListRisksRequest">ListRisksRequest</a></td>+ <td><a href="#bytebase.v1.ListRisksResponse">ListRisksResponse</a></td><td><p></p></td></tr><tr>- <td>BatchRunTasks</td>- <td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>- <td><a href="#bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</a></td>- <td><p>BatchRunTasks creates task runs for the specified tasks.-DataExport issue only allows the creator to run the task.-Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.-Follow role-based rollout policy for the environment.</p></td>- </tr>-- <tr>- <td>BatchSkipTasks</td>- <td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>- <td><a href="#bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</a></td>- <td><p>BatchSkipTasks skips the specified tasks.-The access is the same as BatchRunTasks().</p></td>- </tr>-- <tr>- <td>BatchCancelTaskRuns</td>- <td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>- <td><a href="#bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</a></td>- <td><p>BatchSkipTasks cancels the specified task runs in batch.-The access is the same as BatchRunTasks().</p></td>- </tr>-- <tr>- <td>PreviewTaskRunRollback</td>- <td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>- <td><a href="#bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</a></td>+ <td>CreateRisk</td>+ <td><a href="#bytebase.v1.CreateRiskRequest">CreateRiskRequest</a></td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td><td><p></p></td></tr>- </tbody>- </table>----- <h4>Methods with HTTP bindings</h4>- <table>- <thead>- <tr>- <td>Method Name</td>- <td>Method</td>- <td>Pattern</td>- <td>Body</td>- </tr>- </thead>- <tbody>---- <tr>- <td>GetRollout</td>- <td>GET</td>- <td>/v1/{name=projects/*/rollouts/*}</td>- <td></td>- </tr>----- <tr>- <td>CreateRollout</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/rollouts</td>- <td>rollout</td>- </tr>----<tr>- <td>PreviewRollout</td>- <td>POST</td>- <td>/v1/{project=projects/*}:previewRollout</td>- <td>*</td>+ <td>UpdateRisk</td>+ <td><a href="#bytebase.v1.UpdateRiskRequest">UpdateRiskRequest</a></td>+ <td><a href="#bytebase.v1.Risk">Risk</a></td>+ <td><p></p></td></tr>---<tr>- <td>ListTaskRuns</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns</td>- <td></td>+ <td>DeleteRisk</td>+ <td><a href="#bytebase.v1.DeleteRiskRequest">DeleteRiskRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>+ <td><p></p></td></tr>---+ </tbody>+ </table>+++++ <h4>Methods with HTTP bindings</h4>+ <table>+ <thead><tr>- <td>GetTaskRunLog</td>- <td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/log</td>- <td></td>+ <td>Method Name</td>+ <td>Method</td>+ <td>Pattern</td>+ <td>Body</td></tr>-+ </thead>+ <tbody><tr>- <td>GetTaskRunSession</td>+ <td>ListRisks</td><td>GET</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>+ <td>/v1/risks</td><td></td></tr>@@ -24749,40 +24601,30 @@ The access is the same as BatchRunTasks().</p></td><tr>- <td>BatchRunTasks</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun</td>- <td>*</td>- </tr>----- <tr>- <td>BatchSkipTasks</td>+ <td>CreateRisk</td><td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip</td>- <td>*</td>+ <td>/v1/risks</td>+ <td>risk</td></tr><tr>- <td>BatchCancelTaskRuns</td>- <td>POST</td>- <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel</td>- <td>*</td>+ <td>UpdateRisk</td>+ <td>PATCH</td>+ <td>/v1/{risk.name=risks/*}</td>+ <td>risk</td></tr><tr>- <td>PreviewTaskRunRollback</td>- <td>POST</td>- <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollback</td>- <td>*</td>+ <td>DeleteRisk</td>+ <td>DELETE</td>+ <td>/v1/{name=risks/*}</td>+ <td></td></tr>@@ -24793,12 +24635,12 @@ The access is the same as BatchRunTasks().</p></td><div class="file-heading">- <h2 id="v1/subscription_service.proto">v1/subscription_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/role_service.proto">v1/role_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.Feature">Feature</h3>+ <h3 id="bytebase.v1.CreateRoleRequest">CreateRoleRequest</h3><p></p>@@ -24809,17 +24651,21 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td></td>- <td><p>Name is the feature name. </p></td>+ <td><p> </p></td></tr><tr>- <td>matrix</td>- <td><a href="#bytebase.v1.Feature.MatrixEntry">Feature.MatrixEntry</a></td>- <td>repeated</td>- <td><p>Matrix is the feature matrix for different plan. The key is the plan enum in string value. </p></td>+ <td>role_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The ID to use for the role, which will become the final component+of the role's resource name.++This value should be 4-63 characters, and valid characters+are /[a-z][A-Z][0-9]/. </p></td></tr></tbody>@@ -24829,7 +24675,7 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.Feature.MatrixEntry">Feature.MatrixEntry</h3>+ <h3 id="bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</h3><p></p>@@ -24840,17 +24686,10 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>value</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>+ <td><p>Format: roles/{role} </p></td></tr></tbody>@@ -24860,7 +24699,7 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.FeatureMatrix">FeatureMatrix</h3>+ <h3 id="bytebase.v1.ListRolesRequest">ListRolesRequest</h3><p></p>@@ -24871,10 +24710,24 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>features</td>- <td><a href="#bytebase.v1.Feature">Feature</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>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. </p></td>+ </tr>++ <tr>+ <td>page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A page token, received from a previous `ListRoles` call.+Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRoles` must match+the call that provided the page token. </p></td></tr></tbody>@@ -24884,21 +24737,7 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.GetFeatureMatrixRequest">GetFeatureMatrixRequest</h3>- <p></p>------ <h3 id="bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</h3>- <p></p>------ <h3 id="bytebase.v1.PatchSubscription">PatchSubscription</h3>+ <h3 id="bytebase.v1.ListRolesResponse">ListRolesResponse</h3><p></p>@@ -24909,10 +24748,18 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>license</td>+ <td>roles</td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>next_page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -24922,7 +24769,7 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.Subscription">Subscription</h3>+ <h3 id="bytebase.v1.Role">Role</h3><p></p>@@ -24933,51 +24780,30 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>instance_count</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>expires_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>started_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>plan</td>- <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: roles/{role} </p></td></tr><tr>- <td>trialing</td>- <td><a href="#bool">bool</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>org_id</td>+ <td>description</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>org_name</td>+ <td>permissions</td><td><a href="#string">string</a></td>- <td></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -24988,7 +24814,7 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</h3>+ <h3 id="bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</h3><p></p>@@ -24999,8 +24825,15 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>patch</td>- <td><a href="#bytebase.v1.PatchSubscription">PatchSubscription</a></td>+ <td>role</td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>update_mask</td>+ <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td><td></td><td><p> </p></td></tr>@@ -25014,46 +24847,11 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.PlanType">PlanType</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>PLAN_TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>FREE</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>TEAM</td>- <td>2</td>- <td><p></p></td>- </tr>-- <tr>- <td>ENTERPRISE</td>- <td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.v1.SubscriptionService">SubscriptionService</h3>+ <h3 id="bytebase.v1.RoleService">RoleService</h3><p></p><table class="enum-table"><thead>@@ -25062,23 +24860,30 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>GetSubscription</td>- <td><a href="#bytebase.v1.GetSubscriptionRequest">GetSubscriptionRequest</a></td>- <td><a href="#bytebase.v1.Subscription">Subscription</a></td>+ <td>ListRoles</td>+ <td><a href="#bytebase.v1.ListRolesRequest">ListRolesRequest</a></td>+ <td><a href="#bytebase.v1.ListRolesResponse">ListRolesResponse</a></td><td><p></p></td></tr><tr>- <td>GetFeatureMatrix</td>- <td><a href="#bytebase.v1.GetFeatureMatrixRequest">GetFeatureMatrixRequest</a></td>- <td><a href="#bytebase.v1.FeatureMatrix">FeatureMatrix</a></td>+ <td>CreateRole</td>+ <td><a href="#bytebase.v1.CreateRoleRequest">CreateRoleRequest</a></td>+ <td><a href="#bytebase.v1.Role">Role</a></td><td><p></p></td></tr><tr>- <td>UpdateSubscription</td>- <td><a href="#bytebase.v1.UpdateSubscriptionRequest">UpdateSubscriptionRequest</a></td>- <td><a href="#bytebase.v1.Subscription">Subscription</a></td>+ <td>UpdateRole</td>+ <td><a href="#bytebase.v1.UpdateRoleRequest">UpdateRoleRequest</a></td>+ <td><a href="#bytebase.v1.Role">Role</a></td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DeleteRole</td>+ <td><a href="#bytebase.v1.DeleteRoleRequest">DeleteRoleRequest</a></td>+ <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td><td><p></p></td></tr>@@ -25103,9 +24908,9 @@ The access is the same as BatchRunTasks().</p></td><tr>- <td>GetSubscription</td>+ <td>ListRoles</td><td>GET</td>- <td>/v1/subscription</td>+ <td>/v1/roles</td><td></td></tr>@@ -25113,20 +24918,30 @@ The access is the same as BatchRunTasks().</p></td><tr>- <td>GetFeatureMatrix</td>- <td>GET</td>- <td>/v1/feature</td>- <td></td>+ <td>CreateRole</td>+ <td>POST</td>+ <td>/v1/roles</td>+ <td>role</td></tr><tr>- <td>UpdateSubscription</td>+ <td>UpdateRole</td><td>PATCH</td>- <td>/v1/subscription</td>- <td>patch</td>+ <td>/v1/{role.name=roles/*}</td>+ <td>role</td>+ </tr>+++++ <tr>+ <td>DeleteRole</td>+ <td>DELETE</td>+ <td>/v1/{name=roles/*}</td>+ <td></td></tr>@@ -25137,12 +24952,12 @@ The access is the same as BatchRunTasks().</p></td><div class="file-heading">- <h2 id="v1/setting_service.proto">v1/setting_service.proto</h2><a href="#title">Top</a>+ <h2 id="v1/rollout_service.proto">v1/rollout_service.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.v1.AgentPluginSetting">AgentPluginSetting</h3>+ <h3 id="bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</h3><p></p>@@ -25153,55 +24968,27 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>url</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The URL for the agent API. </p></td>- </tr>-- <tr>- <td>token</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>The token for the agent. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.Announcement">Announcement</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>level</td>- <td><a href="#bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</a></td>- <td></td>- <td><p>The alert level of announcemnt </p></td>+ <td><p>The name of the parent of the taskRuns.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+Use `projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/-` to cancel task runs under the same stage. </p></td></tr><tr>- <td>text</td>+ <td>task_runs</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The text of announcemnt </p></td>+ <td>repeated</td>+ <td><p>The taskRuns to cancel.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr><tr>- <td>link</td>+ <td>reason</td><td><a href="#string">string</a></td><td></td>- <td><p>The optional link, user can follow the link to check extra details </p></td>+ <td><p> </p></td></tr></tbody>@@ -25211,45 +24998,14 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.AppIMSetting">AppIMSetting</h3>+ <h3 id="bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</h3><p></p>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>slack</td>- <td><a href="#bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>feishu</td>- <td><a href="#bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>wecom</td>- <td><a href="#bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>--- <h3 id="bytebase.v1.AppIMSetting.Feishu">AppIMSetting.Feishu</h3>+ <h3 id="bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</h3><p></p>@@ -25260,21 +25016,23 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>enabled</td>- <td><a href="#bool">bool</a></td>+ <td>parent</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the parent of the tasks.+Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td></tr><tr>- <td>app_id</td>+ <td>tasks</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>The tasks to run.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td></tr><tr>- <td>app_secret</td>+ <td>reason</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -25287,38 +25045,14 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.AppIMSetting.Slack">AppIMSetting.Slack</h3>+ <h3 id="bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</h3><p></p>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>enabled</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>--- <h3 id="bytebase.v1.AppIMSetting.Wecom">AppIMSetting.Wecom</h3>+ <h3 id="bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</h3><p></p>@@ -25329,28 +25063,23 @@ The access is the same as BatchRunTasks().</p></td><tbody><tr>- <td>enabled</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>corp_id</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The name of the parent of the tasks.+Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td></tr><tr>- <td>agent_id</td>+ <td>tasks</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>The tasks to skip.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td></tr><tr>- <td>secret</td>+ <td>reason</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -25363,31 +25092,14 @@ The access is the same as BatchRunTasks().</p></td>- <h3 id="bytebase.v1.DataClassificationSetting">DataClassificationSetting</h3>+ <h3 id="bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</h3><p></p>- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>configs</td>- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>--- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig">DataClassificationSetting.DataClassificationConfig</h3>+ <h3 id="bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</h3><p></p>@@ -25396,44 +25108,20 @@ The access is the same as BatchRunTasks().</p></td><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr></thead><tbody>-- <tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>id is the uuid for classification. Each project can chose one classification config. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>levels</td>- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</a></td>- <td>repeated</td>- <td><p>levels is user defined level list for classification.-The order for the level decides its priority. </p></td>- </tr>-- <tr>- <td>classification</td>- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</a></td>- <td>repeated</td>- <td><p>classification is the id - DataClassification map.-The id should in [0-9]+-[0-9]+-[0-9]+ format. </p></td>++ <tr>+ <td>parent</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The parent project where this rollout will be created.+Format: projects/{project} </p></td></tr><tr>- <td>classification_from_config</td>- <td><a href="#bool">bool</a></td>+ <td>rollout</td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td><td></td>- <td><p>If true, we will only store the classification in the config.-Otherwise we will get the classification from table/column comment,-and write back to the schema metadata. </p></td>+ <td><p>The rollout to create. </p></td></tr></tbody>@@ -25443,7 +25131,7 @@ and write back to the schema metadata. </p></td>- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.ClassificationEntry">DataClassificationSetting.DataClassificationConfig.ClassificationEntry</h3>+ <h3 id="bytebase.v1.GetRolloutRequest">GetRolloutRequest</h3><p></p>@@ -25454,17 +25142,11 @@ and write back to the schema metadata. </p></td><tbody><tr>- <td>key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>value</td>- <td><a href="#bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The name of the rollout to retrieve.+Format: projects/{project}/rollouts/{rollout} </p></td></tr></tbody>@@ -25474,7 +25156,7 @@ and write back to the schema metadata. </p></td>- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.DataClassification">DataClassificationSetting.DataClassificationConfig.DataClassification</h3>+ <h3 id="bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</h3><p></p>@@ -25485,31 +25167,35 @@ and write back to the schema metadata. </p></td><tbody><tr>- <td>id</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p>id is the classification id in [0-9]+-[0-9]+-[0-9]+ format. </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}+TODO(d): check the resource_reference. </p></td></tr>- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>description</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>level_id</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr></tbody>@@ -25519,7 +25205,7 @@ and write back to the schema metadata. </p></td>- <h3 id="bytebase.v1.DataClassificationSetting.DataClassificationConfig.Level">DataClassificationSetting.DataClassificationConfig.Level</h3>+ <h3 id="bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</h3><p></p>@@ -25530,24 +25216,33 @@ and write back to the schema metadata. </p></td><tbody><tr>- <td>id</td>+ <td>parent</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The parent, which owns this collection of plans.+Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}+Use "projects/{project}/rollouts/{rollout}/stages/-/tasks/-" to list all taskRuns from a rollout. </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>page_size</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr><tr>- <td>description</td>+ <td>page_token</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>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. </p></td></tr></tbody>@@ -25557,7 +25252,7 @@ and write back to the schema metadata. </p></td>- <h3 id="bytebase.v1.ExternalApprovalSetting">ExternalApprovalSetting</h3>+ <h3 id="bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</h3><p></p>@@ -25568,10 +25263,18 @@ and write back to the schema metadata. </p></td><tbody><tr>- <td>nodes</td>- <td><a href="#bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</a></td>+ <td>task_runs</td>+ <td><a href="#bytebase.v1.TaskRun">TaskRun</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>The taskRuns from the specified request. </p></td>+ </tr>++ <tr>+ <td>next_page_token</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A token, which can be sent as `page_token` to retrieve the next page.+If this field is omitted, there are no subsequent pages. </p></td></tr></tbody>@@ -25581,7 +25284,7 @@ and write back to the schema metadata. </p></td>- <h3 id="bytebase.v1.ExternalApprovalSetting.Node">ExternalApprovalSetting.Node</h3>+ <h3 id="bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</h3><p></p>@@ -25592,25 +25295,18 @@ and write back to the schema metadata. </p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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. </p></td>- </tr>-- <tr>- <td>title</td>+ <td>project</td><td><a href="#string">string</a></td><td></td>- <td><p>The title of the node. </p></td>+ <td><p>The name of the project.+Format: projects/{project} </p></td></tr><tr>- <td>endpoint</td>- <td><a href="#string">string</a></td>+ <td>plan</td>+ <td><a href="#bytebase.v1.Plan">Plan</a></td><td></td>- <td><p>The external endpoint for the relay service, e.g. "http://hello:1234". </p></td>+ <td><p>The plan used to preview rollout. </p></td></tr></tbody>@@ -25620,8 +25316,8 @@ We will also include the id in the message sending to the external relay service- <h3 id="bytebase.v1.GetSettingRequest">GetSettingRequest</h3>- <p>The request message for getting a setting.</p>+ <h3 id="bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</h3>+ <p></p><table class="field-table">@@ -25634,7 +25330,7 @@ We will also include the id in the message sending to the external relay service<td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the setting. </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr></tbody>@@ -25644,8 +25340,8 @@ We will also include the id in the message sending to the external relay service- <h3 id="bytebase.v1.GetSettingResponse">GetSettingResponse</h3>- <p>The response message for getting a setting.</p>+ <h3 id="bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</h3>+ <p></p><table class="field-table">@@ -25655,8 +25351,8 @@ We will also include the id in the message sending to the external relay service<tbody><tr>- <td>setting</td>- <td><a href="#bytebase.v1.Setting">Setting</a></td>+ <td>statement</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -25668,7 +25364,7 @@ We will also include the id in the message sending to the external relay service- <h3 id="bytebase.v1.ListSettingsRequest">ListSettingsRequest</h3>+ <h3 id="bytebase.v1.Rollout">Rollout</h3><p></p>@@ -25679,24 +25375,33 @@ We will also include the id in the message sending to the external relay service<tbody><tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The resource name of the rollout.+Format: projects/{project}/rollouts/{rollout} </p></td></tr><tr>- <td>page_token</td>+ <td>plan</td><td><a href="#string">string</a></td><td></td>- <td><p>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. </p></td>+ <td><p>The plan that this rollout is based on.+Format: projects/{project}/plans/{plan} </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>stages</td>+ <td><a href="#bytebase.v1.Stage">Stage</a></td>+ <td>repeated</td>+ <td><p>stages and thus tasks of the rollout. </p></td></tr></tbody>@@ -25706,7 +25411,7 @@ the call that provided the page token. </p></td>- <h3 id="bytebase.v1.ListSettingsResponse">ListSettingsResponse</h3>+ <h3 id="bytebase.v1.Stage">Stage</h3><p></p>@@ -25717,42 +25422,24 @@ the call that provided the page token. </p></td><tbody><tr>- <td>settings</td>- <td><a href="#bytebase.v1.Setting">Setting</a></td>- <td>repeated</td>- <td><p>The settings from the specified request. </p></td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage} </p></td></tr><tr>- <td>next_page_token</td>+ <td>title</td><td><a href="#string">string</a></td><td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingAlgorithmSetting">MaskingAlgorithmSetting</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>algorithms</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</a></td>+ <td>tasks</td>+ <td><a href="#bytebase.v1.Task">Task</a></td><td>repeated</td>- <td><p>algorithms is the list of masking algorithms. </p></td>+ <td><p> </p></td></tr></tbody>@@ -25762,7 +25449,7 @@ If this field is omitted, there are no subsequent pages. </p></td>- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm">MaskingAlgorithmSetting.Algorithm</h3>+ <h3 id="bytebase.v1.Task">Task</h3><p></p>@@ -25773,60 +25460,94 @@ If this field is omitted, there are no subsequent pages. </p></td><tbody><tr>- <td>id</td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td>+ </tr>++ <tr>+ <td>title</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>spec_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A UUID4 string that uniquely identifies the Spec.+Could be empty if the rollout of the task does not have an associating plan. </p></td>+ </tr>++ <tr>+ <td>status</td>+ <td><a href="#bytebase.v1.Task.Status">Task.Status</a></td>+ <td></td>+ <td><p>Status is the status of the task. </p></td>+ </tr>++ <tr>+ <td>skipped_reason</td><td><a href="#string">string</a></td><td></td>- <td><p>id is the uuid for masking algorithm. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.v1.Task.Type">Task.Type</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>title</td>+ <td>depends_on_tasks</td><td><a href="#string">string</a></td>- <td></td>- <td><p>title is the title for masking algorithm. </p></td>+ <td>repeated</td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td></tr><tr>- <td>description</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p>description is the description for masking algorithm. </p></td>+ <td><p>Format: instances/{instance} if the task is DatabaseCreate.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>category</td>- <td><a href="#string">string</a></td>+ <td>database_create</td>+ <td><a href="#bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</a></td><td></td>- <td><p>Category is the category for masking algorithm. Currently, it accepts 2 categories only: MASK and HASH.-The range of accepted Payload is decided by the category.-MASK: FullMask, RangeMask-HASH: MD5Mask </p></td>+ <td><p> </p></td></tr><tr>- <td>full_mask</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</a></td>+ <td>database_schema_baseline</td>+ <td><a href="#bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</a></td><td></td><td><p> </p></td></tr><tr>- <td>range_mask</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</a></td>+ <td>database_schema_update</td>+ <td><a href="#bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</a></td><td></td><td><p> </p></td></tr><tr>- <td>md5_mask</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</a></td>+ <td>database_data_update</td>+ <td><a href="#bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</a></td><td></td><td><p> </p></td></tr><tr>- <td>inner_outer_mask</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</a></td>+ <td>database_data_export</td>+ <td><a href="#bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</a></td><td></td><td><p> </p></td></tr>@@ -25838,7 +25559,7 @@ HASH: MD5Mask </p></td>- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.FullMask">MaskingAlgorithmSetting.Algorithm.FullMask</h3>+ <h3 id="bytebase.v1.Task.DatabaseCreate">Task.DatabaseCreate</h3><p></p>@@ -25849,58 +25570,62 @@ HASH: MD5Mask </p></td><tbody><tr>- <td>substitution</td>+ <td>project</td><td><a href="#string">string</a></td><td></td>- <td><p>substitution is the string used to replace the original value, the-max length of the string is 16 bytes. </p></td>+ <td><p>The project owning the database.+Format: projects/{project} </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask">MaskingAlgorithmSetting.Algorithm.InnerOuterMask</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>database name </p></td>+ </tr><tr>- <td>prefix_len</td>- <td><a href="#int32">int32</a></td>+ <td>table</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>table name </p></td></tr><tr>- <td>suffix_len</td>- <td><a href="#int32">int32</a></td>+ <td>sheet</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>character_set</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>type</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</a></td>+ <td>collation</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>substitution</td>+ <td>environment</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>+ <tr>+ <td>labels</td>+ <td><a href="#bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -25908,7 +25633,7 @@ max length of the string is 16 bytes. </p></td>- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.MD5Mask">MaskingAlgorithmSetting.Algorithm.MD5Mask</h3>+ <h3 id="bytebase.v1.Task.DatabaseCreate.LabelsEntry">Task.DatabaseCreate.LabelsEntry</h3><p></p>@@ -25919,35 +25644,17 @@ max length of the string is 16 bytes. </p></td><tbody><tr>- <td>salt</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>salt is the salt value to generate a different hash that with the word alone. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask">MaskingAlgorithmSetting.Algorithm.RangeMask</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>slices</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</a></td>- <td>repeated</td>- <td><p>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. </p></td>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -25957,7 +25664,7 @@ But frontend can be started with a single rule easily. </p></td>- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.RangeMask.Slice">MaskingAlgorithmSetting.Algorithm.RangeMask.Slice</h3>+ <h3 id="bytebase.v1.Task.DatabaseDataExport">Task.DatabaseDataExport</h3><p></p>@@ -25968,24 +25675,34 @@ But frontend can be started with a single rule easily. </p></td><tbody><tr>- <td>start</td>- <td><a href="#int32">int32</a></td>+ <td>target</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>start is the start index of the original value, start from 0 and should be less than stop. </p></td>+ <td><p>The resource name of the target.+Format: instances/{instance-id}/databases/{database-name} </p></td></tr><tr>- <td>end</td>- <td><a href="#int32">int32</a></td>+ <td>sheet</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>stop is the stop index of the original value, should be less than the length of the original value. </p></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>substitution</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.v1.ExportFormat">ExportFormat</a></td><td></td>- <td><p>substitution is the string used to replace the OriginalValue[start:end). </p></td>+ <td><p>The format of the exported file. </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The zip password provide by users.+Leave it empty if no needs to encrypt the zip file. </p></td></tr></tbody>@@ -25995,7 +25712,7 @@ But frontend can be started with a single rule easily. </p></td>- <h3 id="bytebase.v1.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</h3>+ <h3 id="bytebase.v1.Task.DatabaseDataUpdate">Task.DatabaseDataUpdate</h3><p></p>@@ -26006,11 +25723,17 @@ But frontend can be started with a single rule easily. </p></td><tbody><tr>- <td>limit</td>- <td><a href="#int64">int64</a></td>+ <td>sheet</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The limit is in bytes.-The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. </p></td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>schema_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -26020,7 +25743,7 @@ The default value is 100MB, we will use the default value if the setting not exi- <h3 id="bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</h3>+ <h3 id="bytebase.v1.Task.DatabaseSchemaBaseline">Task.DatabaseSchemaBaseline</h3><p></p>@@ -26031,52 +25754,10 @@ The default value is 100MB, we will use the default value if the setting not exi<tbody><tr>- <td>min_length</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>min_length is the minimum length for password, should no less than 8. </p></td>- </tr>-- <tr>- <td>require_number</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>require_number requires the password must contains at least one number. </p></td>- </tr>-- <tr>- <td>require_letter</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>require_letter requires the password must contains at least one letter, regardless of upper case or lower case </p></td>- </tr>-- <tr>- <td>require_uppercase_letter</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>require_uppercase_letter requires the password must contains at least one upper case letter. </p></td>- </tr>-- <tr>- <td>require_special_character</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>require_uppercase_letter requires the password must contains at least one special character. </p></td>- </tr>-- <tr>- <td>require_reset_password_for_first_login</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>require_reset_password_for_first_login requires users to reset their password after the 1st login. </p></td>- </tr>-- <tr>- <td>password_rotation</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>schema_version</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>password_rotation requires users to reset their password after the duration. </p></td>+ <td><p> </p></td></tr></tbody>@@ -26086,7 +25767,7 @@ The default value is 100MB, we will use the default value if the setting not exi- <h3 id="bytebase.v1.SCIMSetting">SCIMSetting</h3>+ <h3 id="bytebase.v1.Task.DatabaseSchemaUpdate">Task.DatabaseSchemaUpdate</h3><p></p>@@ -26097,7 +25778,14 @@ The default value is 100MB, we will use the default value if the setting not exi<tbody><tr>- <td>token</td>+ <td>sheet</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ </tr>++ <tr>+ <td>schema_version</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -26110,7 +25798,7 @@ The default value is 100MB, we will use the default value if the setting not exi- <h3 id="bytebase.v1.SMTPMailDeliverySettingValue">SMTPMailDeliverySettingValue</h3>+ <h3 id="bytebase.v1.TaskRun">TaskRun</h3><p></p>@@ -26121,118 +25809,101 @@ The default value is 100MB, we will use the default value if the setting not exi<tbody><tr>- <td>server</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The SMTP server address. </p></td>- </tr>-- <tr>- <td>port</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The SMTP server port. </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun} </p></td></tr><tr>- <td>encryption</td>- <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue.Encryption">SMTPMailDeliverySettingValue.Encryption</a></td>+ <td>creator</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The SMTP server encryption. </p></td>+ <td><p>Format: user/[email protected] </p></td></tr><tr>- <td>ca</td>+ <td>updater</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The CA, KEY, and CERT for the SMTP server.-Not used. </p></td>+ <td></td>+ <td><p>Format: user/[email protected] </p></td></tr><tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td>optional</td>+ <td>create_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>cert</td>- <td><a href="#string">string</a></td>- <td>optional</td>+ <td>update_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>authentication</td>- <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue.Authentication">SMTPMailDeliverySettingValue.Authentication</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>username</td>- <td><a href="#string">string</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.TaskRun.Status">TaskRun.Status</a></td><td></td><td><p> </p></td></tr><tr>- <td>password</td>+ <td>detail</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>If not specified, server will use the existed password. </p></td>+ <td></td>+ <td><p>Below are the results of a task run. </p></td></tr><tr>- <td>from</td>+ <td>change_history</td><td><a href="#string">string</a></td><td></td>- <td><p>The sender email address. </p></td>+ <td><p>The resource name of the change history+Format: instances/{instance}/databases/{database}/changeHistories/{changeHistory} </p></td></tr><tr>- <td>to</td>+ <td>schema_version</td><td><a href="#string">string</a></td><td></td>- <td><p>The recipient email address, used with validate_only to send test email. </p></td>+ <td><p> </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SchemaTemplateSetting">SchemaTemplateSetting</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>field_templates</td>- <td><a href="#bytebase.v1.SchemaTemplateSetting.FieldTemplate">SchemaTemplateSetting.FieldTemplate</a></td>- <td>repeated</td>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>column_types</td>- <td><a href="#bytebase.v1.SchemaTemplateSetting.ColumnType">SchemaTemplateSetting.ColumnType</a></td>- <td>repeated</td>+ <td>export_archive_status</td>+ <td><a href="#bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>table_templates</td>- <td><a href="#bytebase.v1.SchemaTemplateSetting.TableTemplate">SchemaTemplateSetting.TableTemplate</a></td>- <td>repeated</td>+ <td>prior_backup_detail</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</a></td>+ <td></td>+ <td><p>The prior backup detail that will be used to rollback the task run. </p></td>+ </tr>++ <tr>+ <td>scheduler_info</td>+ <td><a href="#bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</a></td>+ <td></td><td><p> </p></td></tr>@@ -26243,7 +25914,7 @@ Not used. </p></td>- <h3 id="bytebase.v1.SchemaTemplateSetting.ColumnType">SchemaTemplateSetting.ColumnType</h3>+ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail">TaskRun.PriorBackupDetail</h3><p></p>@@ -26254,22 +25925,8 @@ Not used. </p></td><tbody><tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>enabled</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>types</td>- <td><a href="#string">string</a></td>+ <td>items</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</a></td><td>repeated</td><td><p> </p></td></tr>@@ -26281,7 +25938,7 @@ Not used. </p></td>- <h3 id="bytebase.v1.SchemaTemplateSetting.FieldTemplate">SchemaTemplateSetting.FieldTemplate</h3>+ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item">TaskRun.PriorBackupDetail.Item</h3><p></p>@@ -26292,36 +25949,29 @@ Not used. </p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>+ <td>source_table</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td><td></td>- <td><p> </p></td>+ <td><p>The original table information. </p></td></tr><tr>- <td>category</td>- <td><a href="#string">string</a></td>+ <td>target_table</td>+ <td><a href="#bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</a></td><td></td>- <td><p> </p></td>+ <td><p>The target backup table information. </p></td></tr><tr>- <td>column</td>- <td><a href="#bytebase.v1.ColumnMetadata">ColumnMetadata</a></td>+ <td>start_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p> </p></td></tr><tr>- <td>config</td>- <td><a href="#bytebase.v1.ColumnConfig">ColumnConfig</a></td>+ <td>end_position</td>+ <td><a href="#bytebase.v1.Position">Position</a></td><td></td><td><p> </p></td></tr>@@ -26333,7 +25983,7 @@ Not used. </p></td>- <h3 id="bytebase.v1.SchemaTemplateSetting.TableTemplate">SchemaTemplateSetting.TableTemplate</h3>+ <h3 id="bytebase.v1.TaskRun.PriorBackupDetail.Item.Table">TaskRun.PriorBackupDetail.Item.Table</h3><p></p>@@ -26344,21 +25994,15 @@ Not used. </p></td><tbody><tr>- <td>id</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>engine</td>- <td><a href="#bytebase.v1.Engine">Engine</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The database information.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>category</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -26366,14 +26010,7 @@ Not used. </p></td><tr><td>table</td>- <td><a href="#bytebase.v1.TableMetadata">TableMetadata</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>config</td>- <td><a href="#bytebase.v1.TableConfig">TableConfig</a></td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -26385,7 +26022,7 @@ Not used. </p></td>- <h3 id="bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</h3>+ <h3 id="bytebase.v1.TaskRun.SchedulerInfo">TaskRun.SchedulerInfo</h3><p></p>@@ -26396,9 +26033,16 @@ Not used. </p></td><tbody><tr>- <td>types</td>- <td><a href="#bytebase.v1.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</a></td>- <td>repeated</td>+ <td>report_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>waiting_cause</td>+ <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</a></td>+ <td></td><td><p> </p></td></tr>@@ -26409,7 +26053,7 @@ Not used. </p></td>- <h3 id="bytebase.v1.SemanticTypeSetting.SemanticType">SemanticTypeSetting.SemanticType</h3>+ <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause">TaskRun.SchedulerInfo.WaitingCause</h3><p></p>@@ -26420,38 +26064,17 @@ Not used. </p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>id is the uuid for semantic type. </p></td>- </tr>-- <tr>- <td>title</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>the title of the semantic type, it should not be empty. </p></td>- </tr>-- <tr>- <td>description</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>the description of the semantic type, it can be empty. </p></td>- </tr>-- <tr>- <td>partial_mask_algorithm_id</td>- <td><a href="#string">string</a></td>+ <td>connection_limit</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>the partial mask algorithm id for the semantic type, if it is empty, should use the default partial mask algorithm. </p></td>+ <td><p> </p></td></tr><tr>- <td>full_mask_algorithm_id</td>- <td><a href="#string">string</a></td>+ <td>task</td>+ <td><a href="#bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</a></td><td></td>- <td><p>the full mask algorithm id for the semantic type, if it is empty, should use the default full mask algorithm. </p></td>+ <td><p> </p></td></tr></tbody>@@ -26461,8 +26084,8 @@ Not used. </p></td>- <h3 id="bytebase.v1.Setting">Setting</h3>- <p>The schema of setting.</p>+ <h3 id="bytebase.v1.TaskRun.SchedulerInfo.WaitingCause.Task">TaskRun.SchedulerInfo.WaitingCause.Task</h3>+ <p></p><table class="field-table">@@ -26472,20 +26095,17 @@ Not used. </p></td><tbody><tr>- <td>name</td>+ <td>task</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the setting. Must be one of the following forms:--- `setting/{setting}`-For example, "settings/bb.branding.logo" </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task} </p></td></tr><tr>- <td>value</td>- <td><a href="#bytebase.v1.Value">Value</a></td>+ <td>issue</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The value of the setting. </p></td>+ <td><p>Format: projects/{project}/issues/{issue} </p></td></tr></tbody>@@ -26495,8 +26115,8 @@ For example, "settings/bb.branding.logo" </p></td>- <h3 id="bytebase.v1.UpdateSettingRequest">UpdateSettingRequest</h3>- <p>The request message for updating or creating a setting.</p>+ <h3 id="bytebase.v1.TaskRunLog">TaskRunLog</h3>+ <p></p><table class="field-table">@@ -26506,31 +26126,16 @@ For example, "settings/bb.branding.logo" </p></td><tbody><tr>- <td>setting</td>- <td><a href="#bytebase.v1.Setting">Setting</a></td>- <td></td>- <td><p>The setting to update. </p></td>- </tr>-- <tr>- <td>validate_only</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>validate_only is a flag to indicate whether to validate the setting value,-server would not persist the setting value if it is true. </p></td>- </tr>-- <tr>- <td>allow_missing</td>- <td><a href="#bool">bool</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/log </p></td></tr><tr>- <td>update_mask</td>- <td><a href="#google.protobuf.FieldMask">google.protobuf.FieldMask</a></td>- <td></td>+ <td>entries</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -26541,8 +26146,8 @@ server would not persist the setting value if it is true. </p></td>- <h3 id="bytebase.v1.Value">Value</h3>- <p>The data in setting value.</p>+ <h3 id="bytebase.v1.TaskRunLogEntry">TaskRunLogEntry</h3>+ <p></p><table class="field-table">@@ -26552,108 +26157,143 @@ server would not persist the setting value if it is true. </p></td><tbody><tr>- <td>string_value</td>- <td><a href="#string">string</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</a></td><td></td>- <td><p>Defines this value as being a string value. </p></td>+ <td><p> </p></td></tr><tr>- <td>smtp_mail_delivery_setting_value</td>- <td><a href="#bytebase.v1.SMTPMailDeliverySettingValue">SMTPMailDeliverySettingValue</a></td>+ <td>log_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>app_im_setting_value</td>- <td><a href="#bytebase.v1.AppIMSetting">AppIMSetting</a></td>+ <td>deploy_id</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>agent_plugin_setting_value</td>- <td><a href="#bytebase.v1.AgentPluginSetting">AgentPluginSetting</a></td>+ <td>schema_dump</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</a></td><td></td><td><p> </p></td></tr><tr>- <td>workspace_profile_setting_value</td>- <td><a href="#bytebase.v1.WorkspaceProfileSetting">WorkspaceProfileSetting</a></td>+ <td>command_execute</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</a></td><td></td><td><p> </p></td></tr><tr>- <td>workspace_approval_setting_value</td>- <td><a href="#bytebase.v1.WorkspaceApprovalSetting">WorkspaceApprovalSetting</a></td>+ <td>database_sync</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</a></td><td></td><td><p> </p></td></tr><tr>- <td>workspace_trial_setting_value</td>- <td><a href="#bytebase.v1.WorkspaceTrialSetting">WorkspaceTrialSetting</a></td>+ <td>task_run_status_update</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</a></td><td></td><td><p> </p></td></tr><tr>- <td>external_approval_setting_value</td>- <td><a href="#bytebase.v1.ExternalApprovalSetting">ExternalApprovalSetting</a></td>+ <td>transaction_control</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute">TaskRunLogEntry.CommandExecute</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>schema_template_setting_value</td>- <td><a href="#bytebase.v1.SchemaTemplateSetting">SchemaTemplateSetting</a></td>+ <td>log_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>data_classification_setting_value</td>- <td><a href="#bytebase.v1.DataClassificationSetting">DataClassificationSetting</a></td>- <td></td>- <td><p> </p></td>+ <td>command_indexes</td>+ <td><a href="#int32">int32</a></td>+ <td>repeated</td>+ <td><p>The indexes of the executed commands. </p></td></tr><tr>- <td>semantic_type_setting_value</td>- <td><a href="#bytebase.v1.SemanticTypeSetting">SemanticTypeSetting</a></td>+ <td>response</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.CommandExecute.CommandResponse">TaskRunLogEntry.CommandExecute.CommandResponse</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>masking_algorithm_setting_value</td>- <td><a href="#bytebase.v1.MaskingAlgorithmSetting">MaskingAlgorithmSetting</a></td>+ <td>log_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>maximum_sql_result_size_setting</td>- <td><a href="#bytebase.v1.MaximumSQLResultSizeSetting">MaximumSQLResultSizeSetting</a></td>+ <td>error</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>scim_setting</td>- <td><a href="#bytebase.v1.SCIMSetting">SCIMSetting</a></td>+ <td>affected_rows</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>password_restriction_setting</td>- <td><a href="#bytebase.v1.PasswordRestrictionSetting">PasswordRestrictionSetting</a></td>- <td></td>- <td><p> </p></td>+ <td>all_affected_rows</td>+ <td><a href="#int32">int32</a></td>+ <td>repeated</td>+ <td><p>`all_affected_rows` is the affected rows of each command.+`all_affected_rows` may be unavailable if the database driver doesn't support it. Caller should fallback to `affected_rows` in that case. </p></td></tr></tbody>@@ -26663,7 +26303,7 @@ server would not persist the setting value if it is true. </p></td>- <h3 id="bytebase.v1.WorkspaceApprovalSetting">WorkspaceApprovalSetting</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.DatabaseSync">TaskRunLogEntry.DatabaseSync</h3><p></p>@@ -26674,9 +26314,23 @@ server would not persist the setting value if it is true. </p></td><tbody><tr>- <td>rules</td>- <td><a href="#bytebase.v1.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</a></td>- <td>repeated</td>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>end_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr>@@ -26687,7 +26341,7 @@ server would not persist the setting value if it is true. </p></td>- <h3 id="bytebase.v1.WorkspaceApprovalSetting.Rule">WorkspaceApprovalSetting.Rule</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.SchemaDump">TaskRunLogEntry.SchemaDump</h3><p></p>@@ -26698,15 +26352,22 @@ server would not persist the setting value if it is true. </p></td><tbody><tr>- <td>template</td>- <td><a href="#bytebase.v1.ApprovalTemplate">ApprovalTemplate</a></td>+ <td>start_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>end_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>error</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -26718,7 +26379,7 @@ server would not persist the setting value if it is true. </p></td>- <h3 id="bytebase.v1.WorkspaceProfileSetting">WorkspaceProfileSetting</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate">TaskRunLogEntry.TaskRunStatusUpdate</h3><p></p>@@ -26729,91 +26390,110 @@ server would not persist the setting value if it is true. </p></td><tbody><tr>- <td>external_url</td>- <td><a href="#string">string</a></td>+ <td>status</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</a></td><td></td>- <td><p>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. </p></td>+ <td><p> </p></td></tr>- <tr>- <td>disallow_signup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Disallow self-service signup, users can only be invited by the owner. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl">TaskRunLogEntry.TransactionControl</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>require_2fa</td>- <td><a href="#bool">bool</a></td>+ <td>type</td>+ <td><a href="#bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</a></td><td></td>- <td><p>Require 2FA for all users. </p></td>- </tr>-- <tr>- <td>outbound_ip_list</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>outbound_ip_list is the outbound IP for Bytebase instance in SaaS mode. </p></td>+ <td><p> </p></td></tr><tr>- <td>gitops_webhook_url</td>+ <td>error</td><td><a href="#string">string</a></td><td></td>- <td><p>The webhook URL for the GitOps workflow. </p></td>+ <td><p> </p></td></tr>- <tr>- <td>token_duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>- <td></td>- <td><p>The duration for token. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunSession">TaskRunSession</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>announcement</td>- <td><a href="#bytebase.v1.Announcement">Announcement</a></td>+ <td>name</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The setting of custom announcement </p></td>+ <td><p>Format: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task}/taskRuns/{taskRun}/session </p></td></tr><tr>- <td>maximum_role_expiration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>postgres</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</a></td><td></td>- <td><p>The max duration for role expired. </p></td>+ <td><p> </p></td></tr>- <tr>- <td>domains</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The workspace domain, e.g. bytebase.com. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.v1.TaskRunSession.Postgres">TaskRunSession.Postgres</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>enforce_identity_domain</td>- <td><a href="#bool">bool</a></td>+ <td>session</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td><td></td>- <td><p>Only user and group from the domains can be created and login. </p></td>+ <td><p>`session` is the session of the task run executing commands. </p></td></tr><tr>- <td>database_change_mode</td>- <td><a href="#bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</a></td>- <td></td>- <td><p>The workspace database change mode. </p></td>+ <td>blocking_sessions</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td>repeated</td>+ <td><p>`blocking_sessions` block `session`. </p></td></tr><tr>- <td>disallow_password_signin</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Whether to disallow password signin. (Except workspace admins) </p></td>+ <td>blocked_sessions</td>+ <td><a href="#bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</a></td>+ <td>repeated</td>+ <td><p>`blocked_sessions` are blocked by `session`. </p></td></tr></tbody>@@ -26823,8 +26503,8 @@ The external URL is used for:- <h3 id="bytebase.v1.WorkspaceTrialSetting">WorkspaceTrialSetting</h3>- <p></p>+ <h3 id="bytebase.v1.TaskRunSession.Postgres.Session">TaskRunSession.Postgres.Session</h3>+ <p>Read from `pg_stat_activity`</p><table class="field-table">@@ -26834,47 +26514,103 @@ The external URL is used for:<tbody><tr>- <td>instance_count</td>- <td><a href="#int32">int32</a></td>+ <td>pid</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>expire_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>+ <td>blocked_by_pids</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>issued_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>query</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>subject</td>+ <td>state</td><td><a href="#string">string</a></td>- <td></td>+ <td>optional</td><td><p> </p></td></tr><tr>- <td>org_name</td>+ <td>wait_event_type</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>wait_event</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>datname</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>usename</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>application_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>plan</td>- <td><a href="#bytebase.v1.PlanType">PlanType</a></td>+ <td>client_addr</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>client_port</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>backend_start</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td><td><p> </p></td></tr>+ <tr>+ <td>xact_start</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>query_start</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -26884,8 +26620,167 @@ The external URL is used for:- <h3 id="bytebase.v1.Announcement.AlertLevel">Announcement.AlertLevel</h3>- <p>We support three levels of AlertLevel: INFO, WARNING, and ERROR.</p>+ <h3 id="bytebase.v1.Task.Status">Task.Status</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>NOT_STARTED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PENDING</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>RUNNING</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FAILED</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>SKIPPED</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.Task.Type">Task.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>GENERAL</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CREATE</td>+ <td>2</td>+ <td><p>use payload DatabaseCreate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_BASELINE</td>+ <td>3</td>+ <td><p>use payload DatabaseSchemaBaseline</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE</td>+ <td>4</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_SDL</td>+ <td>5</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_GHOST_SYNC</td>+ <td>6</td>+ <td><p>use payload DatabaseSchemaUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_SCHEMA_UPDATE_GHOST_CUTOVER</td>+ <td>7</td>+ <td><p>use payload nil</p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_UPDATE</td>+ <td>8</td>+ <td><p>use payload DatabaseDataUpdate</p></td>+ </tr>++ <tr>+ <td>DATABASE_DATA_EXPORT</td>+ <td>12</td>+ <td><p>use payload DatabaseDataExport</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRun.ExportArchiveStatus">TaskRun.ExportArchiveStatus</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>EXPORT_ARCHIVE_STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>READY</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>EXPORTED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.v1.TaskRun.Status">TaskRun.Status</h3>+ <p></p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -26893,33 +26788,45 @@ The external URL is used for:<tbody><tr>- <td>ALERT_LEVEL_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>ALERT_LEVEL_INFO</td>+ <td>PENDING</td><td>1</td><td><p></p></td></tr><tr>- <td>ALERT_LEVEL_WARNING</td>+ <td>RUNNING</td><td>2</td><td><p></p></td></tr><tr>- <td>ALERT_LEVEL_CRITICAL</td>+ <td>DONE</td><td>3</td><td><p></p></td></tr>+ <tr>+ <td>FAILED</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>5</td>+ <td><p></p></td>+ </tr>+</tbody></table>- <h3 id="bytebase.v1.DatabaseChangeMode">DatabaseChangeMode</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.TaskRunStatusUpdate.Status">TaskRunLogEntry.TaskRunStatusUpdate.Status</h3><p></p><table class="enum-table"><thead>@@ -26928,28 +26835,27 @@ The external URL is used for:<tbody><tr>- <td>DATABASE_CHANGE_MODE_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>PIPELINE</td>+ <td>RUNNING_WAITING</td><td>1</td>- <td><p>A more advanced database change process, including custom approval workflows and other advanced features.-Default to this mode.</p></td>+ <td><p>the task run is ready to be executed by the scheduler</p></td></tr><tr>- <td>EDITOR</td>+ <td>RUNNING_RUNNING</td><td>2</td>- <td><p>A simple database change process in SQL editor. Users can execute SQL directly.</p></td>+ <td><p>the task run is being executed by the scheduler</p></td></tr></tbody></table>- <h3 id="bytebase.v1.MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType">MaskingAlgorithmSetting.Algorithm.InnerOuterMask.MaskType</h3>+ <h3 id="bytebase.v1.TaskRunLogEntry.TransactionControl.Type">TaskRunLogEntry.TransactionControl.Type</h3><p></p><table class="enum-table"><thead>@@ -26958,28 +26864,34 @@ Default to this mode.</p></td><tbody><tr>- <td>MASK_TYPE_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>INNER</td>+ <td>BEGIN</td><td>1</td><td><p></p></td></tr><tr>- <td>OUTER</td>+ <td>COMMIT</td><td>2</td><td><p></p></td></tr>+ <tr>+ <td>ROLLBACK</td>+ <td>3</td>+ <td><p></p></td>+ </tr>+</tbody></table>- <h3 id="bytebase.v1.SMTPMailDeliverySettingValue.Authentication">SMTPMailDeliverySettingValue.Authentication</h3>- <p>We support four types of SMTP authentication: NONE, PLAIN, LOGIN, and CRAM-MD5.</p>+ <h3 id="bytebase.v1.TaskRunLogEntry.Type">TaskRunLogEntry.Type</h3>+ <p></p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -26987,103 +26899,128 @@ Default to this mode.</p></td><tbody><tr>- <td>AUTHENTICATION_UNSPECIFIED</td>+ <td>TYPE_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>AUTHENTICATION_NONE</td>+ <td>SCHEMA_DUMP</td><td>1</td><td><p></p></td></tr><tr>- <td>AUTHENTICATION_PLAIN</td>+ <td>COMMAND_EXECUTE</td><td>2</td><td><p></p></td></tr><tr>- <td>AUTHENTICATION_LOGIN</td>+ <td>DATABASE_SYNC</td><td>3</td><td><p></p></td></tr><tr>- <td>AUTHENTICATION_CRAM_MD5</td>+ <td>TASK_RUN_STATUS_UPDATE</td><td>4</td><td><p></p></td></tr>+ <tr>+ <td>TRANSACTION_CONTROL</td>+ <td>5</td>+ <td><p></p></td>+ </tr>+</tbody></table>- <h3 id="bytebase.v1.SMTPMailDeliverySettingValue.Encryption">SMTPMailDeliverySettingValue.Encryption</h3>- <p>We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.</p>+++++ <h3 id="bytebase.v1.RolloutService">RolloutService</h3>+ <p></p><table class="enum-table"><thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr></thead><tbody><tr>- <td>ENCRYPTION_UNSPECIFIED</td>- <td>0</td>+ <td>GetRollout</td>+ <td><a href="#bytebase.v1.GetRolloutRequest">GetRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td><td><p></p></td></tr><tr>- <td>ENCRYPTION_NONE</td>- <td>1</td>+ <td>CreateRollout</td>+ <td><a href="#bytebase.v1.CreateRolloutRequest">CreateRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td><td><p></p></td></tr><tr>- <td>ENCRYPTION_STARTTLS</td>- <td>2</td>+ <td>PreviewRollout</td>+ <td><a href="#bytebase.v1.PreviewRolloutRequest">PreviewRolloutRequest</a></td>+ <td><a href="#bytebase.v1.Rollout">Rollout</a></td><td><p></p></td></tr><tr>- <td>ENCRYPTION_SSL_TLS</td>- <td>3</td>+ <td>ListTaskRuns</td>+ <td><a href="#bytebase.v1.ListTaskRunsRequest">ListTaskRunsRequest</a></td>+ <td><a href="#bytebase.v1.ListTaskRunsResponse">ListTaskRunsResponse</a></td><td><p></p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.v1.SettingService">SettingService</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>- </thead>- <tbody>-<tr>- <td>ListSettings</td>- <td><a href="#bytebase.v1.ListSettingsRequest">ListSettingsRequest</a></td>- <td><a href="#bytebase.v1.ListSettingsResponse">ListSettingsResponse</a></td>+ <td>GetTaskRunLog</td>+ <td><a href="#bytebase.v1.GetTaskRunLogRequest">GetTaskRunLogRequest</a></td>+ <td><a href="#bytebase.v1.TaskRunLog">TaskRunLog</a></td><td><p></p></td></tr><tr>- <td>GetSetting</td>- <td><a href="#bytebase.v1.GetSettingRequest">GetSettingRequest</a></td>- <td><a href="#bytebase.v1.Setting">Setting</a></td>+ <td>GetTaskRunSession</td>+ <td><a href="#bytebase.v1.GetTaskRunSessionRequest">GetTaskRunSessionRequest</a></td>+ <td><a href="#bytebase.v1.TaskRunSession">TaskRunSession</a></td><td><p></p></td></tr><tr>- <td>UpdateSetting</td>- <td><a href="#bytebase.v1.UpdateSettingRequest">UpdateSettingRequest</a></td>- <td><a href="#bytebase.v1.Setting">Setting</a></td>+ <td>BatchRunTasks</td>+ <td><a href="#bytebase.v1.BatchRunTasksRequest">BatchRunTasksRequest</a></td>+ <td><a href="#bytebase.v1.BatchRunTasksResponse">BatchRunTasksResponse</a></td>+ <td><p>BatchRunTasks creates task runs for the specified tasks.+DataExport issue only allows the creator to run the task.+Users with "bb.taskRuns.create" permission can run the task, e.g. Workspace Admin and DBA.+Follow role-based rollout policy for the environment.</p></td>+ </tr>++ <tr>+ <td>BatchSkipTasks</td>+ <td><a href="#bytebase.v1.BatchSkipTasksRequest">BatchSkipTasksRequest</a></td>+ <td><a href="#bytebase.v1.BatchSkipTasksResponse">BatchSkipTasksResponse</a></td>+ <td><p>BatchSkipTasks skips the specified tasks.+The access is the same as BatchRunTasks().</p></td>+ </tr>++ <tr>+ <td>BatchCancelTaskRuns</td>+ <td><a href="#bytebase.v1.BatchCancelTaskRunsRequest">BatchCancelTaskRunsRequest</a></td>+ <td><a href="#bytebase.v1.BatchCancelTaskRunsResponse">BatchCancelTaskRunsResponse</a></td>+ <td><p>BatchSkipTasks cancels the specified task runs in batch.+The access is the same as BatchRunTasks().</p></td>+ </tr>++ <tr>+ <td>PreviewTaskRunRollback</td>+ <td><a href="#bytebase.v1.PreviewTaskRunRollbackRequest">PreviewTaskRunRollbackRequest</a></td>+ <td><a href="#bytebase.v1.PreviewTaskRunRollbackResponse">PreviewTaskRunRollbackResponse</a></td><td><p></p></td></tr>@@ -27108,9 +27045,9 @@ Default to this mode.</p></td><tr>- <td>ListSettings</td>+ <td>GetRollout</td><td>GET</td>- <td>/v1/settings</td>+ <td>/v1/{name=projects/*/rollouts/*}</td><td></td></tr>@@ -27118,9 +27055,29 @@ Default to this mode.</p></td><tr>- <td>GetSetting</td>+ <td>CreateRollout</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*}/rollouts</td>+ <td>rollout</td>+ </tr>+++++ <tr>+ <td>PreviewRollout</td>+ <td>POST</td>+ <td>/v1/{project=projects/*}:previewRollout</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>ListTaskRuns</td><td>GET</td>- <td>/v1/{name=settings/*}</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns</td><td></td></tr>@@ -27128,10 +27085,60 @@ Default to this mode.</p></td><tr>- <td>UpdateSetting</td>- <td>PATCH</td>- <td>/v1/{setting.name=settings/*}</td>- <td>setting</td>+ <td>GetTaskRunLog</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/log</td>+ <td></td>+ </tr>+++++ <tr>+ <td>GetTaskRunSession</td>+ <td>GET</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}/session</td>+ <td></td>+ </tr>+++++ <tr>+ <td>BatchRunTasks</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchRun</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>BatchSkipTasks</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*}/tasks:batchSkip</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>BatchCancelTaskRuns</td>+ <td>POST</td>+ <td>/v1/{parent=projects/*/rollouts/*/stages/*/tasks/*}/taskRuns:batchCancel</td>+ <td>*</td>+ </tr>+++++ <tr>+ <td>PreviewTaskRunRollback</td>+ <td>POST</td>+ <td>/v1/{name=projects/*/rollouts/*/stages/*/tasks/*/taskRuns/*}:previewRollback</td>+ <td>*</td></tr>diff --git a/proto/generated-go/v1/actuator_service.pb.go b/proto/generated-go/v1/actuator_service.pb.goindex 18c498321d..4ba127f1fe 100644--- a/proto/generated-go/v1/actuator_service.pb.go+++ b/proto/generated-go/v1/actuator_service.pb.go@@ -290,7 +290,8 @@ type ActuatorInfo struct {IamGuard bool `protobuf:"varint,18,opt,name=iam_guard,json=iamGuard,proto3" json:"iam_guard,omitempty"`UnlicensedFeatures []string `protobuf:"bytes,19,rep,name=unlicensed_features,json=unlicensedFeatures,proto3" json:"unlicensed_features,omitempty"`// disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins)- DisallowPasswordSignin bool `protobuf:"varint,20,opt,name=disallow_password_signin,json=disallowPasswordSignin,proto3" json:"disallow_password_signin,omitempty"`+ DisallowPasswordSignin bool `protobuf:"varint,20,opt,name=disallow_password_signin,json=disallowPasswordSignin,proto3" json:"disallow_password_signin,omitempty"`+ PasswordRestriction *PasswordRestrictionSetting `protobuf:"bytes,21,opt,name=password_restriction,json=passwordRestriction,proto3" json:"password_restriction,omitempty"`}func (x *ActuatorInfo) Reset() {@@ -465,6 +466,13 @@ func (x *ActuatorInfo) GetDisallowPasswordSignin() bool {return false}+func (x *ActuatorInfo) GetPasswordRestriction() *PasswordRestrictionSetting {+ if x != nil {+ return x.PasswordRestriction+ }+ return nil+}+var File_v1_actuator_service_proto protoreflect.FileDescriptorvar file_v1_actuator_service_proto_rawDesc = []byte{@@ -483,110 +491,117 @@ var file_v1_actuator_service_proto_rawDesc = []byte{0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x1a, 0x13, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x22, 0x25, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61,- 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74,- 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x22, 0x9b, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63,- 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41,- 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73,- 0x6b, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9a, 0x06, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75,- 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,- 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,- 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f,- 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,- 0x01, 0x03, 0x52, 0x09, 0x67, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x20, 0x0a,- 0x08, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x12,- 0x18, 0x0a, 0x04, 0x73, 0x61, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2,- 0x41, 0x01, 0x03, 0x52, 0x04, 0x73, 0x61, 0x61, 0x73, 0x12, 0x21, 0x0a, 0x09, 0x64, 0x65, 0x6d,- 0x6f, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,- 0x01, 0x03, 0x52, 0x08, 0x64, 0x65, 0x6d, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x04,- 0x68, 0x6f, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x07,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74,- 0x12, 0x27, 0x0a, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c,- 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x65, 0x78,- 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x2e, 0x0a, 0x10, 0x6e, 0x65, 0x65,- 0x64, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x18, 0x09, 0x20,- 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x6e, 0x65, 0x65, 0x64, 0x41,- 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x0f, 0x64, 0x69, 0x73,- 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x0a, 0x20, 0x01,- 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c,- 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74,- 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65,- 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f,- 0x32, 0x66, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,- 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x27, 0x0a, 0x0c, 0x77,- 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28,- 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,- 0x63, 0x65, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x12, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x77,- 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x10, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x57, 0x65,- 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75,- 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x12, 0x10,- 0x0a, 0x03, 0x6c, 0x73, 0x70, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6c, 0x73, 0x70,- 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62,- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x70, 0x72, 0x65,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1b, 0x0a, 0x09,- 0x69, 0x61, 0x6d, 0x5f, 0x67, 0x75, 0x61, 0x72, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x08, 0x69, 0x61, 0x6d, 0x47, 0x75, 0x61, 0x72, 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x75, 0x6e, 0x6c,- 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73,- 0x18, 0x13, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x75, 0x6e, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73,- 0x65, 0x64, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69,- 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f,- 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69,- 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x69,- 0x67, 0x6e, 0x69, 0x6e, 0x32, 0x9f, 0x04, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,- 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41,- 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74,- 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,- 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x20, 0xda, 0x41, 0x00,- 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f,- 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0xaa, 0x01,- 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72,- 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f,- 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61,- 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x51, 0xda, 0x41, 0x14, 0x61, 0x63, 0x74, 0x75,- 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e,- 0x73, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x08, 0x61,- 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x32, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74,- 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x66, 0x0a, 0x0b, 0x44, 0x65,- 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61,- 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,- 0x74, 0x79, 0x22, 0x1e, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12,- 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x63, 0x61, 0x63,- 0x68, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22,- 0x25, 0xda, 0x41, 0x00, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16,- 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x72, 0x65, 0x73,- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,- 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,- 0x33,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,+ 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,+ 0x1b, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61,+ 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x25, 0x0a, 0x0f,+ 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12,+ 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6c,+ 0x6f, 0x67, 0x6f, 0x22, 0x18, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74,+ 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9b, 0x01,+ 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72,+ 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x61,+ 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75,+ 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x08,+ 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,+ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,+ 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52,+ 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x14, 0x0a, 0x12, 0x44,+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x22, 0xf6, 0x06, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e,+ 0x66, 0x6f, 0x12, 0x1e, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,+ 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0a, 0x67, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x09, 0x67, 0x69,+ 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x20, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x6f,+ 0x6e, 0x6c, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,+ 0x08, 0x72, 0x65, 0x61, 0x64, 0x6f, 0x6e, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x04, 0x73, 0x61, 0x61,+ 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x73,+ 0x61, 0x61, 0x73, 0x12, 0x21, 0x0a, 0x09, 0x64, 0x65, 0x6d, 0x6f, 0x5f, 0x6e, 0x61, 0x6d, 0x65,+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x08, 0x64, 0x65,+ 0x6d, 0x6f, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x06,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74,+ 0x12, 0x18, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,+ 0xe2, 0x41, 0x01, 0x03, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x65, 0x78,+ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,+ 0x55, 0x72, 0x6c, 0x12, 0x2e, 0x0a, 0x10, 0x6e, 0x65, 0x65, 0x64, 0x5f, 0x61, 0x64, 0x6d, 0x69,+ 0x6e, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2,+ 0x41, 0x01, 0x03, 0x52, 0x0e, 0x6e, 0x65, 0x65, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65,+ 0x74, 0x75, 0x70, 0x12, 0x2d, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f,+ 0x73, 0x69, 0x67, 0x6e, 0x75, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41,+ 0x01, 0x03, 0x52, 0x0e, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x53, 0x69, 0x67, 0x6e,+ 0x75, 0x70, 0x12, 0x4a, 0x0a, 0x10, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76,+ 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0e,+ 0x6c, 0x61, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x25,+ 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x32, 0x66, 0x61, 0x18, 0x0c, 0x20,+ 0x01, 0x28, 0x08, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x69,+ 0x72, 0x65, 0x32, 0x66, 0x61, 0x12, 0x27, 0x0a, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61,+ 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x03, 0x52, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32,+ 0x0a, 0x12, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b,+ 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,+ 0x52, 0x10, 0x67, 0x69, 0x74, 0x6f, 0x70, 0x73, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x55,+ 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x05, 0x64, 0x65, 0x62, 0x75, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x73, 0x70, 0x18,+ 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6c, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72,+ 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x18,+ 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x5f, 0x67, 0x75,+ 0x61, 0x72, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x61, 0x6d, 0x47, 0x75,+ 0x61, 0x72, 0x64, 0x12, 0x2f, 0x0a, 0x13, 0x75, 0x6e, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65,+ 0x64, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x09,+ 0x52, 0x12, 0x75, 0x6e, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x64, 0x46, 0x65, 0x61, 0x74,+ 0x75, 0x72, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,+ 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x69, 0x6e,+ 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77,+ 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x12, 0x5a,+ 0x0a, 0x14, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72,+ 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77,+ 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x13, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52,+ 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x9f, 0x04, 0x0a, 0x0f, 0x41,+ 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x73,+ 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66,+ 0x6f, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66,+ 0x6f, 0x22, 0x20, 0xda, 0x41, 0x00, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13,+ 0x12, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69,+ 0x6e, 0x66, 0x6f, 0x12, 0xaa, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63,+ 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41,+ 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x41, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x51, 0xda,+ 0x41, 0x14, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x0f, 0x62, 0x62, 0x2e, 0x73, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x73, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4,+ 0x93, 0x02, 0x1d, 0x3a, 0x08, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x32, 0x11, 0x2f,+ 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f,+ 0x12, 0x66, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12,+ 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,+ 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74,+ 0x6f, 0x72, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74,+ 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12,+ 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,+ 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x61,+ 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x25, 0xda, 0x41, 0x00, 0x80, 0xea, 0x30, 0x01, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x75, 0x61, 0x74,+ 0x6f, 0x72, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f,+ 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -603,33 +618,35 @@ func file_v1_actuator_service_proto_rawDescGZIP() []byte {var file_v1_actuator_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)var file_v1_actuator_service_proto_goTypes = []any{- (*GetResourcePackageRequest)(nil), // 0: bytebase.v1.GetResourcePackageRequest- (*ResourcePackage)(nil), // 1: bytebase.v1.ResourcePackage- (*GetActuatorInfoRequest)(nil), // 2: bytebase.v1.GetActuatorInfoRequest- (*UpdateActuatorInfoRequest)(nil), // 3: bytebase.v1.UpdateActuatorInfoRequest- (*DeleteCacheRequest)(nil), // 4: bytebase.v1.DeleteCacheRequest- (*ActuatorInfo)(nil), // 5: bytebase.v1.ActuatorInfo- (*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp- (*emptypb.Empty)(nil), // 8: google.protobuf.Empty+ (*GetResourcePackageRequest)(nil), // 0: bytebase.v1.GetResourcePackageRequest+ (*ResourcePackage)(nil), // 1: bytebase.v1.ResourcePackage+ (*GetActuatorInfoRequest)(nil), // 2: bytebase.v1.GetActuatorInfoRequest+ (*UpdateActuatorInfoRequest)(nil), // 3: bytebase.v1.UpdateActuatorInfoRequest+ (*DeleteCacheRequest)(nil), // 4: bytebase.v1.DeleteCacheRequest+ (*ActuatorInfo)(nil), // 5: bytebase.v1.ActuatorInfo+ (*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp+ (*PasswordRestrictionSetting)(nil), // 8: bytebase.v1.PasswordRestrictionSetting+ (*emptypb.Empty)(nil), // 9: google.protobuf.Empty}var file_v1_actuator_service_proto_depIdxs = []int32{5, // 0: bytebase.v1.UpdateActuatorInfoRequest.actuator:type_name -> bytebase.v1.ActuatorInfo6, // 1: bytebase.v1.UpdateActuatorInfoRequest.update_mask:type_name -> google.protobuf.FieldMask7, // 2: bytebase.v1.ActuatorInfo.last_active_time:type_name -> google.protobuf.Timestamp- 2, // 3: bytebase.v1.ActuatorService.GetActuatorInfo:input_type -> bytebase.v1.GetActuatorInfoRequest- 3, // 4: bytebase.v1.ActuatorService.UpdateActuatorInfo:input_type -> bytebase.v1.UpdateActuatorInfoRequest- 4, // 5: bytebase.v1.ActuatorService.DeleteCache:input_type -> bytebase.v1.DeleteCacheRequest- 0, // 6: bytebase.v1.ActuatorService.GetResourcePackage:input_type -> bytebase.v1.GetResourcePackageRequest- 5, // 7: bytebase.v1.ActuatorService.GetActuatorInfo:output_type -> bytebase.v1.ActuatorInfo- 5, // 8: bytebase.v1.ActuatorService.UpdateActuatorInfo:output_type -> bytebase.v1.ActuatorInfo- 8, // 9: bytebase.v1.ActuatorService.DeleteCache:output_type -> google.protobuf.Empty- 1, // 10: bytebase.v1.ActuatorService.GetResourcePackage:output_type -> bytebase.v1.ResourcePackage- 7, // [7:11] is the sub-list for method output_type- 3, // [3:7] is the sub-list for method input_type- 3, // [3:3] is the sub-list for extension type_name- 3, // [3:3] is the sub-list for extension extendee- 0, // [0:3] is the sub-list for field type_name+ 8, // 3: bytebase.v1.ActuatorInfo.password_restriction:type_name -> bytebase.v1.PasswordRestrictionSetting+ 2, // 4: bytebase.v1.ActuatorService.GetActuatorInfo:input_type -> bytebase.v1.GetActuatorInfoRequest+ 3, // 5: bytebase.v1.ActuatorService.UpdateActuatorInfo:input_type -> bytebase.v1.UpdateActuatorInfoRequest+ 4, // 6: bytebase.v1.ActuatorService.DeleteCache:input_type -> bytebase.v1.DeleteCacheRequest+ 0, // 7: bytebase.v1.ActuatorService.GetResourcePackage:input_type -> bytebase.v1.GetResourcePackageRequest+ 5, // 8: bytebase.v1.ActuatorService.GetActuatorInfo:output_type -> bytebase.v1.ActuatorInfo+ 5, // 9: bytebase.v1.ActuatorService.UpdateActuatorInfo:output_type -> bytebase.v1.ActuatorInfo+ 9, // 10: bytebase.v1.ActuatorService.DeleteCache:output_type -> google.protobuf.Empty+ 1, // 11: bytebase.v1.ActuatorService.GetResourcePackage:output_type -> bytebase.v1.ResourcePackage+ 8, // [8:12] is the sub-list for method output_type+ 4, // [4:8] is the sub-list for method input_type+ 4, // [4:4] is the sub-list for extension type_name+ 4, // [4:4] is the sub-list for extension extendee+ 0, // [0:4] is the sub-list for field type_name}func init() { file_v1_actuator_service_proto_init() }@@ -638,6 +655,7 @@ func file_v1_actuator_service_proto_init() {return}file_v1_annotation_proto_init()+ file_v1_setting_service_proto_init()if !protoimpl.UnsafeEnabled {file_v1_actuator_service_proto_msgTypes[0].Exporter = func(v any, i int) any {switch v := v.(*GetResourcePackageRequest); i {diff --git a/proto/v1/actuator_service.proto b/proto/v1/actuator_service.protoindex 4ace61ac47..5641b33d56 100644--- a/proto/v1/actuator_service.proto+++ b/proto/v1/actuator_service.proto@@ -9,6 +9,7 @@ import "google/protobuf/empty.proto";import "google/protobuf/field_mask.proto";import "google/protobuf/timestamp.proto";import "v1/annotation.proto";+import "v1/setting_service.proto";option go_package = "generated-go/v1";@@ -123,4 +124,6 @@ message ActuatorInfo {// disallow_password_signin is the flag to disallow user signin with email&password. (except workspace admins)bool disallow_password_signin = 20;++ PasswordRestrictionSetting password_restriction = 21;}