Files
threshold/sdk/pbs/controller/api/resources/groups/group.pb.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

305 lines
12 KiB
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
2020-06-15 15:22:41 -07:00
// SPDX-License-Identifier: MPL-2.0
2023-02-02 17:15:17 -08:00
2020-06-15 15:22:41 -07:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc (unknown)
2020-06-15 15:22:41 -07:00
// source: controller/api/resources/groups/v1/group.proto
package groups
import (
scopes "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/scopes"
2021-08-26 11:04:32 -04:00
_ "github.com/hashicorp/boundary/sdk/pbs/controller/protooptions"
2020-06-15 15:22:41 -07:00
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
2021-04-15 13:11:23 -05:00
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
2021-01-08 10:32:02 -05:00
reflect "reflect"
sync "sync"
unsafe "unsafe"
2020-06-15 15:22:41 -07:00
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Member struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
2020-09-26 08:30:27 -04:00
// Output only. The ID of the member.
2023-07-28 12:41:55 -07:00
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The Scope ID of the member.
2025-02-19 09:14:41 -08:00
ScopeId string `protobuf:"bytes,20,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Member) Reset() {
*x = Member{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_api_resources_groups_v1_group_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Member) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Member) ProtoMessage() {}
func (x *Member) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_groups_v1_group_proto_msgTypes[0]
2025-02-19 09:14:41 -08:00
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 Member.ProtoReflect.Descriptor instead.
func (*Member) Descriptor() ([]byte, []int) {
return file_controller_api_resources_groups_v1_group_proto_rawDescGZIP(), []int{0}
}
func (x *Member) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Member) GetScopeId() string {
if x != nil {
return x.ScopeId
}
return ""
}
2020-06-15 15:22:41 -07:00
// Group contains all fields related to a Group resource
type Group struct {
2025-02-19 09:14:41 -08:00
state protoimpl.MessageState `protogen:"open.v1"`
2020-09-26 08:30:27 -04:00
// Output only. The ID of the Group.
2023-07-28 12:41:55 -07:00
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// The ID of the scope of which this Group is a part.
2023-07-28 12:41:55 -07:00
ScopeId string `protobuf:"bytes,20,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. Scope information for this Group.
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
2020-09-26 08:30:27 -04:00
// Optional name for identification purposes.
Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"`
2020-09-26 08:30:27 -04:00
// Optional user-set descripton for identification purposes.
Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"`
2020-09-26 08:30:27 -04:00
// Output only. The time this resource was created.
2023-07-28 12:41:55 -07:00
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The time this resource was last updated.
2023-07-28 12:41:55 -07:00
UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"`
2020-09-26 08:30:27 -04:00
// Output only. Contains the list of member IDs in this Group.
2023-07-28 12:41:55 -07:00
MemberIds []string `protobuf:"bytes,90,rep,name=member_ids,proto3" json:"member_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The members of this Group.
Members []*Member `protobuf:"bytes,100,rep,name=members,proto3" json:"members,omitempty"`
// Output only. The available actions on this resource for this user.
AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
2020-06-15 15:22:41 -07:00
}
func (x *Group) Reset() {
*x = Group{}
2025-02-19 09:14:41 -08:00
mi := &file_controller_api_resources_groups_v1_group_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2020-06-15 15:22:41 -07:00
}
func (x *Group) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Group) ProtoMessage() {}
func (x *Group) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_groups_v1_group_proto_msgTypes[1]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-06-15 15:22:41 -07:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Group.ProtoReflect.Descriptor instead.
func (*Group) Descriptor() ([]byte, []int) {
return file_controller_api_resources_groups_v1_group_proto_rawDescGZIP(), []int{1}
2020-06-15 15:22:41 -07:00
}
func (x *Group) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Group) GetScopeId() string {
if x != nil {
return x.ScopeId
}
return ""
}
2020-07-22 00:14:28 -04:00
func (x *Group) GetScope() *scopes.ScopeInfo {
if x != nil {
return x.Scope
}
return nil
}
2021-04-15 13:11:23 -05:00
func (x *Group) GetName() *wrapperspb.StringValue {
2020-06-15 15:22:41 -07:00
if x != nil {
return x.Name
}
return nil
}
2021-04-15 13:11:23 -05:00
func (x *Group) GetDescription() *wrapperspb.StringValue {
2020-06-15 15:22:41 -07:00
if x != nil {
return x.Description
}
return nil
}
2021-04-15 13:11:23 -05:00
func (x *Group) GetCreatedTime() *timestamppb.Timestamp {
2020-06-15 15:22:41 -07:00
if x != nil {
return x.CreatedTime
}
return nil
}
2021-04-15 13:11:23 -05:00
func (x *Group) GetUpdatedTime() *timestamppb.Timestamp {
2020-06-15 15:22:41 -07:00
if x != nil {
return x.UpdatedTime
}
return nil
}
func (x *Group) GetVersion() uint32 {
if x != nil {
return x.Version
}
return 0
}
func (x *Group) GetMemberIds() []string {
if x != nil {
return x.MemberIds
}
return nil
}
func (x *Group) GetMembers() []*Member {
if x != nil {
return x.Members
}
return nil
}
func (x *Group) GetAuthorizedActions() []string {
if x != nil {
return x.AuthorizedActions
}
return nil
}
2020-06-15 15:22:41 -07:00
var File_controller_api_resources_groups_v1_group_proto protoreflect.FileDescriptor
const file_controller_api_resources_groups_v1_group_proto_rawDesc = "" +
"\n" +
".controller/api/resources/groups/v1/group.proto\x12\"controller.api.resources.groups.v1\x1a.controller/api/resources/scopes/v1/scope.proto\x1a*controller/custom_options/v1/options.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"4\n" +
"\x06Member\x12\x0e\n" +
"\x02id\x18\n" +
" \x01(\tR\x02id\x12\x1a\n" +
"\bscope_id\x18\x14 \x01(\tR\bscope_id\"\xd5\x04\n" +
"\x05Group\x12\x0e\n" +
"\x02id\x18\n" +
" \x01(\tR\x02id\x12\x1a\n" +
"\bscope_id\x18\x14 \x01(\tR\bscope_id\x12C\n" +
"\x05scope\x18\x1e \x01(\v2-.controller.api.resources.scopes.v1.ScopeInfoR\x05scope\x12F\n" +
"\x04name\x18( \x01(\v2\x1c.google.protobuf.StringValueB\x14\xa0\xda)\x01\xc2\xdd)\f\n" +
"\x04name\x12\x04nameR\x04name\x12b\n" +
"\vdescription\x182 \x01(\v2\x1c.google.protobuf.StringValueB\"\xa0\xda)\x01\xc2\xdd)\x1a\n" +
"\vdescription\x12\vdescriptionR\vdescription\x12>\n" +
"\fcreated_time\x18< \x01(\v2\x1a.google.protobuf.TimestampR\fcreated_time\x12>\n" +
"\fupdated_time\x18F \x01(\v2\x1a.google.protobuf.TimestampR\fupdated_time\x12\x18\n" +
"\aversion\x18P \x01(\rR\aversion\x12\x1e\n" +
"\n" +
"member_ids\x18Z \x03(\tR\n" +
"member_ids\x12D\n" +
"\amembers\x18d \x03(\v2*.controller.api.resources.groups.v1.MemberR\amembers\x12/\n" +
"\x12authorized_actions\x18\xac\x02 \x03(\tR\x12authorized_actionsBNZLgithub.com/hashicorp/boundary/sdk/pbs/controller/api/resources/groups;groupsb\x06proto3"
2020-06-15 15:22:41 -07:00
var (
file_controller_api_resources_groups_v1_group_proto_rawDescOnce sync.Once
file_controller_api_resources_groups_v1_group_proto_rawDescData []byte
2020-06-15 15:22:41 -07:00
)
func file_controller_api_resources_groups_v1_group_proto_rawDescGZIP() []byte {
file_controller_api_resources_groups_v1_group_proto_rawDescOnce.Do(func() {
file_controller_api_resources_groups_v1_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_api_resources_groups_v1_group_proto_rawDesc), len(file_controller_api_resources_groups_v1_group_proto_rawDesc)))
2020-06-15 15:22:41 -07:00
})
return file_controller_api_resources_groups_v1_group_proto_rawDescData
}
2021-01-08 10:32:02 -05:00
var file_controller_api_resources_groups_v1_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_controller_api_resources_groups_v1_group_proto_goTypes = []any{
2021-04-15 13:11:23 -05:00
(*Member)(nil), // 0: controller.api.resources.groups.v1.Member
(*Group)(nil), // 1: controller.api.resources.groups.v1.Group
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
(*wrapperspb.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
2021-01-08 10:32:02 -05:00
}
2020-06-15 15:22:41 -07:00
var file_controller_api_resources_groups_v1_group_proto_depIdxs = []int32{
2, // 0: controller.api.resources.groups.v1.Group.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
3, // 1: controller.api.resources.groups.v1.Group.name:type_name -> google.protobuf.StringValue
3, // 2: controller.api.resources.groups.v1.Group.description:type_name -> google.protobuf.StringValue
4, // 3: controller.api.resources.groups.v1.Group.created_time:type_name -> google.protobuf.Timestamp
4, // 4: controller.api.resources.groups.v1.Group.updated_time:type_name -> google.protobuf.Timestamp
0, // 5: controller.api.resources.groups.v1.Group.members:type_name -> controller.api.resources.groups.v1.Member
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
2020-06-15 15:22:41 -07:00
}
func init() { file_controller_api_resources_groups_v1_group_proto_init() }
func file_controller_api_resources_groups_v1_group_proto_init() {
if File_controller_api_resources_groups_v1_group_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_api_resources_groups_v1_group_proto_rawDesc), len(file_controller_api_resources_groups_v1_group_proto_rawDesc)),
2020-06-15 15:22:41 -07:00
NumEnums: 0,
NumMessages: 2,
2020-06-15 15:22:41 -07:00
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_controller_api_resources_groups_v1_group_proto_goTypes,
DependencyIndexes: file_controller_api_resources_groups_v1_group_proto_depIdxs,
MessageInfos: file_controller_api_resources_groups_v1_group_proto_msgTypes,
}.Build()
File_controller_api_resources_groups_v1_group_proto = out.File
file_controller_api_resources_groups_v1_group_proto_goTypes = nil
file_controller_api_resources_groups_v1_group_proto_depIdxs = nil
}