Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: introduce database and schema group proto (#6164)

Danny Xude01eb387ad8
diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.ts
index 86c454cadb..bcca14172f 100644
--- a/frontend/src/types/proto/v1/project_service.ts
+++ b/frontend/src/types/proto/v1/project_service.ts
@@ -827,6 +827,110 @@ export function activity_TypeToJSON(object: Activity_Type): string {
}
}
+export interface CreateDatabaseGroupRequest {
+ /**
+ * The parent resource where this database group will be created.
+ * Format: projects/{project}
+ */
+ parent: string;
+ /** The database group to create. */
+ databaseGroup?: DatabaseGroup;
+ /**
+ * 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]-/.
+ */
+ databaseGroupId: string;
+}
+
+export interface UpdateDatabaseGroupRequest {
+ /**
+ * 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}
+ */
+ databaseGroup?: DatabaseGroup;
+ /** The list of fields to update. */
+ updateMask?: string[];
+}
+
+export interface DeleteDatabaseGroupRequest {
+ /**
+ * The name of the database group to delete.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ */
+ name: string;
+}
+
+export interface DatabaseGroup {
+ /**
+ * The name of the database group.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ */
+ name: string;
+ /** The condition that is associated with this database group. */
+ databaseExpr?: Expr;
+}
+
+export interface CreateSchemaGroupRequest {
+ /**
+ * The parent resource where this schema group will be created.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}
+ */
+ parent: string;
+ /** The schema group to create. */
+ schemaGroup?: SchemaGroup;
+ /**
+ * The ID to use for the schema group, which will become the final component of
+ * the schema group's resource name.
+ *
+ * This value should be 4-63 characters, and valid characters
+ * are /[a-z][0-9]-/.
+ */
+ schemaGroupId: string;
+}
+
+export interface UpdateSchemaGroupRequest {
+ /**
+ * The schema group to update.
+ *
+ * The schema group's `name` field is used to identify the schema group to update.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ */
+ schemaGroup?: SchemaGroup;
+ /** The list of fields to update. */
+ updateMask?: string[];
+}
+
+export interface DeleteSchemaGroupRequest {
+ /**
+ * The name of the schema group to delete.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ */
+ name: string;
+}
+
+export interface SchemaGroup {
+ /**
+ * The name of the schema group.
+ * Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ */
+ name: string;
+ /**
+ * The table condition that is associated with this schema group.
+ * The table_placeholder in the sheet script will be rendered to the actual table name.
+ */
+ tableExpr?: Expr;
+ /**
+ * The table placeholder used for rendering. For example, if set to "tbl", all the table name
+ * "tbl" in the SQL script will be rendered to the actual table name.
+ */
+ tablePlaceholder: string;
+}
+
function createBaseGetProjectRequest(): GetProjectRequest {
return { name: "" };
}
@@ -3372,206 +3476,1045 @@ export const Activity = {
},
};
-export type ProjectServiceDefinition = typeof ProjectServiceDefinition;
-export const ProjectServiceDefinition = {
- name: "ProjectService",
- fullName: "bytebase.v1.ProjectService",
- methods: {
- getProject: {
- name: "GetProject",
- requestType: GetProjectRequest,
- requestStream: false,
- responseType: Project,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([4, 110, 97, 109, 101])],
- 578365826: [
- new Uint8Array([
- 23,
- 18,
- 21,
- 47,
- 118,
- 49,
- 47,
- 123,
- 110,
- 97,
- 109,
- 101,
- 61,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 115,
- 47,
- 42,
- 125,
- ]),
- ],
- },
- },
- },
- listProjects: {
- name: "ListProjects",
- requestType: ListProjectsRequest,
- requestStream: false,
- responseType: ListProjectsResponse,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([0])],
- 578365826: [new Uint8Array([14, 18, 12, 47, 118, 49, 47, 112, 114, 111, 106, 101, 99, 116, 115])],
- },
- },
- },
- /** Search for projects that the caller has both projects.get permission on, and also satisfy the specified query. */
- searchProjects: {
- name: "SearchProjects",
- requestType: SearchProjectsRequest,
- requestStream: false,
- responseType: SearchProjectsResponse,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([0])],
- 578365826: [
- new Uint8Array([
- 21,
- 18,
- 19,
- 47,
- 118,
- 49,
- 47,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 115,
- 58,
- 115,
- 101,
- 97,
- 114,
- 99,
- 104,
- ]),
- ],
- },
- },
- },
- createProject: {
- name: "CreateProject",
- requestType: CreateProjectRequest,
- requestStream: false,
- responseType: Project,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [new Uint8Array([0])],
- 578365826: [
- new Uint8Array([
- 23,
- 58,
- 7,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 34,
- 12,
- 47,
- 118,
- 49,
- 47,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 115,
- ]),
- ],
- },
- },
- },
- updateProject: {
- name: "UpdateProject",
- requestType: UpdateProjectRequest,
- requestStream: false,
- responseType: Project,
- responseStream: false,
- options: {
- _unknownFields: {
- 8410: [
- new Uint8Array([
- 19,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 44,
- 117,
- 112,
- 100,
- 97,
- 116,
- 101,
- 95,
- 109,
- 97,
- 115,
- 107,
- ]),
- ],
- 578365826: [
- new Uint8Array([
- 40,
- 58,
- 7,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 50,
- 29,
- 47,
- 118,
- 49,
- 47,
- 123,
- 112,
- 114,
- 111,
- 106,
- 101,
- 99,
- 116,
- 46,
- 110,
- 97,
- 109,
+function createBaseCreateDatabaseGroupRequest(): CreateDatabaseGroupRequest {
+ return { parent: "", databaseGroup: undefined, databaseGroupId: "" };
+}
+
+export const CreateDatabaseGroupRequest = {
+ encode(message: CreateDatabaseGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.parent !== "") {
+ writer.uint32(10).string(message.parent);
+ }
+ if (message.databaseGroup !== undefined) {
+ DatabaseGroup.encode(message.databaseGroup, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.databaseGroupId !== "") {
+ writer.uint32(26).string(message.databaseGroupId);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateDatabaseGroupRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCreateDatabaseGroupRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.parent = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.databaseGroup = DatabaseGroup.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.databaseGroupId = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): CreateDatabaseGroupRequest {
+ return {
+ parent: isSet(object.parent) ? String(object.parent) : "",
+ databaseGroup: isSet(object.databaseGroup) ? DatabaseGroup.fromJSON(object.databaseGroup) : undefined,
+ databaseGroupId: isSet(object.databaseGroupId) ? String(object.databaseGroupId) : "",
+ };
+ },
+
+ toJSON(message: CreateDatabaseGroupRequest): unknown {
+ const obj: any = {};
+ message.parent !== undefined && (obj.parent = message.parent);
+ message.databaseGroup !== undefined &&
+ (obj.databaseGroup = message.databaseGroup ? DatabaseGroup.toJSON(message.databaseGroup) : undefined);
+ message.databaseGroupId !== undefined && (obj.databaseGroupId = message.databaseGroupId);
+ return obj;
+ },
+
+ create(base?: DeepPartial<CreateDatabaseGroupRequest>): CreateDatabaseGroupRequest {
+ return CreateDatabaseGroupRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<CreateDatabaseGroupRequest>): CreateDatabaseGroupRequest {
+ const message = createBaseCreateDatabaseGroupRequest();
+ message.parent = object.parent ?? "";
+ message.databaseGroup = (object.databaseGroup !== undefined && object.databaseGroup !== null)
+ ? DatabaseGroup.fromPartial(object.databaseGroup)
+ : undefined;
+ message.databaseGroupId = object.databaseGroupId ?? "";
+ return message;
+ },
+};
+
+function createBaseUpdateDatabaseGroupRequest(): UpdateDatabaseGroupRequest {
+ return { databaseGroup: undefined, updateMask: undefined };
+}
+
+export const UpdateDatabaseGroupRequest = {
+ encode(message: UpdateDatabaseGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.databaseGroup !== undefined) {
+ DatabaseGroup.encode(message.databaseGroup, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.updateMask !== undefined) {
+ FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateDatabaseGroupRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseUpdateDatabaseGroupRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.databaseGroup = DatabaseGroup.decode(reader, reader.uint32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): UpdateDatabaseGroupRequest {
+ return {
+ databaseGroup: isSet(object.databaseGroup) ? DatabaseGroup.fromJSON(object.databaseGroup) : undefined,
+ updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,
+ };
+ },
+
+ toJSON(message: UpdateDatabaseGroupRequest): unknown {
+ const obj: any = {};
+ message.databaseGroup !== undefined &&
+ (obj.databaseGroup = message.databaseGroup ? DatabaseGroup.toJSON(message.databaseGroup) : undefined);
+ message.updateMask !== undefined && (obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask)));
+ return obj;
+ },
+
+ create(base?: DeepPartial<UpdateDatabaseGroupRequest>): UpdateDatabaseGroupRequest {
+ return UpdateDatabaseGroupRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<UpdateDatabaseGroupRequest>): UpdateDatabaseGroupRequest {
+ const message = createBaseUpdateDatabaseGroupRequest();
+ message.databaseGroup = (object.databaseGroup !== undefined && object.databaseGroup !== null)
+ ? DatabaseGroup.fromPartial(object.databaseGroup)
+ : undefined;
+ message.updateMask = object.updateMask ?? undefined;
+ return message;
+ },
+};
+
+function createBaseDeleteDatabaseGroupRequest(): DeleteDatabaseGroupRequest {
+ return { name: "" };
+}
+
+export const DeleteDatabaseGroupRequest = {
+ encode(message: DeleteDatabaseGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeleteDatabaseGroupRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDeleteDatabaseGroupRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DeleteDatabaseGroupRequest {
+ return { name: isSet(object.name) ? String(object.name) : "" };
+ },
+
+ toJSON(message: DeleteDatabaseGroupRequest): unknown {
+ const obj: any = {};
+ message.name !== undefined && (obj.name = message.name);
+ return obj;
+ },
+
+ create(base?: DeepPartial<DeleteDatabaseGroupRequest>): DeleteDatabaseGroupRequest {
+ return DeleteDatabaseGroupRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<DeleteDatabaseGroupRequest>): DeleteDatabaseGroupRequest {
+ const message = createBaseDeleteDatabaseGroupRequest();
+ message.name = object.name ?? "";
+ return message;
+ },
+};
+
+function createBaseDatabaseGroup(): DatabaseGroup {
+ return { name: "", databaseExpr: undefined };
+}
+
+export const DatabaseGroup = {
+ encode(message: DatabaseGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.databaseExpr !== undefined) {
+ Expr.encode(message.databaseExpr, writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): DatabaseGroup {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDatabaseGroup();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.databaseExpr = Expr.decode(reader, reader.uint32());
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DatabaseGroup {
+ return {
+ name: isSet(object.name) ? String(object.name) : "",
+ databaseExpr: isSet(object.databaseExpr) ? Expr.fromJSON(object.databaseExpr) : undefined,
+ };
+ },
+
+ toJSON(message: DatabaseGroup): unknown {
+ const obj: any = {};
+ message.name !== undefined && (obj.name = message.name);
+ message.databaseExpr !== undefined &&
+ (obj.databaseExpr = message.databaseExpr ? Expr.toJSON(message.databaseExpr) : undefined);
+ return obj;
+ },
+
+ create(base?: DeepPartial<DatabaseGroup>): DatabaseGroup {
+ return DatabaseGroup.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<DatabaseGroup>): DatabaseGroup {
+ const message = createBaseDatabaseGroup();
+ message.name = object.name ?? "";
+ message.databaseExpr = (object.databaseExpr !== undefined && object.databaseExpr !== null)
+ ? Expr.fromPartial(object.databaseExpr)
+ : undefined;
+ return message;
+ },
+};
+
+function createBaseCreateSchemaGroupRequest(): CreateSchemaGroupRequest {
+ return { parent: "", schemaGroup: undefined, schemaGroupId: "" };
+}
+
+export const CreateSchemaGroupRequest = {
+ encode(message: CreateSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.parent !== "") {
+ writer.uint32(10).string(message.parent);
+ }
+ if (message.schemaGroup !== undefined) {
+ SchemaGroup.encode(message.schemaGroup, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.schemaGroupId !== "") {
+ writer.uint32(26).string(message.schemaGroupId);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateSchemaGroupRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseCreateSchemaGroupRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.parent = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.schemaGroup = SchemaGroup.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.schemaGroupId = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): CreateSchemaGroupRequest {
+ return {
+ parent: isSet(object.parent) ? String(object.parent) : "",
+ schemaGroup: isSet(object.schemaGroup) ? SchemaGroup.fromJSON(object.schemaGroup) : undefined,
+ schemaGroupId: isSet(object.schemaGroupId) ? String(object.schemaGroupId) : "",
+ };
+ },
+
+ toJSON(message: CreateSchemaGroupRequest): unknown {
+ const obj: any = {};
+ message.parent !== undefined && (obj.parent = message.parent);
+ message.schemaGroup !== undefined &&
+ (obj.schemaGroup = message.schemaGroup ? SchemaGroup.toJSON(message.schemaGroup) : undefined);
+ message.schemaGroupId !== undefined && (obj.schemaGroupId = message.schemaGroupId);
+ return obj;
+ },
+
+ create(base?: DeepPartial<CreateSchemaGroupRequest>): CreateSchemaGroupRequest {
+ return CreateSchemaGroupRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<CreateSchemaGroupRequest>): CreateSchemaGroupRequest {
+ const message = createBaseCreateSchemaGroupRequest();
+ message.parent = object.parent ?? "";
+ message.schemaGroup = (object.schemaGroup !== undefined && object.schemaGroup !== null)
+ ? SchemaGroup.fromPartial(object.schemaGroup)
+ : undefined;
+ message.schemaGroupId = object.schemaGroupId ?? "";
+ return message;
+ },
+};
+
+function createBaseUpdateSchemaGroupRequest(): UpdateSchemaGroupRequest {
+ return { schemaGroup: undefined, updateMask: undefined };
+}
+
+export const UpdateSchemaGroupRequest = {
+ encode(message: UpdateSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.schemaGroup !== undefined) {
+ SchemaGroup.encode(message.schemaGroup, writer.uint32(10).fork()).ldelim();
+ }
+ if (message.updateMask !== undefined) {
+ FieldMask.encode(FieldMask.wrap(message.updateMask), writer.uint32(18).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateSchemaGroupRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseUpdateSchemaGroupRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.schemaGroup = SchemaGroup.decode(reader, reader.uint32());
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.updateMask = FieldMask.unwrap(FieldMask.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): UpdateSchemaGroupRequest {
+ return {
+ schemaGroup: isSet(object.schemaGroup) ? SchemaGroup.fromJSON(object.schemaGroup) : undefined,
+ updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,
+ };
+ },
+
+ toJSON(message: UpdateSchemaGroupRequest): unknown {
+ const obj: any = {};
+ message.schemaGroup !== undefined &&
+ (obj.schemaGroup = message.schemaGroup ? SchemaGroup.toJSON(message.schemaGroup) : undefined);
+ message.updateMask !== undefined && (obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask)));
+ return obj;
+ },
+
+ create(base?: DeepPartial<UpdateSchemaGroupRequest>): UpdateSchemaGroupRequest {
+ return UpdateSchemaGroupRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<UpdateSchemaGroupRequest>): UpdateSchemaGroupRequest {
+ const message = createBaseUpdateSchemaGroupRequest();
+ message.schemaGroup = (object.schemaGroup !== undefined && object.schemaGroup !== null)
+ ? SchemaGroup.fromPartial(object.schemaGroup)
+ : undefined;
+ message.updateMask = object.updateMask ?? undefined;
+ return message;
+ },
+};
+
+function createBaseDeleteSchemaGroupRequest(): DeleteSchemaGroupRequest {
+ return { name: "" };
+}
+
+export const DeleteSchemaGroupRequest = {
+ encode(message: DeleteSchemaGroupRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSchemaGroupRequest {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseDeleteSchemaGroupRequest();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): DeleteSchemaGroupRequest {
+ return { name: isSet(object.name) ? String(object.name) : "" };
+ },
+
+ toJSON(message: DeleteSchemaGroupRequest): unknown {
+ const obj: any = {};
+ message.name !== undefined && (obj.name = message.name);
+ return obj;
+ },
+
+ create(base?: DeepPartial<DeleteSchemaGroupRequest>): DeleteSchemaGroupRequest {
+ return DeleteSchemaGroupRequest.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<DeleteSchemaGroupRequest>): DeleteSchemaGroupRequest {
+ const message = createBaseDeleteSchemaGroupRequest();
+ message.name = object.name ?? "";
+ return message;
+ },
+};
+
+function createBaseSchemaGroup(): SchemaGroup {
+ return { name: "", tableExpr: undefined, tablePlaceholder: "" };
+}
+
+export const SchemaGroup = {
+ encode(message: SchemaGroup, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.tableExpr !== undefined) {
+ Expr.encode(message.tableExpr, writer.uint32(18).fork()).ldelim();
+ }
+ if (message.tablePlaceholder !== "") {
+ writer.uint32(26).string(message.tablePlaceholder);
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): SchemaGroup {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseSchemaGroup();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 18) {
+ break;
+ }
+
+ message.tableExpr = Expr.decode(reader, reader.uint32());
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.tablePlaceholder = reader.string();
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): SchemaGroup {
+ return {
+ name: isSet(object.name) ? String(object.name) : "",
+ tableExpr: isSet(object.tableExpr) ? Expr.fromJSON(object.tableExpr) : undefined,
+ tablePlaceholder: isSet(object.tablePlaceholder) ? String(object.tablePlaceholder) : "",
+ };
+ },
+
+ toJSON(message: SchemaGroup): unknown {
+ const obj: any = {};
+ message.name !== undefined && (obj.name = message.name);
+ message.tableExpr !== undefined && (obj.tableExpr = message.tableExpr ? Expr.toJSON(message.tableExpr) : undefined);
+ message.tablePlaceholder !== undefined && (obj.tablePlaceholder = message.tablePlaceholder);
+ return obj;
+ },
+
+ create(base?: DeepPartial<SchemaGroup>): SchemaGroup {
+ return SchemaGroup.fromPartial(base ?? {});
+ },
+
+ fromPartial(object: DeepPartial<SchemaGroup>): SchemaGroup {
+ const message = createBaseSchemaGroup();
+ message.name = object.name ?? "";
+ message.tableExpr = (object.tableExpr !== undefined && object.tableExpr !== null)
+ ? Expr.fromPartial(object.tableExpr)
+ : undefined;
+ message.tablePlaceholder = object.tablePlaceholder ?? "";
+ return message;
+ },
+};
+
+export type ProjectServiceDefinition = typeof ProjectServiceDefinition;
+export const ProjectServiceDefinition = {
+ name: "ProjectService",
+ fullName: "bytebase.v1.ProjectService",
+ methods: {
+ getProject: {
+ name: "GetProject",
+ requestType: GetProjectRequest,
+ requestStream: false,
+ responseType: Project,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],
+ 578365826: [
+ new Uint8Array([
+ 23,
+ 18,
+ 21,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
+ listProjects: {
+ name: "ListProjects",
+ requestType: ListProjectsRequest,
+ requestStream: false,
+ responseType: ListProjectsResponse,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([0])],
+ 578365826: [new Uint8Array([14, 18, 12, 47, 118, 49, 47, 112, 114, 111, 106, 101, 99, 116, 115])],
+ },
+ },
+ },
+ /** Search for projects that the caller has both projects.get permission on, and also satisfy the specified query. */
+ searchProjects: {
+ name: "SearchProjects",
+ requestType: SearchProjectsRequest,
+ requestStream: false,
+ responseType: SearchProjectsResponse,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([0])],
+ 578365826: [
+ new Uint8Array([
+ 21,
+ 18,
+ 19,
+ 47,
+ 118,
+ 49,
+ 47,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 58,
+ 115,
+ 101,
+ 97,
+ 114,
+ 99,
+ 104,
+ ]),
+ ],
+ },
+ },
+ },
+ createProject: {
+ name: "CreateProject",
+ requestType: CreateProjectRequest,
+ requestStream: false,
+ responseType: Project,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([0])],
+ 578365826: [
+ new Uint8Array([
+ 23,
+ 58,
+ 7,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 34,
+ 12,
+ 47,
+ 118,
+ 49,
+ 47,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ ]),
+ ],
+ },
+ },
+ },
+ updateProject: {
+ name: "UpdateProject",
+ requestType: UpdateProjectRequest,
+ requestStream: false,
+ responseType: Project,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [
+ new Uint8Array([
+ 19,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 44,
+ 117,
+ 112,
+ 100,
+ 97,
+ 116,
+ 101,
+ 95,
+ 109,
+ 97,
+ 115,
+ 107,
+ ]),
+ ],
+ 578365826: [
+ new Uint8Array([
+ 40,
+ 58,
+ 7,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 50,
+ 29,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 46,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
+ deleteProject: {
+ name: "DeleteProject",
+ requestType: DeleteProjectRequest,
+ requestStream: false,
+ responseType: Empty,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],
+ 578365826: [
+ new Uint8Array([
+ 23,
+ 42,
+ 21,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
+ undeleteProject: {
+ name: "UndeleteProject",
+ requestType: UndeleteProjectRequest,
+ requestStream: false,
+ responseType: Project,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 578365826: [
+ new Uint8Array([
+ 35,
+ 58,
+ 1,
+ 42,
+ 34,
+ 30,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 125,
+ 58,
+ 117,
+ 110,
+ 100,
+ 101,
+ 108,
+ 101,
+ 116,
+ 101,
+ ]),
+ ],
+ },
+ },
+ },
+ getIamPolicy: {
+ name: "GetIamPolicy",
+ requestType: GetIamPolicyRequest,
+ requestStream: false,
+ responseType: IamPolicy,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 578365826: [
+ new Uint8Array([
+ 39,
+ 18,
+ 37,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 125,
+ 58,
+ 103,
+ 101,
+ 116,
+ 73,
+ 97,
+ 109,
+ 80,
+ 111,
+ 108,
+ 105,
+ 99,
+ 121,
+ ]),
+ ],
+ },
+ },
+ },
+ batchGetIamPolicy: {
+ name: "BatchGetIamPolicy",
+ requestType: BatchGetIamPolicyRequest,
+ requestStream: false,
+ responseType: BatchGetIamPolicyResponse,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 578365826: [
+ new Uint8Array([
+ 38,
+ 18,
+ 36,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 115,
+ 99,
+ 111,
+ 112,
+ 101,
+ 61,
+ 42,
+ 47,
+ 42,
+ 125,
+ 47,
+ 105,
+ 97,
+ 109,
+ 80,
+ 111,
+ 108,
+ 105,
+ 99,
+ 105,
+ 101,
+ 115,
+ 58,
+ 98,
+ 97,
+ 116,
+ 99,
+ 104,
+ 71,
+ 101,
+ 116,
+ ]),
+ ],
+ },
+ },
+ },
+ setIamPolicy: {
+ name: "SetIamPolicy",
+ requestType: SetIamPolicyRequest,
+ requestStream: false,
+ responseType: IamPolicy,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 578365826: [
+ new Uint8Array([
+ 42,
+ 58,
+ 1,
+ 42,
+ 34,
+ 37,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 114,
+ 111,
+ 106,
101,
+ 99,
+ 116,
61,
112,
114,
@@ -3584,30 +4527,113 @@ export const ProjectServiceDefinition = {
47,
42,
125,
+ 58,
+ 115,
+ 101,
+ 116,
+ 73,
+ 97,
+ 109,
+ 80,
+ 111,
+ 108,
+ 105,
+ 99,
+ 121,
]),
],
},
},
},
- deleteProject: {
- name: "DeleteProject",
- requestType: DeleteProjectRequest,
+ getDeploymentConfig: {
+ name: "GetDeploymentConfig",
+ requestType: GetDeploymentConfigRequest,
requestStream: false,
- responseType: Empty,
+ responseType: DeploymentConfig,
responseStream: false,
options: {
_unknownFields: {
- 8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 23,
+ 40,
+ 18,
+ 38,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 110,
+ 97,
+ 109,
+ 101,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
42,
- 21,
+ 47,
+ 100,
+ 101,
+ 112,
+ 108,
+ 111,
+ 121,
+ 109,
+ 101,
+ 110,
+ 116,
+ 67,
+ 111,
+ 110,
+ 102,
+ 105,
+ 103,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
+ updateDeploymentConfig: {
+ name: "UpdateDeploymentConfig",
+ requestType: UpdateDeploymentConfigRequest,
+ requestStream: false,
+ responseType: DeploymentConfig,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 578365826: [
+ new Uint8Array([
+ 55,
+ 58,
+ 6,
+ 99,
+ 111,
+ 110,
+ 102,
+ 105,
+ 103,
+ 50,
+ 45,
47,
118,
49,
47,
123,
+ 99,
+ 111,
+ 110,
+ 102,
+ 105,
+ 103,
+ 46,
110,
97,
109,
@@ -3621,35 +4647,140 @@ export const ProjectServiceDefinition = {
99,
116,
115,
- 47,
- 42,
- 125,
+ 47,
+ 42,
+ 47,
+ 100,
+ 101,
+ 112,
+ 108,
+ 111,
+ 121,
+ 109,
+ 101,
+ 110,
+ 116,
+ 67,
+ 111,
+ 110,
+ 102,
+ 105,
+ 103,
+ 125,
+ ]),
+ ],
+ },
+ },
+ },
+ addWebhook: {
+ name: "AddWebhook",
+ requestType: AddWebhookRequest,
+ requestStream: false,
+ responseType: Project,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 578365826: [
+ new Uint8Array([
+ 40,
+ 58,
+ 1,
+ 42,
+ 34,
+ 35,
+ 47,
+ 118,
+ 49,
+ 47,
+ 123,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 61,
+ 112,
+ 114,
+ 111,
+ 106,
+ 101,
+ 99,
+ 116,
+ 115,
+ 47,
+ 42,
+ 125,
+ 58,
+ 97,
+ 100,
+ 100,
+ 87,
+ 101,
+ 98,
+ 104,
+ 111,
+ 111,
+ 107,
+ ]),
+ ],
+ },
+ },
+ },
+ updateWebhook: {
+ name: "UpdateWebhook",
+ requestType: UpdateWebhookRequest,
+ requestStream: false,
+ responseType: Project,
+ responseStream: false,
+ options: {
+ _unknownFields: {
+ 8410: [
+ new Uint8Array([
+ 19,
+ 119,
+ 101,
+ 98,
+ 104,
+ 111,
+ 111,
+ 107,
+ 44,
+ 117,
+ 112,
+ 100,
+ 97,
+ 116,
+ 101,
+ 95,
+ 109,
+ 97,
+ 115,
+ 107,
]),
],
- },
- },
- },
- undeleteProject: {
- name: "UndeleteProject",
- requestType: UndeleteProjectRequest,
- requestStream: false,
- responseType: Project,
- responseStream: false,
- options: {
- _unknownFields: {
578365826: [
new Uint8Array([
- 35,
+ 59,
58,
1,
42,
34,
- 30,
+ 54,
47,
118,
49,
47,
123,
+ 119,
+ 101,
+ 98,
+ 104,
+ 111,
+ 111,
+ 107,
+ 46,
110,
97,
109,
@@ -3665,46 +4796,70 @@ export const ProjectServiceDefinition = {
115,
47,
42,
+ 47,
+ 119,
+ 101,
+ 98,
+ 104,
+ 111,
+ 111,
+ 107,
+ 115,
+ 47,
+ 42,
125,
58,
117,
- 110,
+ 112,
100,
- 101,
- 108,
- 101,
+ 97,
116,
101,
+ 87,
+ 101,
+ 98,
+ 104,
+ 111,
+ 111,
+ 107,
]),
],
},
},
},
- getIamPolicy: {
- name: "GetIamPolicy",
- requestType: GetIamPolicyRequest,
+ removeWebhook: {
+ name: "RemoveWebhook",
+ requestType: RemoveWebhookRequest,
requestStream: false,
- responseType: IamPolicy,
+ responseType: Project,
responseStream: false,
options: {
_unknownFields: {
578365826: [
new Uint8Array([
- 39,
- 18,
- 37,
+ 59,
+ 58,
+ 1,
+ 42,
+ 34,
+ 54,
47,
118,
49,
47,
123,
- 112,
- 114,
+ 119,
+ 101,
+ 98,
+ 104,
111,
- 106,
+ 111,
+ 107,
+ 46,
+ 110,
+ 97,
+ 109,
101,
- 99,
- 116,
61,
112,
114,
@@ -3716,95 +4871,53 @@ export const ProjectServiceDefinition = {
115,
47,
42,
- 125,
- 58,
- 103,
+ 47,
+ 119,
101,
- 116,
- 73,
- 97,
- 109,
- 80,
+ 98,
+ 104,
111,
- 108,
- 105,
- 99,
- 121,
- ]),
- ],
- },
- },
- },
- batchGetIamPolicy: {
- name: "BatchGetIamPolicy",
- requestType: BatchGetIamPolicyRequest,
- requestStream: false,
- responseType: BatchGetIamPolicyResponse,
- responseStream: false,
- options: {
- _unknownFields: {
- 578365826: [
- new Uint8Array([
- 38,
- 18,
- 36,
- 47,
- 118,
- 49,
- 47,
- 123,
- 115,
- 99,
111,
- 112,
- 101,
- 61,
- 42,
+ 107,
+ 115,
47,
42,
125,
- 47,
- 105,
- 97,
+ 58,
+ 114,
+ 101,
109,
- 80,
111,
- 108,
- 105,
- 99,
- 105,
+ 118,
+ 101,
+ 87,
101,
- 115,
- 58,
98,
- 97,
- 116,
- 99,
104,
- 71,
- 101,
- 116,
+ 111,
+ 111,
+ 107,
]),
],
},
},
},
- setIamPolicy: {
- name: "SetIamPolicy",
- requestType: SetIamPolicyRequest,
+ testWebhook: {
+ name: "TestWebhook",
+ requestType: TestWebhookRequest,
requestStream: false,
- responseType: IamPolicy,
+ responseType: TestWebhookResponse,
responseStream: false,
options: {
_unknownFields: {
578365826: [
new Uint8Array([
- 42,
+ 41,
58,
1,
42,
34,
- 37,
+ 36,
47,
118,
49,
@@ -3830,45 +4943,50 @@ export const ProjectServiceDefinition = {
42,
125,
58,
- 115,
+ 116,
101,
+ 115,
116,
- 73,
- 97,
- 109,
- 80,
+ 87,
+ 101,
+ 98,
+ 104,
111,
- 108,
- 105,
- 99,
- 121,
+ 111,
+ 107,
]),
],
},
},
},
- getDeploymentConfig: {
- name: "GetDeploymentConfig",
- requestType: GetDeploymentConfigRequest,
+ setProjectGitOpsInfo: {
+ name: "SetProjectGitOpsInfo",
+ requestType: SetProjectGitOpsInfoRequest,
requestStream: false,
- responseType: DeploymentConfig,
+ responseType: ProjectGitOpsInfo,
responseStream: false,
options: {
_unknownFields: {
578365826: [
new Uint8Array([
40,
- 18,
- 38,
+ 58,
+ 1,
+ 42,
+ 26,
+ 35,
47,
118,
49,
47,
123,
- 110,
- 97,
- 109,
+ 112,
+ 114,
+ 111,
+ 106,
101,
+ 99,
+ 116,
61,
112,
114,
@@ -3880,66 +4998,48 @@ export const ProjectServiceDefinition = {
115,
47,
42,
+ 125,
47,
- 100,
- 101,
- 112,
- 108,
- 111,
- 121,
- 109,
- 101,
- 110,
+ 103,
+ 105,
116,
- 67,
- 111,
+ 79,
+ 112,
+ 115,
+ 73,
110,
102,
- 105,
- 103,
- 125,
+ 111,
]),
],
},
},
},
- updateDeploymentConfig: {
- name: "UpdateDeploymentConfig",
- requestType: UpdateDeploymentConfigRequest,
+ getProjectGitOpsInfo: {
+ name: "GetProjectGitOpsInfo",
+ requestType: SetProjectGitOpsInfoRequest,
requestStream: false,
- responseType: DeploymentConfig,
+ responseType: ProjectGitOpsInfo,
responseStream: false,
options: {
_unknownFields: {
- 578365826: [
- new Uint8Array([
- 55,
- 58,
- 6,
- 99,
- 111,
- 110,
- 102,
- 105,
- 103,
- 50,
- 45,
+ 578365826: [
+ new Uint8Array([
+ 37,
+ 18,
+ 35,
47,
118,
49,
47,
123,
- 99,
+ 112,
+ 114,
111,
- 110,
- 102,
- 105,
- 103,
- 46,
- 110,
- 97,
- 109,
+ 106,
101,
+ 99,
+ 116,
61,
112,
114,
@@ -3951,56 +5051,87 @@ export const ProjectServiceDefinition = {
115,
47,
42,
+ 125,
47,
- 100,
- 101,
- 112,
- 108,
- 111,
- 121,
- 109,
- 101,
- 110,
+ 103,
+ 105,
116,
- 67,
- 111,
+ 79,
+ 112,
+ 115,
+ 73,
110,
102,
- 105,
- 103,
- 125,
+ 111,
]),
],
},
},
},
- addWebhook: {
- name: "AddWebhook",
- requestType: AddWebhookRequest,
+ createDatabaseGroup: {
+ name: "CreateDatabaseGroup",
+ requestType: CreateDatabaseGroupRequest,
requestStream: false,
- responseType: Project,
+ responseType: DatabaseGroup,
responseStream: false,
options: {
_unknownFields: {
+ 8410: [
+ new Uint8Array([
+ 20,
+ 112,
+ 97,
+ 114,
+ 101,
+ 110,
+ 116,
+ 44,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
+ 111,
+ 117,
+ 112,
+ ]),
+ ],
578365826: [
new Uint8Array([
- 40,
+ 56,
58,
- 1,
- 42,
+ 14,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 95,
+ 103,
+ 114,
+ 111,
+ 117,
+ 112,
34,
- 35,
+ 38,
47,
118,
49,
47,
123,
112,
+ 97,
114,
- 111,
- 106,
101,
- 99,
+ 110,
116,
61,
112,
@@ -4014,40 +5145,51 @@ export const ProjectServiceDefinition = {
47,
42,
125,
- 58,
- 97,
- 100,
+ 47,
100,
- 87,
- 101,
+ 97,
+ 116,
+ 97,
98,
- 104,
- 111,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
111,
- 107,
+ 117,
+ 112,
+ 115,
]),
],
},
},
},
- updateWebhook: {
- name: "UpdateWebhook",
- requestType: UpdateWebhookRequest,
+ updateDatabaseGroup: {
+ name: "UpdateDatabaseGroup",
+ requestType: UpdateDatabaseGroupRequest,
requestStream: false,
- responseType: Project,
+ responseType: DatabaseGroup,
responseStream: false,
options: {
_unknownFields: {
8410: [
new Uint8Array([
- 19,
- 119,
- 101,
+ 26,
+ 100,
+ 97,
+ 116,
+ 97,
98,
- 104,
- 111,
+ 97,
+ 115,
+ 101,
+ 95,
+ 103,
+ 114,
111,
- 107,
+ 117,
+ 112,
44,
117,
112,
@@ -4064,24 +5206,44 @@ export const ProjectServiceDefinition = {
],
578365826: [
new Uint8Array([
- 59,
+ 71,
58,
- 1,
- 42,
- 34,
- 54,
+ 14,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 95,
+ 103,
+ 114,
+ 111,
+ 117,
+ 112,
+ 50,
+ 53,
47,
118,
49,
47,
123,
- 119,
- 101,
+ 100,
+ 97,
+ 116,
+ 97,
98,
- 104,
- 111,
+ 97,
+ 115,
+ 101,
+ 95,
+ 103,
+ 114,
111,
- 107,
+ 117,
+ 112,
46,
110,
97,
@@ -4099,65 +5261,47 @@ export const ProjectServiceDefinition = {
47,
42,
47,
- 119,
- 101,
+ 100,
+ 97,
+ 116,
+ 97,
98,
- 104,
- 111,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
111,
- 107,
+ 117,
+ 112,
115,
47,
42,
125,
- 58,
- 117,
- 112,
- 100,
- 97,
- 116,
- 101,
- 87,
- 101,
- 98,
- 104,
- 111,
- 111,
- 107,
]),
],
},
},
},
- removeWebhook: {
- name: "RemoveWebhook",
- requestType: RemoveWebhookRequest,
+ deleteDatabaseGroup: {
+ name: "DeleteDatabaseGroup",
+ requestType: DeleteDatabaseGroupRequest,
requestStream: false,
- responseType: Project,
+ responseType: Empty,
responseStream: false,
options: {
_unknownFields: {
+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 59,
- 58,
- 1,
+ 40,
42,
- 34,
- 54,
+ 38,
47,
118,
49,
47,
123,
- 119,
- 101,
- 98,
- 104,
- 111,
- 111,
- 107,
- 46,
110,
97,
109,
@@ -4174,63 +5318,90 @@ export const ProjectServiceDefinition = {
47,
42,
47,
- 119,
- 101,
+ 100,
+ 97,
+ 116,
+ 97,
98,
- 104,
- 111,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
111,
- 107,
+ 117,
+ 112,
115,
47,
42,
- 125,
- 58,
- 114,
- 101,
- 109,
- 111,
- 118,
- 101,
- 87,
- 101,
- 98,
- 104,
- 111,
- 111,
- 107,
+ 125,
]),
],
},
},
},
- testWebhook: {
- name: "TestWebhook",
- requestType: TestWebhookRequest,
+ createSchemaGroup: {
+ name: "CreateSchemaGroup",
+ requestType: CreateSchemaGroupRequest,
requestStream: false,
- responseType: TestWebhookResponse,
+ responseType: DatabaseGroup,
responseStream: false,
options: {
_unknownFields: {
+ 8410: [
+ new Uint8Array([
+ 20,
+ 112,
+ 97,
+ 114,
+ 101,
+ 110,
+ 116,
+ 44,
+ 100,
+ 97,
+ 116,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
+ 111,
+ 117,
+ 112,
+ ]),
+ ],
578365826: [
new Uint8Array([
- 41,
+ 69,
58,
- 1,
- 42,
+ 12,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 95,
+ 103,
+ 114,
+ 111,
+ 117,
+ 112,
34,
- 36,
+ 53,
47,
118,
49,
47,
123,
112,
+ 97,
114,
- 111,
- 106,
101,
- 99,
+ 110,
116,
61,
112,
@@ -4243,52 +5414,120 @@ export const ProjectServiceDefinition = {
115,
47,
42,
- 125,
- 58,
+ 47,
+ 100,
+ 97,
116,
- 101,
+ 97,
+ 98,
+ 97,
115,
- 116,
- 87,
101,
- 98,
- 104,
+ 71,
+ 114,
111,
+ 117,
+ 112,
+ 115,
+ 47,
+ 42,
+ 125,
+ 47,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 71,
+ 114,
111,
- 107,
+ 117,
+ 112,
+ 115,
]),
],
},
},
},
- setProjectGitOpsInfo: {
- name: "SetProjectGitOpsInfo",
- requestType: SetProjectGitOpsInfoRequest,
+ updateSchemaGroup: {
+ name: "UpdateSchemaGroup",
+ requestType: UpdateSchemaGroupRequest,
requestStream: false,
- responseType: ProjectGitOpsInfo,
+ responseType: DatabaseGroup,
responseStream: false,
options: {
_unknownFields: {
+ 8410: [
+ new Uint8Array([
+ 24,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 95,
+ 103,
+ 114,
+ 111,
+ 117,
+ 112,
+ 44,
+ 117,
+ 112,
+ 100,
+ 97,
+ 116,
+ 101,
+ 95,
+ 109,
+ 97,
+ 115,
+ 107,
+ ]),
+ ],
578365826: [
new Uint8Array([
- 40,
+ 82,
58,
- 1,
- 42,
- 26,
- 35,
+ 12,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 95,
+ 103,
+ 114,
+ 111,
+ 117,
+ 112,
+ 50,
+ 66,
47,
118,
49,
47,
123,
- 112,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 95,
+ 103,
114,
111,
- 106,
+ 117,
+ 112,
+ 46,
+ 110,
+ 97,
+ 109,
101,
- 99,
- 116,
61,
112,
114,
@@ -4300,48 +5539,67 @@ export const ProjectServiceDefinition = {
115,
47,
42,
- 125,
47,
- 103,
- 105,
+ 100,
+ 97,
116,
- 79,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
+ 111,
+ 117,
112,
115,
- 73,
- 110,
- 102,
+ 47,
+ 42,
+ 47,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 71,
+ 114,
111,
+ 117,
+ 112,
+ 115,
+ 47,
+ 42,
+ 125,
]),
],
},
},
},
- getProjectGitOpsInfo: {
- name: "GetProjectGitOpsInfo",
- requestType: SetProjectGitOpsInfoRequest,
+ deleteSchemaGroup: {
+ name: "DeleteSchemaGroup",
+ requestType: DeleteSchemaGroupRequest,
requestStream: false,
- responseType: ProjectGitOpsInfo,
+ responseType: Empty,
responseStream: false,
options: {
_unknownFields: {
+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 37,
- 18,
- 35,
+ 55,
+ 42,
+ 53,
47,
118,
49,
47,
123,
- 112,
- 114,
- 111,
- 106,
+ 110,
+ 97,
+ 109,
101,
- 99,
- 116,
61,
112,
114,
@@ -4353,18 +5611,39 @@ export const ProjectServiceDefinition = {
115,
47,
42,
- 125,
47,
- 103,
- 105,
+ 100,
+ 97,
116,
- 79,
+ 97,
+ 98,
+ 97,
+ 115,
+ 101,
+ 71,
+ 114,
+ 111,
+ 117,
112,
115,
- 73,
- 110,
- 102,
+ 47,
+ 42,
+ 47,
+ 115,
+ 99,
+ 104,
+ 101,
+ 109,
+ 97,
+ 71,
+ 114,
111,
+ 117,
+ 112,
+ 115,
+ 47,
+ 42,
+ 125,
]),
],
},
@@ -4420,6 +5699,30 @@ export interface ProjectServiceImplementation<CallContextExt = {}> {
request: SetProjectGitOpsInfoRequest,
context: CallContext & CallContextExt,
): Promise<DeepPartial<ProjectGitOpsInfo>>;
+ createDatabaseGroup(
+ request: CreateDatabaseGroupRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<DatabaseGroup>>;
+ updateDatabaseGroup(
+ request: UpdateDatabaseGroupRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<DatabaseGroup>>;
+ deleteDatabaseGroup(
+ request: DeleteDatabaseGroupRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<Empty>>;
+ createSchemaGroup(
+ request: CreateSchemaGroupRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<DatabaseGroup>>;
+ updateSchemaGroup(
+ request: UpdateSchemaGroupRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<DatabaseGroup>>;
+ deleteSchemaGroup(
+ request: DeleteSchemaGroupRequest,
+ context: CallContext & CallContextExt,
+ ): Promise<DeepPartial<Empty>>;
}
export interface ProjectServiceClient<CallOptionsExt = {}> {
@@ -4469,6 +5772,30 @@ export interface ProjectServiceClient<CallOptionsExt = {}> {
request: DeepPartial<SetProjectGitOpsInfoRequest>,
options?: CallOptions & CallOptionsExt,
): Promise<ProjectGitOpsInfo>;
+ createDatabaseGroup(
+ request: DeepPartial<CreateDatabaseGroupRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<DatabaseGroup>;
+ updateDatabaseGroup(
+ request: DeepPartial<UpdateDatabaseGroupRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<DatabaseGroup>;
+ deleteDatabaseGroup(
+ request: DeepPartial<DeleteDatabaseGroupRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<Empty>;
+ createSchemaGroup(
+ request: DeepPartial<CreateSchemaGroupRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<DatabaseGroup>;
+ updateSchemaGroup(
+ request: DeepPartial<UpdateSchemaGroupRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<DatabaseGroup>;
+ deleteSchemaGroup(
+ request: DeepPartial<DeleteSchemaGroupRequest>,
+ options?: CallOptions & CallOptionsExt,
+ ): Promise<Empty>;
}
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 35fe5eb37c..422003dad2 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -251,8 +251,13 @@
- [BatchGetIamPolicyResponse](#bytebase-v1-BatchGetIamPolicyResponse)
- [BatchGetIamPolicyResponse.PolicyResult](#bytebase-v1-BatchGetIamPolicyResponse-PolicyResult)
- [Binding](#bytebase-v1-Binding)
+ - [CreateDatabaseGroupRequest](#bytebase-v1-CreateDatabaseGroupRequest)
- [CreateProjectRequest](#bytebase-v1-CreateProjectRequest)
+ - [CreateSchemaGroupRequest](#bytebase-v1-CreateSchemaGroupRequest)
+ - [DatabaseGroup](#bytebase-v1-DatabaseGroup)
+ - [DeleteDatabaseGroupRequest](#bytebase-v1-DeleteDatabaseGroupRequest)
- [DeleteProjectRequest](#bytebase-v1-DeleteProjectRequest)
+ - [DeleteSchemaGroupRequest](#bytebase-v1-DeleteSchemaGroupRequest)
- [DeploymentConfig](#bytebase-v1-DeploymentConfig)
- [DeploymentSpec](#bytebase-v1-DeploymentSpec)
- [GetDeploymentConfigRequest](#bytebase-v1-GetDeploymentConfigRequest)
@@ -268,6 +273,7 @@
- [RemoveWebhookRequest](#bytebase-v1-RemoveWebhookRequest)
- [Schedule](#bytebase-v1-Schedule)
- [ScheduleDeployment](#bytebase-v1-ScheduleDeployment)
+ - [SchemaGroup](#bytebase-v1-SchemaGroup)
- [SearchProjectsRequest](#bytebase-v1-SearchProjectsRequest)
- [SearchProjectsResponse](#bytebase-v1-SearchProjectsResponse)
- [SetIamPolicyRequest](#bytebase-v1-SetIamPolicyRequest)
@@ -275,8 +281,10 @@
- [TestWebhookRequest](#bytebase-v1-TestWebhookRequest)
- [TestWebhookResponse](#bytebase-v1-TestWebhookResponse)
- [UndeleteProjectRequest](#bytebase-v1-UndeleteProjectRequest)
+ - [UpdateDatabaseGroupRequest](#bytebase-v1-UpdateDatabaseGroupRequest)
- [UpdateDeploymentConfigRequest](#bytebase-v1-UpdateDeploymentConfigRequest)
- [UpdateProjectRequest](#bytebase-v1-UpdateProjectRequest)
+ - [UpdateSchemaGroupRequest](#bytebase-v1-UpdateSchemaGroupRequest)
- [UpdateWebhookRequest](#bytebase-v1-UpdateWebhookRequest)
- [Webhook](#bytebase-v1-Webhook)
@@ -4033,6 +4041,25 @@ TODO(zp): move to activity later.
+<a name="bytebase-v1-CreateDatabaseGroupRequest"></a>
+
+### CreateDatabaseGroupRequest
+
+
+
+| 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&#39;s resource name.
+
+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
+
+
+
+
+
+
<a name="bytebase-v1-CreateProjectRequest"></a>
### CreateProjectRequest
@@ -4051,6 +4078,56 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
+<a name="bytebase-v1-CreateSchemaGroupRequest"></a>
+
+### CreateSchemaGroupRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| parent | [string](#string) | | The parent resource where this schema group will be created. Format: projects/{project}/databaseGroups/{databaseGroup} |
+| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to create. |
+| schema_group_id | [string](#string) | | The ID to use for the schema group, which will become the final component of the schema group&#39;s resource name.
+
+This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
+
+
+
+
+
+
+<a name="bytebase-v1-DatabaseGroup"></a>
+
+### DatabaseGroup
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the database group. Format: projects/{project}/databaseGroups/{databaseGroup} |
+| database_expr | [google.type.Expr](#google-type-Expr) | | The condition that is associated with this database group. |
+
+
+
+
+
+
+<a name="bytebase-v1-DeleteDatabaseGroupRequest"></a>
+
+### DeleteDatabaseGroupRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the database group to delete. Format: projects/{project}/databaseGroups/{databaseGroup} |
+
+
+
+
+
+
<a name="bytebase-v1-DeleteProjectRequest"></a>
### DeleteProjectRequest
@@ -4067,6 +4144,21 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
+<a name="bytebase-v1-DeleteSchemaGroupRequest"></a>
+
+### DeleteSchemaGroupRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the schema group to delete. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |
+
+
+
+
+
+
<a name="bytebase-v1-DeploymentConfig"></a>
### DeploymentConfig
@@ -4313,6 +4405,23 @@ When paginating, all other parameters provided to `ListProjects` must match the
+<a name="bytebase-v1-SchemaGroup"></a>
+
+### SchemaGroup
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name of the schema group. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |
+| table_expr | [google.type.Expr](#google-type-Expr) | | The table condition that is associated with this schema group. The table_placeholder in the sheet script will be rendered to the actual table name. |
+| table_placeholder | [string](#string) | | The table placeholder used for rendering. For example, if set to &#34;tbl&#34;, all the table name &#34;tbl&#34; in the SQL script will be rendered to the actual table name. |
+
+
+
+
+
+
<a name="bytebase-v1-SearchProjectsRequest"></a>
### SearchProjectsRequest
@@ -4426,6 +4535,24 @@ When paginating, all other parameters provided to `ListProjects` must match the
+<a name="bytebase-v1-UpdateDatabaseGroupRequest"></a>
+
+### UpdateDatabaseGroupRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| database_group | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | | The database group to update.
+
+The database group&#39;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-UpdateDeploymentConfigRequest"></a>
### UpdateDeploymentConfigRequest
@@ -4459,6 +4586,24 @@ The project&#39;s `name` field is used to identify the project to update. Format
+<a name="bytebase-v1-UpdateSchemaGroupRequest"></a>
+
+### UpdateSchemaGroupRequest
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| schema_group | [SchemaGroup](#bytebase-v1-SchemaGroup) | | The schema group to update.
+
+The schema group&#39;s `name` field is used to identify the schema group to update. Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup} |
+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |
+
+
+
+
+
+
<a name="bytebase-v1-UpdateWebhookRequest"></a>
### UpdateWebhookRequest
@@ -4658,6 +4803,12 @@ TYPE_PROJECT_REPOSITORY_PUSH represents Bytebase receiving a push event from the
| TestWebhook | [TestWebhookRequest](#bytebase-v1-TestWebhookRequest) | [TestWebhookResponse](#bytebase-v1-TestWebhookResponse) | |
| SetProjectGitOpsInfo | [SetProjectGitOpsInfoRequest](#bytebase-v1-SetProjectGitOpsInfoRequest) | [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo) | |
| GetProjectGitOpsInfo | [SetProjectGitOpsInfoRequest](#bytebase-v1-SetProjectGitOpsInfoRequest) | [ProjectGitOpsInfo](#bytebase-v1-ProjectGitOpsInfo) | |
+| 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) | |
+| CreateSchemaGroup | [CreateSchemaGroupRequest](#bytebase-v1-CreateSchemaGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |
+| UpdateSchemaGroup | [UpdateSchemaGroupRequest](#bytebase-v1-UpdateSchemaGroupRequest) | [DatabaseGroup](#bytebase-v1-DatabaseGroup) | |
+| DeleteSchemaGroup | [DeleteSchemaGroupRequest](#bytebase-v1-DeleteSchemaGroupRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.go
index 1cd9f57edc..7e7a4c2c68 100644
--- a/proto/generated-go/v1/project_service.pb.go
+++ b/proto/generated-go/v1/project_service.pb.go
@@ -2456,6 +2456,493 @@ func (*Activity) Descriptor() ([]byte, []int) {
return file_v1_project_service_proto_rawDescGZIP(), []int{32}
}
+type CreateDatabaseGroupRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The parent resource where this database group will be created.
+ // Format: projects/{project}
+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
+ // The database group to create.
+ DatabaseGroup *DatabaseGroup `protobuf:"bytes,2,opt,name=database_group,json=databaseGroup,proto3" json:"database_group,omitempty"`
+ // 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]-/.
+ DatabaseGroupId string `protobuf:"bytes,3,opt,name=database_group_id,json=databaseGroupId,proto3" json:"database_group_id,omitempty"`
+}
+
+func (x *CreateDatabaseGroupRequest) Reset() {
+ *x = CreateDatabaseGroupRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[33]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateDatabaseGroupRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateDatabaseGroupRequest) ProtoMessage() {}
+
+func (x *CreateDatabaseGroupRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[33]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateDatabaseGroupRequest.ProtoReflect.Descriptor instead.
+func (*CreateDatabaseGroupRequest) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{33}
+}
+
+func (x *CreateDatabaseGroupRequest) GetParent() string {
+ if x != nil {
+ return x.Parent
+ }
+ return ""
+}
+
+func (x *CreateDatabaseGroupRequest) GetDatabaseGroup() *DatabaseGroup {
+ if x != nil {
+ return x.DatabaseGroup
+ }
+ return nil
+}
+
+func (x *CreateDatabaseGroupRequest) GetDatabaseGroupId() string {
+ if x != nil {
+ return x.DatabaseGroupId
+ }
+ return ""
+}
+
+type UpdateDatabaseGroupRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // 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}
+ DatabaseGroup *DatabaseGroup `protobuf:"bytes,1,opt,name=database_group,json=databaseGroup,proto3" json:"database_group,omitempty"`
+ // The list of fields to update.
+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
+}
+
+func (x *UpdateDatabaseGroupRequest) Reset() {
+ *x = UpdateDatabaseGroupRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[34]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateDatabaseGroupRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateDatabaseGroupRequest) ProtoMessage() {}
+
+func (x *UpdateDatabaseGroupRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[34]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateDatabaseGroupRequest.ProtoReflect.Descriptor instead.
+func (*UpdateDatabaseGroupRequest) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{34}
+}
+
+func (x *UpdateDatabaseGroupRequest) GetDatabaseGroup() *DatabaseGroup {
+ if x != nil {
+ return x.DatabaseGroup
+ }
+ return nil
+}
+
+func (x *UpdateDatabaseGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
+ if x != nil {
+ return x.UpdateMask
+ }
+ return nil
+}
+
+type DeleteDatabaseGroupRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name of the database group to delete.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+}
+
+func (x *DeleteDatabaseGroupRequest) Reset() {
+ *x = DeleteDatabaseGroupRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[35]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteDatabaseGroupRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteDatabaseGroupRequest) ProtoMessage() {}
+
+func (x *DeleteDatabaseGroupRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[35]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteDatabaseGroupRequest.ProtoReflect.Descriptor instead.
+func (*DeleteDatabaseGroupRequest) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{35}
+}
+
+func (x *DeleteDatabaseGroupRequest) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+type DatabaseGroup struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name of the database group.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The condition that is associated with this database group.
+ DatabaseExpr *expr.Expr `protobuf:"bytes,2,opt,name=database_expr,json=databaseExpr,proto3" json:"database_expr,omitempty"`
+}
+
+func (x *DatabaseGroup) Reset() {
+ *x = DatabaseGroup{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[36]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DatabaseGroup) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DatabaseGroup) ProtoMessage() {}
+
+func (x *DatabaseGroup) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[36]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DatabaseGroup.ProtoReflect.Descriptor instead.
+func (*DatabaseGroup) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{36}
+}
+
+func (x *DatabaseGroup) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *DatabaseGroup) GetDatabaseExpr() *expr.Expr {
+ if x != nil {
+ return x.DatabaseExpr
+ }
+ return nil
+}
+
+type CreateSchemaGroupRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The parent resource where this schema group will be created.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}
+ Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
+ // The schema group to create.
+ SchemaGroup *SchemaGroup `protobuf:"bytes,2,opt,name=schema_group,json=schemaGroup,proto3" json:"schema_group,omitempty"`
+ // The ID to use for the schema group, which will become the final component of
+ // the schema group's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ SchemaGroupId string `protobuf:"bytes,3,opt,name=schema_group_id,json=schemaGroupId,proto3" json:"schema_group_id,omitempty"`
+}
+
+func (x *CreateSchemaGroupRequest) Reset() {
+ *x = CreateSchemaGroupRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[37]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *CreateSchemaGroupRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*CreateSchemaGroupRequest) ProtoMessage() {}
+
+func (x *CreateSchemaGroupRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[37]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use CreateSchemaGroupRequest.ProtoReflect.Descriptor instead.
+func (*CreateSchemaGroupRequest) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{37}
+}
+
+func (x *CreateSchemaGroupRequest) GetParent() string {
+ if x != nil {
+ return x.Parent
+ }
+ return ""
+}
+
+func (x *CreateSchemaGroupRequest) GetSchemaGroup() *SchemaGroup {
+ if x != nil {
+ return x.SchemaGroup
+ }
+ return nil
+}
+
+func (x *CreateSchemaGroupRequest) GetSchemaGroupId() string {
+ if x != nil {
+ return x.SchemaGroupId
+ }
+ return ""
+}
+
+type UpdateSchemaGroupRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The schema group to update.
+ //
+ // The schema group's `name` field is used to identify the schema group to update.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ SchemaGroup *SchemaGroup `protobuf:"bytes,1,opt,name=schema_group,json=schemaGroup,proto3" json:"schema_group,omitempty"`
+ // The list of fields to update.
+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
+}
+
+func (x *UpdateSchemaGroupRequest) Reset() {
+ *x = UpdateSchemaGroupRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[38]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *UpdateSchemaGroupRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateSchemaGroupRequest) ProtoMessage() {}
+
+func (x *UpdateSchemaGroupRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[38]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateSchemaGroupRequest.ProtoReflect.Descriptor instead.
+func (*UpdateSchemaGroupRequest) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{38}
+}
+
+func (x *UpdateSchemaGroupRequest) GetSchemaGroup() *SchemaGroup {
+ if x != nil {
+ return x.SchemaGroup
+ }
+ return nil
+}
+
+func (x *UpdateSchemaGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
+ if x != nil {
+ return x.UpdateMask
+ }
+ return nil
+}
+
+type DeleteSchemaGroupRequest struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name of the schema group to delete.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+}
+
+func (x *DeleteSchemaGroupRequest) Reset() {
+ *x = DeleteSchemaGroupRequest{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[39]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *DeleteSchemaGroupRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*DeleteSchemaGroupRequest) ProtoMessage() {}
+
+func (x *DeleteSchemaGroupRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[39]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use DeleteSchemaGroupRequest.ProtoReflect.Descriptor instead.
+func (*DeleteSchemaGroupRequest) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{39}
+}
+
+func (x *DeleteSchemaGroupRequest) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+type SchemaGroup struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name of the schema group.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The table condition that is associated with this schema group.
+ // The table_placeholder in the sheet script will be rendered to the actual table name.
+ TableExpr *expr.Expr `protobuf:"bytes,2,opt,name=table_expr,json=tableExpr,proto3" json:"table_expr,omitempty"`
+ // The table placeholder used for rendering. For example, if set to "tbl", all the table name
+ // "tbl" in the SQL script will be rendered to the actual table name.
+ TablePlaceholder string `protobuf:"bytes,3,opt,name=table_placeholder,json=tablePlaceholder,proto3" json:"table_placeholder,omitempty"`
+}
+
+func (x *SchemaGroup) Reset() {
+ *x = SchemaGroup{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_v1_project_service_proto_msgTypes[40]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *SchemaGroup) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SchemaGroup) ProtoMessage() {}
+
+func (x *SchemaGroup) ProtoReflect() protoreflect.Message {
+ mi := &file_v1_project_service_proto_msgTypes[40]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SchemaGroup.ProtoReflect.Descriptor instead.
+func (*SchemaGroup) Descriptor() ([]byte, []int) {
+ return file_v1_project_service_proto_rawDescGZIP(), []int{40}
+}
+
+func (x *SchemaGroup) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *SchemaGroup) GetTableExpr() *expr.Expr {
+ if x != nil {
+ return x.TableExpr
+ }
+ return nil
+}
+
+func (x *SchemaGroup) GetTablePlaceholder() string {
+ if x != nil {
+ return x.TablePlaceholder
+ }
+ return ""
+}
+
type BatchGetIamPolicyResponse_PolicyResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -2468,7 +2955,7 @@ type BatchGetIamPolicyResponse_PolicyResult struct {
func (x *BatchGetIamPolicyResponse_PolicyResult) Reset() {
*x = BatchGetIamPolicyResponse_PolicyResult{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_project_service_proto_msgTypes[33]
+ mi := &file_v1_project_service_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -2481,7 +2968,7 @@ func (x *BatchGetIamPolicyResponse_PolicyResult) String() string {
func (*BatchGetIamPolicyResponse_PolicyResult) ProtoMessage() {}
func (x *BatchGetIamPolicyResponse_PolicyResult) ProtoReflect() protoreflect.Message {
- mi := &file_v1_project_service_proto_msgTypes[33]
+ mi := &file_v1_project_service_proto_msgTypes[41]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -2814,7 +3301,69 @@ var file_v1_project_service_proto_rawDesc = []byte{
0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x5f, 0x51, 0x55, 0x45, 0x52, 0x59, 0x10, 0x13, 0x12, 0x24,
0x0a, 0x20, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f,
0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x59, 0x5f, 0x50, 0x49, 0x54, 0x52, 0x5f, 0x44, 0x4f,
- 0x4e, 0x45, 0x10, 0x14, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77,
+ 0x4e, 0x45, 0x10, 0x14, 0x22, 0xad, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f,
+ 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x49, 0x64, 0x22, 0xa1, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f,
+ 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x3b, 0x0a, 0x0b, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x35, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
+ 0x5b, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0c,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x22, 0xa1, 0x01, 0x0a,
+ 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
+ 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x26, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64,
+ 0x22, 0x99, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a,
+ 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x03, 0xe0,
+ 0x41, 0x02, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
+ 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b,
+ 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x33, 0x0a, 0x18,
+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0b, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x65,
+ 0x78, 0x70, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+ 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x2b, 0x0a, 0x11, 0x74, 0x61, 0x62, 0x6c, 0x65,
+ 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x10, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f,
+ 0x6c, 0x64, 0x65, 0x72, 0x2a, 0x35, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77,
0x12, 0x18, 0x0a, 0x14, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x55, 0x4e, 0x53,
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49,
0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x0a, 0x56,
@@ -2844,7 +3393,7 @@ var file_v1_project_service_proto_rawDesc = []byte{
0x12, 0x14, 0x0a, 0x10, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50,
0x45, 0x5f, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54,
0x4f, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02,
- 0x32, 0xd5, 0x12, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76,
+ 0x32, 0x88, 0x1b, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76,
0x69, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
@@ -2993,9 +3542,76 @@ var file_v1_project_service_proto_rawDesc = []byte{
0x74, 0x47, 0x69, 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2b, 0x82, 0xd3, 0xe4,
0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x69,
- 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 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,
+ 0x74, 0x4f, 0x70, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0xb1, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70,
+ 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f,
+ 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x55, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x38, 0x3a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67,
+ 0x72, 0x6f, 0x75, 0x70, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0xc6, 0x01, 0x0a,
+ 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47,
+ 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x6a, 0xda, 0x41, 0x1a, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x0e,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x35,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72,
+ 0x6f, 0x75, 0x70, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x35,
+ 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x62,
+ 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x0c, 0x73,
+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x35, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
+ 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75,
+ 0x70, 0x73, 0x12, 0xcb, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x73, 0xda, 0x41, 0x18,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2c, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x0c,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x42, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a,
+ 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d,
+ 0x12, 0x98, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x44, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x37, 0x2a, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2f, 0x2a, 0x7d, 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 (
@@ -3011,7 +3627,7 @@ func file_v1_project_service_proto_rawDescGZIP() []byte {
}
var file_v1_project_service_proto_enumTypes = make([]protoimpl.EnumInfo, 8)
-var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
+var file_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 42)
var file_v1_project_service_proto_goTypes = []interface{}{
(Workflow)(0), // 0: bytebase.v1.Workflow
(Visibility)(0), // 1: bytebase.v1.Visibility
@@ -3054,24 +3670,32 @@ var file_v1_project_service_proto_goTypes = []interface{}{
(*LabelSelector)(nil), // 38: bytebase.v1.LabelSelector
(*LabelSelectorRequirement)(nil), // 39: bytebase.v1.LabelSelectorRequirement
(*Activity)(nil), // 40: bytebase.v1.Activity
- (*BatchGetIamPolicyResponse_PolicyResult)(nil), // 41: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult
- (*fieldmaskpb.FieldMask)(nil), // 42: google.protobuf.FieldMask
- (*ProjectGitOpsInfo)(nil), // 43: bytebase.v1.ProjectGitOpsInfo
- (State)(0), // 44: bytebase.v1.State
- (*expr.Expr)(nil), // 45: google.type.Expr
- (*emptypb.Empty)(nil), // 46: google.protobuf.Empty
+ (*CreateDatabaseGroupRequest)(nil), // 41: bytebase.v1.CreateDatabaseGroupRequest
+ (*UpdateDatabaseGroupRequest)(nil), // 42: bytebase.v1.UpdateDatabaseGroupRequest
+ (*DeleteDatabaseGroupRequest)(nil), // 43: bytebase.v1.DeleteDatabaseGroupRequest
+ (*DatabaseGroup)(nil), // 44: bytebase.v1.DatabaseGroup
+ (*CreateSchemaGroupRequest)(nil), // 45: bytebase.v1.CreateSchemaGroupRequest
+ (*UpdateSchemaGroupRequest)(nil), // 46: bytebase.v1.UpdateSchemaGroupRequest
+ (*DeleteSchemaGroupRequest)(nil), // 47: bytebase.v1.DeleteSchemaGroupRequest
+ (*SchemaGroup)(nil), // 48: bytebase.v1.SchemaGroup
+ (*BatchGetIamPolicyResponse_PolicyResult)(nil), // 49: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult
+ (*fieldmaskpb.FieldMask)(nil), // 50: google.protobuf.FieldMask
+ (*ProjectGitOpsInfo)(nil), // 51: bytebase.v1.ProjectGitOpsInfo
+ (State)(0), // 52: bytebase.v1.State
+ (*expr.Expr)(nil), // 53: google.type.Expr
+ (*emptypb.Empty)(nil), // 54: google.protobuf.Empty
}
var file_v1_project_service_proto_depIdxs = []int32{
25, // 0: bytebase.v1.ListProjectsResponse.projects:type_name -> bytebase.v1.Project
25, // 1: bytebase.v1.SearchProjectsResponse.projects:type_name -> bytebase.v1.Project
25, // 2: bytebase.v1.CreateProjectRequest.project:type_name -> bytebase.v1.Project
25, // 3: bytebase.v1.UpdateProjectRequest.project:type_name -> bytebase.v1.Project
- 42, // 4: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask
- 41, // 5: bytebase.v1.BatchGetIamPolicyResponse.policy_results:type_name -> bytebase.v1.BatchGetIamPolicyResponse.PolicyResult
+ 50, // 4: bytebase.v1.UpdateProjectRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 49, // 5: bytebase.v1.BatchGetIamPolicyResponse.policy_results:type_name -> bytebase.v1.BatchGetIamPolicyResponse.PolicyResult
26, // 6: bytebase.v1.SetIamPolicyRequest.policy:type_name -> bytebase.v1.IamPolicy
34, // 7: bytebase.v1.UpdateDeploymentConfigRequest.config:type_name -> bytebase.v1.DeploymentConfig
- 43, // 8: bytebase.v1.SetProjectGitOpsInfoRequest.project_gitops_info:type_name -> bytebase.v1.ProjectGitOpsInfo
- 44, // 9: bytebase.v1.Project.state:type_name -> bytebase.v1.State
+ 51, // 8: bytebase.v1.SetProjectGitOpsInfoRequest.project_gitops_info:type_name -> bytebase.v1.ProjectGitOpsInfo
+ 52, // 9: bytebase.v1.Project.state:type_name -> bytebase.v1.State
0, // 10: bytebase.v1.Project.workflow:type_name -> bytebase.v1.Workflow
1, // 11: bytebase.v1.Project.visibility:type_name -> bytebase.v1.Visibility
2, // 12: bytebase.v1.Project.tenant_mode:type_name -> bytebase.v1.TenantMode
@@ -3079,10 +3703,10 @@ var file_v1_project_service_proto_depIdxs = []int32{
4, // 14: bytebase.v1.Project.schema_change:type_name -> bytebase.v1.SchemaChange
33, // 15: bytebase.v1.Project.webhooks:type_name -> bytebase.v1.Webhook
27, // 16: bytebase.v1.IamPolicy.bindings:type_name -> bytebase.v1.Binding
- 45, // 17: bytebase.v1.Binding.condition:type_name -> google.type.Expr
+ 53, // 17: bytebase.v1.Binding.condition:type_name -> google.type.Expr
33, // 18: bytebase.v1.AddWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
33, // 19: bytebase.v1.UpdateWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
- 42, // 20: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 50, // 20: bytebase.v1.UpdateWebhookRequest.update_mask:type_name -> google.protobuf.FieldMask
33, // 21: bytebase.v1.RemoveWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
33, // 22: bytebase.v1.TestWebhookRequest.webhook:type_name -> bytebase.v1.Webhook
6, // 23: bytebase.v1.Webhook.type:type_name -> bytebase.v1.Webhook.Type
@@ -3093,48 +3717,68 @@ var file_v1_project_service_proto_depIdxs = []int32{
38, // 28: bytebase.v1.DeploymentSpec.label_selector:type_name -> bytebase.v1.LabelSelector
39, // 29: bytebase.v1.LabelSelector.match_expressions:type_name -> bytebase.v1.LabelSelectorRequirement
5, // 30: bytebase.v1.LabelSelectorRequirement.operator:type_name -> bytebase.v1.OperatorType
- 26, // 31: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult.policy:type_name -> bytebase.v1.IamPolicy
- 8, // 32: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest
- 9, // 33: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest
- 11, // 34: bytebase.v1.ProjectService.SearchProjects:input_type -> bytebase.v1.SearchProjectsRequest
- 13, // 35: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest
- 14, // 36: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest
- 15, // 37: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest
- 16, // 38: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest
- 17, // 39: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest
- 18, // 40: bytebase.v1.ProjectService.BatchGetIamPolicy:input_type -> bytebase.v1.BatchGetIamPolicyRequest
- 20, // 41: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest
- 21, // 42: bytebase.v1.ProjectService.GetDeploymentConfig:input_type -> bytebase.v1.GetDeploymentConfigRequest
- 22, // 43: bytebase.v1.ProjectService.UpdateDeploymentConfig:input_type -> bytebase.v1.UpdateDeploymentConfigRequest
- 28, // 44: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest
- 29, // 45: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest
- 30, // 46: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest
- 31, // 47: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest
- 23, // 48: bytebase.v1.ProjectService.SetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest
- 23, // 49: bytebase.v1.ProjectService.GetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest
- 25, // 50: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project
- 10, // 51: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse
- 12, // 52: bytebase.v1.ProjectService.SearchProjects:output_type -> bytebase.v1.SearchProjectsResponse
- 25, // 53: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project
- 25, // 54: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project
- 46, // 55: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty
- 25, // 56: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project
- 26, // 57: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy
- 19, // 58: bytebase.v1.ProjectService.BatchGetIamPolicy:output_type -> bytebase.v1.BatchGetIamPolicyResponse
- 26, // 59: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy
- 34, // 60: bytebase.v1.ProjectService.GetDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig
- 34, // 61: bytebase.v1.ProjectService.UpdateDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig
- 25, // 62: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project
- 25, // 63: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project
- 25, // 64: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project
- 32, // 65: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse
- 43, // 66: bytebase.v1.ProjectService.SetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo
- 43, // 67: bytebase.v1.ProjectService.GetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo
- 50, // [50:68] is the sub-list for method output_type
- 32, // [32:50] is the sub-list for method input_type
- 32, // [32:32] is the sub-list for extension type_name
- 32, // [32:32] is the sub-list for extension extendee
- 0, // [0:32] is the sub-list for field type_name
+ 44, // 31: bytebase.v1.CreateDatabaseGroupRequest.database_group:type_name -> bytebase.v1.DatabaseGroup
+ 44, // 32: bytebase.v1.UpdateDatabaseGroupRequest.database_group:type_name -> bytebase.v1.DatabaseGroup
+ 50, // 33: bytebase.v1.UpdateDatabaseGroupRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 53, // 34: bytebase.v1.DatabaseGroup.database_expr:type_name -> google.type.Expr
+ 48, // 35: bytebase.v1.CreateSchemaGroupRequest.schema_group:type_name -> bytebase.v1.SchemaGroup
+ 48, // 36: bytebase.v1.UpdateSchemaGroupRequest.schema_group:type_name -> bytebase.v1.SchemaGroup
+ 50, // 37: bytebase.v1.UpdateSchemaGroupRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 53, // 38: bytebase.v1.SchemaGroup.table_expr:type_name -> google.type.Expr
+ 26, // 39: bytebase.v1.BatchGetIamPolicyResponse.PolicyResult.policy:type_name -> bytebase.v1.IamPolicy
+ 8, // 40: bytebase.v1.ProjectService.GetProject:input_type -> bytebase.v1.GetProjectRequest
+ 9, // 41: bytebase.v1.ProjectService.ListProjects:input_type -> bytebase.v1.ListProjectsRequest
+ 11, // 42: bytebase.v1.ProjectService.SearchProjects:input_type -> bytebase.v1.SearchProjectsRequest
+ 13, // 43: bytebase.v1.ProjectService.CreateProject:input_type -> bytebase.v1.CreateProjectRequest
+ 14, // 44: bytebase.v1.ProjectService.UpdateProject:input_type -> bytebase.v1.UpdateProjectRequest
+ 15, // 45: bytebase.v1.ProjectService.DeleteProject:input_type -> bytebase.v1.DeleteProjectRequest
+ 16, // 46: bytebase.v1.ProjectService.UndeleteProject:input_type -> bytebase.v1.UndeleteProjectRequest
+ 17, // 47: bytebase.v1.ProjectService.GetIamPolicy:input_type -> bytebase.v1.GetIamPolicyRequest
+ 18, // 48: bytebase.v1.ProjectService.BatchGetIamPolicy:input_type -> bytebase.v1.BatchGetIamPolicyRequest
+ 20, // 49: bytebase.v1.ProjectService.SetIamPolicy:input_type -> bytebase.v1.SetIamPolicyRequest
+ 21, // 50: bytebase.v1.ProjectService.GetDeploymentConfig:input_type -> bytebase.v1.GetDeploymentConfigRequest
+ 22, // 51: bytebase.v1.ProjectService.UpdateDeploymentConfig:input_type -> bytebase.v1.UpdateDeploymentConfigRequest
+ 28, // 52: bytebase.v1.ProjectService.AddWebhook:input_type -> bytebase.v1.AddWebhookRequest
+ 29, // 53: bytebase.v1.ProjectService.UpdateWebhook:input_type -> bytebase.v1.UpdateWebhookRequest
+ 30, // 54: bytebase.v1.ProjectService.RemoveWebhook:input_type -> bytebase.v1.RemoveWebhookRequest
+ 31, // 55: bytebase.v1.ProjectService.TestWebhook:input_type -> bytebase.v1.TestWebhookRequest
+ 23, // 56: bytebase.v1.ProjectService.SetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest
+ 23, // 57: bytebase.v1.ProjectService.GetProjectGitOpsInfo:input_type -> bytebase.v1.SetProjectGitOpsInfoRequest
+ 41, // 58: bytebase.v1.ProjectService.CreateDatabaseGroup:input_type -> bytebase.v1.CreateDatabaseGroupRequest
+ 42, // 59: bytebase.v1.ProjectService.UpdateDatabaseGroup:input_type -> bytebase.v1.UpdateDatabaseGroupRequest
+ 43, // 60: bytebase.v1.ProjectService.DeleteDatabaseGroup:input_type -> bytebase.v1.DeleteDatabaseGroupRequest
+ 45, // 61: bytebase.v1.ProjectService.CreateSchemaGroup:input_type -> bytebase.v1.CreateSchemaGroupRequest
+ 46, // 62: bytebase.v1.ProjectService.UpdateSchemaGroup:input_type -> bytebase.v1.UpdateSchemaGroupRequest
+ 47, // 63: bytebase.v1.ProjectService.DeleteSchemaGroup:input_type -> bytebase.v1.DeleteSchemaGroupRequest
+ 25, // 64: bytebase.v1.ProjectService.GetProject:output_type -> bytebase.v1.Project
+ 10, // 65: bytebase.v1.ProjectService.ListProjects:output_type -> bytebase.v1.ListProjectsResponse
+ 12, // 66: bytebase.v1.ProjectService.SearchProjects:output_type -> bytebase.v1.SearchProjectsResponse
+ 25, // 67: bytebase.v1.ProjectService.CreateProject:output_type -> bytebase.v1.Project
+ 25, // 68: bytebase.v1.ProjectService.UpdateProject:output_type -> bytebase.v1.Project
+ 54, // 69: bytebase.v1.ProjectService.DeleteProject:output_type -> google.protobuf.Empty
+ 25, // 70: bytebase.v1.ProjectService.UndeleteProject:output_type -> bytebase.v1.Project
+ 26, // 71: bytebase.v1.ProjectService.GetIamPolicy:output_type -> bytebase.v1.IamPolicy
+ 19, // 72: bytebase.v1.ProjectService.BatchGetIamPolicy:output_type -> bytebase.v1.BatchGetIamPolicyResponse
+ 26, // 73: bytebase.v1.ProjectService.SetIamPolicy:output_type -> bytebase.v1.IamPolicy
+ 34, // 74: bytebase.v1.ProjectService.GetDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig
+ 34, // 75: bytebase.v1.ProjectService.UpdateDeploymentConfig:output_type -> bytebase.v1.DeploymentConfig
+ 25, // 76: bytebase.v1.ProjectService.AddWebhook:output_type -> bytebase.v1.Project
+ 25, // 77: bytebase.v1.ProjectService.UpdateWebhook:output_type -> bytebase.v1.Project
+ 25, // 78: bytebase.v1.ProjectService.RemoveWebhook:output_type -> bytebase.v1.Project
+ 32, // 79: bytebase.v1.ProjectService.TestWebhook:output_type -> bytebase.v1.TestWebhookResponse
+ 51, // 80: bytebase.v1.ProjectService.SetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo
+ 51, // 81: bytebase.v1.ProjectService.GetProjectGitOpsInfo:output_type -> bytebase.v1.ProjectGitOpsInfo
+ 44, // 82: bytebase.v1.ProjectService.CreateDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup
+ 44, // 83: bytebase.v1.ProjectService.UpdateDatabaseGroup:output_type -> bytebase.v1.DatabaseGroup
+ 54, // 84: bytebase.v1.ProjectService.DeleteDatabaseGroup:output_type -> google.protobuf.Empty
+ 44, // 85: bytebase.v1.ProjectService.CreateSchemaGroup:output_type -> bytebase.v1.DatabaseGroup
+ 44, // 86: bytebase.v1.ProjectService.UpdateSchemaGroup:output_type -> bytebase.v1.DatabaseGroup
+ 54, // 87: bytebase.v1.ProjectService.DeleteSchemaGroup:output_type -> google.protobuf.Empty
+ 64, // [64:88] is the sub-list for method output_type
+ 40, // [40:64] is the sub-list for method input_type
+ 40, // [40:40] is the sub-list for extension type_name
+ 40, // [40:40] is the sub-list for extension extendee
+ 0, // [0:40] is the sub-list for field type_name
}
func init() { file_v1_project_service_proto_init() }
@@ -3542,6 +4186,102 @@ func file_v1_project_service_proto_init() {
}
}
file_v1_project_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateDatabaseGroupRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateDatabaseGroupRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteDatabaseGroupRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DatabaseGroup); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*CreateSchemaGroupRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*UpdateSchemaGroupRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*DeleteSchemaGroupRequest); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*SchemaGroup); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_v1_project_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BatchGetIamPolicyResponse_PolicyResult); i {
case 0:
return &v.state
@@ -3560,7 +4300,7 @@ func file_v1_project_service_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_v1_project_service_proto_rawDesc,
NumEnums: 8,
- NumMessages: 34,
+ NumMessages: 42,
NumExtensions: 0,
NumServices: 1,
},
diff --git a/proto/generated-go/v1/project_service.pb.gw.go b/proto/generated-go/v1/project_service.pb.gw.go
index 96443e5e66..74441681be 100644
--- a/proto/generated-go/v1/project_service.pb.gw.go
+++ b/proto/generated-go/v1/project_service.pb.gw.go
@@ -1165,6 +1165,482 @@ func local_request_ProjectService_GetProjectGitOpsInfo_0(ctx context.Context, ma
}
+var (
+ filter_ProjectService_CreateDatabaseGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"database_group": 0, "databaseGroup": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}}
+)
+
+func request_ProjectService_CreateDatabaseGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq CreateDatabaseGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.DatabaseGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["parent"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
+ }
+
+ protoReq.Parent, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_CreateDatabaseGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.CreateDatabaseGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_ProjectService_CreateDatabaseGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq CreateDatabaseGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.DatabaseGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["parent"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
+ }
+
+ protoReq.Parent, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_CreateDatabaseGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.CreateDatabaseGroup(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_ProjectService_UpdateDatabaseGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"database_group": 0, "databaseGroup": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}}
+)
+
+func request_ProjectService_UpdateDatabaseGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq UpdateDatabaseGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.DatabaseGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {
+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.DatabaseGroup); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ } else {
+ protoReq.UpdateMask = fieldMask
+ }
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["database_group.name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database_group.name")
+ }
+
+ err = runtime.PopulateFieldFromPath(&protoReq, "database_group.name", val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database_group.name", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateDatabaseGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.UpdateDatabaseGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_ProjectService_UpdateDatabaseGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq UpdateDatabaseGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.DatabaseGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {
+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.DatabaseGroup); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ } else {
+ protoReq.UpdateMask = fieldMask
+ }
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["database_group.name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database_group.name")
+ }
+
+ err = runtime.PopulateFieldFromPath(&protoReq, "database_group.name", val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database_group.name", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateDatabaseGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.UpdateDatabaseGroup(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+func request_ProjectService_DeleteDatabaseGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq DeleteDatabaseGroupRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
+ }
+
+ protoReq.Name, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
+ }
+
+ msg, err := client.DeleteDatabaseGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_ProjectService_DeleteDatabaseGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq DeleteDatabaseGroupRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
+ }
+
+ protoReq.Name, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
+ }
+
+ msg, err := server.DeleteDatabaseGroup(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_ProjectService_CreateSchemaGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"schema_group": 0, "schemaGroup": 1, "parent": 2}, Base: []int{1, 1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4, 4}}
+)
+
+func request_ProjectService_CreateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq CreateSchemaGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["parent"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
+ }
+
+ protoReq.Parent, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_CreateSchemaGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.CreateSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_ProjectService_CreateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq CreateSchemaGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["parent"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
+ }
+
+ protoReq.Parent, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_CreateSchemaGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.CreateSchemaGroup(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+var (
+ filter_ProjectService_UpdateSchemaGroup_0 = &utilities.DoubleArray{Encoding: map[string]int{"schema_group": 0, "schemaGroup": 1, "name": 2}, Base: []int{1, 3, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 3, 4}}
+)
+
+func request_ProjectService_UpdateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq UpdateSchemaGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {
+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.SchemaGroup); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ } else {
+ protoReq.UpdateMask = fieldMask
+ }
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["schema_group.name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schema_group.name")
+ }
+
+ err = runtime.PopulateFieldFromPath(&protoReq, "schema_group.name", val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schema_group.name", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateSchemaGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := client.UpdateSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_ProjectService_UpdateSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq UpdateSchemaGroupRequest
+ var metadata runtime.ServerMetadata
+
+ newReader, berr := utilities.IOReaderFactory(req.Body)
+ if berr != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
+ }
+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaGroup); err != nil && err != io.EOF {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {
+ if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.SchemaGroup); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ } else {
+ protoReq.UpdateMask = fieldMask
+ }
+ }
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["schema_group.name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schema_group.name")
+ }
+
+ err = runtime.PopulateFieldFromPath(&protoReq, "schema_group.name", val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schema_group.name", err)
+ }
+
+ if err := req.ParseForm(); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_UpdateSchemaGroup_0); err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+
+ msg, err := server.UpdateSchemaGroup(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
+func request_ProjectService_DeleteSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq DeleteSchemaGroupRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
+ }
+
+ protoReq.Name, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
+ }
+
+ msg, err := client.DeleteSchemaGroup(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+
+}
+
+func local_request_ProjectService_DeleteSchemaGroup_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var protoReq DeleteSchemaGroupRequest
+ var metadata runtime.ServerMetadata
+
+ var (
+ val string
+ ok bool
+ err error
+ _ = err
+ )
+
+ val, ok = pathParams["name"]
+ if !ok {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
+ }
+
+ protoReq.Name, err = runtime.String(val)
+ if err != nil {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
+ }
+
+ msg, err := server.DeleteSchemaGroup(ctx, &protoReq)
+ return msg, metadata, err
+
+}
+
// RegisterProjectServiceHandlerServer registers the http handlers for service ProjectService to "mux".
// UnaryRPC :call ProjectServiceServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
@@ -1621,6 +2097,156 @@ func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.Serve
})
+ mux.Handle("POST", pattern_ProjectService_CreateDatabaseGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/CreateDatabaseGroup", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/databaseGroups"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_ProjectService_CreateDatabaseGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_CreateDatabaseGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("PATCH", pattern_ProjectService_UpdateDatabaseGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/UpdateDatabaseGroup", runtime.WithHTTPPathPattern("/v1/{database_group.name=projects/*/databaseGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_ProjectService_UpdateDatabaseGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_UpdateDatabaseGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("DELETE", pattern_ProjectService_DeleteDatabaseGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/DeleteDatabaseGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_ProjectService_DeleteDatabaseGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_DeleteDatabaseGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("POST", pattern_ProjectService_CreateSchemaGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/CreateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_ProjectService_CreateSchemaGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_CreateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("PATCH", pattern_ProjectService_UpdateSchemaGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/UpdateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_ProjectService_UpdateSchemaGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_UpdateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("DELETE", pattern_ProjectService_DeleteSchemaGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.ProjectService/DeleteSchemaGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_ProjectService_DeleteSchemaGroup_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_DeleteSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
return nil
}
@@ -2058,6 +2684,138 @@ func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.Serve
})
+ mux.Handle("POST", pattern_ProjectService_CreateDatabaseGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/CreateDatabaseGroup", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/databaseGroups"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_ProjectService_CreateDatabaseGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_CreateDatabaseGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("PATCH", pattern_ProjectService_UpdateDatabaseGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/UpdateDatabaseGroup", runtime.WithHTTPPathPattern("/v1/{database_group.name=projects/*/databaseGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_ProjectService_UpdateDatabaseGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_UpdateDatabaseGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("DELETE", pattern_ProjectService_DeleteDatabaseGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/DeleteDatabaseGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_ProjectService_DeleteDatabaseGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_DeleteDatabaseGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("POST", pattern_ProjectService_CreateSchemaGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/CreateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_ProjectService_CreateSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_CreateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("PATCH", pattern_ProjectService_UpdateSchemaGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/UpdateSchemaGroup", runtime.WithHTTPPathPattern("/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_ProjectService_UpdateSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_UpdateSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
+ mux.Handle("DELETE", pattern_ProjectService_DeleteSchemaGroup_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ var err error
+ var annotatedContext context.Context
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.ProjectService/DeleteSchemaGroup", runtime.WithHTTPPathPattern("/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_ProjectService_DeleteSchemaGroup_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+
+ forward_ProjectService_DeleteSchemaGroup_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+
+ })
+
return nil
}
@@ -2097,6 +2855,18 @@ var (
pattern_ProjectService_SetProjectGitOpsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "project", "gitOpsInfo"}, ""))
pattern_ProjectService_GetProjectGitOpsInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "project", "gitOpsInfo"}, ""))
+
+ pattern_ProjectService_CreateDatabaseGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "databaseGroups"}, ""))
+
+ pattern_ProjectService_UpdateDatabaseGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "databaseGroups", "database_group.name"}, ""))
+
+ pattern_ProjectService_DeleteDatabaseGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "databaseGroups", "name"}, ""))
+
+ pattern_ProjectService_CreateSchemaGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "projects", "databaseGroups", "parent", "schemaGroups"}, ""))
+
+ pattern_ProjectService_UpdateSchemaGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "projects", "databaseGroups", "schemaGroups", "schema_group.name"}, ""))
+
+ pattern_ProjectService_DeleteSchemaGroup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "projects", "databaseGroups", "schemaGroups", "name"}, ""))
)
var (
@@ -2135,4 +2905,16 @@ var (
forward_ProjectService_SetProjectGitOpsInfo_0 = runtime.ForwardResponseMessage
forward_ProjectService_GetProjectGitOpsInfo_0 = runtime.ForwardResponseMessage
+
+ forward_ProjectService_CreateDatabaseGroup_0 = runtime.ForwardResponseMessage
+
+ forward_ProjectService_UpdateDatabaseGroup_0 = runtime.ForwardResponseMessage
+
+ forward_ProjectService_DeleteDatabaseGroup_0 = runtime.ForwardResponseMessage
+
+ forward_ProjectService_CreateSchemaGroup_0 = runtime.ForwardResponseMessage
+
+ forward_ProjectService_UpdateSchemaGroup_0 = runtime.ForwardResponseMessage
+
+ forward_ProjectService_DeleteSchemaGroup_0 = runtime.ForwardResponseMessage
)
diff --git a/proto/generated-go/v1/project_service_grpc.pb.go b/proto/generated-go/v1/project_service_grpc.pb.go
index 65455f0dce..a97ef7e40d 100644
--- a/proto/generated-go/v1/project_service_grpc.pb.go
+++ b/proto/generated-go/v1/project_service_grpc.pb.go
@@ -38,6 +38,12 @@ const (
ProjectService_TestWebhook_FullMethodName = "/bytebase.v1.ProjectService/TestWebhook"
ProjectService_SetProjectGitOpsInfo_FullMethodName = "/bytebase.v1.ProjectService/SetProjectGitOpsInfo"
ProjectService_GetProjectGitOpsInfo_FullMethodName = "/bytebase.v1.ProjectService/GetProjectGitOpsInfo"
+ ProjectService_CreateDatabaseGroup_FullMethodName = "/bytebase.v1.ProjectService/CreateDatabaseGroup"
+ ProjectService_UpdateDatabaseGroup_FullMethodName = "/bytebase.v1.ProjectService/UpdateDatabaseGroup"
+ ProjectService_DeleteDatabaseGroup_FullMethodName = "/bytebase.v1.ProjectService/DeleteDatabaseGroup"
+ ProjectService_CreateSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/CreateSchemaGroup"
+ ProjectService_UpdateSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/UpdateSchemaGroup"
+ ProjectService_DeleteSchemaGroup_FullMethodName = "/bytebase.v1.ProjectService/DeleteSchemaGroup"
)
// ProjectServiceClient is the client API for ProjectService service.
@@ -63,6 +69,12 @@ type ProjectServiceClient interface {
TestWebhook(ctx context.Context, in *TestWebhookRequest, opts ...grpc.CallOption) (*TestWebhookResponse, error)
SetProjectGitOpsInfo(ctx context.Context, in *SetProjectGitOpsInfoRequest, opts ...grpc.CallOption) (*ProjectGitOpsInfo, error)
GetProjectGitOpsInfo(ctx context.Context, in *SetProjectGitOpsInfoRequest, opts ...grpc.CallOption) (*ProjectGitOpsInfo, error)
+ CreateDatabaseGroup(ctx context.Context, in *CreateDatabaseGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error)
+ UpdateDatabaseGroup(ctx context.Context, in *UpdateDatabaseGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error)
+ DeleteDatabaseGroup(ctx context.Context, in *DeleteDatabaseGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+ CreateSchemaGroup(ctx context.Context, in *CreateSchemaGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error)
+ UpdateSchemaGroup(ctx context.Context, in *UpdateSchemaGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error)
+ DeleteSchemaGroup(ctx context.Context, in *DeleteSchemaGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
type projectServiceClient struct {
@@ -235,6 +247,60 @@ func (c *projectServiceClient) GetProjectGitOpsInfo(ctx context.Context, in *Set
return out, nil
}
+func (c *projectServiceClient) CreateDatabaseGroup(ctx context.Context, in *CreateDatabaseGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error) {
+ out := new(DatabaseGroup)
+ err := c.cc.Invoke(ctx, ProjectService_CreateDatabaseGroup_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *projectServiceClient) UpdateDatabaseGroup(ctx context.Context, in *UpdateDatabaseGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error) {
+ out := new(DatabaseGroup)
+ err := c.cc.Invoke(ctx, ProjectService_UpdateDatabaseGroup_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *projectServiceClient) DeleteDatabaseGroup(ctx context.Context, in *DeleteDatabaseGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+ out := new(emptypb.Empty)
+ err := c.cc.Invoke(ctx, ProjectService_DeleteDatabaseGroup_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *projectServiceClient) CreateSchemaGroup(ctx context.Context, in *CreateSchemaGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error) {
+ out := new(DatabaseGroup)
+ err := c.cc.Invoke(ctx, ProjectService_CreateSchemaGroup_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *projectServiceClient) UpdateSchemaGroup(ctx context.Context, in *UpdateSchemaGroupRequest, opts ...grpc.CallOption) (*DatabaseGroup, error) {
+ out := new(DatabaseGroup)
+ err := c.cc.Invoke(ctx, ProjectService_UpdateSchemaGroup_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *projectServiceClient) DeleteSchemaGroup(ctx context.Context, in *DeleteSchemaGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+ out := new(emptypb.Empty)
+ err := c.cc.Invoke(ctx, ProjectService_DeleteSchemaGroup_FullMethodName, in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// ProjectServiceServer is the server API for ProjectService service.
// All implementations must embed UnimplementedProjectServiceServer
// for forward compatibility
@@ -258,6 +324,12 @@ type ProjectServiceServer interface {
TestWebhook(context.Context, *TestWebhookRequest) (*TestWebhookResponse, error)
SetProjectGitOpsInfo(context.Context, *SetProjectGitOpsInfoRequest) (*ProjectGitOpsInfo, error)
GetProjectGitOpsInfo(context.Context, *SetProjectGitOpsInfoRequest) (*ProjectGitOpsInfo, error)
+ CreateDatabaseGroup(context.Context, *CreateDatabaseGroupRequest) (*DatabaseGroup, error)
+ UpdateDatabaseGroup(context.Context, *UpdateDatabaseGroupRequest) (*DatabaseGroup, error)
+ DeleteDatabaseGroup(context.Context, *DeleteDatabaseGroupRequest) (*emptypb.Empty, error)
+ CreateSchemaGroup(context.Context, *CreateSchemaGroupRequest) (*DatabaseGroup, error)
+ UpdateSchemaGroup(context.Context, *UpdateSchemaGroupRequest) (*DatabaseGroup, error)
+ DeleteSchemaGroup(context.Context, *DeleteSchemaGroupRequest) (*emptypb.Empty, error)
mustEmbedUnimplementedProjectServiceServer()
}
@@ -319,6 +391,24 @@ func (UnimplementedProjectServiceServer) SetProjectGitOpsInfo(context.Context, *
func (UnimplementedProjectServiceServer) GetProjectGitOpsInfo(context.Context, *SetProjectGitOpsInfoRequest) (*ProjectGitOpsInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetProjectGitOpsInfo not implemented")
}
+func (UnimplementedProjectServiceServer) CreateDatabaseGroup(context.Context, *CreateDatabaseGroupRequest) (*DatabaseGroup, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateDatabaseGroup not implemented")
+}
+func (UnimplementedProjectServiceServer) UpdateDatabaseGroup(context.Context, *UpdateDatabaseGroupRequest) (*DatabaseGroup, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateDatabaseGroup not implemented")
+}
+func (UnimplementedProjectServiceServer) DeleteDatabaseGroup(context.Context, *DeleteDatabaseGroupRequest) (*emptypb.Empty, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteDatabaseGroup not implemented")
+}
+func (UnimplementedProjectServiceServer) CreateSchemaGroup(context.Context, *CreateSchemaGroupRequest) (*DatabaseGroup, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method CreateSchemaGroup not implemented")
+}
+func (UnimplementedProjectServiceServer) UpdateSchemaGroup(context.Context, *UpdateSchemaGroupRequest) (*DatabaseGroup, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method UpdateSchemaGroup not implemented")
+}
+func (UnimplementedProjectServiceServer) DeleteSchemaGroup(context.Context, *DeleteSchemaGroupRequest) (*emptypb.Empty, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method DeleteSchemaGroup not implemented")
+}
func (UnimplementedProjectServiceServer) mustEmbedUnimplementedProjectServiceServer() {}
// UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service.
@@ -656,6 +746,114 @@ func _ProjectService_GetProjectGitOpsInfo_Handler(srv interface{}, ctx context.C
return interceptor(ctx, in, info, handler)
}
+func _ProjectService_CreateDatabaseGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateDatabaseGroupRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProjectServiceServer).CreateDatabaseGroup(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProjectService_CreateDatabaseGroup_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProjectServiceServer).CreateDatabaseGroup(ctx, req.(*CreateDatabaseGroupRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _ProjectService_UpdateDatabaseGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateDatabaseGroupRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProjectServiceServer).UpdateDatabaseGroup(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProjectService_UpdateDatabaseGroup_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProjectServiceServer).UpdateDatabaseGroup(ctx, req.(*UpdateDatabaseGroupRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _ProjectService_DeleteDatabaseGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DeleteDatabaseGroupRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProjectServiceServer).DeleteDatabaseGroup(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProjectService_DeleteDatabaseGroup_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProjectServiceServer).DeleteDatabaseGroup(ctx, req.(*DeleteDatabaseGroupRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _ProjectService_CreateSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CreateSchemaGroupRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProjectServiceServer).CreateSchemaGroup(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProjectService_CreateSchemaGroup_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProjectServiceServer).CreateSchemaGroup(ctx, req.(*CreateSchemaGroupRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _ProjectService_UpdateSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(UpdateSchemaGroupRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProjectServiceServer).UpdateSchemaGroup(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProjectService_UpdateSchemaGroup_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProjectServiceServer).UpdateSchemaGroup(ctx, req.(*UpdateSchemaGroupRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _ProjectService_DeleteSchemaGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DeleteSchemaGroupRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ProjectServiceServer).DeleteSchemaGroup(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: ProjectService_DeleteSchemaGroup_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ProjectServiceServer).DeleteSchemaGroup(ctx, req.(*DeleteSchemaGroupRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
// ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
@@ -735,6 +933,30 @@ var ProjectService_ServiceDesc = grpc.ServiceDesc{
MethodName: "GetProjectGitOpsInfo",
Handler: _ProjectService_GetProjectGitOpsInfo_Handler,
},
+ {
+ MethodName: "CreateDatabaseGroup",
+ Handler: _ProjectService_CreateDatabaseGroup_Handler,
+ },
+ {
+ MethodName: "UpdateDatabaseGroup",
+ Handler: _ProjectService_UpdateDatabaseGroup_Handler,
+ },
+ {
+ MethodName: "DeleteDatabaseGroup",
+ Handler: _ProjectService_DeleteDatabaseGroup_Handler,
+ },
+ {
+ MethodName: "CreateSchemaGroup",
+ Handler: _ProjectService_CreateSchemaGroup_Handler,
+ },
+ {
+ MethodName: "UpdateSchemaGroup",
+ Handler: _ProjectService_UpdateSchemaGroup_Handler,
+ },
+ {
+ MethodName: "DeleteSchemaGroup",
+ Handler: _ProjectService_DeleteSchemaGroup_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "v1/project_service.proto",
diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.proto
index 0caffc703e..1593ae8328 100644
--- a/proto/v1/project_service.proto
+++ b/proto/v1/project_service.proto
@@ -123,6 +123,48 @@ service ProjectService {
rpc GetProjectGitOpsInfo(SetProjectGitOpsInfoRequest) returns (ProjectGitOpsInfo) {
option (google.api.http) = {get: "/v1/{project=projects/*}/gitOpsInfo"};
}
+
+ rpc CreateDatabaseGroup(CreateDatabaseGroupRequest) returns (DatabaseGroup) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*}/databaseGroups"
+ body: "database_group"
+ };
+ option (google.api.method_signature) = "parent,databaseGroup";
+ }
+
+ rpc UpdateDatabaseGroup(UpdateDatabaseGroupRequest) returns (DatabaseGroup) {
+ option (google.api.http) = {
+ patch: "/v1/{database_group.name=projects/*/databaseGroups/*}"
+ body: "database_group"
+ };
+ option (google.api.method_signature) = "database_group,update_mask";
+ }
+
+ rpc DeleteDatabaseGroup(DeleteDatabaseGroupRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {delete: "/v1/{name=projects/*/databaseGroups/*}"};
+ option (google.api.method_signature) = "name";
+ }
+
+ rpc CreateSchemaGroup(CreateSchemaGroupRequest) returns (DatabaseGroup) {
+ option (google.api.http) = {
+ post: "/v1/{parent=projects/*/databaseGroups/*}/schemaGroups"
+ body: "schema_group"
+ };
+ option (google.api.method_signature) = "parent,databaseGroup";
+ }
+
+ rpc UpdateSchemaGroup(UpdateSchemaGroupRequest) returns (DatabaseGroup) {
+ option (google.api.http) = {
+ patch: "/v1/{schema_group.name=projects/*/databaseGroups/*/schemaGroups/*}"
+ body: "schema_group"
+ };
+ option (google.api.method_signature) = "schema_group,update_mask";
+ }
+
+ rpc DeleteSchemaGroup(DeleteSchemaGroupRequest) returns (google.protobuf.Empty) {
+ option (google.api.http) = {delete: "/v1/{name=projects/*/databaseGroups/*/schemaGroups/*}"};
+ option (google.api.method_signature) = "name";
+ }
}
message GetProjectRequest {
@@ -538,3 +580,95 @@ message Activity {
TYPE_DATABASE_RECOVERY_PITR_DONE = 20;
}
}
+
+message CreateDatabaseGroupRequest {
+ // The parent resource where this database group will be created.
+ // Format: projects/{project}
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The database group to create.
+ DatabaseGroup database_group = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // 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]-/.
+ string database_group_id = 3;
+}
+
+message UpdateDatabaseGroupRequest {
+ // 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}
+ DatabaseGroup database_group = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to update.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+message DeleteDatabaseGroupRequest {
+ // The name of the database group to delete.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+message DatabaseGroup {
+ // The name of the database group.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}
+ string name = 1;
+
+ // The condition that is associated with this database group.
+ google.type.Expr database_expr = 2;
+}
+
+message CreateSchemaGroupRequest {
+ // The parent resource where this schema group will be created.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}
+ string parent = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The schema group to create.
+ SchemaGroup schema_group = 2 [(google.api.field_behavior) = REQUIRED];
+
+ // The ID to use for the schema group, which will become the final component of
+ // the schema group's resource name.
+ //
+ // This value should be 4-63 characters, and valid characters
+ // are /[a-z][0-9]-/.
+ string schema_group_id = 3;
+}
+
+message UpdateSchemaGroupRequest {
+ // The schema group to update.
+ //
+ // The schema group's `name` field is used to identify the schema group to update.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ SchemaGroup schema_group = 1 [(google.api.field_behavior) = REQUIRED];
+
+ // The list of fields to update.
+ google.protobuf.FieldMask update_mask = 2;
+}
+
+message DeleteSchemaGroupRequest {
+ // The name of the schema group to delete.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ string name = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
+message SchemaGroup {
+ // The name of the schema group.
+ // Format: projects/{project}/databaseGroups/{databaseGroup}/schemaGroups/{schemaGroup}
+ string name = 1;
+
+ // The table condition that is associated with this schema group.
+ // The table_placeholder in the sheet script will be rendered to the actual table name.
+ google.type.Expr table_expr = 2;
+ // The table placeholder used for rendering. For example, if set to "tbl", all the table name
+ // "tbl" in the SQL script will be rendered to the actual table name.
+ string table_placeholder = 3;
+
+ // In the future, we can introduce schema_expr if users use schema (Postgres schema) for groups.
+ // Its keyword will be {{SCHEMA}}.
+ // All the expressions will be used to filter the schema objects in DatabaseSchema.
+}