organizations

package
v3.18.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserInvite_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PENDING",
		2: "NOTIFIED",
		3: "COMPLETED",
		4: "EXPIRED",
	}
	UserInvite_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PENDING":           1,
		"NOTIFIED":          2,
		"COMPLETED":         3,
		"EXPIRED":           4,
	}
)

Enum value maps for UserInvite_State.

View Source
var File_strmprivacy_api_organizations_v1_organizations_v1_proto protoreflect.FileDescriptor
View Source
var OrganizationsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.organizations.v1.OrganizationsService",
	HandlerType: (*OrganizationsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "InviteUsers",
			Handler:    _OrganizationsService_InviteUsers_Handler,
		},
		{
			MethodName: "ListUserInvites",
			Handler:    _OrganizationsService_ListUserInvites_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

type GetUserRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetEmail

func (x *GetUserRequest) GetEmail() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

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

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *v1.User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

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 (*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 (*InviteUsersResponse_UserInviteIssue) GetMessage

func (*InviteUsersResponse_UserInviteIssue) ProtoMessage

func (*InviteUsersResponse_UserInviteIssue) ProtoMessage()

func (*InviteUsersResponse_UserInviteIssue) ProtoReflect

func (*InviteUsersResponse_UserInviteIssue) Reset

func (*InviteUsersResponse_UserInviteIssue) String

type ListOrganizationMembersRequest

type ListOrganizationMembersRequest struct {
	// contains filtered or unexported fields
}

func (*ListOrganizationMembersRequest) Descriptor deprecated

func (*ListOrganizationMembersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListOrganizationMembersRequest.ProtoReflect.Descriptor instead.

func (*ListOrganizationMembersRequest) ProtoMessage

func (*ListOrganizationMembersRequest) ProtoMessage()

func (*ListOrganizationMembersRequest) ProtoReflect

func (*ListOrganizationMembersRequest) Reset

func (x *ListOrganizationMembersRequest) Reset()

func (*ListOrganizationMembersRequest) String

type ListOrganizationMembersResponse

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

func (*ListOrganizationMembersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListOrganizationMembersResponse.ProtoReflect.Descriptor instead.

func (*ListOrganizationMembersResponse) GetOrganizationMembers

func (x *ListOrganizationMembersResponse) GetOrganizationMembers() []*v1.User

func (*ListOrganizationMembersResponse) ProtoMessage

func (*ListOrganizationMembersResponse) ProtoMessage()

func (*ListOrganizationMembersResponse) ProtoReflect

func (*ListOrganizationMembersResponse) Reset

func (*ListOrganizationMembersResponse) String

type ListUserInvitesRequest added in v3.15.0

type ListUserInvitesRequest struct {
	OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserInvitesRequest) Descriptor deprecated added in v3.15.0

func (*ListUserInvitesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUserInvitesRequest.ProtoReflect.Descriptor instead.

func (*ListUserInvitesRequest) GetOrganizationId added in v3.15.0

func (x *ListUserInvitesRequest) GetOrganizationId() string

func (*ListUserInvitesRequest) ProtoMessage added in v3.15.0

func (*ListUserInvitesRequest) ProtoMessage()

func (*ListUserInvitesRequest) ProtoReflect added in v3.15.0

func (x *ListUserInvitesRequest) ProtoReflect() protoreflect.Message

func (*ListUserInvitesRequest) Reset added in v3.15.0

func (x *ListUserInvitesRequest) Reset()

func (*ListUserInvitesRequest) String added in v3.15.0

func (x *ListUserInvitesRequest) String() string

type ListUserInvitesResponse added in v3.15.0

type ListUserInvitesResponse struct {
	UserInvites []*UserInvite `protobuf:"bytes,1,rep,name=user_invites,json=userInvites,proto3" json:"user_invites,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUserInvitesResponse) Descriptor deprecated added in v3.15.0

func (*ListUserInvitesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUserInvitesResponse.ProtoReflect.Descriptor instead.

func (*ListUserInvitesResponse) GetUserInvites added in v3.15.0

func (x *ListUserInvitesResponse) GetUserInvites() []*UserInvite

func (*ListUserInvitesResponse) ProtoMessage added in v3.15.0

func (*ListUserInvitesResponse) ProtoMessage()

func (*ListUserInvitesResponse) ProtoReflect added in v3.15.0

func (x *ListUserInvitesResponse) ProtoReflect() protoreflect.Message

func (*ListUserInvitesResponse) Reset added in v3.15.0

func (x *ListUserInvitesResponse) Reset()

func (*ListUserInvitesResponse) String added in v3.15.0

func (x *ListUserInvitesResponse) String() string

type OrganizationsServiceClient

type OrganizationsServiceClient interface {
	InviteUsers(ctx context.Context, in *InviteUsersRequest, opts ...grpc.CallOption) (*InviteUsersResponse, error)
	ListUserInvites(ctx context.Context, in *ListUserInvitesRequest, opts ...grpc.CallOption) (*ListUserInvitesResponse, 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.

type OrganizationsServiceServer

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

func (UnimplementedOrganizationsServiceServer) InviteUsers

func (UnimplementedOrganizationsServiceServer) ListUserInvites added in v3.15.0

func (UnimplementedOrganizationsServiceServer) UpdateUserRoles

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

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

func (*UpdateUserRolesRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRolesRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRolesRequest) GetEmails

func (x *UpdateUserRolesRequest) GetEmails() []string

func (*UpdateUserRolesRequest) GetUserRoles

func (x *UpdateUserRolesRequest) GetUserRoles() []v1.UserRole

func (*UpdateUserRolesRequest) ProtoMessage

func (*UpdateUserRolesRequest) ProtoMessage()

func (*UpdateUserRolesRequest) ProtoReflect

func (x *UpdateUserRolesRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRolesRequest) Reset

func (x *UpdateUserRolesRequest) Reset()

func (*UpdateUserRolesRequest) String

func (x *UpdateUserRolesRequest) String() string

type UpdateUserRolesResponse

type UpdateUserRolesResponse struct {
	// contains filtered or unexported fields
}

func (*UpdateUserRolesResponse) Descriptor deprecated

func (*UpdateUserRolesResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRolesResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserRolesResponse) ProtoMessage

func (*UpdateUserRolesResponse) ProtoMessage()

func (*UpdateUserRolesResponse) ProtoReflect

func (x *UpdateUserRolesResponse) ProtoReflect() protoreflect.Message

func (*UpdateUserRolesResponse) Reset

func (x *UpdateUserRolesResponse) Reset()

func (*UpdateUserRolesResponse) String

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 */
	State    UserInvite_State `protobuf:"varint,3,opt,name=state,proto3,enum=strmprivacy.api.organizations.v1.UserInvite_State" json:"state,omitempty"`
	// 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) GetState added in v3.15.0

func (x *UserInvite) GetState() UserInvite_State

func (*UserInvite) GetUserRole

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

type UserInvite_State added in v3.15.0

type UserInvite_State int32
const (
	UserInvite_STATE_UNSPECIFIED UserInvite_State = 0
	UserInvite_PENDING           UserInvite_State = 1
	UserInvite_NOTIFIED          UserInvite_State = 2
	UserInvite_COMPLETED         UserInvite_State = 3
	UserInvite_EXPIRED           UserInvite_State = 4
)

func (UserInvite_State) Descriptor added in v3.15.0

func (UserInvite_State) Enum added in v3.15.0

func (UserInvite_State) EnumDescriptor deprecated added in v3.15.0

func (UserInvite_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserInvite_State.Descriptor instead.

func (UserInvite_State) Number added in v3.15.0

func (UserInvite_State) String added in v3.15.0

func (x UserInvite_State) String() string

func (UserInvite_State) Type added in v3.15.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL