Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(proto): custom role (#5597)
p0nyfdf9be970466
diff --git a/backend/api/v1/instance_role_service.go b/backend/api/v1/instance_role_service.goindex 5a44dc5808..c4636ad81b 100644--- a/backend/api/v1/instance_role_service.go+++ b/backend/api/v1/instance_role_service.go@@ -32,8 +32,8 @@ func NewInstanceRoleService(store *store.Store, dbFactory *dbfactory.DBFactory)}}-// GetRole gets an role.-func (s *InstanceRoleService) GetRole(ctx context.Context, request *v1pb.GetRoleRequest) (*v1pb.InstanceRole, error) {+// GetInstanceRole gets an role.+func (s *InstanceRoleService) GetInstanceRole(ctx context.Context, request *v1pb.GetInstanceRoleRequest) (*v1pb.InstanceRole, error) {environmentID, instanceID, roleName, err := getEnvironmentInstanceRoleID(request.Name)if err != nil {return nil, status.Errorf(codes.InvalidArgument, err.Error())@@ -65,11 +65,11 @@ func (s *InstanceRoleService) GetRole(ctx context.Context, request *v1pb.GetRolereturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToRole(role, instance), nil+ return convertToInstanceRole(role, instance), nil}-// ListRoles lists all roles in an instance.-func (s *InstanceRoleService) ListRoles(ctx context.Context, request *v1pb.ListRolesRequest) (*v1pb.ListRolesResponse, error) {+// ListInstanceRoles lists all roles in an instance.+func (s *InstanceRoleService) ListInstanceRoles(ctx context.Context, request *v1pb.ListInstanceRolesRequest) (*v1pb.ListInstanceRolesResponse, error) {environmentID, instanceID, err := getEnvironmentInstanceID(request.Parent)if err != nil {return nil, status.Errorf(codes.InvalidArgument, err.Error())@@ -98,15 +98,15 @@ func (s *InstanceRoleService) ListRoles(ctx context.Context, request *v1pb.ListRreturn nil, status.Errorf(codes.Internal, err.Error())}- response := &v1pb.ListRolesResponse{}+ response := &v1pb.ListInstanceRolesResponse{}for _, role := range roleList {- response.Roles = append(response.Roles, convertToRole(role, instance))+ response.Roles = append(response.Roles, convertToInstanceRole(role, instance))}return response, nil}-// CreateRole creates an role.-func (s *InstanceRoleService) CreateRole(ctx context.Context, request *v1pb.CreateRoleRequest) (*v1pb.InstanceRole, error) {+// CreateInstanceRole creates an role.+func (s *InstanceRoleService) CreateInstanceRole(ctx context.Context, request *v1pb.CreateInstanceRoleRequest) (*v1pb.InstanceRole, error) {if request.Role == nil {return nil, status.Errorf(codes.InvalidArgument, "role must be set")}@@ -148,11 +148,11 @@ func (s *InstanceRoleService) CreateRole(ctx context.Context, request *v1pb.Creareturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToRole(role, instance), nil+ return convertToInstanceRole(role, instance), nil}-// UpdateRole updates an role.-func (s *InstanceRoleService) UpdateRole(ctx context.Context, request *v1pb.UpdateRoleRequest) (*v1pb.InstanceRole, error) {+// UpdateInstanceRole updates an role.+func (s *InstanceRoleService) UpdateInstanceRole(ctx context.Context, request *v1pb.UpdateInstanceRoleRequest) (*v1pb.InstanceRole, error) {if request.Role == nil {return nil, status.Errorf(codes.InvalidArgument, "role must be set")}@@ -212,11 +212,11 @@ func (s *InstanceRoleService) UpdateRole(ctx context.Context, request *v1pb.Updareturn nil, status.Errorf(codes.Internal, err.Error())}- return convertToRole(role, instance), nil+ return convertToInstanceRole(role, instance), nil}-// DeleteRole deletes an role.-func (s *InstanceRoleService) DeleteRole(ctx context.Context, request *v1pb.DeleteRoleRequest) (*emptypb.Empty, error) {+// DeleteInstanceRole deletes an role.+func (s *InstanceRoleService) DeleteInstanceRole(ctx context.Context, request *v1pb.DeleteInstanceRoleRequest) (*emptypb.Empty, error) {environmentID, instanceID, roleName, err := getEnvironmentInstanceRoleID(request.Name)if err != nil {return nil, status.Errorf(codes.InvalidArgument, err.Error())@@ -242,8 +242,8 @@ func (s *InstanceRoleService) DeleteRole(ctx context.Context, request *v1pb.Delereturn &emptypb.Empty{}, nil}-// UndeleteRole undeletes an role.-func (*InstanceRoleService) UndeleteRole(_ context.Context, _ *v1pb.UndeleteRoleRequest) (*v1pb.InstanceRole, error) {+// UndeleteInstanceRole undeletes an role.+func (*InstanceRoleService) UndeleteInstanceRole(_ context.Context, _ *v1pb.UndeleteInstanceRoleRequest) (*v1pb.InstanceRole, error) {return nil, status.Errorf(codes.Unimplemented, "Undelete role is not supported")}@@ -265,7 +265,7 @@ func (s *InstanceRoleService) getInstanceMessage(ctx context.Context, environmenreturn instance, nil}-func convertToRole(role *db.DatabaseRoleMessage, instance *store.InstanceMessage) *v1pb.InstanceRole {+func convertToInstanceRole(role *db.DatabaseRoleMessage, instance *store.InstanceMessage) *v1pb.InstanceRole {return &v1pb.InstanceRole{Name: fmt.Sprintf("environments/%s/instances/%s/roles/%s", instance.EnvironmentID, instance.ResourceID, role.Name),RoleName: role.Name,diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex 71146cb3cc..732b3e57d6 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -42,13 +42,9 @@ export interface FileDescriptorProto {sourceCodeInfo?: SourceCodeInfo;/*** The syntax of the proto file.- * The supported values are "proto2", "proto3", and "editions".- *- * If `edition` is present, this value must be "editions".+ * The supported values are "proto2" and "proto3".*/syntax: string;- /** The edition of the proto file, which is an opaque string. */- edition: string;}/** Describes a message type. */@@ -623,10 +619,6 @@ export interface MessageOptions {*/deprecated: boolean;/**- * NOTE: Do not set the option in .proto files. Always use the maps syntax- * instead. The option should only be implicitly set by the proto compiler- * parser.- ** Whether the message is an automatically generated map entry type for the* maps field.*@@ -644,23 +636,12 @@ export interface MessageOptions {* use a native map in the target language to hold the keys and values.* The reflection APIs in such implementations still need to work as* if the field is a repeated message field.- */- mapEntry: boolean;- /**- * Enable the legacy handling of JSON field name conflicts. This lowercases- * and strips underscored from the fields before comparison in proto3 only.- * The new behavior takes `json_name` into account and applies to proto2 as- * well.- *- * This should only be used as a temporary measure against broken builds due- * to the change in behavior for JSON field name conflicts.*- * TODO(b/261750190) This is legacy behavior we plan to remove once downstream- * teams have had time to migrate.- *- * @deprecated+ * NOTE: Do not set the option in .proto files. Always use the maps syntax+ * instead. The option should only be implicitly set by the proto compiler+ * parser.*/- deprecatedLegacyJsonFieldConflicts: boolean;+ mapEntry: boolean;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -724,8 +705,11 @@ export interface FieldOptions {* check its required fields, regardless of whether or not the message has* been parsed.*- * As of May 2022, lazy verifies the contents of the byte stream during- * parsing. An invalid byte stream will cause the overall parsing to fail.+ * As of 2021, lazy does no correctness checks on the byte stream during+ * parsing. This may lead to crashes if and when an invalid byte stream is+ * finally parsed upon access.+ *+ * TODO(b/211906113): Enable validation on lazy fields.*/lazy: boolean;/**@@ -743,13 +727,6 @@ export interface FieldOptions {deprecated: boolean;/** For Google-internal migration only. Do not use. */weak: boolean;- /**- * Indicate that the field value should not be printed out when using debug- * formats, e.g. when the field contains sensitive credentials.- */- debugRedact: boolean;- retention: FieldOptions_OptionRetention;- target: FieldOptions_OptionTargetType;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -836,137 +813,6 @@ export function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string {}}-/**- * If set to RETENTION_SOURCE, the option will be omitted from the binary.- * Note: as of January 2023, support for this is in progress and does not yet- * have an effect (b/264593489).- */-export enum FieldOptions_OptionRetention {- RETENTION_UNKNOWN = 0,- RETENTION_RUNTIME = 1,- RETENTION_SOURCE = 2,- UNRECOGNIZED = -1,-}--export function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention {- switch (object) {- case 0:- case "RETENTION_UNKNOWN":- return FieldOptions_OptionRetention.RETENTION_UNKNOWN;- case 1:- case "RETENTION_RUNTIME":- return FieldOptions_OptionRetention.RETENTION_RUNTIME;- case 2:- case "RETENTION_SOURCE":- return FieldOptions_OptionRetention.RETENTION_SOURCE;- case -1:- case "UNRECOGNIZED":- default:- return FieldOptions_OptionRetention.UNRECOGNIZED;- }-}--export function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string {- switch (object) {- case FieldOptions_OptionRetention.RETENTION_UNKNOWN:- return "RETENTION_UNKNOWN";- case FieldOptions_OptionRetention.RETENTION_RUNTIME:- return "RETENTION_RUNTIME";- case FieldOptions_OptionRetention.RETENTION_SOURCE:- return "RETENTION_SOURCE";- case FieldOptions_OptionRetention.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}--/**- * This indicates the types of entities that the field may apply to when used- * as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity. Note: as of January 2023, support for this is- * in progress and does not yet have an effect (b/264593489).- */-export enum FieldOptions_OptionTargetType {- TARGET_TYPE_UNKNOWN = 0,- TARGET_TYPE_FILE = 1,- TARGET_TYPE_EXTENSION_RANGE = 2,- TARGET_TYPE_MESSAGE = 3,- TARGET_TYPE_FIELD = 4,- TARGET_TYPE_ONEOF = 5,- TARGET_TYPE_ENUM = 6,- TARGET_TYPE_ENUM_ENTRY = 7,- TARGET_TYPE_SERVICE = 8,- TARGET_TYPE_METHOD = 9,- UNRECOGNIZED = -1,-}--export function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType {- switch (object) {- case 0:- case "TARGET_TYPE_UNKNOWN":- return FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN;- case 1:- case "TARGET_TYPE_FILE":- return FieldOptions_OptionTargetType.TARGET_TYPE_FILE;- case 2:- case "TARGET_TYPE_EXTENSION_RANGE":- return FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE;- case 3:- case "TARGET_TYPE_MESSAGE":- return FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE;- case 4:- case "TARGET_TYPE_FIELD":- return FieldOptions_OptionTargetType.TARGET_TYPE_FIELD;- case 5:- case "TARGET_TYPE_ONEOF":- return FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF;- case 6:- case "TARGET_TYPE_ENUM":- return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM;- case 7:- case "TARGET_TYPE_ENUM_ENTRY":- return FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY;- case 8:- case "TARGET_TYPE_SERVICE":- return FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE;- case 9:- case "TARGET_TYPE_METHOD":- return FieldOptions_OptionTargetType.TARGET_TYPE_METHOD;- case -1:- case "UNRECOGNIZED":- default:- return FieldOptions_OptionTargetType.UNRECOGNIZED;- }-}--export function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string {- switch (object) {- case FieldOptions_OptionTargetType.TARGET_TYPE_UNKNOWN:- return "TARGET_TYPE_UNKNOWN";- case FieldOptions_OptionTargetType.TARGET_TYPE_FILE:- return "TARGET_TYPE_FILE";- case FieldOptions_OptionTargetType.TARGET_TYPE_EXTENSION_RANGE:- return "TARGET_TYPE_EXTENSION_RANGE";- case FieldOptions_OptionTargetType.TARGET_TYPE_MESSAGE:- return "TARGET_TYPE_MESSAGE";- case FieldOptions_OptionTargetType.TARGET_TYPE_FIELD:- return "TARGET_TYPE_FIELD";- case FieldOptions_OptionTargetType.TARGET_TYPE_ONEOF:- return "TARGET_TYPE_ONEOF";- case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM:- return "TARGET_TYPE_ENUM";- case FieldOptions_OptionTargetType.TARGET_TYPE_ENUM_ENTRY:- return "TARGET_TYPE_ENUM_ENTRY";- case FieldOptions_OptionTargetType.TARGET_TYPE_SERVICE:- return "TARGET_TYPE_SERVICE";- case FieldOptions_OptionTargetType.TARGET_TYPE_METHOD:- return "TARGET_TYPE_METHOD";- case FieldOptions_OptionTargetType.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }-}-export interface OneofOptions {/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];@@ -985,17 +831,6 @@ export interface EnumOptions {* is a formalization for deprecating enums.*/deprecated: boolean;- /**- * Enable the legacy handling of JSON field name conflicts. This lowercases- * and strips underscored from the fields before comparison in proto3 only.- * The new behavior takes `json_name` into account and applies to proto2 as- * well.- * TODO(b/261750190) Remove this legacy behavior once downstream teams have- * had time to migrate.- *- * @deprecated- */- deprecatedLegacyJsonFieldConflicts: boolean;/** The parser stores options it doesn't recognize here. See above. */uninterpretedOption: UninterpretedOption[];}@@ -1287,57 +1122,10 @@ export interface GeneratedCodeInfo_Annotation {begin: number;/*** Identifies the ending offset in bytes in the generated code that- * relates to the identified object. The end offset should be one past+ * relates to the identified offset. The end offset should be one past* the last relevant byte (so the length of the text = end - begin).*/end: number;- semantic: GeneratedCodeInfo_Annotation_Semantic;-}--/**- * Represents the identified object's effect on the element in the original- * .proto file.- */-export enum GeneratedCodeInfo_Annotation_Semantic {- /** NONE - There is no effect or the effect is indescribable. */- NONE = 0,- /** SET - The element is set or otherwise mutated. */- SET = 1,- /** ALIAS - An alias to the element is returned. */- ALIAS = 2,- UNRECOGNIZED = -1,-}--export function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic {- switch (object) {- case 0:- case "NONE":- return GeneratedCodeInfo_Annotation_Semantic.NONE;- case 1:- case "SET":- return GeneratedCodeInfo_Annotation_Semantic.SET;- case 2:- case "ALIAS":- return GeneratedCodeInfo_Annotation_Semantic.ALIAS;- case -1:- case "UNRECOGNIZED":- default:- return GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED;- }-}--export function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string {- switch (object) {- case GeneratedCodeInfo_Annotation_Semantic.NONE:- return "NONE";- case GeneratedCodeInfo_Annotation_Semantic.SET:- return "SET";- case GeneratedCodeInfo_Annotation_Semantic.ALIAS:- return "ALIAS";- case GeneratedCodeInfo_Annotation_Semantic.UNRECOGNIZED:- default:- return "UNRECOGNIZED";- }}function createBaseFileDescriptorSet(): FileDescriptorSet {@@ -1414,7 +1202,6 @@ function createBaseFileDescriptorProto(): FileDescriptorProto {options: undefined,sourceCodeInfo: undefined,syntax: "",- edition: "",};}@@ -1460,9 +1247,6 @@ export const FileDescriptorProto = {if (message.syntax !== "") {writer.uint32(98).string(message.syntax);}- if (message.edition !== "") {- writer.uint32(106).string(message.edition);- }return writer;},@@ -1575,13 +1359,6 @@ export const FileDescriptorProto = {message.syntax = reader.string();continue;- case 13:- if (tag != 106) {- break;- }-- message.edition = reader.string();- continue;}if ((tag & 7) == 4 || tag == 0) {break;@@ -1611,7 +1388,6 @@ export const FileDescriptorProto = {options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined,sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined,syntax: isSet(object.syntax) ? String(object.syntax) : "",- edition: isSet(object.edition) ? String(object.edition) : "",};},@@ -1658,7 +1434,6 @@ export const FileDescriptorProto = {message.sourceCodeInfo !== undefined &&(obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined);message.syntax !== undefined && (obj.syntax = message.syntax);- message.edition !== undefined && (obj.edition = message.edition);return obj;},@@ -1684,7 +1459,6 @@ export const FileDescriptorProto = {? SourceCodeInfo.fromPartial(object.sourceCodeInfo): undefined;message.syntax = object.syntax ?? "";- message.edition = object.edition ?? "";return message;},};@@ -3277,7 +3051,6 @@ function createBaseMessageOptions(): MessageOptions {noStandardDescriptorAccessor: false,deprecated: false,mapEntry: false,- deprecatedLegacyJsonFieldConflicts: false,uninterpretedOption: [],};}@@ -3296,9 +3069,6 @@ export const MessageOptions = {if (message.mapEntry === true) {writer.uint32(56).bool(message.mapEntry);}- if (message.deprecatedLegacyJsonFieldConflicts === true) {- writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3340,13 +3110,6 @@ export const MessageOptions = {message.mapEntry = reader.bool();continue;- case 11:- if (tag != 88) {- break;- }-- message.deprecatedLegacyJsonFieldConflicts = reader.bool();- continue;case 999:if (tag != 7994) {break;@@ -3371,9 +3134,6 @@ export const MessageOptions = {: false,deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false,- deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)- ? Boolean(object.deprecatedLegacyJsonFieldConflicts)- : false,uninterpretedOption: Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3387,8 +3147,6 @@ export const MessageOptions = {(obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor);message.deprecated !== undefined && (obj.deprecated = message.deprecated);message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry);- message.deprecatedLegacyJsonFieldConflicts !== undefined &&- (obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);if (message.uninterpretedOption) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);} else {@@ -3407,7 +3165,6 @@ export const MessageOptions = {message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;message.deprecated = object.deprecated ?? false;message.mapEntry = object.mapEntry ?? false;- message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -3422,9 +3179,6 @@ function createBaseFieldOptions(): FieldOptions {unverifiedLazy: false,deprecated: false,weak: false,- debugRedact: false,- retention: 0,- target: 0,uninterpretedOption: [],};}@@ -3452,15 +3206,6 @@ export const FieldOptions = {if (message.weak === true) {writer.uint32(80).bool(message.weak);}- if (message.debugRedact === true) {- writer.uint32(128).bool(message.debugRedact);- }- if (message.retention !== 0) {- writer.uint32(136).int32(message.retention);- }- if (message.target !== 0) {- writer.uint32(144).int32(message.target);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3523,27 +3268,6 @@ export const FieldOptions = {message.weak = reader.bool();continue;- case 16:- if (tag != 128) {- break;- }-- message.debugRedact = reader.bool();- continue;- case 17:- if (tag != 136) {- break;- }-- message.retention = reader.int32() as any;- continue;- case 18:- if (tag != 144) {- break;- }-- message.target = reader.int32() as any;- continue;case 999:if (tag != 7994) {break;@@ -3569,9 +3293,6 @@ export const FieldOptions = {unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false,deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,weak: isSet(object.weak) ? Boolean(object.weak) : false,- debugRedact: isSet(object.debugRedact) ? Boolean(object.debugRedact) : false,- retention: isSet(object.retention) ? fieldOptions_OptionRetentionFromJSON(object.retention) : 0,- target: isSet(object.target) ? fieldOptions_OptionTargetTypeFromJSON(object.target) : 0,uninterpretedOption: Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3587,9 +3308,6 @@ export const FieldOptions = {message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy);message.deprecated !== undefined && (obj.deprecated = message.deprecated);message.weak !== undefined && (obj.weak = message.weak);- message.debugRedact !== undefined && (obj.debugRedact = message.debugRedact);- message.retention !== undefined && (obj.retention = fieldOptions_OptionRetentionToJSON(message.retention));- message.target !== undefined && (obj.target = fieldOptions_OptionTargetTypeToJSON(message.target));if (message.uninterpretedOption) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);} else {@@ -3611,9 +3329,6 @@ export const FieldOptions = {message.unverifiedLazy = object.unverifiedLazy ?? false;message.deprecated = object.deprecated ?? false;message.weak = object.weak ?? false;- message.debugRedact = object.debugRedact ?? false;- message.retention = object.retention ?? 0;- message.target = object.target ?? 0;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -3684,7 +3399,7 @@ export const OneofOptions = {};function createBaseEnumOptions(): EnumOptions {- return { allowAlias: false, deprecated: false, deprecatedLegacyJsonFieldConflicts: false, uninterpretedOption: [] };+ return { allowAlias: false, deprecated: false, uninterpretedOption: [] };}export const EnumOptions = {@@ -3695,9 +3410,6 @@ export const EnumOptions = {if (message.deprecated === true) {writer.uint32(24).bool(message.deprecated);}- if (message.deprecatedLegacyJsonFieldConflicts === true) {- writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);- }for (const v of message.uninterpretedOption) {UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim();}@@ -3725,13 +3437,6 @@ export const EnumOptions = {message.deprecated = reader.bool();continue;- case 6:- if (tag != 48) {- break;- }-- message.deprecatedLegacyJsonFieldConflicts = reader.bool();- continue;case 999:if (tag != 7994) {break;@@ -3752,9 +3457,6 @@ export const EnumOptions = {return {allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false,deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false,- deprecatedLegacyJsonFieldConflicts: isSet(object.deprecatedLegacyJsonFieldConflicts)- ? Boolean(object.deprecatedLegacyJsonFieldConflicts)- : false,uninterpretedOption: Array.isArray(object?.uninterpretedOption)? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)): [],@@ -3765,8 +3467,6 @@ export const EnumOptions = {const obj: any = {};message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias);message.deprecated !== undefined && (obj.deprecated = message.deprecated);- message.deprecatedLegacyJsonFieldConflicts !== undefined &&- (obj.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts);if (message.uninterpretedOption) {obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? UninterpretedOption.toJSON(e) : undefined);} else {@@ -3783,7 +3483,6 @@ export const EnumOptions = {const message = createBaseEnumOptions();message.allowAlias = object.allowAlias ?? false;message.deprecated = object.deprecated ?? false;- message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];return message;},@@ -4531,7 +4230,7 @@ export const GeneratedCodeInfo = {};function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation {- return { path: [], sourceFile: "", begin: 0, end: 0, semantic: 0 };+ return { path: [], sourceFile: "", begin: 0, end: 0 };}export const GeneratedCodeInfo_Annotation = {@@ -4550,9 +4249,6 @@ export const GeneratedCodeInfo_Annotation = {if (message.end !== 0) {writer.uint32(32).int32(message.end);}- if (message.semantic !== 0) {- writer.uint32(40).int32(message.semantic);- }return writer;},@@ -4600,13 +4296,6 @@ export const GeneratedCodeInfo_Annotation = {message.end = reader.int32();continue;- case 5:- if (tag != 40) {- break;- }-- message.semantic = reader.int32() as any;- continue;}if ((tag & 7) == 4 || tag == 0) {break;@@ -4622,7 +4311,6 @@ export const GeneratedCodeInfo_Annotation = {sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "",begin: isSet(object.begin) ? Number(object.begin) : 0,end: isSet(object.end) ? Number(object.end) : 0,- semantic: isSet(object.semantic) ? generatedCodeInfo_Annotation_SemanticFromJSON(object.semantic) : 0,};},@@ -4636,7 +4324,6 @@ export const GeneratedCodeInfo_Annotation = {message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile);message.begin !== undefined && (obj.begin = Math.round(message.begin));message.end !== undefined && (obj.end = Math.round(message.end));- message.semantic !== undefined && (obj.semantic = generatedCodeInfo_Annotation_SemanticToJSON(message.semantic));return obj;},@@ -4650,7 +4337,6 @@ export const GeneratedCodeInfo_Annotation = {message.sourceFile = object.sourceFile ?? "";message.begin = object.begin ?? 0;message.end = object.end ?? 0;- message.semantic = object.semantic ?? 0;return message;},};diff --git a/frontend/src/types/proto/v1/instance_role_service.ts b/frontend/src/types/proto/v1/instance_role_service.tsindex 616a9f86d3..6c97a8bb12 100644--- a/frontend/src/types/proto/v1/instance_role_service.ts+++ b/frontend/src/types/proto/v1/instance_role_service.ts@@ -6,7 +6,7 @@ import { FieldMask } from "../google/protobuf/field_mask";export const protobufPackage = "bytebase.v1";-export interface GetRoleRequest {+export interface GetInstanceRoleRequest {/*** The name of the role to retrieve.* Format: environments/{environment}/instances/{instance}/roles/{role name}@@ -15,7 +15,7 @@ export interface GetRoleRequest {name: string;}-export interface ListRolesRequest {+export interface ListInstanceRolesRequest {/*** The parent, which owns this collection of roles.* Format: environments/{environment}/instances/{instance}@@ -38,7 +38,7 @@ export interface ListRolesRequest {pageToken: string;}-export interface ListRolesResponse {+export interface ListInstanceRolesResponse {/** The roles from the specified request. */roles: InstanceRole[];/**@@ -48,7 +48,7 @@ export interface ListRolesResponse {nextPageToken: string;}-export interface CreateRoleRequest {+export interface CreateInstanceRoleRequest {/*** The parent resource where this role will be created.* Format: environments/{environment}/instances/{instance}@@ -58,7 +58,7 @@ export interface CreateRoleRequest {role?: InstanceRole;}-export interface UpdateRoleRequest {+export interface UpdateInstanceRoleRequest {/*** The role to update.*@@ -70,7 +70,7 @@ export interface UpdateRoleRequest {updateMask?: string[];}-export interface DeleteRoleRequest {+export interface DeleteInstanceRoleRequest {/*** The name of the role to delete.* Format: environments/{environment}/instances/{instance}/roles/{role name}@@ -78,7 +78,7 @@ export interface DeleteRoleRequest {name: string;}-export interface UndeleteRoleRequest {+export interface UndeleteInstanceRoleRequest {/*** The name of the deleted role.* Format: environments/{environment}/instances/{instance}/roles/{role name}@@ -116,22 +116,22 @@ export interface InstanceRole {attribute?: string | undefined;}-function createBaseGetRoleRequest(): GetRoleRequest {+function createBaseGetInstanceRoleRequest(): GetInstanceRoleRequest {return { name: "" };}-export const GetRoleRequest = {- encode(message: GetRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const GetInstanceRoleRequest = {+ encode(message: GetInstanceRoleRequest, 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): GetRoleRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): GetInstanceRoleRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseGetRoleRequest();+ const message = createBaseGetInstanceRoleRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -151,33 +151,33 @@ export const GetRoleRequest = {return message;},- fromJSON(object: any): GetRoleRequest {+ fromJSON(object: any): GetInstanceRoleRequest {return { name: isSet(object.name) ? String(object.name) : "" };},- toJSON(message: GetRoleRequest): unknown {+ toJSON(message: GetInstanceRoleRequest): unknown {const obj: any = {};message.name !== undefined && (obj.name = message.name);return obj;},- create(base?: DeepPartial<GetRoleRequest>): GetRoleRequest {- return GetRoleRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<GetInstanceRoleRequest>): GetInstanceRoleRequest {+ return GetInstanceRoleRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<GetRoleRequest>): GetRoleRequest {- const message = createBaseGetRoleRequest();+ fromPartial(object: DeepPartial<GetInstanceRoleRequest>): GetInstanceRoleRequest {+ const message = createBaseGetInstanceRoleRequest();message.name = object.name ?? "";return message;},};-function createBaseListRolesRequest(): ListRolesRequest {+function createBaseListInstanceRolesRequest(): ListInstanceRolesRequest {return { parent: "", pageSize: 0, pageToken: "" };}-export const ListRolesRequest = {- encode(message: ListRolesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const ListInstanceRolesRequest = {+ encode(message: ListInstanceRolesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.parent !== "") {writer.uint32(10).string(message.parent);}@@ -190,10 +190,10 @@ export const ListRolesRequest = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListRolesRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListInstanceRolesRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListRolesRequest();+ const message = createBaseListInstanceRolesRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -227,7 +227,7 @@ export const ListRolesRequest = {return message;},- fromJSON(object: any): ListRolesRequest {+ fromJSON(object: any): ListInstanceRolesRequest {return {parent: isSet(object.parent) ? String(object.parent) : "",pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,@@ -235,7 +235,7 @@ export const ListRolesRequest = {};},- toJSON(message: ListRolesRequest): unknown {+ toJSON(message: ListInstanceRolesRequest): unknown {const obj: any = {};message.parent !== undefined && (obj.parent = message.parent);message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));@@ -243,12 +243,12 @@ export const ListRolesRequest = {return obj;},- create(base?: DeepPartial<ListRolesRequest>): ListRolesRequest {- return ListRolesRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<ListInstanceRolesRequest>): ListInstanceRolesRequest {+ return ListInstanceRolesRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListRolesRequest>): ListRolesRequest {- const message = createBaseListRolesRequest();+ fromPartial(object: DeepPartial<ListInstanceRolesRequest>): ListInstanceRolesRequest {+ const message = createBaseListInstanceRolesRequest();message.parent = object.parent ?? "";message.pageSize = object.pageSize ?? 0;message.pageToken = object.pageToken ?? "";@@ -256,12 +256,12 @@ export const ListRolesRequest = {},};-function createBaseListRolesResponse(): ListRolesResponse {+function createBaseListInstanceRolesResponse(): ListInstanceRolesResponse {return { roles: [], nextPageToken: "" };}-export const ListRolesResponse = {- encode(message: ListRolesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const ListInstanceRolesResponse = {+ encode(message: ListInstanceRolesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {for (const v of message.roles) {InstanceRole.encode(v!, writer.uint32(10).fork()).ldelim();}@@ -271,10 +271,10 @@ export const ListRolesResponse = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): ListRolesResponse {+ decode(input: _m0.Reader | Uint8Array, length?: number): ListInstanceRolesResponse {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseListRolesResponse();+ const message = createBaseListInstanceRolesResponse();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -301,14 +301,14 @@ export const ListRolesResponse = {return message;},- fromJSON(object: any): ListRolesResponse {+ fromJSON(object: any): ListInstanceRolesResponse {return {roles: Array.isArray(object?.roles) ? object.roles.map((e: any) => InstanceRole.fromJSON(e)) : [],nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",};},- toJSON(message: ListRolesResponse): unknown {+ toJSON(message: ListInstanceRolesResponse): unknown {const obj: any = {};if (message.roles) {obj.roles = message.roles.map((e) => e ? InstanceRole.toJSON(e) : undefined);@@ -319,24 +319,24 @@ export const ListRolesResponse = {return obj;},- create(base?: DeepPartial<ListRolesResponse>): ListRolesResponse {- return ListRolesResponse.fromPartial(base ?? {});+ create(base?: DeepPartial<ListInstanceRolesResponse>): ListInstanceRolesResponse {+ return ListInstanceRolesResponse.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ListRolesResponse>): ListRolesResponse {- const message = createBaseListRolesResponse();+ fromPartial(object: DeepPartial<ListInstanceRolesResponse>): ListInstanceRolesResponse {+ const message = createBaseListInstanceRolesResponse();message.roles = object.roles?.map((e) => InstanceRole.fromPartial(e)) || [];message.nextPageToken = object.nextPageToken ?? "";return message;},};-function createBaseCreateRoleRequest(): CreateRoleRequest {+function createBaseCreateInstanceRoleRequest(): CreateInstanceRoleRequest {return { parent: "", role: undefined };}-export const CreateRoleRequest = {- encode(message: CreateRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const CreateInstanceRoleRequest = {+ encode(message: CreateInstanceRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.parent !== "") {writer.uint32(10).string(message.parent);}@@ -346,10 +346,10 @@ export const CreateRoleRequest = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): CreateRoleRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): CreateInstanceRoleRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseCreateRoleRequest();+ const message = createBaseCreateInstanceRoleRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -376,26 +376,26 @@ export const CreateRoleRequest = {return message;},- fromJSON(object: any): CreateRoleRequest {+ fromJSON(object: any): CreateInstanceRoleRequest {return {parent: isSet(object.parent) ? String(object.parent) : "",role: isSet(object.role) ? InstanceRole.fromJSON(object.role) : undefined,};},- toJSON(message: CreateRoleRequest): unknown {+ toJSON(message: CreateInstanceRoleRequest): unknown {const obj: any = {};message.parent !== undefined && (obj.parent = message.parent);message.role !== undefined && (obj.role = message.role ? InstanceRole.toJSON(message.role) : undefined);return obj;},- create(base?: DeepPartial<CreateRoleRequest>): CreateRoleRequest {- return CreateRoleRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<CreateInstanceRoleRequest>): CreateInstanceRoleRequest {+ return CreateInstanceRoleRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<CreateRoleRequest>): CreateRoleRequest {- const message = createBaseCreateRoleRequest();+ fromPartial(object: DeepPartial<CreateInstanceRoleRequest>): CreateInstanceRoleRequest {+ const message = createBaseCreateInstanceRoleRequest();message.parent = object.parent ?? "";message.role = (object.role !== undefined && object.role !== null)? InstanceRole.fromPartial(object.role)@@ -404,12 +404,12 @@ export const CreateRoleRequest = {},};-function createBaseUpdateRoleRequest(): UpdateRoleRequest {+function createBaseUpdateInstanceRoleRequest(): UpdateInstanceRoleRequest {return { role: undefined, updateMask: undefined };}-export const UpdateRoleRequest = {- encode(message: UpdateRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const UpdateInstanceRoleRequest = {+ encode(message: UpdateInstanceRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {if (message.role !== undefined) {InstanceRole.encode(message.role, writer.uint32(10).fork()).ldelim();}@@ -419,10 +419,10 @@ export const UpdateRoleRequest = {return writer;},- decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRoleRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstanceRoleRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUpdateRoleRequest();+ const message = createBaseUpdateInstanceRoleRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -449,26 +449,26 @@ export const UpdateRoleRequest = {return message;},- fromJSON(object: any): UpdateRoleRequest {+ fromJSON(object: any): UpdateInstanceRoleRequest {return {role: isSet(object.role) ? InstanceRole.fromJSON(object.role) : undefined,updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,};},- toJSON(message: UpdateRoleRequest): unknown {+ toJSON(message: UpdateInstanceRoleRequest): unknown {const obj: any = {};message.role !== undefined && (obj.role = message.role ? InstanceRole.toJSON(message.role) : undefined);message.updateMask !== undefined && (obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask)));return obj;},- create(base?: DeepPartial<UpdateRoleRequest>): UpdateRoleRequest {- return UpdateRoleRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<UpdateInstanceRoleRequest>): UpdateInstanceRoleRequest {+ return UpdateInstanceRoleRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<UpdateRoleRequest>): UpdateRoleRequest {- const message = createBaseUpdateRoleRequest();+ fromPartial(object: DeepPartial<UpdateInstanceRoleRequest>): UpdateInstanceRoleRequest {+ const message = createBaseUpdateInstanceRoleRequest();message.role = (object.role !== undefined && object.role !== null)? InstanceRole.fromPartial(object.role): undefined;@@ -477,22 +477,22 @@ export const UpdateRoleRequest = {},};-function createBaseDeleteRoleRequest(): DeleteRoleRequest {+function createBaseDeleteInstanceRoleRequest(): DeleteInstanceRoleRequest {return { name: "" };}-export const DeleteRoleRequest = {- encode(message: DeleteRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const DeleteInstanceRoleRequest = {+ encode(message: DeleteInstanceRoleRequest, 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): DeleteRoleRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): DeleteInstanceRoleRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseDeleteRoleRequest();+ const message = createBaseDeleteInstanceRoleRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -512,43 +512,43 @@ export const DeleteRoleRequest = {return message;},- fromJSON(object: any): DeleteRoleRequest {+ fromJSON(object: any): DeleteInstanceRoleRequest {return { name: isSet(object.name) ? String(object.name) : "" };},- toJSON(message: DeleteRoleRequest): unknown {+ toJSON(message: DeleteInstanceRoleRequest): unknown {const obj: any = {};message.name !== undefined && (obj.name = message.name);return obj;},- create(base?: DeepPartial<DeleteRoleRequest>): DeleteRoleRequest {- return DeleteRoleRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<DeleteInstanceRoleRequest>): DeleteInstanceRoleRequest {+ return DeleteInstanceRoleRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<DeleteRoleRequest>): DeleteRoleRequest {- const message = createBaseDeleteRoleRequest();+ fromPartial(object: DeepPartial<DeleteInstanceRoleRequest>): DeleteInstanceRoleRequest {+ const message = createBaseDeleteInstanceRoleRequest();message.name = object.name ?? "";return message;},};-function createBaseUndeleteRoleRequest(): UndeleteRoleRequest {+function createBaseUndeleteInstanceRoleRequest(): UndeleteInstanceRoleRequest {return { name: "" };}-export const UndeleteRoleRequest = {- encode(message: UndeleteRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+export const UndeleteInstanceRoleRequest = {+ encode(message: UndeleteInstanceRoleRequest, 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): UndeleteRoleRequest {+ decode(input: _m0.Reader | Uint8Array, length?: number): UndeleteInstanceRoleRequest {const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseUndeleteRoleRequest();+ const message = createBaseUndeleteInstanceRoleRequest();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -568,22 +568,22 @@ export const UndeleteRoleRequest = {return message;},- fromJSON(object: any): UndeleteRoleRequest {+ fromJSON(object: any): UndeleteInstanceRoleRequest {return { name: isSet(object.name) ? String(object.name) : "" };},- toJSON(message: UndeleteRoleRequest): unknown {+ toJSON(message: UndeleteInstanceRoleRequest): unknown {const obj: any = {};message.name !== undefined && (obj.name = message.name);return obj;},- create(base?: DeepPartial<UndeleteRoleRequest>): UndeleteRoleRequest {- return UndeleteRoleRequest.fromPartial(base ?? {});+ create(base?: DeepPartial<UndeleteInstanceRoleRequest>): UndeleteInstanceRoleRequest {+ return UndeleteInstanceRoleRequest.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<UndeleteRoleRequest>): UndeleteRoleRequest {- const message = createBaseUndeleteRoleRequest();+ fromPartial(object: DeepPartial<UndeleteInstanceRoleRequest>): UndeleteInstanceRoleRequest {+ const message = createBaseUndeleteInstanceRoleRequest();message.name = object.name ?? "";return message;},@@ -724,9 +724,9 @@ export const InstanceRoleServiceDefinition = {name: "InstanceRoleService",fullName: "bytebase.v1.InstanceRoleService",methods: {- getRole: {- name: "GetRole",- requestType: GetRoleRequest,+ getInstanceRole: {+ name: "GetInstanceRole",+ requestType: GetInstanceRoleRequest,requestStream: false,responseType: InstanceRole,responseStream: false,@@ -788,11 +788,11 @@ export const InstanceRoleServiceDefinition = {},},},- listRoles: {- name: "ListRoles",- requestType: ListRolesRequest,+ listInstanceRoles: {+ name: "ListInstanceRoles",+ requestType: ListInstanceRolesRequest,requestStream: false,- responseType: ListRolesResponse,+ responseType: ListInstanceRolesResponse,responseStream: false,options: {_unknownFields: {@@ -852,9 +852,9 @@ export const InstanceRoleServiceDefinition = {},},},- createRole: {- name: "CreateRole",- requestType: CreateRoleRequest,+ createInstanceRole: {+ name: "CreateInstanceRole",+ requestType: CreateInstanceRoleRequest,requestStream: false,responseType: InstanceRole,responseStream: false,@@ -922,9 +922,9 @@ export const InstanceRoleServiceDefinition = {},},},- updateRole: {- name: "UpdateRole",- requestType: UpdateRoleRequest,+ updateInstanceRole: {+ name: "UpdateInstanceRole",+ requestType: UpdateInstanceRoleRequest,requestStream: false,responseType: InstanceRole,responseStream: false,@@ -997,9 +997,9 @@ export const InstanceRoleServiceDefinition = {},},},- deleteRole: {- name: "DeleteRole",- requestType: DeleteRoleRequest,+ deleteInstanceRole: {+ name: "DeleteInstanceRole",+ requestType: DeleteInstanceRoleRequest,requestStream: false,responseType: Empty,responseStream: false,@@ -1061,9 +1061,9 @@ export const InstanceRoleServiceDefinition = {},},},- undeleteRole: {- name: "UndeleteRole",- requestType: UndeleteRoleRequest,+ undeleteInstanceRole: {+ name: "UndeleteInstanceRole",+ requestType: UndeleteInstanceRoleRequest,requestStream: false,responseType: InstanceRole,responseStream: false,@@ -1140,22 +1140,55 @@ export const InstanceRoleServiceDefinition = {} as const;export interface InstanceRoleServiceImplementation<CallContextExt = {}> {- getRole(request: GetRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InstanceRole>>;- listRoles(request: ListRolesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListRolesResponse>>;- createRole(request: CreateRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InstanceRole>>;- updateRole(request: UpdateRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InstanceRole>>;- deleteRole(request: DeleteRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;- undeleteRole(request: UndeleteRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<InstanceRole>>;+ getInstanceRole(+ request: GetInstanceRoleRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<InstanceRole>>;+ listInstanceRoles(+ request: ListInstanceRolesRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<ListInstanceRolesResponse>>;+ createInstanceRole(+ request: CreateInstanceRoleRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<InstanceRole>>;+ updateInstanceRole(+ request: UpdateInstanceRoleRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<InstanceRole>>;+ deleteInstanceRole(+ request: DeleteInstanceRoleRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<Empty>>;+ undeleteInstanceRole(+ request: UndeleteInstanceRoleRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<InstanceRole>>;}export interface InstanceRoleServiceClient<CallOptionsExt = {}> {- getRole(request: DeepPartial<GetRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<InstanceRole>;- listRoles(request: DeepPartial<ListRolesRequest>, options?: CallOptions & CallOptionsExt): Promise<ListRolesResponse>;- createRole(request: DeepPartial<CreateRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<InstanceRole>;- updateRole(request: DeepPartial<UpdateRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<InstanceRole>;- deleteRole(request: DeepPartial<DeleteRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;- undeleteRole(- request: DeepPartial<UndeleteRoleRequest>,+ getInstanceRole(+ request: DeepPartial<GetInstanceRoleRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<InstanceRole>;+ listInstanceRoles(+ request: DeepPartial<ListInstanceRolesRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<ListInstanceRolesResponse>;+ createInstanceRole(+ request: DeepPartial<CreateInstanceRoleRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<InstanceRole>;+ updateInstanceRole(+ request: DeepPartial<UpdateInstanceRoleRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<InstanceRole>;+ deleteInstanceRole(+ request: DeepPartial<DeleteInstanceRoleRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<Empty>;+ undeleteInstanceRole(+ request: DeepPartial<UndeleteInstanceRoleRequest>,options?: CallOptions & CallOptionsExt,): Promise<InstanceRole>;}diff --git a/frontend/src/types/proto/v1/role_service.ts b/frontend/src/types/proto/v1/role_service.tsnew file mode 100644index 0000000000..0d921aea82--- /dev/null+++ b/frontend/src/types/proto/v1/role_service.ts@@ -0,0 +1,617 @@+/* eslint-disable */+import type { CallContext, CallOptions } from "nice-grpc-common";+import * as _m0 from "protobufjs/minimal";+import { Empty } from "../google/protobuf/empty";+import { FieldMask } from "../google/protobuf/field_mask";++export const protobufPackage = "bytebase.v1";++export interface ListRolesRequest {+ /**+ * The maximum number of roles to return. The service may return fewer than+ * this value.+ * If unspecified, at most 50 reviews will be returned.+ * The maximum value is 1000; values above 1000 will be coerced to 1000.+ */+ pageSize: number;+ /**+ * A page token, received from a previous `ListRoles` call.+ * Provide this to retrieve the subsequent page.+ *+ * When paginating, all other parameters provided to `ListRoles` must match+ * the call that provided the page token.+ */+ pageToken: string;+}++export interface ListRolesResponse {+ roles: Role[];+ /**+ * A token, which can be sent as `page_token` to retrieve the next page.+ * If this field is omitted, there are no subsequent pages.+ */+ nextPageToken: string;+}++export interface CreateRoleRequest {+ role?: Role;+ /**+ * The ID to use for the role, which will become the final component+ * of the role's resource name.+ *+ * This value should be 4-63 characters, and valid characters+ * are /[a-z][A-Z][0-9]/.+ */+ roleId: string;+}++export interface UpdateRoleRequest {+ role?: Role;+ updateMask?: string[];+}++export interface DeleteRoleRequest {+ /** Format: roles/{role} */+ name: string;+}++export interface Role {+ /** Format: roles/{role} */+ name: string;+ description: string;+}++function createBaseListRolesRequest(): ListRolesRequest {+ return { pageSize: 0, pageToken: "" };+}++export const ListRolesRequest = {+ encode(message: ListRolesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.pageSize !== 0) {+ writer.uint32(8).int32(message.pageSize);+ }+ if (message.pageToken !== "") {+ writer.uint32(18).string(message.pageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListRolesRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListRolesRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag != 8) {+ break;+ }++ message.pageSize = reader.int32();+ continue;+ case 2:+ if (tag != 18) {+ break;+ }++ message.pageToken = reader.string();+ continue;+ }+ if ((tag & 7) == 4 || tag == 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListRolesRequest {+ return {+ pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,+ pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",+ };+ },++ toJSON(message: ListRolesRequest): unknown {+ const obj: any = {};+ message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));+ message.pageToken !== undefined && (obj.pageToken = message.pageToken);+ return obj;+ },++ create(base?: DeepPartial<ListRolesRequest>): ListRolesRequest {+ return ListRolesRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<ListRolesRequest>): ListRolesRequest {+ const message = createBaseListRolesRequest();+ message.pageSize = object.pageSize ?? 0;+ message.pageToken = object.pageToken ?? "";+ return message;+ },+};++function createBaseListRolesResponse(): ListRolesResponse {+ return { roles: [], nextPageToken: "" };+}++export const ListRolesResponse = {+ encode(message: ListRolesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ for (const v of message.roles) {+ Role.encode(v!, writer.uint32(10).fork()).ldelim();+ }+ if (message.nextPageToken !== "") {+ writer.uint32(18).string(message.nextPageToken);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): ListRolesResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseListRolesResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag != 10) {+ break;+ }++ message.roles.push(Role.decode(reader, reader.uint32()));+ continue;+ case 2:+ if (tag != 18) {+ break;+ }++ message.nextPageToken = reader.string();+ continue;+ }+ if ((tag & 7) == 4 || tag == 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ListRolesResponse {+ return {+ roles: Array.isArray(object?.roles) ? object.roles.map((e: any) => Role.fromJSON(e)) : [],+ nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "",+ };+ },++ toJSON(message: ListRolesResponse): unknown {+ const obj: any = {};+ if (message.roles) {+ obj.roles = message.roles.map((e) => e ? Role.toJSON(e) : undefined);+ } else {+ obj.roles = [];+ }+ message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken);+ return obj;+ },++ create(base?: DeepPartial<ListRolesResponse>): ListRolesResponse {+ return ListRolesResponse.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<ListRolesResponse>): ListRolesResponse {+ const message = createBaseListRolesResponse();+ message.roles = object.roles?.map((e) => Role.fromPartial(e)) || [];+ message.nextPageToken = object.nextPageToken ?? "";+ return message;+ },+};++function createBaseCreateRoleRequest(): CreateRoleRequest {+ return { role: undefined, roleId: "" };+}++export const CreateRoleRequest = {+ encode(message: CreateRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.role !== undefined) {+ Role.encode(message.role, writer.uint32(10).fork()).ldelim();+ }+ if (message.roleId !== "") {+ writer.uint32(18).string(message.roleId);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): CreateRoleRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseCreateRoleRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag != 10) {+ break;+ }++ message.role = Role.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag != 18) {+ break;+ }++ message.roleId = reader.string();+ continue;+ }+ if ((tag & 7) == 4 || tag == 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): CreateRoleRequest {+ return {+ role: isSet(object.role) ? Role.fromJSON(object.role) : undefined,+ roleId: isSet(object.roleId) ? String(object.roleId) : "",+ };+ },++ toJSON(message: CreateRoleRequest): unknown {+ const obj: any = {};+ message.role !== undefined && (obj.role = message.role ? Role.toJSON(message.role) : undefined);+ message.roleId !== undefined && (obj.roleId = message.roleId);+ return obj;+ },++ create(base?: DeepPartial<CreateRoleRequest>): CreateRoleRequest {+ return CreateRoleRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<CreateRoleRequest>): CreateRoleRequest {+ const message = createBaseCreateRoleRequest();+ message.role = (object.role !== undefined && object.role !== null) ? Role.fromPartial(object.role) : undefined;+ message.roleId = object.roleId ?? "";+ return message;+ },+};++function createBaseUpdateRoleRequest(): UpdateRoleRequest {+ return { role: undefined, updateMask: undefined };+}++export const UpdateRoleRequest = {+ encode(message: UpdateRoleRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.role !== undefined) {+ Role.encode(message.role, 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): UpdateRoleRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseUpdateRoleRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag != 10) {+ break;+ }++ message.role = Role.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): UpdateRoleRequest {+ return {+ role: isSet(object.role) ? Role.fromJSON(object.role) : undefined,+ updateMask: isSet(object.updateMask) ? FieldMask.unwrap(FieldMask.fromJSON(object.updateMask)) : undefined,+ };+ },++ toJSON(message: UpdateRoleRequest): unknown {+ const obj: any = {};+ message.role !== undefined && (obj.role = message.role ? Role.toJSON(message.role) : undefined);+ message.updateMask !== undefined && (obj.updateMask = FieldMask.toJSON(FieldMask.wrap(message.updateMask)));+ return obj;+ },++ create(base?: DeepPartial<UpdateRoleRequest>): UpdateRoleRequest {+ return UpdateRoleRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<UpdateRoleRequest>): UpdateRoleRequest {+ const message = createBaseUpdateRoleRequest();+ message.role = (object.role !== undefined && object.role !== null) ? Role.fromPartial(object.role) : undefined;+ message.updateMask = object.updateMask ?? undefined;+ return message;+ },+};++function createBaseDeleteRoleRequest(): DeleteRoleRequest {+ return { name: "" };+}++export const DeleteRoleRequest = {+ encode(message: DeleteRoleRequest, 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): DeleteRoleRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDeleteRoleRequest();+ 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): DeleteRoleRequest {+ return { name: isSet(object.name) ? String(object.name) : "" };+ },++ toJSON(message: DeleteRoleRequest): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ return obj;+ },++ create(base?: DeepPartial<DeleteRoleRequest>): DeleteRoleRequest {+ return DeleteRoleRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<DeleteRoleRequest>): DeleteRoleRequest {+ const message = createBaseDeleteRoleRequest();+ message.name = object.name ?? "";+ return message;+ },+};++function createBaseRole(): Role {+ return { name: "", description: "" };+}++export const Role = {+ encode(message: Role, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.description !== "") {+ writer.uint32(18).string(message.description);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): Role {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseRole();+ 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.description = reader.string();+ continue;+ }+ if ((tag & 7) == 4 || tag == 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): Role {+ return {+ name: isSet(object.name) ? String(object.name) : "",+ description: isSet(object.description) ? String(object.description) : "",+ };+ },++ toJSON(message: Role): unknown {+ const obj: any = {};+ message.name !== undefined && (obj.name = message.name);+ message.description !== undefined && (obj.description = message.description);+ return obj;+ },++ create(base?: DeepPartial<Role>): Role {+ return Role.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<Role>): Role {+ const message = createBaseRole();+ message.name = object.name ?? "";+ message.description = object.description ?? "";+ return message;+ },+};++export type RoleServiceDefinition = typeof RoleServiceDefinition;+export const RoleServiceDefinition = {+ name: "RoleService",+ fullName: "bytebase.v1.RoleService",+ methods: {+ listRoles: {+ name: "ListRoles",+ requestType: ListRolesRequest,+ requestStream: false,+ responseType: ListRolesResponse,+ responseStream: false,+ options: {+ _unknownFields: { 578365826: [new Uint8Array([11, 18, 9, 47, 118, 49, 47, 114, 111, 108, 101, 115])] },+ },+ },+ createRole: {+ name: "CreateRole",+ requestType: CreateRoleRequest,+ requestStream: false,+ responseType: Role,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [new Uint8Array([17, 58, 4, 114, 111, 108, 101, 34, 9, 47, 118, 49, 47, 114, 111, 108, 101, 115])],+ },+ },+ },+ updateRole: {+ name: "UpdateRole",+ requestType: UpdateRoleRequest,+ requestStream: false,+ responseType: Role,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([16, 114, 111, 108, 101, 44, 117, 112, 100, 97, 116, 101, 95, 109, 97, 115, 107])],+ 578365826: [+ new Uint8Array([+ 31,+ 58,+ 4,+ 114,+ 111,+ 108,+ 101,+ 50,+ 23,+ 47,+ 118,+ 49,+ 47,+ 123,+ 114,+ 111,+ 108,+ 101,+ 46,+ 110,+ 97,+ 109,+ 101,+ 61,+ 114,+ 111,+ 108,+ 101,+ 115,+ 47,+ 42,+ 125,+ ]),+ ],+ },+ },+ },+ deleteRole: {+ name: "DeleteRole",+ requestType: DeleteRoleRequest,+ requestStream: false,+ responseType: Empty,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([4, 110, 97, 109, 101])],+ 578365826: [+ new Uint8Array([+ 20,+ 42,+ 18,+ 47,+ 118,+ 49,+ 47,+ 123,+ 110,+ 97,+ 109,+ 101,+ 61,+ 114,+ 111,+ 108,+ 101,+ 115,+ 47,+ 42,+ 125,+ ]),+ ],+ },+ },+ },+ },+} as const;++export interface RoleServiceImplementation<CallContextExt = {}> {+ listRoles(request: ListRolesRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListRolesResponse>>;+ createRole(request: CreateRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Role>>;+ updateRole(request: UpdateRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Role>>;+ deleteRole(request: DeleteRoleRequest, context: CallContext & CallContextExt): Promise<DeepPartial<Empty>>;+}++export interface RoleServiceClient<CallOptionsExt = {}> {+ listRoles(request: DeepPartial<ListRolesRequest>, options?: CallOptions & CallOptionsExt): Promise<ListRolesResponse>;+ createRole(request: DeepPartial<CreateRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Role>;+ updateRole(request: DeepPartial<UpdateRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Role>;+ deleteRole(request: DeepPartial<DeleteRoleRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;+}++type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;++export type DeepPartial<T> = T extends Builtin ? T+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }+ : Partial<T>;++function isSet(value: any): boolean {+ return value !== null && value !== undefined;+}diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex c47bbd6cc7..571003e43e 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -157,14 +157,14 @@- [IdentityProviderService](#bytebase-v1-IdentityProviderService)- [v1/instance_role_service.proto](#v1_instance_role_service-proto)- - [CreateRoleRequest](#bytebase-v1-CreateRoleRequest)- - [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest)- - [GetRoleRequest](#bytebase-v1-GetRoleRequest)+ - [CreateInstanceRoleRequest](#bytebase-v1-CreateInstanceRoleRequest)+ - [DeleteInstanceRoleRequest](#bytebase-v1-DeleteInstanceRoleRequest)+ - [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest)- [InstanceRole](#bytebase-v1-InstanceRole)- - [ListRolesRequest](#bytebase-v1-ListRolesRequest)- - [ListRolesResponse](#bytebase-v1-ListRolesResponse)- - [UndeleteRoleRequest](#bytebase-v1-UndeleteRoleRequest)- - [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest)+ - [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest)+ - [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse)+ - [UndeleteInstanceRoleRequest](#bytebase-v1-UndeleteInstanceRoleRequest)+ - [UpdateInstanceRoleRequest](#bytebase-v1-UpdateInstanceRoleRequest)- [InstanceRoleService](#bytebase-v1-InstanceRoleService)@@ -302,6 +302,16 @@- [RiskService](#bytebase-v1-RiskService)+- [v1/role_service.proto](#v1_role_service-proto)+ - [CreateRoleRequest](#bytebase-v1-CreateRoleRequest)+ - [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest)+ - [ListRolesRequest](#bytebase-v1-ListRolesRequest)+ - [ListRolesResponse](#bytebase-v1-ListRolesResponse)+ - [Role](#bytebase-v1-Role)+ - [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest)++ - [RoleService](#bytebase-v1-RoleService)+- [v1/setting_service.proto](#v1_setting_service-proto)- [GetSettingRequest](#bytebase-v1-GetSettingRequest)- [GetSettingResponse](#bytebase-v1-GetSettingResponse)@@ -2507,9 +2517,9 @@ The identity provider's `name` field is used to identify the identity provid-<a name="bytebase-v1-CreateRoleRequest"></a>+<a name="bytebase-v1-CreateInstanceRoleRequest"></a>-### CreateRoleRequest+### CreateInstanceRoleRequest@@ -2523,9 +2533,9 @@ The identity provider's `name` field is used to identify the identity provid-<a name="bytebase-v1-DeleteRoleRequest"></a>+<a name="bytebase-v1-DeleteInstanceRoleRequest"></a>-### DeleteRoleRequest+### DeleteInstanceRoleRequest@@ -2538,9 +2548,9 @@ The identity provider's `name` field is used to identify the identity provid-<a name="bytebase-v1-GetRoleRequest"></a>+<a name="bytebase-v1-GetInstanceRoleRequest"></a>-### GetRoleRequest+### GetInstanceRoleRequest@@ -2573,9 +2583,9 @@ InstanceRole is the API message for instance role.-<a name="bytebase-v1-ListRolesRequest"></a>+<a name="bytebase-v1-ListInstanceRolesRequest"></a>-### ListRolesRequest+### ListInstanceRolesRequest@@ -2592,9 +2602,9 @@ When paginating, all other parameters provided to `ListRoles` must match the cal-<a name="bytebase-v1-ListRolesResponse"></a>+<a name="bytebase-v1-ListInstanceRolesResponse"></a>-### ListRolesResponse+### ListInstanceRolesResponse@@ -2608,9 +2618,9 @@ When paginating, all other parameters provided to `ListRoles` must match the cal-<a name="bytebase-v1-UndeleteRoleRequest"></a>+<a name="bytebase-v1-UndeleteInstanceRoleRequest"></a>-### UndeleteRoleRequest+### UndeleteInstanceRoleRequest@@ -2623,9 +2633,9 @@ When paginating, all other parameters provided to `ListRoles` must match the cal-<a name="bytebase-v1-UpdateRoleRequest"></a>+<a name="bytebase-v1-UpdateInstanceRoleRequest"></a>-### UpdateRoleRequest+### UpdateInstanceRoleRequest@@ -2654,12 +2664,12 @@ The role's `name`, `environment` and `instance` field is used to identify th| Method Name | Request Type | Response Type | Description || ----------- | ------------ | ------------- | ------------|-| GetRole | [GetRoleRequest](#bytebase-v1-GetRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |-| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |-| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |-| UndeleteRole | [UndeleteRoleRequest](#bytebase-v1-UndeleteRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| GetInstanceRole | [GetInstanceRoleRequest](#bytebase-v1-GetInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| ListInstanceRoles | [ListInstanceRolesRequest](#bytebase-v1-ListInstanceRolesRequest) | [ListInstanceRolesResponse](#bytebase-v1-ListInstanceRolesResponse) | |+| CreateInstanceRole | [CreateInstanceRoleRequest](#bytebase-v1-CreateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| UpdateInstanceRole | [UpdateInstanceRoleRequest](#bytebase-v1-UpdateInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |+| DeleteInstanceRole | [DeleteInstanceRoleRequest](#bytebase-v1-DeleteInstanceRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+| UndeleteInstanceRole | [UndeleteInstanceRoleRequest](#bytebase-v1-UndeleteInstanceRoleRequest) | [InstanceRole](#bytebase-v1-InstanceRole) | |@@ -4593,6 +4603,134 @@ The risk's `name` field is used to identify the risk to update. Format: risk+<a name="v1_role_service-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## v1/role_service.proto++++<a name="bytebase-v1-CreateRoleRequest"></a>++### CreateRoleRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role | [Role](#bytebase-v1-Role) | | |+| role_id | [string](#string) | | The ID to use for the role, which will become the final component of the role's resource name.++This value should be 4-63 characters, and valid characters are /[a-z][A-Z][0-9]/. |+++++++<a name="bytebase-v1-DeleteRoleRequest"></a>++### DeleteRoleRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: roles/{role} |+++++++<a name="bytebase-v1-ListRolesRequest"></a>++### ListRolesRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 reviews will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |+| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.++When paginating, all other parameters provided to `ListRoles` must match the call that provided the page token. |+++++++<a name="bytebase-v1-ListRolesResponse"></a>++### ListRolesResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| roles | [Role](#bytebase-v1-Role) | repeated | |+| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |+++++++<a name="bytebase-v1-Role"></a>++### Role++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| name | [string](#string) | | Format: roles/{role} |+| description | [string](#string) | | |+++++++<a name="bytebase-v1-UpdateRoleRequest"></a>++### UpdateRoleRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| role | [Role](#bytebase-v1-Role) | | |+| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | |+++++++++++++<a name="bytebase-v1-RoleService"></a>++### RoleService+++| Method Name | Request Type | Response Type | Description |+| ----------- | ------------ | ------------- | ------------|+| ListRoles | [ListRolesRequest](#bytebase-v1-ListRolesRequest) | [ListRolesResponse](#bytebase-v1-ListRolesResponse) | |+| CreateRole | [CreateRoleRequest](#bytebase-v1-CreateRoleRequest) | [Role](#bytebase-v1-Role) | |+| UpdateRole | [UpdateRoleRequest](#bytebase-v1-UpdateRoleRequest) | [Role](#bytebase-v1-Role) | |+| DeleteRole | [DeleteRoleRequest](#bytebase-v1-DeleteRoleRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |+++++<a name="v1_setting_service-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/generated-go/store/slow_query.pb.go b/proto/generated-go/store/slow_query.pb.goindex 772da4fec3..3f0ca00a67 100644--- a/proto/generated-go/store/slow_query.pb.go+++ b/proto/generated-go/store/slow_query.pb.go@@ -246,11 +246,11 @@ var File_store_slow_query_proto protoreflect.FileDescriptorvar file_store_slow_query_proto_rawDesc = []byte{0x0a, 0x16, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75, 0x65,0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,+ 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,+ 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,- 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x13, 0x53, 0x6c, 0x6f,+ 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x54, 0x0a, 0x13, 0x53, 0x6c, 0x6f,0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,0x12, 0x3d, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,diff --git a/proto/generated-go/v1/instance_role_service.pb.go b/proto/generated-go/v1/instance_role_service.pb.goindex 1191fb353c..0484e0dc25 100644--- a/proto/generated-go/v1/instance_role_service.pb.go+++ b/proto/generated-go/v1/instance_role_service.pb.go@@ -23,7 +23,7 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))-type GetRoleRequest struct {+type GetInstanceRoleRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -34,8 +34,8 @@ type GetRoleRequest struct {Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`}-func (x *GetRoleRequest) Reset() {- *x = GetRoleRequest{}+func (x *GetInstanceRoleRequest) Reset() {+ *x = GetInstanceRoleRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[0]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -43,13 +43,13 @@ func (x *GetRoleRequest) Reset() {}}-func (x *GetRoleRequest) String() string {+func (x *GetInstanceRoleRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*GetRoleRequest) ProtoMessage() {}+func (*GetInstanceRoleRequest) ProtoMessage() {}-func (x *GetRoleRequest) ProtoReflect() protoreflect.Message {+func (x *GetInstanceRoleRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[0]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -61,19 +61,19 @@ func (x *GetRoleRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.-func (*GetRoleRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use GetInstanceRoleRequest.ProtoReflect.Descriptor instead.+func (*GetInstanceRoleRequest) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{0}}-func (x *GetRoleRequest) GetName() string {+func (x *GetInstanceRoleRequest) GetName() string {if x != nil {return x.Name}return ""}-type ListRolesRequest struct {+type ListInstanceRolesRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -94,8 +94,8 @@ type ListRolesRequest struct {PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`}-func (x *ListRolesRequest) Reset() {- *x = ListRolesRequest{}+func (x *ListInstanceRolesRequest) Reset() {+ *x = ListInstanceRolesRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -103,13 +103,13 @@ func (x *ListRolesRequest) Reset() {}}-func (x *ListRolesRequest) String() string {+func (x *ListInstanceRolesRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListRolesRequest) ProtoMessage() {}+func (*ListInstanceRolesRequest) ProtoMessage() {}-func (x *ListRolesRequest) ProtoReflect() protoreflect.Message {+func (x *ListInstanceRolesRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[1]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -121,33 +121,33 @@ func (x *ListRolesRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.-func (*ListRolesRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use ListInstanceRolesRequest.ProtoReflect.Descriptor instead.+func (*ListInstanceRolesRequest) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{1}}-func (x *ListRolesRequest) GetParent() string {+func (x *ListInstanceRolesRequest) GetParent() string {if x != nil {return x.Parent}return ""}-func (x *ListRolesRequest) GetPageSize() int32 {+func (x *ListInstanceRolesRequest) GetPageSize() int32 {if x != nil {return x.PageSize}return 0}-func (x *ListRolesRequest) GetPageToken() string {+func (x *ListInstanceRolesRequest) GetPageToken() string {if x != nil {return x.PageToken}return ""}-type ListRolesResponse struct {+type ListInstanceRolesResponse struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -159,8 +159,8 @@ type ListRolesResponse struct {NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`}-func (x *ListRolesResponse) Reset() {- *x = ListRolesResponse{}+func (x *ListInstanceRolesResponse) Reset() {+ *x = ListInstanceRolesResponse{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -168,13 +168,13 @@ func (x *ListRolesResponse) Reset() {}}-func (x *ListRolesResponse) String() string {+func (x *ListInstanceRolesResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ListRolesResponse) ProtoMessage() {}+func (*ListInstanceRolesResponse) ProtoMessage() {}-func (x *ListRolesResponse) ProtoReflect() protoreflect.Message {+func (x *ListInstanceRolesResponse) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[2]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -186,26 +186,26 @@ func (x *ListRolesResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.-func (*ListRolesResponse) Descriptor() ([]byte, []int) {+// Deprecated: Use ListInstanceRolesResponse.ProtoReflect.Descriptor instead.+func (*ListInstanceRolesResponse) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{2}}-func (x *ListRolesResponse) GetRoles() []*InstanceRole {+func (x *ListInstanceRolesResponse) GetRoles() []*InstanceRole {if x != nil {return x.Roles}return nil}-func (x *ListRolesResponse) GetNextPageToken() string {+func (x *ListInstanceRolesResponse) GetNextPageToken() string {if x != nil {return x.NextPageToken}return ""}-type CreateRoleRequest struct {+type CreateInstanceRoleRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -217,8 +217,8 @@ type CreateRoleRequest struct {Role *InstanceRole `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`}-func (x *CreateRoleRequest) Reset() {- *x = CreateRoleRequest{}+func (x *CreateInstanceRoleRequest) Reset() {+ *x = CreateInstanceRoleRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -226,13 +226,13 @@ func (x *CreateRoleRequest) Reset() {}}-func (x *CreateRoleRequest) String() string {+func (x *CreateInstanceRoleRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*CreateRoleRequest) ProtoMessage() {}+func (*CreateInstanceRoleRequest) ProtoMessage() {}-func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message {+func (x *CreateInstanceRoleRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[3]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -244,26 +244,26 @@ func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.-func (*CreateRoleRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use CreateInstanceRoleRequest.ProtoReflect.Descriptor instead.+func (*CreateInstanceRoleRequest) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{3}}-func (x *CreateRoleRequest) GetParent() string {+func (x *CreateInstanceRoleRequest) GetParent() string {if x != nil {return x.Parent}return ""}-func (x *CreateRoleRequest) GetRole() *InstanceRole {+func (x *CreateInstanceRoleRequest) GetRole() *InstanceRole {if x != nil {return x.Role}return nil}-type UpdateRoleRequest struct {+type UpdateInstanceRoleRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -277,8 +277,8 @@ type UpdateRoleRequest struct {UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`}-func (x *UpdateRoleRequest) Reset() {- *x = UpdateRoleRequest{}+func (x *UpdateInstanceRoleRequest) Reset() {+ *x = UpdateInstanceRoleRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -286,13 +286,13 @@ func (x *UpdateRoleRequest) Reset() {}}-func (x *UpdateRoleRequest) String() string {+func (x *UpdateInstanceRoleRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*UpdateRoleRequest) ProtoMessage() {}+func (*UpdateInstanceRoleRequest) ProtoMessage() {}-func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message {+func (x *UpdateInstanceRoleRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[4]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -304,26 +304,26 @@ func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.-func (*UpdateRoleRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use UpdateInstanceRoleRequest.ProtoReflect.Descriptor instead.+func (*UpdateInstanceRoleRequest) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{4}}-func (x *UpdateRoleRequest) GetRole() *InstanceRole {+func (x *UpdateInstanceRoleRequest) GetRole() *InstanceRole {if x != nil {return x.Role}return nil}-func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+func (x *UpdateInstanceRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask {if x != nil {return x.UpdateMask}return nil}-type DeleteRoleRequest struct {+type DeleteInstanceRoleRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -333,8 +333,8 @@ type DeleteRoleRequest struct {Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`}-func (x *DeleteRoleRequest) Reset() {- *x = DeleteRoleRequest{}+func (x *DeleteInstanceRoleRequest) Reset() {+ *x = DeleteInstanceRoleRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -342,13 +342,13 @@ func (x *DeleteRoleRequest) Reset() {}}-func (x *DeleteRoleRequest) String() string {+func (x *DeleteInstanceRoleRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*DeleteRoleRequest) ProtoMessage() {}+func (*DeleteInstanceRoleRequest) ProtoMessage() {}-func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message {+func (x *DeleteInstanceRoleRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[5]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -360,19 +360,19 @@ func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.-func (*DeleteRoleRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use DeleteInstanceRoleRequest.ProtoReflect.Descriptor instead.+func (*DeleteInstanceRoleRequest) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{5}}-func (x *DeleteRoleRequest) GetName() string {+func (x *DeleteInstanceRoleRequest) GetName() string {if x != nil {return x.Name}return ""}-type UndeleteRoleRequest struct {+type UndeleteInstanceRoleRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields@@ -382,8 +382,8 @@ type UndeleteRoleRequest struct {Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`}-func (x *UndeleteRoleRequest) Reset() {- *x = UndeleteRoleRequest{}+func (x *UndeleteInstanceRoleRequest) Reset() {+ *x = UndeleteInstanceRoleRequest{}if protoimpl.UnsafeEnabled {mi := &file_v1_instance_role_service_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -391,13 +391,13 @@ func (x *UndeleteRoleRequest) Reset() {}}-func (x *UndeleteRoleRequest) String() string {+func (x *UndeleteInstanceRoleRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*UndeleteRoleRequest) ProtoMessage() {}+func (*UndeleteInstanceRoleRequest) ProtoMessage() {}-func (x *UndeleteRoleRequest) ProtoReflect() protoreflect.Message {+func (x *UndeleteInstanceRoleRequest) ProtoReflect() protoreflect.Message {mi := &file_v1_instance_role_service_proto_msgTypes[6]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -409,12 +409,12 @@ func (x *UndeleteRoleRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use UndeleteRoleRequest.ProtoReflect.Descriptor instead.-func (*UndeleteRoleRequest) Descriptor() ([]byte, []int) {+// Deprecated: Use UndeleteInstanceRoleRequest.ProtoReflect.Descriptor instead.+func (*UndeleteInstanceRoleRequest) Descriptor() ([]byte, []int) {return file_v1_instance_role_service_proto_rawDescGZIP(), []int{6}}-func (x *UndeleteRoleRequest) GetName() string {+func (x *UndeleteInstanceRoleRequest) GetName() string {if x != nil {return x.Name}@@ -535,119 +535,129 @@ var file_v1_instance_role_service_proto_rawDesc = []byte{0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70,0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x29, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65,- 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, 0x6b, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71,+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x31, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 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, 0x73, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 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, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a,- 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f,- 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,- 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,- 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x43,- 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x74, 0x0a,+ 0x19, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c,+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x72, 0x6f,+ 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,+ 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,+ 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,+ 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 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, 0x32, 0x0a,0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x72, 0x6f, 0x6c,- 0x65, 0x22, 0x84, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x2c, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 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, 0x2e, 0x0a, 0x13, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a,+ 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x32, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x72,+ 0x6f, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,+ 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,+ 0x22, 0x34, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,+ 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 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, 0x9e, 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72,- 0x6f, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,- 0x72, 0x6f, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73,- 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x48,- 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2e,- 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6d,- 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e,- 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x24,- 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x05, 0x20,- 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x55, 0x6e, 0x74, 0x69,- 0x6c, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,- 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69,- 0x62, 0x75, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73,- 0x77, 0x6f, 0x72, 0x64, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,- 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, 0x61,- 0x6c, 0x69, 0x64, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74,- 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x32, 0xed, 0x06, 0x0a, 0x13, 0x49, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,- 0x7f, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6c, 0x65,- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f,- 0x6c, 0x65, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,- 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x36, 0x0a, 0x1b, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65,+ 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 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, 0x9e,+ 0x02, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12,+ 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65,+ 0x12, 0x24, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01,+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x48, 0x00, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,+ 0x6f, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,+ 0x48, 0x01, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69,+ 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x24, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f,+ 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x0a, 0x76,+ 0x61, 0x6c, 0x69, 0x64, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09,+ 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48,+ 0x03, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x88, 0x01, 0x01, 0x42,+ 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0x13, 0x0a, 0x11,+ 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69,+ 0x74, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x75, 0x6e, 0x74, 0x69,+ 0x6c, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x32,+ 0xd6, 0x07, 0x0a, 0x13, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65,+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x3c, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f,+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,+ 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,+ 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x11, 0x4c, 0x69,+ 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12,+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e,+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12,+ 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76,0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74,- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d,- 0x12, 0x8a, 0x01, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,- 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,- 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0xda,- 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69,+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0xa2,+ 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,+ 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74,+ 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x49, 0xda, 0x41, 0x0b, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x04,+ 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,+ 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f,+ 0x6c, 0x65, 0x73, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49,+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,+ 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x53, 0xda,+ 0x41, 0x10, 0x72, 0x6f, 0x6c, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x32, 0x32,+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,+ 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f,+ 0x2a, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73,+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e,+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,+ 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,+ 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72,+ 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x14, 0x55, 0x6e, 0x64, 0x65,+ 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65,+ 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,+ 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,+ 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a,+ 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69,0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x92, 0x01,- 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,- 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,- 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x49, 0xda, 0x41, 0x0b, 0x70, 0x61, 0x72, 0x65,- 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x04, 0x72,- 0x6f, 0x6c, 0x65, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f,- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c,- 0x65, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c,- 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x53, 0xda, 0x41,- 0x10, 0x72, 0x6f, 0x6c, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x32, 0x32, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a,- 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65,- 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,- 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,- 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f,- 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x0c, 0x55, 0x6e, 0x64, 0x65, 0x6c,- 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f,- 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,- 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22,- 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75,- 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,- 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x33,+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,+ 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65,+ 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x33,}var (@@ -664,34 +674,34 @@ func file_v1_instance_role_service_proto_rawDescGZIP() []byte {var file_v1_instance_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)var file_v1_instance_role_service_proto_goTypes = []interface{}{- (*GetRoleRequest)(nil), // 0: bytebase.v1.GetRoleRequest- (*ListRolesRequest)(nil), // 1: bytebase.v1.ListRolesRequest- (*ListRolesResponse)(nil), // 2: bytebase.v1.ListRolesResponse- (*CreateRoleRequest)(nil), // 3: bytebase.v1.CreateRoleRequest- (*UpdateRoleRequest)(nil), // 4: bytebase.v1.UpdateRoleRequest- (*DeleteRoleRequest)(nil), // 5: bytebase.v1.DeleteRoleRequest- (*UndeleteRoleRequest)(nil), // 6: bytebase.v1.UndeleteRoleRequest- (*InstanceRole)(nil), // 7: bytebase.v1.InstanceRole- (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask- (*emptypb.Empty)(nil), // 9: google.protobuf.Empty+ (*GetInstanceRoleRequest)(nil), // 0: bytebase.v1.GetInstanceRoleRequest+ (*ListInstanceRolesRequest)(nil), // 1: bytebase.v1.ListInstanceRolesRequest+ (*ListInstanceRolesResponse)(nil), // 2: bytebase.v1.ListInstanceRolesResponse+ (*CreateInstanceRoleRequest)(nil), // 3: bytebase.v1.CreateInstanceRoleRequest+ (*UpdateInstanceRoleRequest)(nil), // 4: bytebase.v1.UpdateInstanceRoleRequest+ (*DeleteInstanceRoleRequest)(nil), // 5: bytebase.v1.DeleteInstanceRoleRequest+ (*UndeleteInstanceRoleRequest)(nil), // 6: bytebase.v1.UndeleteInstanceRoleRequest+ (*InstanceRole)(nil), // 7: bytebase.v1.InstanceRole+ (*fieldmaskpb.FieldMask)(nil), // 8: google.protobuf.FieldMask+ (*emptypb.Empty)(nil), // 9: google.protobuf.Empty}var file_v1_instance_role_service_proto_depIdxs = []int32{- 7, // 0: bytebase.v1.ListRolesResponse.roles:type_name -> bytebase.v1.InstanceRole- 7, // 1: bytebase.v1.CreateRoleRequest.role:type_name -> bytebase.v1.InstanceRole- 7, // 2: bytebase.v1.UpdateRoleRequest.role:type_name -> bytebase.v1.InstanceRole- 8, // 3: bytebase.v1.UpdateRoleRequest.update_mask:type_name -> google.protobuf.FieldMask- 0, // 4: bytebase.v1.InstanceRoleService.GetRole:input_type -> bytebase.v1.GetRoleRequest- 1, // 5: bytebase.v1.InstanceRoleService.ListRoles:input_type -> bytebase.v1.ListRolesRequest- 3, // 6: bytebase.v1.InstanceRoleService.CreateRole:input_type -> bytebase.v1.CreateRoleRequest- 4, // 7: bytebase.v1.InstanceRoleService.UpdateRole:input_type -> bytebase.v1.UpdateRoleRequest- 5, // 8: bytebase.v1.InstanceRoleService.DeleteRole:input_type -> bytebase.v1.DeleteRoleRequest- 6, // 9: bytebase.v1.InstanceRoleService.UndeleteRole:input_type -> bytebase.v1.UndeleteRoleRequest- 7, // 10: bytebase.v1.InstanceRoleService.GetRole:output_type -> bytebase.v1.InstanceRole- 2, // 11: bytebase.v1.InstanceRoleService.ListRoles:output_type -> bytebase.v1.ListRolesResponse- 7, // 12: bytebase.v1.InstanceRoleService.CreateRole:output_type -> bytebase.v1.InstanceRole- 7, // 13: bytebase.v1.InstanceRoleService.UpdateRole:output_type -> bytebase.v1.InstanceRole- 9, // 14: bytebase.v1.InstanceRoleService.DeleteRole:output_type -> google.protobuf.Empty- 7, // 15: bytebase.v1.InstanceRoleService.UndeleteRole:output_type -> bytebase.v1.InstanceRole+ 7, // 0: bytebase.v1.ListInstanceRolesResponse.roles:type_name -> bytebase.v1.InstanceRole+ 7, // 1: bytebase.v1.CreateInstanceRoleRequest.role:type_name -> bytebase.v1.InstanceRole+ 7, // 2: bytebase.v1.UpdateInstanceRoleRequest.role:type_name -> bytebase.v1.InstanceRole+ 8, // 3: bytebase.v1.UpdateInstanceRoleRequest.update_mask:type_name -> google.protobuf.FieldMask+ 0, // 4: bytebase.v1.InstanceRoleService.GetInstanceRole:input_type -> bytebase.v1.GetInstanceRoleRequest+ 1, // 5: bytebase.v1.InstanceRoleService.ListInstanceRoles:input_type -> bytebase.v1.ListInstanceRolesRequest+ 3, // 6: bytebase.v1.InstanceRoleService.CreateInstanceRole:input_type -> bytebase.v1.CreateInstanceRoleRequest+ 4, // 7: bytebase.v1.InstanceRoleService.UpdateInstanceRole:input_type -> bytebase.v1.UpdateInstanceRoleRequest+ 5, // 8: bytebase.v1.InstanceRoleService.DeleteInstanceRole:input_type -> bytebase.v1.DeleteInstanceRoleRequest+ 6, // 9: bytebase.v1.InstanceRoleService.UndeleteInstanceRole:input_type -> bytebase.v1.UndeleteInstanceRoleRequest+ 7, // 10: bytebase.v1.InstanceRoleService.GetInstanceRole:output_type -> bytebase.v1.InstanceRole+ 2, // 11: bytebase.v1.InstanceRoleService.ListInstanceRoles:output_type -> bytebase.v1.ListInstanceRolesResponse+ 7, // 12: bytebase.v1.InstanceRoleService.CreateInstanceRole:output_type -> bytebase.v1.InstanceRole+ 7, // 13: bytebase.v1.InstanceRoleService.UpdateInstanceRole:output_type -> bytebase.v1.InstanceRole+ 9, // 14: bytebase.v1.InstanceRoleService.DeleteInstanceRole:output_type -> google.protobuf.Empty+ 7, // 15: bytebase.v1.InstanceRoleService.UndeleteInstanceRole:output_type -> bytebase.v1.InstanceRole10, // [10:16] is the sub-list for method output_type4, // [4:10] is the sub-list for method input_type4, // [4:4] is the sub-list for extension type_name@@ -707,7 +717,7 @@ func file_v1_instance_role_service_proto_init() {file_v1_common_proto_init()if !protoimpl.UnsafeEnabled {file_v1_instance_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*GetRoleRequest); i {+ switch v := v.(*GetInstanceRoleRequest); i {case 0:return &v.statecase 1:@@ -719,7 +729,7 @@ func file_v1_instance_role_service_proto_init() {}}file_v1_instance_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListRolesRequest); i {+ switch v := v.(*ListInstanceRolesRequest); i {case 0:return &v.statecase 1:@@ -731,7 +741,7 @@ func file_v1_instance_role_service_proto_init() {}}file_v1_instance_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ListRolesResponse); i {+ switch v := v.(*ListInstanceRolesResponse); i {case 0:return &v.statecase 1:@@ -743,7 +753,7 @@ func file_v1_instance_role_service_proto_init() {}}file_v1_instance_role_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*CreateRoleRequest); i {+ switch v := v.(*CreateInstanceRoleRequest); i {case 0:return &v.statecase 1:@@ -755,7 +765,7 @@ func file_v1_instance_role_service_proto_init() {}}file_v1_instance_role_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UpdateRoleRequest); i {+ switch v := v.(*UpdateInstanceRoleRequest); i {case 0:return &v.statecase 1:@@ -767,7 +777,7 @@ func file_v1_instance_role_service_proto_init() {}}file_v1_instance_role_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*DeleteRoleRequest); i {+ switch v := v.(*DeleteInstanceRoleRequest); i {case 0:return &v.statecase 1:@@ -779,7 +789,7 @@ func file_v1_instance_role_service_proto_init() {}}file_v1_instance_role_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*UndeleteRoleRequest); i {+ switch v := v.(*UndeleteInstanceRoleRequest); i {case 0:return &v.statecase 1:diff --git a/proto/generated-go/v1/instance_role_service.pb.gw.go b/proto/generated-go/v1/instance_role_service.pb.gw.goindex 3e3caf7fa3..b281ab1054 100644--- a/proto/generated-go/v1/instance_role_service.pb.gw.go+++ b/proto/generated-go/v1/instance_role_service.pb.gw.go@@ -31,8 +31,8 @@ var _ = runtime.Stringvar _ = utilities.NewDoubleArrayvar _ = metadata.Join-func request_InstanceRoleService_GetRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetRoleRequest+func request_InstanceRoleService_GetInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetInstanceRoleRequestvar metadata runtime.ServerMetadatavar (@@ -52,13 +52,13 @@ func request_InstanceRoleService_GetRole_0(ctx context.Context, marshaler runtimreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)}- msg, err := client.GetRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ msg, err := client.GetInstanceRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))return msg, metadata, err}-func local_request_InstanceRoleService_GetRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq GetRoleRequest+func local_request_InstanceRoleService_GetInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq GetInstanceRoleRequestvar metadata runtime.ServerMetadatavar (@@ -78,17 +78,17 @@ func local_request_InstanceRoleService_GetRole_0(ctx context.Context, marshalerreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)}- msg, err := server.GetRole(ctx, &protoReq)+ msg, err := server.GetInstanceRole(ctx, &protoReq)return msg, metadata, err}var (- filter_InstanceRoleService_ListRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}+ filter_InstanceRoleService_ListInstanceRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}})-func request_InstanceRoleService_ListRoles_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListRolesRequest+func request_InstanceRoleService_ListInstanceRoles_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListInstanceRolesRequestvar metadata runtime.ServerMetadatavar (@@ -111,17 +111,17 @@ func request_InstanceRoleService_ListRoles_0(ctx context.Context, marshaler runtif err := req.ParseForm(); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_ListRoles_0); err != nil {+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_ListInstanceRoles_0); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- msg, err := client.ListRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ msg, err := client.ListInstanceRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))return msg, metadata, err}-func local_request_InstanceRoleService_ListRoles_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq ListRolesRequest+func local_request_InstanceRoleService_ListInstanceRoles_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListInstanceRolesRequestvar metadata runtime.ServerMetadatavar (@@ -144,17 +144,17 @@ func local_request_InstanceRoleService_ListRoles_0(ctx context.Context, marshaleif err := req.ParseForm(); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_ListRoles_0); err != nil {+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_ListInstanceRoles_0); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- msg, err := server.ListRoles(ctx, &protoReq)+ msg, err := server.ListInstanceRoles(ctx, &protoReq)return msg, metadata, err}-func request_InstanceRoleService_CreateRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateRoleRequest+func request_InstanceRoleService_CreateInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreateInstanceRoleRequestvar metadata runtime.ServerMetadatanewReader, berr := utilities.IOReaderFactory(req.Body)@@ -182,13 +182,13 @@ func request_InstanceRoleService_CreateRole_0(ctx context.Context, marshaler runreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)}- msg, err := client.CreateRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ msg, err := client.CreateInstanceRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))return msg, metadata, err}-func local_request_InstanceRoleService_CreateRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq CreateRoleRequest+func local_request_InstanceRoleService_CreateInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreateInstanceRoleRequestvar metadata runtime.ServerMetadatanewReader, berr := utilities.IOReaderFactory(req.Body)@@ -216,17 +216,17 @@ func local_request_InstanceRoleService_CreateRole_0(ctx context.Context, marshalreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)}- msg, err := server.CreateRole(ctx, &protoReq)+ msg, err := server.CreateInstanceRole(ctx, &protoReq)return msg, metadata, err}var (- filter_InstanceRoleService_UpdateRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"role": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}}+ filter_InstanceRoleService_UpdateInstanceRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"role": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}})-func request_InstanceRoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateRoleRequest+func request_InstanceRoleService_UpdateInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateInstanceRoleRequestvar metadata runtime.ServerMetadatanewReader, berr := utilities.IOReaderFactory(req.Body)@@ -264,17 +264,17 @@ func request_InstanceRoleService_UpdateRole_0(ctx context.Context, marshaler runif err := req.ParseForm(); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_UpdateRole_0); err != nil {+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_UpdateInstanceRole_0); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- msg, err := client.UpdateRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ msg, err := client.UpdateInstanceRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))return msg, metadata, err}-func local_request_InstanceRoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UpdateRoleRequest+func local_request_InstanceRoleService_UpdateInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateInstanceRoleRequestvar metadata runtime.ServerMetadatanewReader, berr := utilities.IOReaderFactory(req.Body)@@ -312,17 +312,17 @@ func local_request_InstanceRoleService_UpdateRole_0(ctx context.Context, marshalif err := req.ParseForm(); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_UpdateRole_0); err != nil {+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_InstanceRoleService_UpdateInstanceRole_0); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}- msg, err := server.UpdateRole(ctx, &protoReq)+ msg, err := server.UpdateInstanceRole(ctx, &protoReq)return msg, metadata, err}-func request_InstanceRoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq DeleteRoleRequest+func request_InstanceRoleService_DeleteInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq DeleteInstanceRoleRequestvar metadata runtime.ServerMetadatavar (@@ -342,13 +342,13 @@ func request_InstanceRoleService_DeleteRole_0(ctx context.Context, marshaler runreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)}- msg, err := client.DeleteRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ msg, err := client.DeleteInstanceRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))return msg, metadata, err}-func local_request_InstanceRoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq DeleteRoleRequest+func local_request_InstanceRoleService_DeleteInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq DeleteInstanceRoleRequestvar metadata runtime.ServerMetadatavar (@@ -368,13 +368,13 @@ func local_request_InstanceRoleService_DeleteRole_0(ctx context.Context, marshalreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)}- msg, err := server.DeleteRole(ctx, &protoReq)+ msg, err := server.DeleteInstanceRole(ctx, &protoReq)return msg, metadata, err}-func request_InstanceRoleService_UndeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UndeleteRoleRequest+func request_InstanceRoleService_UndeleteInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceRoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UndeleteInstanceRoleRequestvar metadata runtime.ServerMetadatanewReader, berr := utilities.IOReaderFactory(req.Body)@@ -402,13 +402,13 @@ func request_InstanceRoleService_UndeleteRole_0(ctx context.Context, marshaler rreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)}- msg, err := client.UndeleteRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ msg, err := client.UndeleteInstanceRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))return msg, metadata, err}-func local_request_InstanceRoleService_UndeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var protoReq UndeleteRoleRequest+func local_request_InstanceRoleService_UndeleteInstanceRole_0(ctx context.Context, marshaler runtime.Marshaler, server InstanceRoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UndeleteInstanceRoleRequestvar metadata runtime.ServerMetadatanewReader, berr := utilities.IOReaderFactory(req.Body)@@ -436,7 +436,7 @@ func local_request_InstanceRoleService_UndeleteRole_0(ctx context.Context, marshreturn nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)}- msg, err := server.UndeleteRole(ctx, &protoReq)+ msg, err := server.UndeleteInstanceRole(ctx, &protoReq)return msg, metadata, err}@@ -447,7 +447,7 @@ func local_request_InstanceRoleService_UndeleteRole_0(ctx context.Context, marsh// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInstanceRoleServiceHandlerFromEndpoint instead.func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InstanceRoleServiceServer) error {- mux.Handle("GET", pattern_InstanceRoleService_GetRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("GET", pattern_InstanceRoleService_GetInstanceRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()var stream runtime.ServerTransportStream@@ -455,12 +455,12 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)var err errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := local_request_InstanceRoleService_GetRole_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ resp, md, err := local_request_InstanceRoleService_GetInstanceRole_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 {@@ -468,11 +468,11 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.return}- forward_InstanceRoleService_GetRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_GetInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("GET", pattern_InstanceRoleService_ListRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("GET", pattern_InstanceRoleService_ListInstanceRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()var stream runtime.ServerTransportStream@@ -480,12 +480,12 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)var err errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListRoles", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListInstanceRoles", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := local_request_InstanceRoleService_ListRoles_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ resp, md, err := local_request_InstanceRoleService_ListInstanceRoles_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 {@@ -493,11 +493,11 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.return}- forward_InstanceRoleService_ListRoles_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_ListInstanceRoles_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("POST", pattern_InstanceRoleService_CreateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("POST", pattern_InstanceRoleService_CreateInstanceRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()var stream runtime.ServerTransportStream@@ -505,12 +505,12 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)var err errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateRole", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateInstanceRole", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := local_request_InstanceRoleService_CreateRole_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ resp, md, err := local_request_InstanceRoleService_CreateInstanceRole_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 {@@ -518,11 +518,11 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.return}- forward_InstanceRoleService_CreateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_CreateInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("PATCH", pattern_InstanceRoleService_UpdateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("PATCH", pattern_InstanceRoleService_UpdateInstanceRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()var stream runtime.ServerTransportStream@@ -530,12 +530,12 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)var err errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateRole", runtime.WithHTTPPathPattern("/v1/{role.name=environments/*/instances/*/roles/*}"))+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateInstanceRole", runtime.WithHTTPPathPattern("/v1/{role.name=environments/*/instances/*/roles/*}"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := local_request_InstanceRoleService_UpdateRole_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ resp, md, err := local_request_InstanceRoleService_UpdateInstanceRole_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 {@@ -543,11 +543,11 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.return}- forward_InstanceRoleService_UpdateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_UpdateInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("DELETE", pattern_InstanceRoleService_DeleteRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("DELETE", pattern_InstanceRoleService_DeleteInstanceRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()var stream runtime.ServerTransportStream@@ -555,12 +555,12 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)var err errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := local_request_InstanceRoleService_DeleteRole_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ resp, md, err := local_request_InstanceRoleService_DeleteInstanceRole_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 {@@ -568,11 +568,11 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.return}- forward_InstanceRoleService_DeleteRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_DeleteInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("POST", pattern_InstanceRoleService_UndeleteRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("POST", pattern_InstanceRoleService_UndeleteInstanceRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()var stream runtime.ServerTransportStream@@ -580,12 +580,12 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)var err errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}:undelete"))+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}:undelete"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := local_request_InstanceRoleService_UndeleteRole_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ resp, md, err := local_request_InstanceRoleService_UndeleteInstanceRole_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 {@@ -593,7 +593,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.return}- forward_InstanceRoleService_UndeleteRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_UndeleteInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})@@ -638,135 +638,135 @@ func RegisterInstanceRoleServiceHandler(ctx context.Context, mux *runtime.ServeM// "InstanceRoleServiceClient" to call the correct interceptors.func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InstanceRoleServiceClient) error {- mux.Handle("GET", pattern_InstanceRoleService_GetRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("GET", pattern_InstanceRoleService_GetInstanceRole_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 errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := request_InstanceRoleService_GetRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ resp, md, err := request_InstanceRoleService_GetInstanceRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)if err != nil {runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)return}- forward_InstanceRoleService_GetRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_GetInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("GET", pattern_InstanceRoleService_ListRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("GET", pattern_InstanceRoleService_ListInstanceRoles_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 errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListRoles", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListInstanceRoles", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := request_InstanceRoleService_ListRoles_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ resp, md, err := request_InstanceRoleService_ListInstanceRoles_0(annotatedContext, inboundMarshaler, client, req, pathParams)annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)if err != nil {runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)return}- forward_InstanceRoleService_ListRoles_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_ListInstanceRoles_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("POST", pattern_InstanceRoleService_CreateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("POST", pattern_InstanceRoleService_CreateInstanceRole_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 errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateRole", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateInstanceRole", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := request_InstanceRoleService_CreateRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ resp, md, err := request_InstanceRoleService_CreateInstanceRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)if err != nil {runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)return}- forward_InstanceRoleService_CreateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_CreateInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("PATCH", pattern_InstanceRoleService_UpdateRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("PATCH", pattern_InstanceRoleService_UpdateInstanceRole_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 errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateRole", runtime.WithHTTPPathPattern("/v1/{role.name=environments/*/instances/*/roles/*}"))+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateInstanceRole", runtime.WithHTTPPathPattern("/v1/{role.name=environments/*/instances/*/roles/*}"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := request_InstanceRoleService_UpdateRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ resp, md, err := request_InstanceRoleService_UpdateInstanceRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)if err != nil {runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)return}- forward_InstanceRoleService_UpdateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_UpdateInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("DELETE", pattern_InstanceRoleService_DeleteRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("DELETE", pattern_InstanceRoleService_DeleteInstanceRole_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 errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := request_InstanceRoleService_DeleteRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ resp, md, err := request_InstanceRoleService_DeleteInstanceRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)if err != nil {runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)return}- forward_InstanceRoleService_DeleteRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_DeleteInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle("POST", pattern_InstanceRoleService_UndeleteRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ mux.Handle("POST", pattern_InstanceRoleService_UndeleteInstanceRole_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 errorvar annotatedContext context.Context- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}:undelete"))+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}:undelete"))if err != nil {runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)return}- resp, md, err := request_InstanceRoleService_UndeleteRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ resp, md, err := request_InstanceRoleService_UndeleteInstanceRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)if err != nil {runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)return}- forward_InstanceRoleService_UndeleteRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)+ forward_InstanceRoleService_UndeleteInstanceRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})@@ -774,29 +774,29 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.}var (- pattern_InstanceRoleService_GetRole_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", "environments", "instances", "roles", "name"}, ""))+ pattern_InstanceRoleService_GetInstanceRole_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", "environments", "instances", "roles", "name"}, ""))- pattern_InstanceRoleService_ListRoles_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", "environments", "instances", "parent", "roles"}, ""))+ pattern_InstanceRoleService_ListInstanceRoles_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", "environments", "instances", "parent", "roles"}, ""))- pattern_InstanceRoleService_CreateRole_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", "environments", "instances", "parent", "roles"}, ""))+ pattern_InstanceRoleService_CreateInstanceRole_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", "environments", "instances", "parent", "roles"}, ""))- pattern_InstanceRoleService_UpdateRole_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", "environments", "instances", "roles", "role.name"}, ""))+ pattern_InstanceRoleService_UpdateInstanceRole_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", "environments", "instances", "roles", "role.name"}, ""))- pattern_InstanceRoleService_DeleteRole_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", "environments", "instances", "roles", "name"}, ""))+ pattern_InstanceRoleService_DeleteInstanceRole_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", "environments", "instances", "roles", "name"}, ""))- pattern_InstanceRoleService_UndeleteRole_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", "environments", "instances", "roles", "name"}, "undelete"))+ pattern_InstanceRoleService_UndeleteInstanceRole_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", "environments", "instances", "roles", "name"}, "undelete")))var (- forward_InstanceRoleService_GetRole_0 = runtime.ForwardResponseMessage+ forward_InstanceRoleService_GetInstanceRole_0 = runtime.ForwardResponseMessage- forward_InstanceRoleService_ListRoles_0 = runtime.ForwardResponseMessage+ forward_InstanceRoleService_ListInstanceRoles_0 = runtime.ForwardResponseMessage- forward_InstanceRoleService_CreateRole_0 = runtime.ForwardResponseMessage+ forward_InstanceRoleService_CreateInstanceRole_0 = runtime.ForwardResponseMessage- forward_InstanceRoleService_UpdateRole_0 = runtime.ForwardResponseMessage+ forward_InstanceRoleService_UpdateInstanceRole_0 = runtime.ForwardResponseMessage- forward_InstanceRoleService_DeleteRole_0 = runtime.ForwardResponseMessage+ forward_InstanceRoleService_DeleteInstanceRole_0 = runtime.ForwardResponseMessage- forward_InstanceRoleService_UndeleteRole_0 = runtime.ForwardResponseMessage+ forward_InstanceRoleService_UndeleteInstanceRole_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/instance_role_service_grpc.pb.go b/proto/generated-go/v1/instance_role_service_grpc.pb.goindex c4dc3fd202..30e8cfcdcc 100644--- a/proto/generated-go/v1/instance_role_service_grpc.pb.go+++ b/proto/generated-go/v1/instance_role_service_grpc.pb.go@@ -20,24 +20,24 @@ import (const _ = grpc.SupportPackageIsVersion7const (- InstanceRoleService_GetRole_FullMethodName = "/bytebase.v1.InstanceRoleService/GetRole"- InstanceRoleService_ListRoles_FullMethodName = "/bytebase.v1.InstanceRoleService/ListRoles"- InstanceRoleService_CreateRole_FullMethodName = "/bytebase.v1.InstanceRoleService/CreateRole"- InstanceRoleService_UpdateRole_FullMethodName = "/bytebase.v1.InstanceRoleService/UpdateRole"- InstanceRoleService_DeleteRole_FullMethodName = "/bytebase.v1.InstanceRoleService/DeleteRole"- InstanceRoleService_UndeleteRole_FullMethodName = "/bytebase.v1.InstanceRoleService/UndeleteRole"+ InstanceRoleService_GetInstanceRole_FullMethodName = "/bytebase.v1.InstanceRoleService/GetInstanceRole"+ InstanceRoleService_ListInstanceRoles_FullMethodName = "/bytebase.v1.InstanceRoleService/ListInstanceRoles"+ InstanceRoleService_CreateInstanceRole_FullMethodName = "/bytebase.v1.InstanceRoleService/CreateInstanceRole"+ InstanceRoleService_UpdateInstanceRole_FullMethodName = "/bytebase.v1.InstanceRoleService/UpdateInstanceRole"+ InstanceRoleService_DeleteInstanceRole_FullMethodName = "/bytebase.v1.InstanceRoleService/DeleteInstanceRole"+ InstanceRoleService_UndeleteInstanceRole_FullMethodName = "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole")// InstanceRoleServiceClient is the client API for InstanceRoleService service.//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.type InstanceRoleServiceClient interface {- GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)- ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error)- CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)- UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)- DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)- UndeleteRole(ctx context.Context, in *UndeleteRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)+ GetInstanceRole(ctx context.Context, in *GetInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)+ ListInstanceRoles(ctx context.Context, in *ListInstanceRolesRequest, opts ...grpc.CallOption) (*ListInstanceRolesResponse, error)+ CreateInstanceRole(ctx context.Context, in *CreateInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)+ UpdateInstanceRole(ctx context.Context, in *UpdateInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)+ DeleteInstanceRole(ctx context.Context, in *DeleteInstanceRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)+ UndeleteInstanceRole(ctx context.Context, in *UndeleteInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error)}type instanceRoleServiceClient struct {@@ -48,54 +48,54 @@ func NewInstanceRoleServiceClient(cc grpc.ClientConnInterface) InstanceRoleServireturn &instanceRoleServiceClient{cc}}-func (c *instanceRoleServiceClient) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {+func (c *instanceRoleServiceClient) GetInstanceRole(ctx context.Context, in *GetInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {out := new(InstanceRole)- err := c.cc.Invoke(ctx, InstanceRoleService_GetRole_FullMethodName, in, out, opts...)+ err := c.cc.Invoke(ctx, InstanceRoleService_GetInstanceRole_FullMethodName, in, out, opts...)if err != nil {return nil, err}return out, nil}-func (c *instanceRoleServiceClient) ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) {- out := new(ListRolesResponse)- err := c.cc.Invoke(ctx, InstanceRoleService_ListRoles_FullMethodName, in, out, opts...)+func (c *instanceRoleServiceClient) ListInstanceRoles(ctx context.Context, in *ListInstanceRolesRequest, opts ...grpc.CallOption) (*ListInstanceRolesResponse, error) {+ out := new(ListInstanceRolesResponse)+ err := c.cc.Invoke(ctx, InstanceRoleService_ListInstanceRoles_FullMethodName, in, out, opts...)if err != nil {return nil, err}return out, nil}-func (c *instanceRoleServiceClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {+func (c *instanceRoleServiceClient) CreateInstanceRole(ctx context.Context, in *CreateInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {out := new(InstanceRole)- err := c.cc.Invoke(ctx, InstanceRoleService_CreateRole_FullMethodName, in, out, opts...)+ err := c.cc.Invoke(ctx, InstanceRoleService_CreateInstanceRole_FullMethodName, in, out, opts...)if err != nil {return nil, err}return out, nil}-func (c *instanceRoleServiceClient) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {+func (c *instanceRoleServiceClient) UpdateInstanceRole(ctx context.Context, in *UpdateInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {out := new(InstanceRole)- err := c.cc.Invoke(ctx, InstanceRoleService_UpdateRole_FullMethodName, in, out, opts...)+ err := c.cc.Invoke(ctx, InstanceRoleService_UpdateInstanceRole_FullMethodName, in, out, opts...)if err != nil {return nil, err}return out, nil}-func (c *instanceRoleServiceClient) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {+func (c *instanceRoleServiceClient) DeleteInstanceRole(ctx context.Context, in *DeleteInstanceRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {out := new(emptypb.Empty)- err := c.cc.Invoke(ctx, InstanceRoleService_DeleteRole_FullMethodName, in, out, opts...)+ err := c.cc.Invoke(ctx, InstanceRoleService_DeleteInstanceRole_FullMethodName, in, out, opts...)if err != nil {return nil, err}return out, nil}-func (c *instanceRoleServiceClient) UndeleteRole(ctx context.Context, in *UndeleteRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {+func (c *instanceRoleServiceClient) UndeleteInstanceRole(ctx context.Context, in *UndeleteInstanceRoleRequest, opts ...grpc.CallOption) (*InstanceRole, error) {out := new(InstanceRole)- err := c.cc.Invoke(ctx, InstanceRoleService_UndeleteRole_FullMethodName, in, out, opts...)+ err := c.cc.Invoke(ctx, InstanceRoleService_UndeleteInstanceRole_FullMethodName, in, out, opts...)if err != nil {return nil, err}@@ -106,12 +106,12 @@ func (c *instanceRoleServiceClient) UndeleteRole(ctx context.Context, in *Undele// All implementations must embed UnimplementedInstanceRoleServiceServer// for forward compatibilitytype InstanceRoleServiceServer interface {- GetRole(context.Context, *GetRoleRequest) (*InstanceRole, error)- ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)- CreateRole(context.Context, *CreateRoleRequest) (*InstanceRole, error)- UpdateRole(context.Context, *UpdateRoleRequest) (*InstanceRole, error)- DeleteRole(context.Context, *DeleteRoleRequest) (*emptypb.Empty, error)- UndeleteRole(context.Context, *UndeleteRoleRequest) (*InstanceRole, error)+ GetInstanceRole(context.Context, *GetInstanceRoleRequest) (*InstanceRole, error)+ ListInstanceRoles(context.Context, *ListInstanceRolesRequest) (*ListInstanceRolesResponse, error)+ CreateInstanceRole(context.Context, *CreateInstanceRoleRequest) (*InstanceRole, error)+ UpdateInstanceRole(context.Context, *UpdateInstanceRoleRequest) (*InstanceRole, error)+ DeleteInstanceRole(context.Context, *DeleteInstanceRoleRequest) (*emptypb.Empty, error)+ UndeleteInstanceRole(context.Context, *UndeleteInstanceRoleRequest) (*InstanceRole, error)mustEmbedUnimplementedInstanceRoleServiceServer()}@@ -119,23 +119,23 @@ type InstanceRoleServiceServer interface {type UnimplementedInstanceRoleServiceServer struct {}-func (UnimplementedInstanceRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*InstanceRole, error) {- return nil, status.Errorf(codes.Unimplemented, "method GetRole not implemented")+func (UnimplementedInstanceRoleServiceServer) GetInstanceRole(context.Context, *GetInstanceRoleRequest) (*InstanceRole, error) {+ return nil, status.Errorf(codes.Unimplemented, "method GetInstanceRole not implemented")}-func (UnimplementedInstanceRoleServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) {- return nil, status.Errorf(codes.Unimplemented, "method ListRoles not implemented")+func (UnimplementedInstanceRoleServiceServer) ListInstanceRoles(context.Context, *ListInstanceRolesRequest) (*ListInstanceRolesResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListInstanceRoles not implemented")}-func (UnimplementedInstanceRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*InstanceRole, error) {- return nil, status.Errorf(codes.Unimplemented, "method CreateRole not implemented")+func (UnimplementedInstanceRoleServiceServer) CreateInstanceRole(context.Context, *CreateInstanceRoleRequest) (*InstanceRole, error) {+ return nil, status.Errorf(codes.Unimplemented, "method CreateInstanceRole not implemented")}-func (UnimplementedInstanceRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*InstanceRole, error) {- return nil, status.Errorf(codes.Unimplemented, "method UpdateRole not implemented")+func (UnimplementedInstanceRoleServiceServer) UpdateInstanceRole(context.Context, *UpdateInstanceRoleRequest) (*InstanceRole, error) {+ return nil, status.Errorf(codes.Unimplemented, "method UpdateInstanceRole not implemented")}-func (UnimplementedInstanceRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*emptypb.Empty, error) {- return nil, status.Errorf(codes.Unimplemented, "method DeleteRole not implemented")+func (UnimplementedInstanceRoleServiceServer) DeleteInstanceRole(context.Context, *DeleteInstanceRoleRequest) (*emptypb.Empty, error) {+ return nil, status.Errorf(codes.Unimplemented, "method DeleteInstanceRole not implemented")}-func (UnimplementedInstanceRoleServiceServer) UndeleteRole(context.Context, *UndeleteRoleRequest) (*InstanceRole, error) {- return nil, status.Errorf(codes.Unimplemented, "method UndeleteRole not implemented")+func (UnimplementedInstanceRoleServiceServer) UndeleteInstanceRole(context.Context, *UndeleteInstanceRoleRequest) (*InstanceRole, error) {+ return nil, status.Errorf(codes.Unimplemented, "method UndeleteInstanceRole not implemented")}func (UnimplementedInstanceRoleServiceServer) mustEmbedUnimplementedInstanceRoleServiceServer() {}@@ -150,110 +150,110 @@ func RegisterInstanceRoleServiceServer(s grpc.ServiceRegistrar, srv InstanceRoles.RegisterService(&InstanceRoleService_ServiceDesc, srv)}-func _InstanceRoleService_GetRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(GetRoleRequest)+func _InstanceRoleService_GetInstanceRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(GetInstanceRoleRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(InstanceRoleServiceServer).GetRole(ctx, in)+ return srv.(InstanceRoleServiceServer).GetInstanceRole(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: InstanceRoleService_GetRole_FullMethodName,+ FullMethod: InstanceRoleService_GetInstanceRole_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(InstanceRoleServiceServer).GetRole(ctx, req.(*GetRoleRequest))+ return srv.(InstanceRoleServiceServer).GetInstanceRole(ctx, req.(*GetInstanceRoleRequest))}return interceptor(ctx, in, info, handler)}-func _InstanceRoleService_ListRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(ListRolesRequest)+func _InstanceRoleService_ListInstanceRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListInstanceRolesRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(InstanceRoleServiceServer).ListRoles(ctx, in)+ return srv.(InstanceRoleServiceServer).ListInstanceRoles(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: InstanceRoleService_ListRoles_FullMethodName,+ FullMethod: InstanceRoleService_ListInstanceRoles_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(InstanceRoleServiceServer).ListRoles(ctx, req.(*ListRolesRequest))+ return srv.(InstanceRoleServiceServer).ListInstanceRoles(ctx, req.(*ListInstanceRolesRequest))}return interceptor(ctx, in, info, handler)}-func _InstanceRoleService_CreateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(CreateRoleRequest)+func _InstanceRoleService_CreateInstanceRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(CreateInstanceRoleRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(InstanceRoleServiceServer).CreateRole(ctx, in)+ return srv.(InstanceRoleServiceServer).CreateInstanceRole(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: InstanceRoleService_CreateRole_FullMethodName,+ FullMethod: InstanceRoleService_CreateInstanceRole_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(InstanceRoleServiceServer).CreateRole(ctx, req.(*CreateRoleRequest))+ return srv.(InstanceRoleServiceServer).CreateInstanceRole(ctx, req.(*CreateInstanceRoleRequest))}return interceptor(ctx, in, info, handler)}-func _InstanceRoleService_UpdateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UpdateRoleRequest)+func _InstanceRoleService_UpdateInstanceRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(UpdateInstanceRoleRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(InstanceRoleServiceServer).UpdateRole(ctx, in)+ return srv.(InstanceRoleServiceServer).UpdateInstanceRole(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: InstanceRoleService_UpdateRole_FullMethodName,+ FullMethod: InstanceRoleService_UpdateInstanceRole_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(InstanceRoleServiceServer).UpdateRole(ctx, req.(*UpdateRoleRequest))+ return srv.(InstanceRoleServiceServer).UpdateInstanceRole(ctx, req.(*UpdateInstanceRoleRequest))}return interceptor(ctx, in, info, handler)}-func _InstanceRoleService_DeleteRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(DeleteRoleRequest)+func _InstanceRoleService_DeleteInstanceRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(DeleteInstanceRoleRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(InstanceRoleServiceServer).DeleteRole(ctx, in)+ return srv.(InstanceRoleServiceServer).DeleteInstanceRole(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: InstanceRoleService_DeleteRole_FullMethodName,+ FullMethod: InstanceRoleService_DeleteInstanceRole_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(InstanceRoleServiceServer).DeleteRole(ctx, req.(*DeleteRoleRequest))+ return srv.(InstanceRoleServiceServer).DeleteInstanceRole(ctx, req.(*DeleteInstanceRoleRequest))}return interceptor(ctx, in, info, handler)}-func _InstanceRoleService_UndeleteRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(UndeleteRoleRequest)+func _InstanceRoleService_UndeleteInstanceRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(UndeleteInstanceRoleRequest)if err := dec(in); err != nil {return nil, err}if interceptor == nil {- return srv.(InstanceRoleServiceServer).UndeleteRole(ctx, in)+ return srv.(InstanceRoleServiceServer).UndeleteInstanceRole(ctx, in)}info := &grpc.UnaryServerInfo{Server: srv,- FullMethod: InstanceRoleService_UndeleteRole_FullMethodName,+ FullMethod: InstanceRoleService_UndeleteInstanceRole_FullMethodName,}handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(InstanceRoleServiceServer).UndeleteRole(ctx, req.(*UndeleteRoleRequest))+ return srv.(InstanceRoleServiceServer).UndeleteInstanceRole(ctx, req.(*UndeleteInstanceRoleRequest))}return interceptor(ctx, in, info, handler)}@@ -266,28 +266,28 @@ var InstanceRoleService_ServiceDesc = grpc.ServiceDesc{HandlerType: (*InstanceRoleServiceServer)(nil),Methods: []grpc.MethodDesc{{- MethodName: "GetRole",- Handler: _InstanceRoleService_GetRole_Handler,+ MethodName: "GetInstanceRole",+ Handler: _InstanceRoleService_GetInstanceRole_Handler,},{- MethodName: "ListRoles",- Handler: _InstanceRoleService_ListRoles_Handler,+ MethodName: "ListInstanceRoles",+ Handler: _InstanceRoleService_ListInstanceRoles_Handler,},{- MethodName: "CreateRole",- Handler: _InstanceRoleService_CreateRole_Handler,+ MethodName: "CreateInstanceRole",+ Handler: _InstanceRoleService_CreateInstanceRole_Handler,},{- MethodName: "UpdateRole",- Handler: _InstanceRoleService_UpdateRole_Handler,+ MethodName: "UpdateInstanceRole",+ Handler: _InstanceRoleService_UpdateInstanceRole_Handler,},{- MethodName: "DeleteRole",- Handler: _InstanceRoleService_DeleteRole_Handler,+ MethodName: "DeleteInstanceRole",+ Handler: _InstanceRoleService_DeleteInstanceRole_Handler,},{- MethodName: "UndeleteRole",- Handler: _InstanceRoleService_UndeleteRole_Handler,+ MethodName: "UndeleteInstanceRole",+ Handler: _InstanceRoleService_UndeleteInstanceRole_Handler,},},Streams: []grpc.StreamDesc{},diff --git a/proto/generated-go/v1/role_service.pb.go b/proto/generated-go/v1/role_service.pb.gonew file mode 100644index 0000000000..cbd6bd894b--- /dev/null+++ b/proto/generated-go/v1/role_service.pb.go@@ -0,0 +1,590 @@+// Code generated by protoc-gen-go. DO NOT EDIT.+// versions:+// protoc-gen-go v1.30.0+// protoc (unknown)+// source: v1/role_service.proto++package v1++import (+ _ "google.golang.org/genproto/googleapis/api/annotations"+ protoreflect "google.golang.org/protobuf/reflect/protoreflect"+ protoimpl "google.golang.org/protobuf/runtime/protoimpl"+ emptypb "google.golang.org/protobuf/types/known/emptypb"+ fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"+ _ "google.golang.org/protobuf/types/known/timestamppb"+ reflect "reflect"+ sync "sync"+)++const (+ // Verify that this generated code is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)+ // Verify that runtime/protoimpl is sufficiently up-to-date.+ _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)+)++type ListRolesRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The maximum number of roles to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 reviews will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`+ // A page token, received from a previous `ListRoles` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListRoles` must match+ // the call that provided the page token.+ PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`+}++func (x *ListRolesRequest) Reset() {+ *x = ListRolesRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_role_service_proto_msgTypes[0]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListRolesRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListRolesRequest) ProtoMessage() {}++func (x *ListRolesRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_role_service_proto_msgTypes[0]+ 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 ListRolesRequest.ProtoReflect.Descriptor instead.+func (*ListRolesRequest) Descriptor() ([]byte, []int) {+ return file_v1_role_service_proto_rawDescGZIP(), []int{0}+}++func (x *ListRolesRequest) GetPageSize() int32 {+ if x != nil {+ return x.PageSize+ }+ return 0+}++func (x *ListRolesRequest) GetPageToken() string {+ if x != nil {+ return x.PageToken+ }+ return ""+}++type ListRolesResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`+ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`+}++func (x *ListRolesResponse) Reset() {+ *x = ListRolesResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_role_service_proto_msgTypes[1]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *ListRolesResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ListRolesResponse) ProtoMessage() {}++func (x *ListRolesResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_role_service_proto_msgTypes[1]+ 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 ListRolesResponse.ProtoReflect.Descriptor instead.+func (*ListRolesResponse) Descriptor() ([]byte, []int) {+ return file_v1_role_service_proto_rawDescGZIP(), []int{1}+}++func (x *ListRolesResponse) GetRoles() []*Role {+ if x != nil {+ return x.Roles+ }+ return nil+}++func (x *ListRolesResponse) GetNextPageToken() string {+ if x != nil {+ return x.NextPageToken+ }+ return ""+}++type CreateRoleRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`+ // The ID to use for the role, which will become the final component+ // of the role's resource name.+ //+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][A-Z][0-9]/.+ RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`+}++func (x *CreateRoleRequest) Reset() {+ *x = CreateRoleRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_role_service_proto_msgTypes[2]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *CreateRoleRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*CreateRoleRequest) ProtoMessage() {}++func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_role_service_proto_msgTypes[2]+ 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 CreateRoleRequest.ProtoReflect.Descriptor instead.+func (*CreateRoleRequest) Descriptor() ([]byte, []int) {+ return file_v1_role_service_proto_rawDescGZIP(), []int{2}+}++func (x *CreateRoleRequest) GetRole() *Role {+ if x != nil {+ return x.Role+ }+ return nil+}++func (x *CreateRoleRequest) GetRoleId() string {+ if x != nil {+ return x.RoleId+ }+ return ""+}++type UpdateRoleRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`+ UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`+}++func (x *UpdateRoleRequest) Reset() {+ *x = UpdateRoleRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_role_service_proto_msgTypes[3]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *UpdateRoleRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*UpdateRoleRequest) ProtoMessage() {}++func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_role_service_proto_msgTypes[3]+ 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 UpdateRoleRequest.ProtoReflect.Descriptor instead.+func (*UpdateRoleRequest) Descriptor() ([]byte, []int) {+ return file_v1_role_service_proto_rawDescGZIP(), []int{3}+}++func (x *UpdateRoleRequest) GetRole() *Role {+ if x != nil {+ return x.Role+ }+ return nil+}++func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask {+ if x != nil {+ return x.UpdateMask+ }+ return nil+}++type DeleteRoleRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: roles/{role}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+}++func (x *DeleteRoleRequest) Reset() {+ *x = DeleteRoleRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_role_service_proto_msgTypes[4]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DeleteRoleRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DeleteRoleRequest) ProtoMessage() {}++func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_role_service_proto_msgTypes[4]+ 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 DeleteRoleRequest.ProtoReflect.Descriptor instead.+func (*DeleteRoleRequest) Descriptor() ([]byte, []int) {+ return file_v1_role_service_proto_rawDescGZIP(), []int{4}+}++func (x *DeleteRoleRequest) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++type Role struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // Format: roles/{role}+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`+}++func (x *Role) Reset() {+ *x = Role{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_role_service_proto_msgTypes[5]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *Role) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*Role) ProtoMessage() {}++func (x *Role) ProtoReflect() protoreflect.Message {+ mi := &file_v1_role_service_proto_msgTypes[5]+ 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 Role.ProtoReflect.Descriptor instead.+func (*Role) Descriptor() ([]byte, []int) {+ return file_v1_role_service_proto_rawDescGZIP(), []int{5}+}++func (x *Role) GetName() string {+ if x != nil {+ return x.Name+ }+ return ""+}++func (x *Role) GetDescription() string {+ if x != nil {+ return x.Description+ }+ return ""+}++var File_v1_role_service_proto protoreflect.FileDescriptor++var file_v1_role_service_proto_rawDesc = []byte{+ 0x0a, 0x15, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,+ 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63,+ 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,+ 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,+ 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,+ 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,+ 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,+ 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65,+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,+ 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67,+ 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54,+ 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65,+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f,+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78,+ 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5d, 0x0a, 0x11, 0x43, 0x72,+ 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x2a, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65,+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x07, 0x72,+ 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x77, 0x0a, 0x11, 0x55, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25,+ 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x52,+ 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,+ 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,+ 0x73, 0x6b, 0x22, 0x27, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3c, 0x0a, 0x04, 0x52,+ 0x6f, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xaa, 0x03, 0x0a, 0x0b, 0x52, 0x6f,+ 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5d, 0x0a, 0x09, 0x4c, 0x69, 0x73,+ 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73,+ 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f,+ 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61,+ 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x17, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x11, 0x3a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x6f, 0x6c,+ 0x65, 0x73, 0x12, 0x79, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65,+ 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x1a, 0x11, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52,+ 0x6f, 0x6c, 0x65, 0x22, 0x38, 0xda, 0x41, 0x10, 0x72, 0x6f, 0x6c, 0x65, 0x2c, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x04,+ 0x72, 0x6f, 0x6c, 0x65, 0x32, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x65, 0x2e,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x67, 0x0a,+ 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,+ 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,+ 0x70, 0x74, 0x79, 0x22, 0x21, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x72, 0x6f,+ 0x6c, 0x65, 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 (+ file_v1_role_service_proto_rawDescOnce sync.Once+ file_v1_role_service_proto_rawDescData = file_v1_role_service_proto_rawDesc+)++func file_v1_role_service_proto_rawDescGZIP() []byte {+ file_v1_role_service_proto_rawDescOnce.Do(func() {+ file_v1_role_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_v1_role_service_proto_rawDescData)+ })+ return file_v1_role_service_proto_rawDescData+}++var file_v1_role_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6)+var file_v1_role_service_proto_goTypes = []interface{}{+ (*ListRolesRequest)(nil), // 0: bytebase.v1.ListRolesRequest+ (*ListRolesResponse)(nil), // 1: bytebase.v1.ListRolesResponse+ (*CreateRoleRequest)(nil), // 2: bytebase.v1.CreateRoleRequest+ (*UpdateRoleRequest)(nil), // 3: bytebase.v1.UpdateRoleRequest+ (*DeleteRoleRequest)(nil), // 4: bytebase.v1.DeleteRoleRequest+ (*Role)(nil), // 5: bytebase.v1.Role+ (*fieldmaskpb.FieldMask)(nil), // 6: google.protobuf.FieldMask+ (*emptypb.Empty)(nil), // 7: google.protobuf.Empty+}+var file_v1_role_service_proto_depIdxs = []int32{+ 5, // 0: bytebase.v1.ListRolesResponse.roles:type_name -> bytebase.v1.Role+ 5, // 1: bytebase.v1.CreateRoleRequest.role:type_name -> bytebase.v1.Role+ 5, // 2: bytebase.v1.UpdateRoleRequest.role:type_name -> bytebase.v1.Role+ 6, // 3: bytebase.v1.UpdateRoleRequest.update_mask:type_name -> google.protobuf.FieldMask+ 0, // 4: bytebase.v1.RoleService.ListRoles:input_type -> bytebase.v1.ListRolesRequest+ 2, // 5: bytebase.v1.RoleService.CreateRole:input_type -> bytebase.v1.CreateRoleRequest+ 3, // 6: bytebase.v1.RoleService.UpdateRole:input_type -> bytebase.v1.UpdateRoleRequest+ 4, // 7: bytebase.v1.RoleService.DeleteRole:input_type -> bytebase.v1.DeleteRoleRequest+ 1, // 8: bytebase.v1.RoleService.ListRoles:output_type -> bytebase.v1.ListRolesResponse+ 5, // 9: bytebase.v1.RoleService.CreateRole:output_type -> bytebase.v1.Role+ 5, // 10: bytebase.v1.RoleService.UpdateRole:output_type -> bytebase.v1.Role+ 7, // 11: bytebase.v1.RoleService.DeleteRole:output_type -> google.protobuf.Empty+ 8, // [8:12] is the sub-list for method output_type+ 4, // [4:8] is the sub-list for method input_type+ 4, // [4:4] is the sub-list for extension type_name+ 4, // [4:4] is the sub-list for extension extendee+ 0, // [0:4] is the sub-list for field type_name+}++func init() { file_v1_role_service_proto_init() }+func file_v1_role_service_proto_init() {+ if File_v1_role_service_proto != nil {+ return+ }+ file_v1_common_proto_init()+ if !protoimpl.UnsafeEnabled {+ file_v1_role_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListRolesRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_role_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ListRolesResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_role_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*CreateRoleRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_role_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*UpdateRoleRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_role_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DeleteRoleRequest); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_role_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*Role); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ }+ type x struct{}+ out := protoimpl.TypeBuilder{+ File: protoimpl.DescBuilder{+ GoPackagePath: reflect.TypeOf(x{}).PkgPath(),+ RawDescriptor: file_v1_role_service_proto_rawDesc,+ NumEnums: 0,+ NumMessages: 6,+ NumExtensions: 0,+ NumServices: 1,+ },+ GoTypes: file_v1_role_service_proto_goTypes,+ DependencyIndexes: file_v1_role_service_proto_depIdxs,+ MessageInfos: file_v1_role_service_proto_msgTypes,+ }.Build()+ File_v1_role_service_proto = out.File+ file_v1_role_service_proto_rawDesc = nil+ file_v1_role_service_proto_goTypes = nil+ file_v1_role_service_proto_depIdxs = nil+}diff --git a/proto/generated-go/v1/role_service.pb.gw.go b/proto/generated-go/v1/role_service.pb.gw.gonew file mode 100644index 0000000000..8e381caad2--- /dev/null+++ b/proto/generated-go/v1/role_service.pb.gw.go@@ -0,0 +1,530 @@+// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.+// source: v1/role_service.proto++/*+Package v1 is a reverse proxy.++It translates gRPC into RESTful JSON APIs.+*/+package v1++import (+ "context"+ "io"+ "net/http"++ "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"+ "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"+ "google.golang.org/grpc"+ "google.golang.org/grpc/codes"+ "google.golang.org/grpc/grpclog"+ "google.golang.org/grpc/metadata"+ "google.golang.org/grpc/status"+ "google.golang.org/protobuf/proto"+)++// Suppress "imported and not used" errors+var _ codes.Code+var _ io.Reader+var _ status.Status+var _ = runtime.String+var _ = utilities.NewDoubleArray+var _ = metadata.Join++var (+ filter_RoleService_ListRoles_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}+)++func request_RoleService_ListRoles_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListRolesRequest+ var metadata runtime.ServerMetadata++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RoleService_ListRoles_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.ListRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RoleService_ListRoles_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ListRolesRequest+ var metadata runtime.ServerMetadata++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RoleService_ListRoles_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.ListRoles(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_RoleService_CreateRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"role": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}+)++func request_RoleService_CreateRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreateRoleRequest+ 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.Role); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RoleService_CreateRole_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.CreateRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RoleService_CreateRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq CreateRoleRequest+ 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.Role); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ if err := req.ParseForm(); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }+ if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_RoleService_CreateRole_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.CreateRole(ctx, &protoReq)+ return msg, metadata, err++}++var (+ filter_RoleService_UpdateRole_0 = &utilities.DoubleArray{Encoding: map[string]int{"role": 0, "name": 1}, Base: []int{1, 4, 5, 2, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 4, 2, 2, 3}}+)++func request_RoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateRoleRequest+ 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.Role); 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.Role); 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["role.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "role.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "role.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "role.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_RoleService_UpdateRole_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.UpdateRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RoleService_UpdateRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq UpdateRoleRequest+ 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.Role); 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.Role); 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["role.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "role.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "role.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "role.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_RoleService_UpdateRole_0); err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.UpdateRole(ctx, &protoReq)+ return msg, metadata, err++}++func request_RoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, client RoleServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq DeleteRoleRequest+ 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.DeleteRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_RoleService_DeleteRole_0(ctx context.Context, marshaler runtime.Marshaler, server RoleServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq DeleteRoleRequest+ 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.DeleteRole(ctx, &protoReq)+ return msg, metadata, err++}++// RegisterRoleServiceHandlerServer registers the http handlers for service RoleService to "mux".+// UnaryRPC :call RoleServiceServer directly.+// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.+// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRoleServiceHandlerFromEndpoint instead.+func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoleServiceServer) error {++ mux.Handle("GET", pattern_RoleService_ListRoles_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.RoleService/ListRoles", runtime.WithHTTPPathPattern("/v1/roles"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RoleService_ListRoles_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_RoleService_ListRoles_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_RoleService_CreateRole_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.RoleService/CreateRole", runtime.WithHTTPPathPattern("/v1/roles"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RoleService_CreateRole_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_RoleService_CreateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_RoleService_UpdateRole_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.RoleService/UpdateRole", runtime.WithHTTPPathPattern("/v1/{role.name=roles/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RoleService_UpdateRole_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_RoleService_UpdateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("DELETE", pattern_RoleService_DeleteRole_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.RoleService/DeleteRole", runtime.WithHTTPPathPattern("/v1/{name=roles/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_RoleService_DeleteRole_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_RoleService_DeleteRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++// RegisterRoleServiceHandlerFromEndpoint is same as RegisterRoleServiceHandler but+// automatically dials to "endpoint" and closes the connection when "ctx" gets done.+func RegisterRoleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {+ conn, err := grpc.DialContext(ctx, endpoint, opts...)+ if err != nil {+ return err+ }+ defer func() {+ if err != nil {+ if cerr := conn.Close(); cerr != nil {+ grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ }+ return+ }+ go func() {+ <-ctx.Done()+ if cerr := conn.Close(); cerr != nil {+ grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)+ }+ }()+ }()++ return RegisterRoleServiceHandler(ctx, mux, conn)+}++// RegisterRoleServiceHandler registers the http handlers for service RoleService to "mux".+// The handlers forward requests to the grpc endpoint over "conn".+func RegisterRoleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {+ return RegisterRoleServiceHandlerClient(ctx, mux, NewRoleServiceClient(conn))+}++// RegisterRoleServiceHandlerClient registers the http handlers for service RoleService+// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RoleServiceClient".+// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RoleServiceClient"+// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in+// "RoleServiceClient" to call the correct interceptors.+func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoleServiceClient) error {++ mux.Handle("GET", pattern_RoleService_ListRoles_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.RoleService/ListRoles", runtime.WithHTTPPathPattern("/v1/roles"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RoleService_ListRoles_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RoleService_ListRoles_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("POST", pattern_RoleService_CreateRole_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.RoleService/CreateRole", runtime.WithHTTPPathPattern("/v1/roles"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RoleService_CreateRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RoleService_CreateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("PATCH", pattern_RoleService_UpdateRole_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.RoleService/UpdateRole", runtime.WithHTTPPathPattern("/v1/{role.name=roles/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RoleService_UpdateRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RoleService_UpdateRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ mux.Handle("DELETE", pattern_RoleService_DeleteRole_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.RoleService/DeleteRole", runtime.WithHTTPPathPattern("/v1/{name=roles/*}"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_RoleService_DeleteRole_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_RoleService_DeleteRole_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })++ return nil+}++var (+ pattern_RoleService_ListRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "roles"}, ""))++ pattern_RoleService_CreateRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "roles"}, ""))++ pattern_RoleService_UpdateRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "roles", "role.name"}, ""))++ pattern_RoleService_DeleteRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "roles", "name"}, ""))+)++var (+ forward_RoleService_ListRoles_0 = runtime.ForwardResponseMessage++ forward_RoleService_CreateRole_0 = runtime.ForwardResponseMessage++ forward_RoleService_UpdateRole_0 = runtime.ForwardResponseMessage++ forward_RoleService_DeleteRole_0 = runtime.ForwardResponseMessage+)diff --git a/proto/generated-go/v1/role_service_grpc.pb.go b/proto/generated-go/v1/role_service_grpc.pb.gonew file mode 100644index 0000000000..3f75410fd6--- /dev/null+++ b/proto/generated-go/v1/role_service_grpc.pb.go@@ -0,0 +1,221 @@+// Code generated by protoc-gen-go-grpc. DO NOT EDIT.+// versions:+// - protoc-gen-go-grpc v1.3.0+// - protoc (unknown)+// source: v1/role_service.proto++package v1++import (+ context "context"+ grpc "google.golang.org/grpc"+ codes "google.golang.org/grpc/codes"+ status "google.golang.org/grpc/status"+ emptypb "google.golang.org/protobuf/types/known/emptypb"+)++// This is a compile-time assertion to ensure that this generated file+// is compatible with the grpc package it is being compiled against.+// Requires gRPC-Go v1.32.0 or later.+const _ = grpc.SupportPackageIsVersion7++const (+ RoleService_ListRoles_FullMethodName = "/bytebase.v1.RoleService/ListRoles"+ RoleService_CreateRole_FullMethodName = "/bytebase.v1.RoleService/CreateRole"+ RoleService_UpdateRole_FullMethodName = "/bytebase.v1.RoleService/UpdateRole"+ RoleService_DeleteRole_FullMethodName = "/bytebase.v1.RoleService/DeleteRole"+)++// RoleServiceClient is the client API for RoleService service.+//+// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.+type RoleServiceClient interface {+ ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error)+ CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error)+ UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error)+ DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)+}++type roleServiceClient struct {+ cc grpc.ClientConnInterface+}++func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient {+ return &roleServiceClient{cc}+}++func (c *roleServiceClient) ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error) {+ out := new(ListRolesResponse)+ err := c.cc.Invoke(ctx, RoleService_ListRoles_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *roleServiceClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error) {+ out := new(Role)+ err := c.cc.Invoke(ctx, RoleService_CreateRole_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *roleServiceClient) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error) {+ out := new(Role)+ err := c.cc.Invoke(ctx, RoleService_UpdateRole_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++func (c *roleServiceClient) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {+ out := new(emptypb.Empty)+ err := c.cc.Invoke(ctx, RoleService_DeleteRole_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}++// RoleServiceServer is the server API for RoleService service.+// All implementations must embed UnimplementedRoleServiceServer+// for forward compatibility+type RoleServiceServer interface {+ ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)+ CreateRole(context.Context, *CreateRoleRequest) (*Role, error)+ UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error)+ DeleteRole(context.Context, *DeleteRoleRequest) (*emptypb.Empty, error)+ mustEmbedUnimplementedRoleServiceServer()+}++// UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.+type UnimplementedRoleServiceServer struct {+}++func (UnimplementedRoleServiceServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method ListRoles not implemented")+}+func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*Role, error) {+ return nil, status.Errorf(codes.Unimplemented, "method CreateRole not implemented")+}+func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error) {+ return nil, status.Errorf(codes.Unimplemented, "method UpdateRole not implemented")+}+func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*emptypb.Empty, error) {+ return nil, status.Errorf(codes.Unimplemented, "method DeleteRole not implemented")+}+func (UnimplementedRoleServiceServer) mustEmbedUnimplementedRoleServiceServer() {}++// UnsafeRoleServiceServer may be embedded to opt out of forward compatibility for this service.+// Use of this interface is not recommended, as added methods to RoleServiceServer will+// result in compilation errors.+type UnsafeRoleServiceServer interface {+ mustEmbedUnimplementedRoleServiceServer()+}++func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer) {+ s.RegisterService(&RoleService_ServiceDesc, srv)+}++func _RoleService_ListRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ListRolesRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RoleServiceServer).ListRoles(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RoleService_ListRoles_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RoleServiceServer).ListRoles(ctx, req.(*ListRolesRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _RoleService_CreateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(CreateRoleRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RoleServiceServer).CreateRole(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RoleService_CreateRole_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RoleServiceServer).CreateRole(ctx, req.(*CreateRoleRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _RoleService_UpdateRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(UpdateRoleRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RoleServiceServer).UpdateRole(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RoleService_UpdateRole_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RoleServiceServer).UpdateRole(ctx, req.(*UpdateRoleRequest))+ }+ return interceptor(ctx, in, info, handler)+}++func _RoleService_DeleteRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(DeleteRoleRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(RoleServiceServer).DeleteRole(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: RoleService_DeleteRole_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(RoleServiceServer).DeleteRole(ctx, req.(*DeleteRoleRequest))+ }+ return interceptor(ctx, in, info, handler)+}++// RoleService_ServiceDesc is the grpc.ServiceDesc for RoleService service.+// It's only intended for direct use with grpc.RegisterService,+// and not to be introspected or modified (even as a copy)+var RoleService_ServiceDesc = grpc.ServiceDesc{+ ServiceName: "bytebase.v1.RoleService",+ HandlerType: (*RoleServiceServer)(nil),+ Methods: []grpc.MethodDesc{+ {+ MethodName: "ListRoles",+ Handler: _RoleService_ListRoles_Handler,+ },+ {+ MethodName: "CreateRole",+ Handler: _RoleService_CreateRole_Handler,+ },+ {+ MethodName: "UpdateRole",+ Handler: _RoleService_UpdateRole_Handler,+ },+ {+ MethodName: "DeleteRole",+ Handler: _RoleService_DeleteRole_Handler,+ },+ },+ Streams: []grpc.StreamDesc{},+ Metadata: "v1/role_service.proto",+}diff --git a/proto/store/slow_query.proto b/proto/store/slow_query.protoindex 7898b34de8..1a7d57cdb8 100644--- a/proto/store/slow_query.proto+++ b/proto/store/slow_query.proto@@ -2,8 +2,8 @@ syntax = "proto3";package bytebase.store;-import "google/protobuf/timestamp.proto";import "google/protobuf/duration.proto";+import "google/protobuf/timestamp.proto";option go_package = "generated-go/store";@@ -17,13 +17,13 @@ message SlowQueryStatistics {message SlowQueryStatisticsItem {// sql_fingerprint is the fingerprint of the slow query.string sql_fingerprint = 1;-+// count is the number of slow queries with the same fingerprint.int32 count = 2;-+// latest_log_time is the time of the latest slow query with the same fingerprint.google.protobuf.Timestamp latest_log_time = 3;-+// samples are the details of the sample slow queries with the same fingerprint.repeated SlowQueryDetails samples = 4;}@@ -32,19 +32,19 @@ message SlowQueryStatisticsItem {message SlowQueryDetails {// start_time is the start time of the slow query.google.protobuf.Timestamp start_time = 1;-+// query_time is the query time of the slow query.google.protobuf.Duration query_time = 2;-+// lock_time is the lock time of the slow query.google.protobuf.Duration lock_time = 3;-+// rows_sent is the number of rows sent by the slow query.int32 rows_sent = 4;-+// rows_examined is the number of rows examined by the slow query.int32 rows_examined = 5;-+// sql_text is the SQL text of the slow query.string sql_text = 6;-}\ No newline at end of file+}diff --git a/proto/v1/actuator_service.proto b/proto/v1/actuator_service.protoindex 0c1bb78330..d529a09949 100644--- a/proto/v1/actuator_service.proto+++ b/proto/v1/actuator_service.proto@@ -17,9 +17,7 @@ service ActuatorService {}rpc DeleteCache(DeleteCacheRequest) returns (google.protobuf.Empty) {- option (google.api.http) = {- delete: "/v1/actuator/cache"- };+ option (google.api.http) = {delete: "/v1/actuator/cache"};}}diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.protoindex c78cc92918..d3abd9b788 100644--- a/proto/v1/database_service.proto+++ b/proto/v1/database_service.proto@@ -70,7 +70,7 @@ service DatabaseService {option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*/databases/*}/backups"};option (google.api.method_signature) = "parent";}-+rpc ListSlowQueries(ListSlowQueriesRequest) returns (ListSlowQueriesResponse) {option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*/databases/*}/slowQueries"};option (google.api.method_signature) = "parent";@@ -535,7 +535,7 @@ message ListSlowQueriesRequest {// ListSlowQueriesResponse is the response of listing slow query.message ListSlowQueriesResponse {// The slow query logs.- repeated SlowQueryLog slow_query_logs = 1;+ repeated SlowQueryLog slow_query_logs = 1;}// SlowQueryLog is the slow query log.@@ -543,44 +543,44 @@ message SlowQueryLog {// The resource of the slow query log.// The format is "environments/{environment}/instances/{instance}/databases/{database}".string resource = 1 [(google.api.field_behavior) = REQUIRED];-+// The project of the slow query log.// The format is "projects/{project}".string project = 2;-+// The statistics of the slow query log.- SlowQueryStatistics statistics = 3;+ SlowQueryStatistics statistics = 3;}// SlowQueryStatistics is the statistics of the slow query log.message SlowQueryStatistics {// The fingerprint of the slow query log.string sql_fingerprint = 1;-+// The count of the slow query log.int32 count = 2;-+// The latest log time of the slow query log.google.protobuf.Timestamp latest_log_time = 3;-+// The average query time of the slow query log.google.protobuf.Duration average_query_time = 4;-+// The nighty fifth percentile query time of the slow query log.google.protobuf.Duration nighty_fifth_percentile_query_time = 5;-+// The average rows sent of the slow query log.int32 average_rows_sent = 6;-+// The nighty fifth percentile rows sent of the slow query log.int32 nighty_fifth_percentile_rows_sent = 7;-+// The average rows examined of the slow query log.int32 average_rows_examined = 8;-+// The nighty fifth percentile rows examined of the slow query log.int32 nighty_fifth_percentile_rows_examined = 9;-+// Samples are details of the sample slow query logs with the same fingerprint.repeated SlowQueryDetails samples = 10;}@@ -589,19 +589,19 @@ message SlowQueryStatistics {message SlowQueryDetails {// The start time of the slow query log.google.protobuf.Timestamp start_time = 1;-+// The query time of the slow query log.google.protobuf.Duration query_time = 2;-+// The lock time of the slow query log.google.protobuf.Duration lock_time = 3;-+// The rows sent of the slow query log.int32 rows_sent = 4;-+// The rows examined of the slow query log.int32 rows_examined = 5;-+// The sql text of the slow query log.string sql_text = 6;}diff --git a/proto/v1/instance_role_service.proto b/proto/v1/instance_role_service.protoindex ae3266779d..b2e1a7c937 100644--- a/proto/v1/instance_role_service.proto+++ b/proto/v1/instance_role_service.proto@@ -12,17 +12,17 @@ import "v1/common.proto";option go_package = "generated-go/v1";service InstanceRoleService {- rpc GetRole(GetRoleRequest) returns (InstanceRole) {+ rpc GetInstanceRole(GetInstanceRoleRequest) returns (InstanceRole) {option (google.api.http) = {get: "/v1/{name=environments/*/instances/*/roles/*}"};option (google.api.method_signature) = "name";}- rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {+ rpc ListInstanceRoles(ListInstanceRolesRequest) returns (ListInstanceRolesResponse) {option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*}/roles"};option (google.api.method_signature) = "parent";}- rpc CreateRole(CreateRoleRequest) returns (InstanceRole) {+ rpc CreateInstanceRole(CreateInstanceRoleRequest) returns (InstanceRole) {option (google.api.http) = {post: "/v1/{parent=environments/*/instances/*}/roles"body: "role"@@ -30,7 +30,7 @@ service InstanceRoleService {option (google.api.method_signature) = "parent,role";}- rpc UpdateRole(UpdateRoleRequest) returns (InstanceRole) {+ rpc UpdateInstanceRole(UpdateInstanceRoleRequest) returns (InstanceRole) {option (google.api.http) = {patch: "/v1/{role.name=environments/*/instances/*/roles/*}"body: "role"@@ -38,12 +38,12 @@ service InstanceRoleService {option (google.api.method_signature) = "role,update_mask";}- rpc DeleteRole(DeleteRoleRequest) returns (google.protobuf.Empty) {+ rpc DeleteInstanceRole(DeleteInstanceRoleRequest) returns (google.protobuf.Empty) {option (google.api.http) = {delete: "/v1/{name=environments/*/instances/*/roles/*}"};option (google.api.method_signature) = "name";}- rpc UndeleteRole(UndeleteRoleRequest) returns (InstanceRole) {+ rpc UndeleteInstanceRole(UndeleteInstanceRoleRequest) returns (InstanceRole) {option (google.api.http) = {post: "/v1/{name=environments/*/instances/*/roles/*}:undelete"body: "*"@@ -51,14 +51,14 @@ service InstanceRoleService {}}-message GetRoleRequest {+message GetInstanceRoleRequest {// The name of the role to retrieve.// Format: environments/{environment}/instances/{instance}/roles/{role name}// The role name is the unique name for the role.string name = 1 [(google.api.field_behavior) = REQUIRED];}-message ListRolesRequest {+message ListInstanceRolesRequest {// The parent, which owns this collection of roles.// Format: environments/{environment}/instances/{instance}string parent = 1 [(google.api.field_behavior) = REQUIRED];@@ -77,7 +77,7 @@ message ListRolesRequest {string page_token = 3;}-message ListRolesResponse {+message ListInstanceRolesResponse {// The roles from the specified request.repeated InstanceRole roles = 1;@@ -86,7 +86,7 @@ message ListRolesResponse {string next_page_token = 2;}-message CreateRoleRequest {+message CreateInstanceRoleRequest {// The parent resource where this role will be created.// Format: environments/{environment}/instances/{instance}string parent = 1 [(google.api.field_behavior) = REQUIRED];@@ -95,7 +95,7 @@ message CreateRoleRequest {InstanceRole role = 2 [(google.api.field_behavior) = REQUIRED];}-message UpdateRoleRequest {+message UpdateInstanceRoleRequest {// The role to update.//// The role's `name`, `environment` and `instance` field is used to identify the role to update.@@ -106,13 +106,13 @@ message UpdateRoleRequest {google.protobuf.FieldMask update_mask = 2;}-message DeleteRoleRequest {+message DeleteInstanceRoleRequest {// The name of the role to delete.// Format: environments/{environment}/instances/{instance}/roles/{role name}string name = 1 [(google.api.field_behavior) = REQUIRED];}-message UndeleteRoleRequest {+message UndeleteInstanceRoleRequest {// The name of the deleted role.// Format: environments/{environment}/instances/{instance}/roles/{role name}string name = 1 [(google.api.field_behavior) = REQUIRED];diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.protoindex a955d007f2..f438f04092 100644--- a/proto/v1/instance_service.proto+++ b/proto/v1/instance_service.proto@@ -70,7 +70,7 @@ service InstanceService {body: "*"};}-+rpc SyncSlowQueries(SyncSlowQueriesRequest) returns (google.protobuf.Empty) {option (google.api.http) = {post: "/v1/{instance=environments/*/instances/*}:syncSlowQueries"diff --git a/proto/v1/role_service.proto b/proto/v1/role_service.protonew file mode 100644index 0000000000..77e7b1695f--- /dev/null+++ b/proto/v1/role_service.proto@@ -0,0 +1,87 @@+syntax = "proto3";++package bytebase.v1;++import "google/api/annotations.proto";+import "google/api/client.proto";+import "google/api/field_behavior.proto";+import "google/api/http.proto";+import "google/protobuf/empty.proto";+import "google/protobuf/field_mask.proto";+import "google/protobuf/timestamp.proto";+import "v1/common.proto";++option go_package = "generated-go/v1";++service RoleService {+ rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) {+ option (google.api.http) = {get: "/v1/roles"};+ }+ rpc CreateRole(CreateRoleRequest) returns (Role) {+ option (google.api.http) = {+ post: "/v1/roles"+ body: "role"+ };+ }+ rpc UpdateRole(UpdateRoleRequest) returns (Role) {+ option (google.api.http) = {+ patch: "/v1/{role.name=roles/*}"+ body: "role"+ };+ option (google.api.method_signature) = "role,update_mask";+ }+ rpc DeleteRole(DeleteRoleRequest) returns (google.protobuf.Empty) {+ option (google.api.http) = {delete: "/v1/{name=roles/*}"};+ option (google.api.method_signature) = "name";+ }+}++message ListRolesRequest {+ // The maximum number of roles to return. The service may return fewer than+ // this value.+ // If unspecified, at most 50 reviews will be returned.+ // The maximum value is 1000; values above 1000 will be coerced to 1000.+ int32 page_size = 1;++ // A page token, received from a previous `ListRoles` call.+ // Provide this to retrieve the subsequent page.+ //+ // When paginating, all other parameters provided to `ListRoles` must match+ // the call that provided the page token.+ string page_token = 2;+}++message ListRolesResponse {+ repeated Role roles = 1;++ // A token, which can be sent as `page_token` to retrieve the next page.+ // If this field is omitted, there are no subsequent pages.+ string next_page_token = 2;+}++message CreateRoleRequest {+ Role role = 1 [(google.api.field_behavior) = REQUIRED];++ // The ID to use for the role, which will become the final component+ // of the role's resource name.+ //+ // This value should be 4-63 characters, and valid characters+ // are /[a-z][A-Z][0-9]/.+ string role_id = 2 [(google.api.field_behavior) = REQUIRED];+}++message UpdateRoleRequest {+ Role role = 1;+ google.protobuf.FieldMask update_mask = 2;+}++message DeleteRoleRequest {+ // Format: roles/{role}+ string name = 1;+}++message Role {+ // Format: roles/{role}+ string name = 1;+ string description = 2;+}