mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
2696 lines
81 KiB
Go
2696 lines
81 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v7.36.2
|
|
// source: orgs.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
_ "github.com/effective-security/protoc-gen-go/api"
|
|
_ "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"
|
|
)
|
|
|
|
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)
|
|
)
|
|
|
|
// Role is assigned org-wide or per project. Roles form a hierarchy for
|
|
// access checks (see authctx.CanAssumeRoles); integer values are not used
|
|
// for comparison.
|
|
type Role_Enum int32
|
|
|
|
const (
|
|
// None specifies no role
|
|
Role_None Role_Enum = 0
|
|
Role_APIKey Role_Enum = 1
|
|
// Viewer specifies name for Viewer role
|
|
Role_Viewer Role_Enum = 2
|
|
// User specifies name for User role
|
|
Role_User Role_Enum = 3
|
|
// Support specifies name for Support role.
|
|
Role_Support Role_Enum = 4
|
|
// Billing specifies name for Billing role
|
|
Role_Billing Role_Enum = 5
|
|
// Security specifies name for Security role
|
|
Role_Security Role_Enum = 6
|
|
// Admin specifies name for Admin role
|
|
Role_Admin Role_Enum = 7
|
|
// Owner specifies name for Owner role
|
|
Role_Owner Role_Enum = 8
|
|
)
|
|
|
|
// Enum value maps for Role_Enum.
|
|
var (
|
|
Role_Enum_name = map[int32]string{
|
|
0: "None",
|
|
1: "APIKey",
|
|
2: "Viewer",
|
|
3: "User",
|
|
4: "Support",
|
|
5: "Billing",
|
|
6: "Security",
|
|
7: "Admin",
|
|
8: "Owner",
|
|
}
|
|
Role_Enum_value = map[string]int32{
|
|
"None": 0,
|
|
"APIKey": 1,
|
|
"Viewer": 2,
|
|
"User": 3,
|
|
"Support": 4,
|
|
"Billing": 5,
|
|
"Security": 6,
|
|
"Admin": 7,
|
|
"Owner": 8,
|
|
}
|
|
)
|
|
|
|
func (x Role_Enum) Enum() *Role_Enum {
|
|
p := new(Role_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Role_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Role_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_orgs_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Role_Enum) Type() protoreflect.EnumType {
|
|
return &file_orgs_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Role_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Role_Enum.Descriptor instead.
|
|
func (Role_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{0, 0}
|
|
}
|
|
|
|
// RoleSource explains how an org role was resolved
|
|
type RoleSource_Enum int32
|
|
|
|
const (
|
|
// Unknown indicates that the source is unknown
|
|
RoleSource_Unknown RoleSource_Enum = 0
|
|
// Direct indicates an explicit org-wide grant
|
|
RoleSource_Direct RoleSource_Enum = 1
|
|
// Project indicates a derived org Viewer classification from project
|
|
// grants only; it does not inherit project permissions
|
|
RoleSource_Project RoleSource_Enum = 2
|
|
)
|
|
|
|
// Enum value maps for RoleSource_Enum.
|
|
var (
|
|
RoleSource_Enum_name = map[int32]string{
|
|
0: "Unknown",
|
|
1: "Direct",
|
|
2: "Project",
|
|
}
|
|
RoleSource_Enum_value = map[string]int32{
|
|
"Unknown": 0,
|
|
"Direct": 1,
|
|
"Project": 2,
|
|
}
|
|
)
|
|
|
|
func (x RoleSource_Enum) Enum() *RoleSource_Enum {
|
|
p := new(RoleSource_Enum)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x RoleSource_Enum) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (RoleSource_Enum) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_orgs_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (RoleSource_Enum) Type() protoreflect.EnumType {
|
|
return &file_orgs_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x RoleSource_Enum) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use RoleSource_Enum.Descriptor instead.
|
|
func (RoleSource_Enum) EnumDescriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{1, 0}
|
|
}
|
|
|
|
type Role struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Role) Reset() {
|
|
*x = Role{}
|
|
mi := &file_orgs_proto_msgTypes[0]
|
|
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_orgs_proto_msgTypes[0]
|
|
if 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_orgs_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type RoleSource struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RoleSource) Reset() {
|
|
*x = RoleSource{}
|
|
mi := &file_orgs_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RoleSource) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RoleSource) ProtoMessage() {}
|
|
|
|
func (x *RoleSource) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RoleSource.ProtoReflect.Descriptor instead.
|
|
func (*RoleSource) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type Org struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
Alias string `protobuf:"bytes,2,opt,name=Alias,proto3" json:"Alias,omitempty"`
|
|
Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,5,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
Status ItemStatus_Enum `protobuf:"varint,6,opt,name=Status,proto3,enum=pb.ItemStatus_Enum" json:"Status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Org) Reset() {
|
|
*x = Org{}
|
|
mi := &file_orgs_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Org) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Org) ProtoMessage() {}
|
|
|
|
func (x *Org) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Org.ProtoReflect.Descriptor instead.
|
|
func (*Org) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Org) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetAlias() string {
|
|
if x != nil {
|
|
return x.Alias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Org) GetStatus() ItemStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ItemStatus_Unknown
|
|
}
|
|
|
|
type OrgsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Orgs []*Org `protobuf:"bytes,1,rep,name=Orgs,proto3" json:"Orgs,omitempty"`
|
|
// NextPage specifies pagination information, if there are more pages to
|
|
// fetch. If there are no more pages to fetch, NextPage will be empty.
|
|
NextPage *NextPage `protobuf:"bytes,2,opt,name=NextPage,proto3" json:"NextPage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrgsResponse) Reset() {
|
|
*x = OrgsResponse{}
|
|
mi := &file_orgs_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrgsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgsResponse) ProtoMessage() {}
|
|
|
|
func (x *OrgsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OrgsResponse.ProtoReflect.Descriptor instead.
|
|
func (*OrgsResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *OrgsResponse) GetOrgs() []*Org {
|
|
if x != nil {
|
|
return x.Orgs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OrgsResponse) GetNextPage() *NextPage {
|
|
if x != nil {
|
|
return x.NextPage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Project owns a collection of resources governed by a common access policy
|
|
type Project struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
// Alias is a stable, org-unique identifier chosen by the client,
|
|
// e.g. a cloud account ID or a slug
|
|
Alias string `protobuf:"bytes,3,opt,name=Alias,proto3" json:"Alias,omitempty"`
|
|
Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Description string `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
Status ItemStatus_Enum `protobuf:"varint,6,opt,name=Status,proto3,enum=pb.ItemStatus_Enum" json:"Status,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
UpdatedAt string `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Project) Reset() {
|
|
*x = Project{}
|
|
mi := &file_orgs_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Project) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Project) ProtoMessage() {}
|
|
|
|
func (x *Project) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Project.ProtoReflect.Descriptor instead.
|
|
func (*Project) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *Project) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Project) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Project) GetAlias() string {
|
|
if x != nil {
|
|
return x.Alias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Project) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Project) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Project) GetStatus() ItemStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ItemStatus_Unknown
|
|
}
|
|
|
|
func (x *Project) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Project) GetUpdatedAt() string {
|
|
if x != nil {
|
|
return x.UpdatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ProjectsResponse returns list of projects
|
|
type ProjectsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Projects []*Project `protobuf:"bytes,1,rep,name=Projects,proto3" json:"Projects,omitempty"`
|
|
// NextPage specifies pagination information, if there are more pages to
|
|
// fetch. If there are no more pages to fetch, NextPage will be empty.
|
|
NextPage *NextPage `protobuf:"bytes,2,opt,name=NextPage,proto3" json:"NextPage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ProjectsResponse) Reset() {
|
|
*x = ProjectsResponse{}
|
|
mi := &file_orgs_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ProjectsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ProjectsResponse) ProtoMessage() {}
|
|
|
|
func (x *ProjectsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ProjectsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ProjectsResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ProjectsResponse) GetProjects() []*Project {
|
|
if x != nil {
|
|
return x.Projects
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ProjectsResponse) GetNextPage() *NextPage {
|
|
if x != nil {
|
|
return x.NextPage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// OrgAccess provides the resolved access of a user to an org
|
|
type OrgAccess struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrgID string `protobuf:"bytes,1,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
OrgAlias string `protobuf:"bytes,2,opt,name=OrgAlias,proto3" json:"OrgAlias,omitempty"`
|
|
OrgName string `protobuf:"bytes,3,opt,name=OrgName,proto3" json:"OrgName,omitempty"`
|
|
// Role is the resolved org role: the explicit org-wide role, or Viewer
|
|
// when the user only has project grants
|
|
Role Role_Enum `protobuf:"varint,4,opt,name=Role,proto3,enum=pb.Role_Enum" json:"Role,omitempty"`
|
|
// RoleSource explains how Role was resolved
|
|
RoleSource RoleSource_Enum `protobuf:"varint,5,opt,name=RoleSource,proto3,enum=pb.RoleSource_Enum" json:"RoleSource,omitempty"`
|
|
// ExplicitRole is the explicit org-wide role, None when derived
|
|
ExplicitRole Role_Enum `protobuf:"varint,6,opt,name=ExplicitRole,proto3,enum=pb.Role_Enum" json:"ExplicitRole,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrgAccess) Reset() {
|
|
*x = OrgAccess{}
|
|
mi := &file_orgs_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrgAccess) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrgAccess) ProtoMessage() {}
|
|
|
|
func (x *OrgAccess) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OrgAccess.ProtoReflect.Descriptor instead.
|
|
func (*OrgAccess) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *OrgAccess) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrgAccess) GetOrgAlias() string {
|
|
if x != nil {
|
|
return x.OrgAlias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrgAccess) GetOrgName() string {
|
|
if x != nil {
|
|
return x.OrgName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrgAccess) GetRole() Role_Enum {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return Role_None
|
|
}
|
|
|
|
func (x *OrgAccess) GetRoleSource() RoleSource_Enum {
|
|
if x != nil {
|
|
return x.RoleSource
|
|
}
|
|
return RoleSource_Unknown
|
|
}
|
|
|
|
func (x *OrgAccess) GetExplicitRole() Role_Enum {
|
|
if x != nil {
|
|
return x.ExplicitRole
|
|
}
|
|
return Role_None
|
|
}
|
|
|
|
// UserOrgsResponse provides the orgs the caller can select
|
|
type UserOrgsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Orgs []*OrgAccess `protobuf:"bytes,1,rep,name=Orgs,proto3" json:"Orgs,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserOrgsResponse) Reset() {
|
|
*x = UserOrgsResponse{}
|
|
mi := &file_orgs_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserOrgsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserOrgsResponse) ProtoMessage() {}
|
|
|
|
func (x *UserOrgsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UserOrgsResponse.ProtoReflect.Descriptor instead.
|
|
func (*UserOrgsResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UserOrgsResponse) GetOrgs() []*OrgAccess {
|
|
if x != nil {
|
|
return x.Orgs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Membership is an explicit role assignment (grant).
|
|
// Org scope grant (empty ProjectID) is inherited by every project of the org.
|
|
// Project scope grant applies to the project only; grants are additive.
|
|
type Membership struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
OrgAlias string `protobuf:"bytes,3,opt,name=OrgAlias,proto3" json:"OrgAlias,omitempty"`
|
|
OrgName string `protobuf:"bytes,4,opt,name=OrgName,proto3" json:"OrgName,omitempty"`
|
|
UserID string `protobuf:"bytes,5,opt,name=UserID,proto3" json:"UserID,omitempty"`
|
|
Name string `protobuf:"bytes,6,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Email string `protobuf:"bytes,7,opt,name=Email,proto3" json:"Email,omitempty"`
|
|
Role Role_Enum `protobuf:"varint,8,opt,name=Role,proto3,enum=pb.Role_Enum" json:"Role,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,9,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
// Scope of the grant: Org or Project
|
|
Scope Scope_Enum `protobuf:"varint,10,opt,name=Scope,proto3,enum=pb.Scope_Enum" json:"Scope,omitempty"`
|
|
// ProjectID is set for Project scope grants
|
|
ProjectID string `protobuf:"bytes,11,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
ProjectAlias string `protobuf:"bytes,12,opt,name=ProjectAlias,proto3" json:"ProjectAlias,omitempty"`
|
|
ProjectName string `protobuf:"bytes,13,opt,name=ProjectName,proto3" json:"ProjectName,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Membership) Reset() {
|
|
*x = Membership{}
|
|
mi := &file_orgs_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Membership) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Membership) ProtoMessage() {}
|
|
|
|
func (x *Membership) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Membership.ProtoReflect.Descriptor instead.
|
|
func (*Membership) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *Membership) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetOrgAlias() string {
|
|
if x != nil {
|
|
return x.OrgAlias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetOrgName() string {
|
|
if x != nil {
|
|
return x.OrgName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetUserID() string {
|
|
if x != nil {
|
|
return x.UserID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetRole() Role_Enum {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return Role_None
|
|
}
|
|
|
|
func (x *Membership) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetScope() Scope_Enum {
|
|
if x != nil {
|
|
return x.Scope
|
|
}
|
|
return Scope_Undefined
|
|
}
|
|
|
|
func (x *Membership) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetProjectAlias() string {
|
|
if x != nil {
|
|
return x.ProjectAlias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Membership) GetProjectName() string {
|
|
if x != nil {
|
|
return x.ProjectName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Invite provides an org or project invite
|
|
type Invite struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
InviterID string `protobuf:"bytes,3,opt,name=InviterID,proto3" json:"InviterID,omitempty"`
|
|
Email string `protobuf:"bytes,4,opt,name=Email,proto3" json:"Email,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
Role Role_Enum `protobuf:"varint,7,opt,name=Role,proto3,enum=pb.Role_Enum" json:"Role,omitempty"`
|
|
// Scope of the invite: Org or Project
|
|
Scope Scope_Enum `protobuf:"varint,8,opt,name=Scope,proto3,enum=pb.Scope_Enum" json:"Scope,omitempty"`
|
|
// ProjectID is set for Project scope invites
|
|
ProjectID string `protobuf:"bytes,9,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
// ExpiresAt in RFC3339 format; expired invites grant nothing
|
|
ExpiresAt string `protobuf:"bytes,10,opt,name=ExpiresAt,proto3" json:"ExpiresAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Invite) Reset() {
|
|
*x = Invite{}
|
|
mi := &file_orgs_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Invite) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Invite) ProtoMessage() {}
|
|
|
|
func (x *Invite) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Invite.ProtoReflect.Descriptor instead.
|
|
func (*Invite) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *Invite) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invite) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invite) GetInviterID() string {
|
|
if x != nil {
|
|
return x.InviterID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invite) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invite) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invite) GetRole() Role_Enum {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return Role_None
|
|
}
|
|
|
|
func (x *Invite) GetScope() Scope_Enum {
|
|
if x != nil {
|
|
return x.Scope
|
|
}
|
|
return Scope_Undefined
|
|
}
|
|
|
|
func (x *Invite) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Invite) GetExpiresAt() string {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetMembersRequest specifies request to list members and invites of the
|
|
// org selected in the token. Without ProjectID and Scope, grants of all
|
|
// scopes are returned.
|
|
type GetMembersRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ProjectID limits the result to Project scope grants of the project
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
// Scope limits the result to Org scope grants when set to Org
|
|
Scope Scope_Enum `protobuf:"varint,2,opt,name=Scope,proto3,enum=pb.Scope_Enum" json:"Scope,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetMembersRequest) Reset() {
|
|
*x = GetMembersRequest{}
|
|
mi := &file_orgs_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetMembersRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetMembersRequest) ProtoMessage() {}
|
|
|
|
func (x *GetMembersRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetMembersRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetMembersRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *GetMembersRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetMembersRequest) GetScope() Scope_Enum {
|
|
if x != nil {
|
|
return x.Scope
|
|
}
|
|
return Scope_Undefined
|
|
}
|
|
|
|
// MembersResponse provides list of members and invites
|
|
type MembersResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Memberships []*Membership `protobuf:"bytes,1,rep,name=Memberships,proto3" json:"Memberships,omitempty"`
|
|
Invites []*Invite `protobuf:"bytes,2,rep,name=Invites,proto3" json:"Invites,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MembersResponse) Reset() {
|
|
*x = MembersResponse{}
|
|
mi := &file_orgs_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MembersResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MembersResponse) ProtoMessage() {}
|
|
|
|
func (x *MembersResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MembersResponse.ProtoReflect.Descriptor instead.
|
|
func (*MembersResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *MembersResponse) GetMemberships() []*Membership {
|
|
if x != nil {
|
|
return x.Memberships
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MembersResponse) GetInvites() []*Invite {
|
|
if x != nil {
|
|
return x.Invites
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// UserMemberships provides the caller's access to the selected org
|
|
type UserMemberships struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Org is the resolved org access
|
|
Org *OrgAccess `protobuf:"bytes,1,opt,name=Org,proto3" json:"Org,omitempty"`
|
|
// Memberships are the caller's explicit grants in the org: the org-wide
|
|
// grant (empty ProjectID) and one per project grant
|
|
Memberships []*Membership `protobuf:"bytes,2,rep,name=Memberships,proto3" json:"Memberships,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UserMemberships) Reset() {
|
|
*x = UserMemberships{}
|
|
mi := &file_orgs_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UserMemberships) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserMemberships) ProtoMessage() {}
|
|
|
|
func (x *UserMemberships) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UserMemberships.ProtoReflect.Descriptor instead.
|
|
func (*UserMemberships) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *UserMemberships) GetOrg() *OrgAccess {
|
|
if x != nil {
|
|
return x.Org
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UserMemberships) GetMemberships() []*Membership {
|
|
if x != nil {
|
|
return x.Memberships
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// AddMemberRequest specifies request to grant a role in the org selected in
|
|
// the token (empty ProjectID) or in a project.
|
|
// If the user does not exist, an invite is created instead.
|
|
type AddMemberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Email specifies user email to search.
|
|
Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"`
|
|
// Role specifies the role to grant. The caller must be allowed to grant
|
|
// it at the requested scope; only an org Owner can grant Owner.
|
|
Role Role_Enum `protobuf:"varint,2,opt,name=Role,proto3,enum=pb.Role_Enum" json:"Role,omitempty"`
|
|
// ProjectID specifies the project for a Project scope grant;
|
|
// empty for an org-wide grant
|
|
ProjectID string `protobuf:"bytes,3,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddMemberRequest) Reset() {
|
|
*x = AddMemberRequest{}
|
|
mi := &file_orgs_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddMemberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddMemberRequest) ProtoMessage() {}
|
|
|
|
func (x *AddMemberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddMemberRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddMemberRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *AddMemberRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddMemberRequest) GetRole() Role_Enum {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return Role_None
|
|
}
|
|
|
|
func (x *AddMemberRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// AddMemberResponse provides response for AddMember request.
|
|
// If a user already exists, the Membership is returned.
|
|
// If a user is invited, the Invite is returned.
|
|
type AddMemberResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Invite *Invite `protobuf:"bytes,1,opt,name=Invite,proto3" json:"Invite,omitempty"`
|
|
Membership *Membership `protobuf:"bytes,2,opt,name=Membership,proto3" json:"Membership,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddMemberResponse) Reset() {
|
|
*x = AddMemberResponse{}
|
|
mi := &file_orgs_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddMemberResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddMemberResponse) ProtoMessage() {}
|
|
|
|
func (x *AddMemberResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddMemberResponse.ProtoReflect.Descriptor instead.
|
|
func (*AddMemberResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *AddMemberResponse) GetInvite() *Invite {
|
|
if x != nil {
|
|
return x.Invite
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *AddMemberResponse) GetMembership() *Membership {
|
|
if x != nil {
|
|
return x.Membership
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ChangeMemberRoleRequest specifies request to change the role of an
|
|
// existing grant at the requested scope
|
|
type ChangeMemberRoleRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// UserID specifies user ID, if Email is empty
|
|
UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
|
|
// Email specifies user email, if UserID is empty
|
|
Email string `protobuf:"bytes,2,opt,name=Email,proto3" json:"Email,omitempty"`
|
|
Role Role_Enum `protobuf:"varint,3,opt,name=Role,proto3,enum=pb.Role_Enum" json:"Role,omitempty"`
|
|
// ProjectID specifies the project for a Project scope grant;
|
|
// empty for the org-wide grant
|
|
ProjectID string `protobuf:"bytes,4,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangeMemberRoleRequest) Reset() {
|
|
*x = ChangeMemberRoleRequest{}
|
|
mi := &file_orgs_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangeMemberRoleRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangeMemberRoleRequest) ProtoMessage() {}
|
|
|
|
func (x *ChangeMemberRoleRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChangeMemberRoleRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChangeMemberRoleRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *ChangeMemberRoleRequest) GetUserID() string {
|
|
if x != nil {
|
|
return x.UserID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeMemberRoleRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeMemberRoleRequest) GetRole() Role_Enum {
|
|
if x != nil {
|
|
return x.Role
|
|
}
|
|
return Role_None
|
|
}
|
|
|
|
func (x *ChangeMemberRoleRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DeleteMemberRequest specifies request to remove a grant.
|
|
// With ProjectID only the project grant is removed;
|
|
// without ProjectID only the org-wide grant is removed.
|
|
type DeleteMemberRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
|
|
// ProjectID specifies the project for a Project scope grant;
|
|
// empty for the org-wide grant
|
|
ProjectID string `protobuf:"bytes,2,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteMemberRequest) Reset() {
|
|
*x = DeleteMemberRequest{}
|
|
mi := &file_orgs_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteMemberRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteMemberRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteMemberRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteMemberRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteMemberRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *DeleteMemberRequest) GetUserID() string {
|
|
if x != nil {
|
|
return x.UserID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteMemberRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DeleteInviteRequest specifies request to remove an invite at the given
|
|
// scope
|
|
type DeleteInviteRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"`
|
|
// ProjectID specifies the project for a Project scope invite;
|
|
// empty for an org-wide invite
|
|
ProjectID string `protobuf:"bytes,2,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteInviteRequest) Reset() {
|
|
*x = DeleteInviteRequest{}
|
|
mi := &file_orgs_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteInviteRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteInviteRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteInviteRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteInviteRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteInviteRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *DeleteInviteRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeleteInviteRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RegisterOrgRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterOrgRequest) Reset() {
|
|
*x = RegisterOrgRequest{}
|
|
mi := &file_orgs_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterOrgRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterOrgRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterOrgRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RegisterOrgRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterOrgRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *RegisterOrgRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterOrgRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// UpdateOrgRequest updates the org selected in the token
|
|
type UpdateOrgRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateOrgRequest) Reset() {
|
|
*x = UpdateOrgRequest{}
|
|
mi := &file_orgs_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateOrgRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateOrgRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateOrgRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateOrgRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateOrgRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *UpdateOrgRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateOrgRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// RegisterProjectRequest specifies request to create a project in the org
|
|
// selected in the token
|
|
type RegisterProjectRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Alias is org-unique; generated when empty
|
|
Alias string `protobuf:"bytes,1,opt,name=Alias,proto3" json:"Alias,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterProjectRequest) Reset() {
|
|
*x = RegisterProjectRequest{}
|
|
mi := &file_orgs_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterProjectRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterProjectRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterProjectRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RegisterProjectRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterProjectRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *RegisterProjectRequest) GetAlias() string {
|
|
if x != nil {
|
|
return x.Alias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterProjectRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterProjectRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// UpdateProjectRequest specifies request to update a project
|
|
type UpdateProjectRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateProjectRequest) Reset() {
|
|
*x = UpdateProjectRequest{}
|
|
mi := &file_orgs_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateProjectRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateProjectRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateProjectRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *UpdateProjectRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateProjectRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateProjectRequest) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// GetProjectRequest specifies a project by ID or alias
|
|
type GetProjectRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
Alias string `protobuf:"bytes,2,opt,name=Alias,proto3" json:"Alias,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetProjectRequest) Reset() {
|
|
*x = GetProjectRequest{}
|
|
mi := &file_orgs_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetProjectRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetProjectRequest) ProtoMessage() {}
|
|
|
|
func (x *GetProjectRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetProjectRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *GetProjectRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetProjectRequest) GetAlias() string {
|
|
if x != nil {
|
|
return x.Alias
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ListProjectsRequest specifies a paginated list of projects
|
|
type ListProjectsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Status filters by status; Unknown returns all
|
|
Status ItemStatus_Enum `protobuf:"varint,1,opt,name=Status,proto3,enum=pb.ItemStatus_Enum" json:"Status,omitempty"`
|
|
// Limit specifies maximum number of records to return
|
|
Limit uint32 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"`
|
|
// Offset specifies offset for the offset-based pagination
|
|
Offset uint32 `protobuf:"varint,3,opt,name=Offset,proto3" json:"Offset,omitempty"`
|
|
// Cursor specifies cursor for the cursor-based pagination
|
|
Cursor string `protobuf:"bytes,4,opt,name=Cursor,proto3" json:"Cursor,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListProjectsRequest) Reset() {
|
|
*x = ListProjectsRequest{}
|
|
mi := &file_orgs_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListProjectsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListProjectsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListProjectsRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *ListProjectsRequest) GetStatus() ItemStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ItemStatus_Unknown
|
|
}
|
|
|
|
func (x *ListProjectsRequest) GetLimit() uint32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListProjectsRequest) GetOffset() uint32 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListProjectsRequest) GetCursor() string {
|
|
if x != nil {
|
|
return x.Cursor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// DeleteProjectRequest specifies request to deactivate a project
|
|
type DeleteProjectRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteProjectRequest) Reset() {
|
|
*x = DeleteProjectRequest{}
|
|
mi := &file_orgs_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteProjectRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteProjectRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteProjectRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *DeleteProjectRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ListEventsRequest specifies a page of the audit events of the org
|
|
// selected in the token, newest first (Orgs.ListEvents); the list pages by
|
|
// cursor only
|
|
type ListEventsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ProjectID limits the result to the events of the project, in which
|
|
// the caller needs a role; empty lists the events of the org the caller
|
|
// may see
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
// Type limits the result to one event type; Unknown returns every type
|
|
Type EventType_Enum `protobuf:"varint,2,opt,name=Type,proto3,enum=pb.EventType_Enum" json:"Type,omitempty"`
|
|
// After is the inclusive start of the CreatedAt range in RFC3339
|
|
// format; empty is unbounded
|
|
After string `protobuf:"bytes,3,opt,name=After,proto3" json:"After,omitempty"`
|
|
// Before is the exclusive end of the CreatedAt range in RFC3339 format,
|
|
// later than After; empty is unbounded
|
|
Before string `protobuf:"bytes,4,opt,name=Before,proto3" json:"Before,omitempty"`
|
|
// Limit specifies maximum number of records to return
|
|
Limit uint32 `protobuf:"varint,5,opt,name=Limit,proto3" json:"Limit,omitempty"`
|
|
// Cursor continues the listing: empty or "initial" returns the first
|
|
// page, the Cursor of the previous NextPage the page after it
|
|
Cursor string `protobuf:"bytes,6,opt,name=Cursor,proto3" json:"Cursor,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEventsRequest) Reset() {
|
|
*x = ListEventsRequest{}
|
|
mi := &file_orgs_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEventsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEventsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListEventsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListEventsRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *ListEventsRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListEventsRequest) GetType() EventType_Enum {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return EventType_Unknown
|
|
}
|
|
|
|
func (x *ListEventsRequest) GetAfter() string {
|
|
if x != nil {
|
|
return x.After
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListEventsRequest) GetBefore() string {
|
|
if x != nil {
|
|
return x.Before
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListEventsRequest) GetLimit() uint32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEventsRequest) GetCursor() string {
|
|
if x != nil {
|
|
return x.Cursor
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// EventsResponse returns a page of events, newest first
|
|
type EventsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Events is the list of events
|
|
Events []*Event `protobuf:"bytes,1,rep,name=Events,proto3" json:"Events,omitempty"`
|
|
// NextPage specifies pagination information, if there are more pages to
|
|
// fetch. If there are no more pages to fetch, NextPage will be empty.
|
|
NextPage *NextPage `protobuf:"bytes,2,opt,name=NextPage,proto3" json:"NextPage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *EventsResponse) Reset() {
|
|
*x = EventsResponse{}
|
|
mi := &file_orgs_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *EventsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*EventsResponse) ProtoMessage() {}
|
|
|
|
func (x *EventsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use EventsResponse.ProtoReflect.Descriptor instead.
|
|
func (*EventsResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *EventsResponse) GetEvents() []*Event {
|
|
if x != nil {
|
|
return x.Events
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *EventsResponse) GetNextPage() *NextPage {
|
|
if x != nil {
|
|
return x.NextPage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type APIKey struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
OrgID string `protobuf:"bytes,2,opt,name=OrgID,proto3" json:"OrgID,omitempty"`
|
|
ProjectID string `protobuf:"bytes,3,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
Label string `protobuf:"bytes,4,opt,name=Label,proto3" json:"Label,omitempty"`
|
|
Key string `protobuf:"bytes,5,opt,name=Key,proto3" json:"Key,omitempty"`
|
|
Secret string `protobuf:"bytes,6,opt,name=Secret,proto3" json:"Secret,omitempty"`
|
|
Scopes []string `protobuf:"bytes,7,rep,name=Scopes,proto3" json:"Scopes,omitempty"`
|
|
Metadata []*KVPair `protobuf:"bytes,8,rep,name=Metadata,proto3" json:"Metadata,omitempty"`
|
|
Status ItemStatus_Enum `protobuf:"varint,9,opt,name=Status,proto3,enum=pb.ItemStatus_Enum" json:"Status,omitempty"`
|
|
CreatedAt string `protobuf:"bytes,10,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
|
|
ExpiresAt string `protobuf:"bytes,11,opt,name=ExpiresAt,proto3" json:"ExpiresAt,omitempty"`
|
|
UsedAt string `protobuf:"bytes,12,opt,name=UsedAt,proto3" json:"UsedAt,omitempty"`
|
|
UsedCount uint32 `protobuf:"varint,13,opt,name=UsedCount,proto3" json:"UsedCount,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *APIKey) Reset() {
|
|
*x = APIKey{}
|
|
mi := &file_orgs_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *APIKey) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*APIKey) ProtoMessage() {}
|
|
|
|
func (x *APIKey) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use APIKey.ProtoReflect.Descriptor instead.
|
|
func (*APIKey) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *APIKey) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetOrgID() string {
|
|
if x != nil {
|
|
return x.OrgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetSecret() string {
|
|
if x != nil {
|
|
return x.Secret
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetScopes() []string {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *APIKey) GetMetadata() []*KVPair {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *APIKey) GetStatus() ItemStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ItemStatus_Unknown
|
|
}
|
|
|
|
func (x *APIKey) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetExpiresAt() string {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetUsedAt() string {
|
|
if x != nil {
|
|
return x.UsedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKey) GetUsedCount() uint32 {
|
|
if x != nil {
|
|
return x.UsedCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type APIKeysResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
APIKeys []*APIKey `protobuf:"bytes,1,rep,name=APIKeys,proto3" json:"APIKeys,omitempty"`
|
|
// NextPage specifies pagination information, if there are more pages to
|
|
// fetch. If there are no more pages to fetch, NextPage will be empty.
|
|
NextPage *NextPage `protobuf:"bytes,2,opt,name=NextPage,proto3" json:"NextPage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *APIKeysResponse) Reset() {
|
|
*x = APIKeysResponse{}
|
|
mi := &file_orgs_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *APIKeysResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*APIKeysResponse) ProtoMessage() {}
|
|
|
|
func (x *APIKeysResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use APIKeysResponse.ProtoReflect.Descriptor instead.
|
|
func (*APIKeysResponse) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *APIKeysResponse) GetAPIKeys() []*APIKey {
|
|
if x != nil {
|
|
return x.APIKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *APIKeysResponse) GetNextPage() *NextPage {
|
|
if x != nil {
|
|
return x.NextPage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateAPIKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ProjectID is optional for project scope.
|
|
// If not provided, will use Org scope for the current token.
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
Label string `protobuf:"bytes,2,opt,name=Label,proto3" json:"Label,omitempty"`
|
|
Scopes []string `protobuf:"bytes,3,rep,name=Scopes,proto3" json:"Scopes,omitempty"`
|
|
ExpiresAt string `protobuf:"bytes,4,opt,name=ExpiresAt,proto3" json:"ExpiresAt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateAPIKeyRequest) Reset() {
|
|
*x = CreateAPIKeyRequest{}
|
|
mi := &file_orgs_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateAPIKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateAPIKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateAPIKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateAPIKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateAPIKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{29}
|
|
}
|
|
|
|
func (x *CreateAPIKeyRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAPIKeyRequest) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAPIKeyRequest) GetScopes() []string {
|
|
if x != nil {
|
|
return x.Scopes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateAPIKeyRequest) GetExpiresAt() string {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListAPIKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ProjectID is optional for project scope.
|
|
// If not provided, will use Org scope for the current token.
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
Status ItemStatus_Enum `protobuf:"varint,2,opt,name=Status,proto3,enum=pb.ItemStatus_Enum" json:"Status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAPIKeysRequest) Reset() {
|
|
*x = ListAPIKeysRequest{}
|
|
mi := &file_orgs_proto_msgTypes[30]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAPIKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAPIKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *ListAPIKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[30]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListAPIKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListAPIKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{30}
|
|
}
|
|
|
|
func (x *ListAPIKeysRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListAPIKeysRequest) GetStatus() ItemStatus_Enum {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ItemStatus_Unknown
|
|
}
|
|
|
|
type APIKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// ProjectID is optional for project scope.
|
|
// It must match the project of the API key.
|
|
ProjectID string `protobuf:"bytes,1,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
|
|
ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *APIKeyRequest) Reset() {
|
|
*x = APIKeyRequest{}
|
|
mi := &file_orgs_proto_msgTypes[31]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *APIKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*APIKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *APIKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_orgs_proto_msgTypes[31]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use APIKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*APIKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_orgs_proto_rawDescGZIP(), []int{31}
|
|
}
|
|
|
|
func (x *APIKeyRequest) GetProjectID() string {
|
|
if x != nil {
|
|
return x.ProjectID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *APIKeyRequest) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_orgs_proto protoreflect.FileDescriptor
|
|
|
|
const file_orgs_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\n" +
|
|
"orgs.proto\x12\x02pb\x1a\x1cgoogle/api/annotations.proto\x1a\x18es/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\vtypes.proto\"\x85\x01\n" +
|
|
"\x04Role\"}\n" +
|
|
"\x04Enum\x12\b\n" +
|
|
"\x04None\x10\x00\x12\x17\n" +
|
|
"\x06APIKey\x10\x01\x1a\v\x92\xb2\x19\aAPI Key\x12\n" +
|
|
"\n" +
|
|
"\x06Viewer\x10\x02\x12\b\n" +
|
|
"\x04User\x10\x03\x12\v\n" +
|
|
"\aSupport\x10\x04\x12\v\n" +
|
|
"\aBilling\x10\x05\x12\f\n" +
|
|
"\bSecurity\x10\x06\x12\t\n" +
|
|
"\x05Admin\x10\a\x12\t\n" +
|
|
"\x05Owner\x10\b\":\n" +
|
|
"\n" +
|
|
"RoleSource\",\n" +
|
|
"\x04Enum\x12\v\n" +
|
|
"\aUnknown\x10\x00\x12\n" +
|
|
"\n" +
|
|
"\x06Direct\x10\x01\x12\v\n" +
|
|
"\aProject\x10\x02\"\xac\x01\n" +
|
|
"\x03Org\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05Alias\x18\x02 \x01(\tR\x05Alias\x12\x12\n" +
|
|
"\x04Name\x18\x03 \x01(\tR\x04Name\x12 \n" +
|
|
"\vDescription\x18\x04 \x01(\tR\vDescription\x12\x1c\n" +
|
|
"\tCreatedAt\x18\x05 \x01(\tR\tCreatedAt\x12+\n" +
|
|
"\x06Status\x18\x06 \x01(\x0e2\x13.pb.ItemStatus.EnumR\x06Status\"U\n" +
|
|
"\fOrgsResponse\x12\x1b\n" +
|
|
"\x04Orgs\x18\x01 \x03(\v2\a.pb.OrgR\x04Orgs\x12(\n" +
|
|
"\bNextPage\x18\x02 \x01(\v2\f.pb.NextPageR\bNextPage\"\xe4\x01\n" +
|
|
"\aProject\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x14\n" +
|
|
"\x05Alias\x18\x03 \x01(\tR\x05Alias\x12\x12\n" +
|
|
"\x04Name\x18\x04 \x01(\tR\x04Name\x12 \n" +
|
|
"\vDescription\x18\x05 \x01(\tR\vDescription\x12+\n" +
|
|
"\x06Status\x18\x06 \x01(\x0e2\x13.pb.ItemStatus.EnumR\x06Status\x12\x1c\n" +
|
|
"\tCreatedAt\x18\a \x01(\tR\tCreatedAt\x12\x1c\n" +
|
|
"\tUpdatedAt\x18\b \x01(\tR\tUpdatedAt\"e\n" +
|
|
"\x10ProjectsResponse\x12'\n" +
|
|
"\bProjects\x18\x01 \x03(\v2\v.pb.ProjectR\bProjects\x12(\n" +
|
|
"\bNextPage\x18\x02 \x01(\v2\f.pb.NextPageR\bNextPage\"\xe2\x01\n" +
|
|
"\tOrgAccess\x12\x14\n" +
|
|
"\x05OrgID\x18\x01 \x01(\tR\x05OrgID\x12\x1a\n" +
|
|
"\bOrgAlias\x18\x02 \x01(\tR\bOrgAlias\x12\x18\n" +
|
|
"\aOrgName\x18\x03 \x01(\tR\aOrgName\x12!\n" +
|
|
"\x04Role\x18\x04 \x01(\x0e2\r.pb.Role.EnumR\x04Role\x123\n" +
|
|
"\n" +
|
|
"RoleSource\x18\x05 \x01(\x0e2\x13.pb.RoleSource.EnumR\n" +
|
|
"RoleSource\x121\n" +
|
|
"\fExplicitRole\x18\x06 \x01(\x0e2\r.pb.Role.EnumR\fExplicitRole\"5\n" +
|
|
"\x10UserOrgsResponse\x12!\n" +
|
|
"\x04Orgs\x18\x01 \x03(\v2\r.pb.OrgAccessR\x04Orgs\"\xf5\x02\n" +
|
|
"\n" +
|
|
"Membership\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1a\n" +
|
|
"\bOrgAlias\x18\x03 \x01(\tR\bOrgAlias\x12\x18\n" +
|
|
"\aOrgName\x18\x04 \x01(\tR\aOrgName\x12\x16\n" +
|
|
"\x06UserID\x18\x05 \x01(\tR\x06UserID\x12\x12\n" +
|
|
"\x04Name\x18\x06 \x01(\tR\x04Name\x12\x14\n" +
|
|
"\x05Email\x18\a \x01(\tR\x05Email\x12!\n" +
|
|
"\x04Role\x18\b \x01(\x0e2\r.pb.Role.EnumR\x04Role\x12\x1c\n" +
|
|
"\tCreatedAt\x18\t \x01(\tR\tCreatedAt\x12$\n" +
|
|
"\x05Scope\x18\n" +
|
|
" \x01(\x0e2\x0e.pb.Scope.EnumR\x05Scope\x12\x1c\n" +
|
|
"\tProjectID\x18\v \x01(\tR\tProjectID\x12\"\n" +
|
|
"\fProjectAlias\x18\f \x01(\tR\fProjectAlias\x12 \n" +
|
|
"\vProjectName\x18\r \x01(\tR\vProjectName\"\x85\x02\n" +
|
|
"\x06Invite\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1c\n" +
|
|
"\tInviterID\x18\x03 \x01(\tR\tInviterID\x12\x14\n" +
|
|
"\x05Email\x18\x04 \x01(\tR\x05Email\x12\x1c\n" +
|
|
"\tCreatedAt\x18\x06 \x01(\tR\tCreatedAt\x12!\n" +
|
|
"\x04Role\x18\a \x01(\x0e2\r.pb.Role.EnumR\x04Role\x12$\n" +
|
|
"\x05Scope\x18\b \x01(\x0e2\x0e.pb.Scope.EnumR\x05Scope\x12\x1c\n" +
|
|
"\tProjectID\x18\t \x01(\tR\tProjectID\x12\x1c\n" +
|
|
"\tExpiresAt\x18\n" +
|
|
" \x01(\tR\tExpiresAt\"W\n" +
|
|
"\x11GetMembersRequest\x12\x1c\n" +
|
|
"\tProjectID\x18\x01 \x01(\tR\tProjectID\x12$\n" +
|
|
"\x05Scope\x18\x02 \x01(\x0e2\x0e.pb.Scope.EnumR\x05Scope\"i\n" +
|
|
"\x0fMembersResponse\x120\n" +
|
|
"\vMemberships\x18\x01 \x03(\v2\x0e.pb.MembershipR\vMemberships\x12$\n" +
|
|
"\aInvites\x18\x02 \x03(\v2\n" +
|
|
".pb.InviteR\aInvites\"d\n" +
|
|
"\x0fUserMemberships\x12\x1f\n" +
|
|
"\x03Org\x18\x01 \x01(\v2\r.pb.OrgAccessR\x03Org\x120\n" +
|
|
"\vMemberships\x18\x02 \x03(\v2\x0e.pb.MembershipR\vMemberships\"z\n" +
|
|
"\x10AddMemberRequest\x12\x1f\n" +
|
|
"\x05Email\x18\x01 \x01(\tB\t\xe8\xf3\x18\x01\x80\xf4\x18\xa0\x01R\x05Email\x12'\n" +
|
|
"\x04Role\x18\x02 \x01(\x0e2\r.pb.Role.EnumB\x04\xe8\xf3\x18\x01R\x04Role\x12\x1c\n" +
|
|
"\tProjectID\x18\x03 \x01(\tR\tProjectID\"g\n" +
|
|
"\x11AddMemberResponse\x12\"\n" +
|
|
"\x06Invite\x18\x01 \x01(\v2\n" +
|
|
".pb.InviteR\x06Invite\x12.\n" +
|
|
"\n" +
|
|
"Membership\x18\x02 \x01(\v2\x0e.pb.MembershipR\n" +
|
|
"Membership\"\xaa\x01\n" +
|
|
"\x17ChangeMemberRoleRequest\x12!\n" +
|
|
"\x06UserID\x18\x01 \x01(\tB\t\xf2\xf3\x18\x05EmailR\x06UserID\x12%\n" +
|
|
"\x05Email\x18\x02 \x01(\tB\x0f\xf2\xf3\x18\x06UserID\x80\xf4\x18\xa0\x01R\x05Email\x12'\n" +
|
|
"\x04Role\x18\x03 \x01(\x0e2\r.pb.Role.EnumB\x04\xe8\xf3\x18\x01R\x04Role\x12\x1c\n" +
|
|
"\tProjectID\x18\x04 \x01(\tR\tProjectID\"Q\n" +
|
|
"\x13DeleteMemberRequest\x12\x1c\n" +
|
|
"\x06UserID\x18\x01 \x01(\tB\x04\xe8\xf3\x18\x01R\x06UserID\x12\x1c\n" +
|
|
"\tProjectID\x18\x02 \x01(\tR\tProjectID\"O\n" +
|
|
"\x13DeleteInviteRequest\x12\x1a\n" +
|
|
"\x05Email\x18\x01 \x01(\tB\x04\xe8\xf3\x18\x01R\x05Email\x12\x1c\n" +
|
|
"\tProjectID\x18\x02 \x01(\tR\tProjectID\"T\n" +
|
|
"\x12RegisterOrgRequest\x12\x1c\n" +
|
|
"\x04Name\x18\x01 \x01(\tB\b\xe8\xf3\x18\x01\x80\xf4\x18@R\x04Name\x12 \n" +
|
|
"\vDescription\x18\x02 \x01(\tR\vDescription\"N\n" +
|
|
"\x10UpdateOrgRequest\x12\x18\n" +
|
|
"\x04Name\x18\x01 \x01(\tB\x04\x80\xf4\x18@R\x04Name\x12 \n" +
|
|
"\vDescription\x18\x02 \x01(\tR\vDescription\"t\n" +
|
|
"\x16RegisterProjectRequest\x12\x1a\n" +
|
|
"\x05Alias\x18\x01 \x01(\tB\x04\x80\xf4\x18@R\x05Alias\x12\x1c\n" +
|
|
"\x04Name\x18\x02 \x01(\tB\b\xe8\xf3\x18\x01\x80\xf4\x18@R\x04Name\x12 \n" +
|
|
"\vDescription\x18\x03 \x01(\tR\vDescription\"v\n" +
|
|
"\x14UpdateProjectRequest\x12\"\n" +
|
|
"\tProjectID\x18\x01 \x01(\tB\x04\xe8\xf3\x18\x01R\tProjectID\x12\x18\n" +
|
|
"\x04Name\x18\x02 \x01(\tB\x04\x80\xf4\x18@R\x04Name\x12 \n" +
|
|
"\vDescription\x18\x03 \x01(\tR\vDescription\"a\n" +
|
|
"\x11GetProjectRequest\x12'\n" +
|
|
"\tProjectID\x18\x01 \x01(\tB\t\xf2\xf3\x18\x05AliasR\tProjectID\x12#\n" +
|
|
"\x05Alias\x18\x02 \x01(\tB\r\xf2\xf3\x18\tProjectIDR\x05Alias\"\x88\x01\n" +
|
|
"\x13ListProjectsRequest\x12+\n" +
|
|
"\x06Status\x18\x01 \x01(\x0e2\x13.pb.ItemStatus.EnumR\x06Status\x12\x14\n" +
|
|
"\x05Limit\x18\x02 \x01(\rR\x05Limit\x12\x16\n" +
|
|
"\x06Offset\x18\x03 \x01(\rR\x06Offset\x12\x16\n" +
|
|
"\x06Cursor\x18\x04 \x01(\tR\x06Cursor\":\n" +
|
|
"\x14DeleteProjectRequest\x12\"\n" +
|
|
"\tProjectID\x18\x01 \x01(\tB\x04\xe8\xf3\x18\x01R\tProjectID\"\xb5\x01\n" +
|
|
"\x11ListEventsRequest\x12\x1c\n" +
|
|
"\tProjectID\x18\x01 \x01(\tR\tProjectID\x12&\n" +
|
|
"\x04Type\x18\x02 \x01(\x0e2\x12.pb.EventType.EnumR\x04Type\x12\x14\n" +
|
|
"\x05After\x18\x03 \x01(\tR\x05After\x12\x16\n" +
|
|
"\x06Before\x18\x04 \x01(\tR\x06Before\x12\x14\n" +
|
|
"\x05Limit\x18\x05 \x01(\rR\x05Limit\x12\x16\n" +
|
|
"\x06Cursor\x18\x06 \x01(\tR\x06Cursor\"]\n" +
|
|
"\x0eEventsResponse\x12!\n" +
|
|
"\x06Events\x18\x01 \x03(\v2\t.pb.EventR\x06Events\x12(\n" +
|
|
"\bNextPage\x18\x02 \x01(\v2\f.pb.NextPageR\bNextPage\"\x80\x03\n" +
|
|
"\x06APIKey\x12\x0e\n" +
|
|
"\x02ID\x18\x01 \x01(\tR\x02ID\x12\x14\n" +
|
|
"\x05OrgID\x18\x02 \x01(\tR\x05OrgID\x12\x1c\n" +
|
|
"\tProjectID\x18\x03 \x01(\tR\tProjectID\x12\x1b\n" +
|
|
"\x05Label\x18\x04 \x01(\tB\x05\x80\xf4\x18\x84\x02R\x05Label\x12\x17\n" +
|
|
"\x03Key\x18\x05 \x01(\tB\x05\x80\xf4\x18\x80\x01R\x03Key\x12\x1d\n" +
|
|
"\x06Secret\x18\x06 \x01(\tB\x05\x80\xf4\x18\x80\x01R\x06Secret\x12\x16\n" +
|
|
"\x06Scopes\x18\a \x03(\tR\x06Scopes\x12&\n" +
|
|
"\bMetadata\x18\b \x03(\v2\n" +
|
|
".pb.KVPairR\bMetadata\x12+\n" +
|
|
"\x06Status\x18\t \x01(\x0e2\x13.pb.ItemStatus.EnumR\x06Status\x12\x1c\n" +
|
|
"\tCreatedAt\x18\n" +
|
|
" \x01(\tR\tCreatedAt\x12\x1c\n" +
|
|
"\tExpiresAt\x18\v \x01(\tR\tExpiresAt\x12\x16\n" +
|
|
"\x06UsedAt\x18\f \x01(\tR\x06UsedAt\x12\x1c\n" +
|
|
"\tUsedCount\x18\r \x01(\rR\tUsedCount\"a\n" +
|
|
"\x0fAPIKeysResponse\x12$\n" +
|
|
"\aAPIKeys\x18\x01 \x03(\v2\n" +
|
|
".pb.APIKeyR\aAPIKeys\x12(\n" +
|
|
"\bNextPage\x18\x02 \x01(\v2\f.pb.NextPageR\bNextPage\"\x90\x01\n" +
|
|
"\x13CreateAPIKeyRequest\x12\x1c\n" +
|
|
"\tProjectID\x18\x01 \x01(\tR\tProjectID\x12\x1f\n" +
|
|
"\x05Label\x18\x02 \x01(\tB\t\xe8\xf3\x18\x01\x80\xf4\x18\x84\x02R\x05Label\x12\x1c\n" +
|
|
"\x06Scopes\x18\x03 \x03(\tB\x04\xe8\xf3\x18\x01R\x06Scopes\x12\x1c\n" +
|
|
"\tExpiresAt\x18\x04 \x01(\tR\tExpiresAt\"_\n" +
|
|
"\x12ListAPIKeysRequest\x12\x1c\n" +
|
|
"\tProjectID\x18\x01 \x01(\tR\tProjectID\x12+\n" +
|
|
"\x06Status\x18\x02 \x01(\x0e2\x13.pb.ItemStatus.EnumR\x06Status\"C\n" +
|
|
"\rAPIKeyRequest\x12\x1c\n" +
|
|
"\tProjectID\x18\x01 \x01(\tR\tProjectID\x12\x14\n" +
|
|
"\x02ID\x18\x02 \x01(\tB\x04\xe8\xf3\x18\x01R\x02ID2\xa7\x12\n" +
|
|
"\x04Orgs\x12^\n" +
|
|
"\vRegisterOrg\x12\x16.pb.RegisterOrgRequest\x1a\a.pb.Org\".\x82C\forg register\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/pb.Orgs/RegisterOrg\x12j\n" +
|
|
"\x06GetOrg\x12\x16.google.protobuf.Empty\x1a\a.pb.Org\"?\xfaB\rViewer,APIKey\x82C\aorg get\x92C\borg:read\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/pb.Orgs/GetOrg\x12^\n" +
|
|
"\tUpdateOrg\x12\x14.pb.UpdateOrgRequest\x1a\a.pb.Org\"2\xfaB\x05Admin\x82C\n" +
|
|
"org update\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/pb.Orgs/UpdateOrg\x12`\n" +
|
|
"\tDeleteOrg\x12\x16.google.protobuf.Empty\x1a\a.pb.Org\"2\xfaB\x05Owner\x82C\n" +
|
|
"org delete\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/pb.Orgs/DeleteOrg\x12g\n" +
|
|
"\vGetUserOrgs\x12\x16.google.protobuf.Empty\x1a\x14.pb.UserOrgsResponse\"*\x82C\borg list\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/pb.Orgs/GetUserOrgs\x12\x7f\n" +
|
|
"\x12GetUserMemberships\x12\x16.google.protobuf.Empty\x1a\x13.pb.UserMemberships\"<\xfaB\x06Viewer\x82C\n" +
|
|
"org access\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/pb.Orgs/GetUserMemberships\x12y\n" +
|
|
"\n" +
|
|
"GetMembers\x12\x15.pb.GetMembersRequest\x1a\x13.pb.MembersResponse\"?\xfaB\x10Support,Security\x82C\vmember list\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/pb.Orgs/GetMembers\x12l\n" +
|
|
"\tAddMember\x12\x14.pb.AddMemberRequest\x1a\x15.pb.AddMemberResponse\"2\xfaB\x05Admin\x82C\n" +
|
|
"member add\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/pb.Orgs/AddMember\x12{\n" +
|
|
"\x10ChangeMemberRole\x12\x1b.pb.ChangeMemberRoleRequest\x1a\x0e.pb.Membership\":\xfaB\x05Admin\x82C\vmember role\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/pb.Orgs/ChangeMemberRole\x12y\n" +
|
|
"\fDeleteMember\x12\x17.pb.DeleteMemberRequest\x1a\x16.google.protobuf.Empty\"8\xfaB\x05Admin\x82C\rmember delete\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/pb.Orgs/DeleteMember\x12\x80\x01\n" +
|
|
"\fDeleteInvite\x12\x17.pb.DeleteInviteRequest\x1a\x16.google.protobuf.Empty\"?\xfaB\x05Admin\x82C\x14member invite delete\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/pb.Orgs/DeleteInvite\x12z\n" +
|
|
"\x0fRegisterProject\x12\x1a.pb.RegisterProjectRequest\x1a\v.pb.Project\">\xfaB\x05Admin\x82C\x10project register\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/pb.Orgs/RegisterProject\x12r\n" +
|
|
"\rUpdateProject\x12\x18.pb.UpdateProjectRequest\x1a\v.pb.Project\":\xfaB\x05Admin\x82C\x0eproject update\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/pb.Orgs/UpdateProject\x12}\n" +
|
|
"\n" +
|
|
"GetProject\x12\x15.pb.GetProjectRequest\x1a\v.pb.Project\"K\xfaB\rViewer,APIKey\x82C\vproject get\x92C\fproject:read\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/pb.Orgs/GetProject\x12\x89\x01\n" +
|
|
"\fListProjects\x12\x17.pb.ListProjectsRequest\x1a\x14.pb.ProjectsResponse\"J\xfaB\rViewer,APIKey\x82C\fproject list\x92C\borg:read\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/pb.Orgs/ListProjects\x12r\n" +
|
|
"\rDeleteProject\x12\x18.pb.DeleteProjectRequest\x1a\v.pb.Project\":\xfaB\x05Admin\x82C\x0eproject delete\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/pb.Orgs/DeleteProject\x12\x7f\n" +
|
|
"\n" +
|
|
"ListEvents\x12\x15.pb.ListEventsRequest\x1a\x12.pb.EventsResponse\"F\xfaB\rViewer,APIKey\x82C\n" +
|
|
"event list\x92C\borg:read\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/pb.Orgs/ListEvents\x12n\n" +
|
|
"\fCreateAPIKey\x12\x17.pb.CreateAPIKeyRequest\x1a\n" +
|
|
".pb.APIKey\"9\xfaB\x05Admin\x82C\x0eapi-key create\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/pb.Orgs/CreateAPIKey\x12r\n" +
|
|
"\vListAPIKeys\x12\x16.pb.ListAPIKeysRequest\x1a\x13.pb.APIKeysResponse\"6\xfaB\x05Admin\x82C\fapi-key list\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/pb.Orgs/ListAPIKeys\x12o\n" +
|
|
"\fDeleteAPIKey\x12\x11.pb.APIKeyRequest\x1a\x11.pb.RecordsResult\"9\xfaB\x05Admin\x82C\x0eapi-key delete\x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/pb.Orgs/DeleteAPIKeyB/Z-github.com/effective-security/trustyca/api/pbb\x06proto3"
|
|
|
|
var (
|
|
file_orgs_proto_rawDescOnce sync.Once
|
|
file_orgs_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_orgs_proto_rawDescGZIP() []byte {
|
|
file_orgs_proto_rawDescOnce.Do(func() {
|
|
file_orgs_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_orgs_proto_rawDesc), len(file_orgs_proto_rawDesc)))
|
|
})
|
|
return file_orgs_proto_rawDescData
|
|
}
|
|
|
|
var file_orgs_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_orgs_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
|
|
var file_orgs_proto_goTypes = []any{
|
|
(Role_Enum)(0), // 0: pb.Role.Enum
|
|
(RoleSource_Enum)(0), // 1: pb.RoleSource.Enum
|
|
(*Role)(nil), // 2: pb.Role
|
|
(*RoleSource)(nil), // 3: pb.RoleSource
|
|
(*Org)(nil), // 4: pb.Org
|
|
(*OrgsResponse)(nil), // 5: pb.OrgsResponse
|
|
(*Project)(nil), // 6: pb.Project
|
|
(*ProjectsResponse)(nil), // 7: pb.ProjectsResponse
|
|
(*OrgAccess)(nil), // 8: pb.OrgAccess
|
|
(*UserOrgsResponse)(nil), // 9: pb.UserOrgsResponse
|
|
(*Membership)(nil), // 10: pb.Membership
|
|
(*Invite)(nil), // 11: pb.Invite
|
|
(*GetMembersRequest)(nil), // 12: pb.GetMembersRequest
|
|
(*MembersResponse)(nil), // 13: pb.MembersResponse
|
|
(*UserMemberships)(nil), // 14: pb.UserMemberships
|
|
(*AddMemberRequest)(nil), // 15: pb.AddMemberRequest
|
|
(*AddMemberResponse)(nil), // 16: pb.AddMemberResponse
|
|
(*ChangeMemberRoleRequest)(nil), // 17: pb.ChangeMemberRoleRequest
|
|
(*DeleteMemberRequest)(nil), // 18: pb.DeleteMemberRequest
|
|
(*DeleteInviteRequest)(nil), // 19: pb.DeleteInviteRequest
|
|
(*RegisterOrgRequest)(nil), // 20: pb.RegisterOrgRequest
|
|
(*UpdateOrgRequest)(nil), // 21: pb.UpdateOrgRequest
|
|
(*RegisterProjectRequest)(nil), // 22: pb.RegisterProjectRequest
|
|
(*UpdateProjectRequest)(nil), // 23: pb.UpdateProjectRequest
|
|
(*GetProjectRequest)(nil), // 24: pb.GetProjectRequest
|
|
(*ListProjectsRequest)(nil), // 25: pb.ListProjectsRequest
|
|
(*DeleteProjectRequest)(nil), // 26: pb.DeleteProjectRequest
|
|
(*ListEventsRequest)(nil), // 27: pb.ListEventsRequest
|
|
(*EventsResponse)(nil), // 28: pb.EventsResponse
|
|
(*APIKey)(nil), // 29: pb.APIKey
|
|
(*APIKeysResponse)(nil), // 30: pb.APIKeysResponse
|
|
(*CreateAPIKeyRequest)(nil), // 31: pb.CreateAPIKeyRequest
|
|
(*ListAPIKeysRequest)(nil), // 32: pb.ListAPIKeysRequest
|
|
(*APIKeyRequest)(nil), // 33: pb.APIKeyRequest
|
|
(ItemStatus_Enum)(0), // 34: pb.ItemStatus.Enum
|
|
(*NextPage)(nil), // 35: pb.NextPage
|
|
(Scope_Enum)(0), // 36: pb.Scope.Enum
|
|
(EventType_Enum)(0), // 37: pb.EventType.Enum
|
|
(*Event)(nil), // 38: pb.Event
|
|
(*KVPair)(nil), // 39: pb.KVPair
|
|
(*emptypb.Empty)(nil), // 40: google.protobuf.Empty
|
|
(*RecordsResult)(nil), // 41: pb.RecordsResult
|
|
}
|
|
var file_orgs_proto_depIdxs = []int32{
|
|
34, // 0: pb.Org.Status:type_name -> pb.ItemStatus.Enum
|
|
4, // 1: pb.OrgsResponse.Orgs:type_name -> pb.Org
|
|
35, // 2: pb.OrgsResponse.NextPage:type_name -> pb.NextPage
|
|
34, // 3: pb.Project.Status:type_name -> pb.ItemStatus.Enum
|
|
6, // 4: pb.ProjectsResponse.Projects:type_name -> pb.Project
|
|
35, // 5: pb.ProjectsResponse.NextPage:type_name -> pb.NextPage
|
|
0, // 6: pb.OrgAccess.Role:type_name -> pb.Role.Enum
|
|
1, // 7: pb.OrgAccess.RoleSource:type_name -> pb.RoleSource.Enum
|
|
0, // 8: pb.OrgAccess.ExplicitRole:type_name -> pb.Role.Enum
|
|
8, // 9: pb.UserOrgsResponse.Orgs:type_name -> pb.OrgAccess
|
|
0, // 10: pb.Membership.Role:type_name -> pb.Role.Enum
|
|
36, // 11: pb.Membership.Scope:type_name -> pb.Scope.Enum
|
|
0, // 12: pb.Invite.Role:type_name -> pb.Role.Enum
|
|
36, // 13: pb.Invite.Scope:type_name -> pb.Scope.Enum
|
|
36, // 14: pb.GetMembersRequest.Scope:type_name -> pb.Scope.Enum
|
|
10, // 15: pb.MembersResponse.Memberships:type_name -> pb.Membership
|
|
11, // 16: pb.MembersResponse.Invites:type_name -> pb.Invite
|
|
8, // 17: pb.UserMemberships.Org:type_name -> pb.OrgAccess
|
|
10, // 18: pb.UserMemberships.Memberships:type_name -> pb.Membership
|
|
0, // 19: pb.AddMemberRequest.Role:type_name -> pb.Role.Enum
|
|
11, // 20: pb.AddMemberResponse.Invite:type_name -> pb.Invite
|
|
10, // 21: pb.AddMemberResponse.Membership:type_name -> pb.Membership
|
|
0, // 22: pb.ChangeMemberRoleRequest.Role:type_name -> pb.Role.Enum
|
|
34, // 23: pb.ListProjectsRequest.Status:type_name -> pb.ItemStatus.Enum
|
|
37, // 24: pb.ListEventsRequest.Type:type_name -> pb.EventType.Enum
|
|
38, // 25: pb.EventsResponse.Events:type_name -> pb.Event
|
|
35, // 26: pb.EventsResponse.NextPage:type_name -> pb.NextPage
|
|
39, // 27: pb.APIKey.Metadata:type_name -> pb.KVPair
|
|
34, // 28: pb.APIKey.Status:type_name -> pb.ItemStatus.Enum
|
|
29, // 29: pb.APIKeysResponse.APIKeys:type_name -> pb.APIKey
|
|
35, // 30: pb.APIKeysResponse.NextPage:type_name -> pb.NextPage
|
|
34, // 31: pb.ListAPIKeysRequest.Status:type_name -> pb.ItemStatus.Enum
|
|
20, // 32: pb.Orgs.RegisterOrg:input_type -> pb.RegisterOrgRequest
|
|
40, // 33: pb.Orgs.GetOrg:input_type -> google.protobuf.Empty
|
|
21, // 34: pb.Orgs.UpdateOrg:input_type -> pb.UpdateOrgRequest
|
|
40, // 35: pb.Orgs.DeleteOrg:input_type -> google.protobuf.Empty
|
|
40, // 36: pb.Orgs.GetUserOrgs:input_type -> google.protobuf.Empty
|
|
40, // 37: pb.Orgs.GetUserMemberships:input_type -> google.protobuf.Empty
|
|
12, // 38: pb.Orgs.GetMembers:input_type -> pb.GetMembersRequest
|
|
15, // 39: pb.Orgs.AddMember:input_type -> pb.AddMemberRequest
|
|
17, // 40: pb.Orgs.ChangeMemberRole:input_type -> pb.ChangeMemberRoleRequest
|
|
18, // 41: pb.Orgs.DeleteMember:input_type -> pb.DeleteMemberRequest
|
|
19, // 42: pb.Orgs.DeleteInvite:input_type -> pb.DeleteInviteRequest
|
|
22, // 43: pb.Orgs.RegisterProject:input_type -> pb.RegisterProjectRequest
|
|
23, // 44: pb.Orgs.UpdateProject:input_type -> pb.UpdateProjectRequest
|
|
24, // 45: pb.Orgs.GetProject:input_type -> pb.GetProjectRequest
|
|
25, // 46: pb.Orgs.ListProjects:input_type -> pb.ListProjectsRequest
|
|
26, // 47: pb.Orgs.DeleteProject:input_type -> pb.DeleteProjectRequest
|
|
27, // 48: pb.Orgs.ListEvents:input_type -> pb.ListEventsRequest
|
|
31, // 49: pb.Orgs.CreateAPIKey:input_type -> pb.CreateAPIKeyRequest
|
|
32, // 50: pb.Orgs.ListAPIKeys:input_type -> pb.ListAPIKeysRequest
|
|
33, // 51: pb.Orgs.DeleteAPIKey:input_type -> pb.APIKeyRequest
|
|
4, // 52: pb.Orgs.RegisterOrg:output_type -> pb.Org
|
|
4, // 53: pb.Orgs.GetOrg:output_type -> pb.Org
|
|
4, // 54: pb.Orgs.UpdateOrg:output_type -> pb.Org
|
|
4, // 55: pb.Orgs.DeleteOrg:output_type -> pb.Org
|
|
9, // 56: pb.Orgs.GetUserOrgs:output_type -> pb.UserOrgsResponse
|
|
14, // 57: pb.Orgs.GetUserMemberships:output_type -> pb.UserMemberships
|
|
13, // 58: pb.Orgs.GetMembers:output_type -> pb.MembersResponse
|
|
16, // 59: pb.Orgs.AddMember:output_type -> pb.AddMemberResponse
|
|
10, // 60: pb.Orgs.ChangeMemberRole:output_type -> pb.Membership
|
|
40, // 61: pb.Orgs.DeleteMember:output_type -> google.protobuf.Empty
|
|
40, // 62: pb.Orgs.DeleteInvite:output_type -> google.protobuf.Empty
|
|
6, // 63: pb.Orgs.RegisterProject:output_type -> pb.Project
|
|
6, // 64: pb.Orgs.UpdateProject:output_type -> pb.Project
|
|
6, // 65: pb.Orgs.GetProject:output_type -> pb.Project
|
|
7, // 66: pb.Orgs.ListProjects:output_type -> pb.ProjectsResponse
|
|
6, // 67: pb.Orgs.DeleteProject:output_type -> pb.Project
|
|
28, // 68: pb.Orgs.ListEvents:output_type -> pb.EventsResponse
|
|
29, // 69: pb.Orgs.CreateAPIKey:output_type -> pb.APIKey
|
|
30, // 70: pb.Orgs.ListAPIKeys:output_type -> pb.APIKeysResponse
|
|
41, // 71: pb.Orgs.DeleteAPIKey:output_type -> pb.RecordsResult
|
|
52, // [52:72] is the sub-list for method output_type
|
|
32, // [32:52] is the sub-list for method input_type
|
|
32, // [32:32] is the sub-list for extension type_name
|
|
32, // [32:32] is the sub-list for extension extendee
|
|
0, // [0:32] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_orgs_proto_init() }
|
|
func file_orgs_proto_init() {
|
|
if File_orgs_proto != nil {
|
|
return
|
|
}
|
|
file_types_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_orgs_proto_rawDesc), len(file_orgs_proto_rawDesc)),
|
|
NumEnums: 2,
|
|
NumMessages: 32,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_orgs_proto_goTypes,
|
|
DependencyIndexes: file_orgs_proto_depIdxs,
|
|
EnumInfos: file_orgs_proto_enumTypes,
|
|
MessageInfos: file_orgs_proto_msgTypes,
|
|
}.Build()
|
|
File_orgs_proto = out.File
|
|
file_orgs_proto_goTypes = nil
|
|
file_orgs_proto_depIdxs = nil
|
|
}
|