Documentation ¶
Index ¶
- Variables
- func RegisterOrganizationsServiceServer(s grpc.ServiceRegistrar, srv OrganizationsServiceServer)
- type GetUserRequest
- type GetUserResponse
- type InviteUsersRequest
- func (*InviteUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InviteUsersRequest) GetOrganizationId() string
- func (x *InviteUsersRequest) GetUserInvites() []*UserInvite
- func (*InviteUsersRequest) ProtoMessage()
- func (x *InviteUsersRequest) ProtoReflect() protoreflect.Message
- func (x *InviteUsersRequest) Reset()
- func (x *InviteUsersRequest) String() string
- type InviteUsersResponse
- func (*InviteUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InviteUsersResponse) GetInviteCount() int64
- func (x *InviteUsersResponse) GetIssues() []*InviteUsersResponse_UserInviteIssue
- func (*InviteUsersResponse) ProtoMessage()
- func (x *InviteUsersResponse) ProtoReflect() protoreflect.Message
- func (x *InviteUsersResponse) Reset()
- func (x *InviteUsersResponse) String() string
- type InviteUsersResponse_UserInviteIssue
- func (*InviteUsersResponse_UserInviteIssue) Descriptor() ([]byte, []int)deprecated
- func (x *InviteUsersResponse_UserInviteIssue) GetInvite() *UserInvite
- func (x *InviteUsersResponse_UserInviteIssue) GetMessage() string
- func (*InviteUsersResponse_UserInviteIssue) ProtoMessage()
- func (x *InviteUsersResponse_UserInviteIssue) ProtoReflect() protoreflect.Message
- func (x *InviteUsersResponse_UserInviteIssue) Reset()
- func (x *InviteUsersResponse_UserInviteIssue) String() string
- type ListOrganizationMembersRequest
- func (*ListOrganizationMembersRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListOrganizationMembersRequest) ProtoMessage()
- func (x *ListOrganizationMembersRequest) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationMembersRequest) Reset()
- func (x *ListOrganizationMembersRequest) String() string
- type ListOrganizationMembersResponse
- func (*ListOrganizationMembersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrganizationMembersResponse) GetOrganizationMembers() []*v1.User
- func (*ListOrganizationMembersResponse) ProtoMessage()
- func (x *ListOrganizationMembersResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrganizationMembersResponse) Reset()
- func (x *ListOrganizationMembersResponse) String() string
- type OrganizationsServiceClient
- type OrganizationsServiceServer
- type UnimplementedOrganizationsServiceServer
- func (UnimplementedOrganizationsServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedOrganizationsServiceServer) InviteUsers(context.Context, *InviteUsersRequest) (*InviteUsersResponse, error)
- func (UnimplementedOrganizationsServiceServer) ListOrganizationMembers(context.Context, *ListOrganizationMembersRequest) (*ListOrganizationMembersResponse, error)
- func (UnimplementedOrganizationsServiceServer) UpdateUserRoles(context.Context, *UpdateUserRolesRequest) (*UpdateUserRolesResponse, error)
- type UnsafeOrganizationsServiceServer
- type UpdateUserRolesRequest
- func (*UpdateUserRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRolesRequest) GetEmails() []string
- func (x *UpdateUserRolesRequest) GetUserRoles() []v1.UserRole
- func (*UpdateUserRolesRequest) ProtoMessage()
- func (x *UpdateUserRolesRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRolesRequest) Reset()
- func (x *UpdateUserRolesRequest) String() string
- type UpdateUserRolesResponse
- type UserInvite
- func (*UserInvite) Descriptor() ([]byte, []int)deprecated
- func (x *UserInvite) GetEmail() string
- func (x *UserInvite) GetUserRole() v1.UserRole
- func (*UserInvite) ProtoMessage()
- func (x *UserInvite) ProtoReflect() protoreflect.Message
- func (x *UserInvite) Reset()
- func (x *UserInvite) String() string
Constants ¶
This section is empty.
Variables ¶
var File_strmprivacy_api_organizations_v1_organizations_v1_proto protoreflect.FileDescriptor
var OrganizationsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.organizations.v1.OrganizationsService", HandlerType: (*OrganizationsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InviteUsers", Handler: _OrganizationsService_InviteUsers_Handler, }, { MethodName: "UpdateUserRoles", Handler: _OrganizationsService_UpdateUserRoles_Handler, }, { MethodName: "GetUser", Handler: _OrganizationsService_GetUser_Handler, }, { MethodName: "ListOrganizationMembers", Handler: _OrganizationsService_ListOrganizationMembers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/organizations/v1/organizations_v1.proto", }
OrganizationsService_ServiceDesc is the grpc.ServiceDesc for OrganizationsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrganizationsServiceServer ¶
func RegisterOrganizationsServiceServer(s grpc.ServiceRegistrar, srv OrganizationsServiceServer)
Types ¶
type GetUserRequest ¶ added in v2.51.0
type GetUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
added in
v2.51.0
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetEmail ¶ added in v2.51.0
func (x *GetUserRequest) GetEmail() string
func (*GetUserRequest) ProtoMessage ¶ added in v2.51.0
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶ added in v2.51.0
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶ added in v2.51.0
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶ added in v2.51.0
func (x *GetUserRequest) String() string
type GetUserResponse ¶ added in v2.51.0
type GetUserResponse struct { User *v1.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
added in
v2.51.0
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶ added in v2.51.0
func (x *GetUserResponse) GetUser() *v1.User
func (*GetUserResponse) ProtoMessage ¶ added in v2.51.0
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶ added in v2.51.0
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶ added in v2.51.0
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶ added in v2.51.0
func (x *GetUserResponse) String() string
type InviteUsersRequest ¶
type InviteUsersRequest struct { // Max invites is also enforced in backend UserInvites []*UserInvite `protobuf:"bytes,1,rep,name=user_invites,json=userInvites,proto3" json:"user_invites,omitempty"` // This parameter is filled in by the management-api gateway from the identity of the caller. // It must be empty when a call is made to the management-api. OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` // contains filtered or unexported fields }
func (*InviteUsersRequest) Descriptor
deprecated
func (*InviteUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use InviteUsersRequest.ProtoReflect.Descriptor instead.
func (*InviteUsersRequest) GetOrganizationId ¶
func (x *InviteUsersRequest) GetOrganizationId() string
func (*InviteUsersRequest) GetUserInvites ¶
func (x *InviteUsersRequest) GetUserInvites() []*UserInvite
func (*InviteUsersRequest) ProtoMessage ¶
func (*InviteUsersRequest) ProtoMessage()
func (*InviteUsersRequest) ProtoReflect ¶
func (x *InviteUsersRequest) ProtoReflect() protoreflect.Message
func (*InviteUsersRequest) Reset ¶
func (x *InviteUsersRequest) Reset()
func (*InviteUsersRequest) String ¶
func (x *InviteUsersRequest) String() string
type InviteUsersResponse ¶
type InviteUsersResponse struct { InviteCount int64 `protobuf:"varint,1,opt,name=invite_count,json=inviteCount,proto3" json:"invite_count,omitempty"` Issues []*InviteUsersResponse_UserInviteIssue `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"` // contains filtered or unexported fields }
func (*InviteUsersResponse) Descriptor
deprecated
func (*InviteUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use InviteUsersResponse.ProtoReflect.Descriptor instead.
func (*InviteUsersResponse) GetInviteCount ¶
func (x *InviteUsersResponse) GetInviteCount() int64
func (*InviteUsersResponse) GetIssues ¶
func (x *InviteUsersResponse) GetIssues() []*InviteUsersResponse_UserInviteIssue
func (*InviteUsersResponse) ProtoMessage ¶
func (*InviteUsersResponse) ProtoMessage()
func (*InviteUsersResponse) ProtoReflect ¶
func (x *InviteUsersResponse) ProtoReflect() protoreflect.Message
func (*InviteUsersResponse) Reset ¶
func (x *InviteUsersResponse) Reset()
func (*InviteUsersResponse) String ¶
func (x *InviteUsersResponse) String() string
type InviteUsersResponse_UserInviteIssue ¶
type InviteUsersResponse_UserInviteIssue struct { Invite *UserInvite `protobuf:"bytes,1,opt,name=invite,proto3" json:"invite,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*InviteUsersResponse_UserInviteIssue) Descriptor
deprecated
func (*InviteUsersResponse_UserInviteIssue) Descriptor() ([]byte, []int)
Deprecated: Use InviteUsersResponse_UserInviteIssue.ProtoReflect.Descriptor instead.
func (*InviteUsersResponse_UserInviteIssue) GetInvite ¶
func (x *InviteUsersResponse_UserInviteIssue) GetInvite() *UserInvite
func (*InviteUsersResponse_UserInviteIssue) GetMessage ¶
func (x *InviteUsersResponse_UserInviteIssue) GetMessage() string
func (*InviteUsersResponse_UserInviteIssue) ProtoMessage ¶
func (*InviteUsersResponse_UserInviteIssue) ProtoMessage()
func (*InviteUsersResponse_UserInviteIssue) ProtoReflect ¶
func (x *InviteUsersResponse_UserInviteIssue) ProtoReflect() protoreflect.Message
func (*InviteUsersResponse_UserInviteIssue) Reset ¶
func (x *InviteUsersResponse_UserInviteIssue) Reset()
func (*InviteUsersResponse_UserInviteIssue) String ¶
func (x *InviteUsersResponse_UserInviteIssue) String() string
type ListOrganizationMembersRequest ¶ added in v2.50.0
type ListOrganizationMembersRequest struct {
// contains filtered or unexported fields
}
func (*ListOrganizationMembersRequest) Descriptor
deprecated
added in
v2.50.0
func (*ListOrganizationMembersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationMembersRequest.ProtoReflect.Descriptor instead.
func (*ListOrganizationMembersRequest) ProtoMessage ¶ added in v2.50.0
func (*ListOrganizationMembersRequest) ProtoMessage()
func (*ListOrganizationMembersRequest) ProtoReflect ¶ added in v2.50.0
func (x *ListOrganizationMembersRequest) ProtoReflect() protoreflect.Message
func (*ListOrganizationMembersRequest) Reset ¶ added in v2.50.0
func (x *ListOrganizationMembersRequest) Reset()
func (*ListOrganizationMembersRequest) String ¶ added in v2.50.0
func (x *ListOrganizationMembersRequest) String() string
type ListOrganizationMembersResponse ¶ added in v2.50.0
type ListOrganizationMembersResponse struct { OrganizationMembers []*v1.User `protobuf:"bytes,1,rep,name=organization_members,json=organizationMembers,proto3" json:"organization_members,omitempty"` // contains filtered or unexported fields }
func (*ListOrganizationMembersResponse) Descriptor
deprecated
added in
v2.50.0
func (*ListOrganizationMembersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrganizationMembersResponse.ProtoReflect.Descriptor instead.
func (*ListOrganizationMembersResponse) GetOrganizationMembers ¶ added in v2.50.0
func (x *ListOrganizationMembersResponse) GetOrganizationMembers() []*v1.User
func (*ListOrganizationMembersResponse) ProtoMessage ¶ added in v2.50.0
func (*ListOrganizationMembersResponse) ProtoMessage()
func (*ListOrganizationMembersResponse) ProtoReflect ¶ added in v2.50.0
func (x *ListOrganizationMembersResponse) ProtoReflect() protoreflect.Message
func (*ListOrganizationMembersResponse) Reset ¶ added in v2.50.0
func (x *ListOrganizationMembersResponse) Reset()
func (*ListOrganizationMembersResponse) String ¶ added in v2.50.0
func (x *ListOrganizationMembersResponse) String() string
type OrganizationsServiceClient ¶
type OrganizationsServiceClient interface { InviteUsers(ctx context.Context, in *InviteUsersRequest, opts ...grpc.CallOption) (*InviteUsersResponse, error) UpdateUserRoles(ctx context.Context, in *UpdateUserRolesRequest, opts ...grpc.CallOption) (*UpdateUserRolesResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) ListOrganizationMembers(ctx context.Context, in *ListOrganizationMembersRequest, opts ...grpc.CallOption) (*ListOrganizationMembersResponse, error) }
OrganizationsServiceClient is the client API for OrganizationsService 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.
func NewOrganizationsServiceClient ¶
func NewOrganizationsServiceClient(cc grpc.ClientConnInterface) OrganizationsServiceClient
type OrganizationsServiceServer ¶
type OrganizationsServiceServer interface { InviteUsers(context.Context, *InviteUsersRequest) (*InviteUsersResponse, error) UpdateUserRoles(context.Context, *UpdateUserRolesRequest) (*UpdateUserRolesResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) ListOrganizationMembers(context.Context, *ListOrganizationMembersRequest) (*ListOrganizationMembersResponse, error) }
OrganizationsServiceServer is the server API for OrganizationsService service. All implementations should embed UnimplementedOrganizationsServiceServer for forward compatibility
type UnimplementedOrganizationsServiceServer ¶
type UnimplementedOrganizationsServiceServer struct { }
UnimplementedOrganizationsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedOrganizationsServiceServer) GetUser ¶ added in v2.51.0
func (UnimplementedOrganizationsServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedOrganizationsServiceServer) InviteUsers ¶
func (UnimplementedOrganizationsServiceServer) InviteUsers(context.Context, *InviteUsersRequest) (*InviteUsersResponse, error)
func (UnimplementedOrganizationsServiceServer) ListOrganizationMembers ¶ added in v2.50.0
func (UnimplementedOrganizationsServiceServer) ListOrganizationMembers(context.Context, *ListOrganizationMembersRequest) (*ListOrganizationMembersResponse, error)
func (UnimplementedOrganizationsServiceServer) UpdateUserRoles ¶ added in v2.49.0
func (UnimplementedOrganizationsServiceServer) UpdateUserRoles(context.Context, *UpdateUserRolesRequest) (*UpdateUserRolesResponse, error)
type UnsafeOrganizationsServiceServer ¶
type UnsafeOrganizationsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrganizationsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrganizationsServiceServer will result in compilation errors.
type UpdateUserRolesRequest ¶ added in v2.49.0
type UpdateUserRolesRequest struct { // All users get all defined roles Emails []string `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` // If no user roles are defined, user will always default to MEMBER UserRoles []v1.UserRole `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
(-- api-linter: core::0134::request-mask-required=disabled
aip.dev/not-precedent: We will not be using the update field mask. --)
func (*UpdateUserRolesRequest) Descriptor
deprecated
added in
v2.49.0
func (*UpdateUserRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRolesRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRolesRequest) GetEmails ¶ added in v2.49.0
func (x *UpdateUserRolesRequest) GetEmails() []string
func (*UpdateUserRolesRequest) GetUserRoles ¶ added in v2.49.0
func (x *UpdateUserRolesRequest) GetUserRoles() []v1.UserRole
func (*UpdateUserRolesRequest) ProtoMessage ¶ added in v2.49.0
func (*UpdateUserRolesRequest) ProtoMessage()
func (*UpdateUserRolesRequest) ProtoReflect ¶ added in v2.49.0
func (x *UpdateUserRolesRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRolesRequest) Reset ¶ added in v2.49.0
func (x *UpdateUserRolesRequest) Reset()
func (*UpdateUserRolesRequest) String ¶ added in v2.49.0
func (x *UpdateUserRolesRequest) String() string
type UpdateUserRolesResponse ¶ added in v2.49.0
type UpdateUserRolesResponse struct {
// contains filtered or unexported fields
}
func (*UpdateUserRolesResponse) Descriptor
deprecated
added in
v2.49.0
func (*UpdateUserRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRolesResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserRolesResponse) ProtoMessage ¶ added in v2.49.0
func (*UpdateUserRolesResponse) ProtoMessage()
func (*UpdateUserRolesResponse) ProtoReflect ¶ added in v2.49.0
func (x *UpdateUserRolesResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserRolesResponse) Reset ¶ added in v2.49.0
func (x *UpdateUserRolesResponse) Reset()
func (*UpdateUserRolesResponse) String ¶ added in v2.49.0
func (x *UpdateUserRolesResponse) String() string
type UserInvite ¶
type UserInvite struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` UserRole v1.UserRole `` /* 128-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UserInvite) Descriptor
deprecated
func (*UserInvite) Descriptor() ([]byte, []int)
Deprecated: Use UserInvite.ProtoReflect.Descriptor instead.
func (*UserInvite) GetEmail ¶
func (x *UserInvite) GetEmail() string
func (*UserInvite) GetUserRole ¶ added in v2.81.0
func (x *UserInvite) GetUserRole() v1.UserRole
func (*UserInvite) ProtoMessage ¶
func (*UserInvite) ProtoMessage()
func (*UserInvite) ProtoReflect ¶
func (x *UserInvite) ProtoReflect() protoreflect.Message
func (*UserInvite) Reset ¶
func (x *UserInvite) Reset()
func (*UserInvite) String ¶
func (x *UserInvite) String() string