mirror of https://github.com/hashicorp/boundary
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
350 lines
13 KiB
350 lines
13 KiB
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc (unknown)
|
|
// source: controller/api/resources/users/v1/user.proto
|
|
|
|
package users
|
|
|
|
import (
|
|
scopes "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/scopes"
|
|
_ "github.com/hashicorp/boundary/sdk/pbs/controller/protooptions"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
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 Account struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Output only. The ID of the Account.
|
|
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
|
|
// Output only. The Scope containing the Account.
|
|
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 *Account) Reset() {
|
|
*x = Account{}
|
|
mi := &file_controller_api_resources_users_v1_user_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Account) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Account) ProtoMessage() {}
|
|
|
|
func (x *Account) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_resources_users_v1_user_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 Account.ProtoReflect.Descriptor instead.
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_resources_users_v1_user_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Account) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Account) GetScopeId() string {
|
|
if x != nil {
|
|
return x.ScopeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// User contains all fields related to a User resource
|
|
type User struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Output only. The ID of the User.
|
|
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
|
|
// The ID of the Scope this resource is in.
|
|
ScopeId string `protobuf:"bytes,20,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
|
|
// Output only. Scope information for this resource.
|
|
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
|
|
// Optional name for identification purposes.
|
|
Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
|
|
// Optional user-set description for identification purposes.
|
|
Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
|
|
// Output only. The time this resource was created.
|
|
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
|
|
// Output only. The time this resource was last updated.
|
|
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"`
|
|
// Output only. Contains the list of Account IDs linked to this User.
|
|
AccountIds []string `protobuf:"bytes,90,rep,name=account_ids,proto3" json:"account_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
|
|
// Output only. The Accounts linked to this User.
|
|
Accounts []*Account `protobuf:"bytes,100,rep,name=accounts,proto3" json:"accounts,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"`
|
|
// Output only. login_name is a string that maps to the user's account "login
|
|
// name" from the scope's primary auth method
|
|
LoginName string `protobuf:"bytes,110,opt,name=login_name,proto3" json:"login_name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
|
|
// Output only. full_name is a string that maps to the user's account name
|
|
// from the scope's primary auth method
|
|
FullName string `protobuf:"bytes,120,opt,name=full_name,proto3" json:"full_name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
|
|
// Output only. email is a string that maps to the user's account email from
|
|
// the scope's primary auth method
|
|
Email string `protobuf:"bytes,130,opt,name=email,proto3" json:"email,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
|
|
// Output only. primary_account_id is a string that maps to the user's account
|
|
// public_id from the scope's primary auth method
|
|
PrimaryAccountId string `protobuf:"bytes,140,opt,name=primary_account_id,proto3" json:"primary_account_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *User) Reset() {
|
|
*x = User{}
|
|
mi := &file_controller_api_resources_users_v1_user_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *User) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*User) ProtoMessage() {}
|
|
|
|
func (x *User) ProtoReflect() protoreflect.Message {
|
|
mi := &file_controller_api_resources_users_v1_user_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 User.ProtoReflect.Descriptor instead.
|
|
func (*User) Descriptor() ([]byte, []int) {
|
|
return file_controller_api_resources_users_v1_user_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *User) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetScopeId() string {
|
|
if x != nil {
|
|
return x.ScopeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetScope() *scopes.ScopeInfo {
|
|
if x != nil {
|
|
return x.Scope
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetName() *wrapperspb.StringValue {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetDescription() *wrapperspb.StringValue {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetCreatedTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetUpdatedTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.UpdatedTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetVersion() uint32 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *User) GetAccountIds() []string {
|
|
if x != nil {
|
|
return x.AccountIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetAccounts() []*Account {
|
|
if x != nil {
|
|
return x.Accounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetAuthorizedActions() []string {
|
|
if x != nil {
|
|
return x.AuthorizedActions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *User) GetLoginName() string {
|
|
if x != nil {
|
|
return x.LoginName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetFullName() string {
|
|
if x != nil {
|
|
return x.FullName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *User) GetPrimaryAccountId() string {
|
|
if x != nil {
|
|
return x.PrimaryAccountId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_controller_api_resources_users_v1_user_proto protoreflect.FileDescriptor
|
|
|
|
const file_controller_api_resources_users_v1_user_proto_rawDesc = "" +
|
|
"\n" +
|
|
",controller/api/resources/users/v1/user.proto\x12!controller.api.resources.users.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\"5\n" +
|
|
"\aAccount\x12\x0e\n" +
|
|
"\x02id\x18\n" +
|
|
" \x01(\tR\x02id\x12\x1a\n" +
|
|
"\bscope_id\x18\x14 \x01(\tR\bscope_id\"\xde\x05\n" +
|
|
"\x04User\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 \n" +
|
|
"\vaccount_ids\x18Z \x03(\tR\vaccount_ids\x12F\n" +
|
|
"\baccounts\x18d \x03(\v2*.controller.api.resources.users.v1.AccountR\baccounts\x12/\n" +
|
|
"\x12authorized_actions\x18\xac\x02 \x03(\tR\x12authorized_actions\x12\x1e\n" +
|
|
"\n" +
|
|
"login_name\x18n \x01(\tR\n" +
|
|
"login_name\x12\x1c\n" +
|
|
"\tfull_name\x18x \x01(\tR\tfull_name\x12\x15\n" +
|
|
"\x05email\x18\x82\x01 \x01(\tR\x05email\x12/\n" +
|
|
"\x12primary_account_id\x18\x8c\x01 \x01(\tR\x12primary_account_idBLZJgithub.com/hashicorp/boundary/sdk/pbs/controller/api/resources/users;usersb\x06proto3"
|
|
|
|
var (
|
|
file_controller_api_resources_users_v1_user_proto_rawDescOnce sync.Once
|
|
file_controller_api_resources_users_v1_user_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_controller_api_resources_users_v1_user_proto_rawDescGZIP() []byte {
|
|
file_controller_api_resources_users_v1_user_proto_rawDescOnce.Do(func() {
|
|
file_controller_api_resources_users_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_api_resources_users_v1_user_proto_rawDesc), len(file_controller_api_resources_users_v1_user_proto_rawDesc)))
|
|
})
|
|
return file_controller_api_resources_users_v1_user_proto_rawDescData
|
|
}
|
|
|
|
var file_controller_api_resources_users_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_controller_api_resources_users_v1_user_proto_goTypes = []any{
|
|
(*Account)(nil), // 0: controller.api.resources.users.v1.Account
|
|
(*User)(nil), // 1: controller.api.resources.users.v1.User
|
|
(*scopes.ScopeInfo)(nil), // 2: controller.api.resources.scopes.v1.ScopeInfo
|
|
(*wrapperspb.StringValue)(nil), // 3: google.protobuf.StringValue
|
|
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
|
}
|
|
var file_controller_api_resources_users_v1_user_proto_depIdxs = []int32{
|
|
2, // 0: controller.api.resources.users.v1.User.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
|
|
3, // 1: controller.api.resources.users.v1.User.name:type_name -> google.protobuf.StringValue
|
|
3, // 2: controller.api.resources.users.v1.User.description:type_name -> google.protobuf.StringValue
|
|
4, // 3: controller.api.resources.users.v1.User.created_time:type_name -> google.protobuf.Timestamp
|
|
4, // 4: controller.api.resources.users.v1.User.updated_time:type_name -> google.protobuf.Timestamp
|
|
0, // 5: controller.api.resources.users.v1.User.accounts:type_name -> controller.api.resources.users.v1.Account
|
|
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
|
|
}
|
|
|
|
func init() { file_controller_api_resources_users_v1_user_proto_init() }
|
|
func file_controller_api_resources_users_v1_user_proto_init() {
|
|
if File_controller_api_resources_users_v1_user_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_users_v1_user_proto_rawDesc), len(file_controller_api_resources_users_v1_user_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_controller_api_resources_users_v1_user_proto_goTypes,
|
|
DependencyIndexes: file_controller_api_resources_users_v1_user_proto_depIdxs,
|
|
MessageInfos: file_controller_api_resources_users_v1_user_proto_msgTypes,
|
|
}.Build()
|
|
File_controller_api_resources_users_v1_user_proto = out.File
|
|
file_controller_api_resources_users_v1_user_proto_goTypes = nil
|
|
file_controller_api_resources_users_v1_user_proto_depIdxs = nil
|
|
}
|