2020-09-29 13:17:59 -07:00
// Copyright (c) HashiCorp, Inc.
2020-08-27 20:43:33 -04:00
// SPDX-License-Identifier: MPL-2.0
2023-02-02 17:15:17 -08:00
2020-08-27 20:43:33 -04:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-05-23 09:42:26 -07:00
// protoc-gen-go v1.36.6
2022-04-04 13:55:42 -04:00
// protoc (unknown)
2020-08-27 20:43:33 -04:00
// source: controller/api/resources/accounts/v1/account.proto
package accounts
import (
2024-04-08 13:55:17 -07:00
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
2021-08-26 10:44:41 -04:00
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"
2024-04-08 13:55:17 -07:00
_ "google.golang.org/genproto/googleapis/api/annotations"
2022-03-28 15:54:52 -04:00
_ "google.golang.org/genproto/googleapis/api/visibility"
2020-08-27 20:43:33 -04:00
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
2021-04-15 13:11:23 -05:00
structpb "google.golang.org/protobuf/types/known/structpb"
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"
2025-05-23 09:42:26 -07:00
unsafe "unsafe"
2020-08-27 20:43:33 -04: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 )
)
2024-04-08 13:55:17 -07:00
// Account contains all fields related to an account resource
2020-08-27 20:43:33 -04:00
type Account struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2024-04-08 13:55:17 -07:00
// The ID of the account.
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"`
2024-04-08 13:55:17 -07:00
// Scope information for the account.
2020-08-27 20:43:33 -04:00
Scope * scopes . ScopeInfo `protobuf:"bytes,20,opt,name=scope,proto3" json:"scope,omitempty"`
2020-09-26 08:30:27 -04:00
// Optional name for identification purposes.
2022-03-29 17:42:23 -04:00
Name * wrapperspb . StringValue `protobuf:"bytes,30,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"`
2020-09-29 13:17:59 -07:00
// Optional user-set description for identification purposes.
2022-03-29 17:42:23 -04:00
Description * wrapperspb . StringValue `protobuf:"bytes,40,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"`
2024-04-08 13:55:17 -07:00
// The time this resource was created.
2023-07-28 12:41:55 -07:00
CreatedTime * timestamppb . Timestamp `protobuf:"bytes,50,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2024-04-08 13:55:17 -07:00
// The time this resource was last updated.
2023-07-28 12:41:55 -07:00
UpdatedTime * timestamppb . Timestamp `protobuf:"bytes,60,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-29 13:17:59 -07:00
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
2024-04-08 13:55:17 -07:00
// The mutation fails if the version does not match the latest known good version.
// Version is not required when you create an account.
2023-08-24 12:43:52 -07:00
Version uint32 `protobuf:"varint,70,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"`
2024-04-08 13:55:17 -07:00
// The type of this account. If you do not set an account type, Boundary infers it from the type of the auth method.
2023-07-28 12:41:55 -07:00
Type string `protobuf:"bytes,80,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2024-04-08 13:55:17 -07:00
// The ID of the auth method that is associated with this account.
2023-07-28 12:41:55 -07:00
AuthMethodId string `protobuf:"bytes,90,opt,name=auth_method_id,proto3" json:"auth_method_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2025-02-19 09:14:41 -08:00
// Types that are valid to be assigned to Attrs:
2022-08-25 09:12:24 -07:00
//
2022-03-28 11:12:02 -04:00
// *Account_Attributes
// *Account_PasswordAccountAttributes
// *Account_OidcAccountAttributes
2023-03-15 11:40:40 -04:00
// *Account_LdapAccountAttributes
2022-03-28 11:12:02 -04:00
Attrs isAccount_Attrs `protobuf_oneof:"attrs"`
2024-04-08 13:55:17 -07:00
// Indicates the IDs of the managed groups that currently contain this account
2023-07-28 12:41:55 -07:00
ManagedGroupIds [] string `protobuf:"bytes,110,rep,name=managed_group_ids,proto3" json:"managed_group_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2024-04-08 13:55:17 -07:00
// The available actions on this resource for this user.
2023-08-24 12:43:52 -07:00
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-08-27 20:43:33 -04:00
}
func ( x * Account ) Reset () {
* x = Account {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-08-27 20:43:33 -04:00
}
func ( x * Account ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Account ) ProtoMessage () {}
func ( x * Account ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 0 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-08-27 20:43:33 -04:00
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_accounts_v1_account_proto_rawDescGZIP (), [] int { 0 }
}
func ( x * Account ) GetId () string {
if x != nil {
return x . Id
}
return ""
}
func ( x * Account ) GetScope () * scopes . ScopeInfo {
if x != nil {
return x . Scope
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Account ) GetName () * wrapperspb . StringValue {
2020-08-27 20:43:33 -04:00
if x != nil {
return x . Name
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Account ) GetDescription () * wrapperspb . StringValue {
2020-08-27 20:43:33 -04:00
if x != nil {
return x . Description
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Account ) GetCreatedTime () * timestamppb . Timestamp {
2020-08-27 20:43:33 -04:00
if x != nil {
return x . CreatedTime
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Account ) GetUpdatedTime () * timestamppb . Timestamp {
2020-08-27 20:43:33 -04:00
if x != nil {
return x . UpdatedTime
}
return nil
}
func ( x * Account ) GetVersion () uint32 {
if x != nil {
return x . Version
}
return 0
}
func ( x * Account ) GetType () string {
if x != nil {
return x . Type
}
return ""
}
func ( x * Account ) GetAuthMethodId () string {
if x != nil {
return x . AuthMethodId
}
return ""
}
2025-02-19 09:14:41 -08:00
func ( x * Account ) GetAttrs () isAccount_Attrs {
if x != nil {
return x . Attrs
2022-03-28 11:12:02 -04:00
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Account ) GetAttributes () * structpb . Struct {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Account_Attributes ); ok {
return x . Attributes
}
2020-08-27 20:43:33 -04:00
}
return nil
}
2022-03-28 11:12:02 -04:00
func ( x * Account ) GetPasswordAccountAttributes () * PasswordAccountAttributes {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Account_PasswordAccountAttributes ); ok {
return x . PasswordAccountAttributes
}
2022-03-28 11:12:02 -04:00
}
return nil
}
func ( x * Account ) GetOidcAccountAttributes () * OidcAccountAttributes {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Account_OidcAccountAttributes ); ok {
return x . OidcAccountAttributes
}
2022-03-28 11:12:02 -04:00
}
return nil
}
2023-03-15 11:40:40 -04:00
func ( x * Account ) GetLdapAccountAttributes () * LdapAccountAttributes {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Account_LdapAccountAttributes ); ok {
return x . LdapAccountAttributes
}
2023-03-15 11:40:40 -04:00
}
return nil
}
2021-06-02 13:01:37 -05:00
func ( x * Account ) GetManagedGroupIds () [] string {
if x != nil {
return x . ManagedGroupIds
}
return nil
}
2021-01-20 10:53:01 -05:00
func ( x * Account ) GetAuthorizedActions () [] string {
if x != nil {
return x . AuthorizedActions
}
return nil
}
2022-03-28 11:12:02 -04:00
type isAccount_Attrs interface {
isAccount_Attrs ()
}
type Account_Attributes struct {
2024-04-08 13:55:17 -07:00
// The attributes that are applicable for the specific account type.
2022-03-28 11:12:02 -04:00
Attributes * structpb . Struct `protobuf:"bytes,100,opt,name=attributes,proto3,oneof"`
}
type Account_PasswordAccountAttributes struct {
PasswordAccountAttributes * PasswordAccountAttributes `protobuf:"bytes,101,opt,name=password_account_attributes,json=passwordAccountAttributes,proto3,oneof"`
}
type Account_OidcAccountAttributes struct {
OidcAccountAttributes * OidcAccountAttributes `protobuf:"bytes,102,opt,name=oidc_account_attributes,json=oidcAccountAttributes,proto3,oneof"`
}
2023-03-15 11:40:40 -04:00
type Account_LdapAccountAttributes struct {
LdapAccountAttributes * LdapAccountAttributes `protobuf:"bytes,103,opt,name=ldap_account_attributes,json=ldapAccountAttributes,proto3,oneof"`
}
2022-03-28 11:12:02 -04:00
func ( * Account_Attributes ) isAccount_Attrs () {}
func ( * Account_PasswordAccountAttributes ) isAccount_Attrs () {}
func ( * Account_OidcAccountAttributes ) isAccount_Attrs () {}
2023-03-15 11:40:40 -04:00
func ( * Account_LdapAccountAttributes ) isAccount_Attrs () {}
2024-04-08 13:55:17 -07:00
// Attributes associated only with accounts with type "password".
2020-08-27 20:43:33 -04:00
type PasswordAccountAttributes struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2024-04-08 13:55:17 -07:00
// The login name of this account. This is unique per auth method.
2022-03-29 17:42:23 -04:00
LoginName string `protobuf:"bytes,10,opt,name=login_name,proto3" json:"login_name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
2024-04-08 13:55:17 -07:00
// The password for this account.
2025-02-19 09:14:41 -08:00
Password * wrapperspb . StringValue `protobuf:"bytes,20,opt,name=password,proto3" json:"password,omitempty" class:"secret"` // @gotags: `class:"secret"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2020-08-27 20:43:33 -04:00
}
func ( x * PasswordAccountAttributes ) Reset () {
* x = PasswordAccountAttributes {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-08-27 20:43:33 -04:00
}
func ( x * PasswordAccountAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * PasswordAccountAttributes ) ProtoMessage () {}
func ( x * PasswordAccountAttributes ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 1 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-08-27 20:43:33 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use PasswordAccountAttributes.ProtoReflect.Descriptor instead.
func ( * PasswordAccountAttributes ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_accounts_v1_account_proto_rawDescGZIP (), [] int { 1 }
}
func ( x * PasswordAccountAttributes ) GetLoginName () string {
if x != nil {
return x . LoginName
}
return ""
}
2021-04-15 13:11:23 -05:00
func ( x * PasswordAccountAttributes ) GetPassword () * wrapperspb . StringValue {
2020-08-27 20:43:33 -04:00
if x != nil {
return x . Password
}
return nil
}
2024-04-08 13:55:17 -07:00
// Attributes associated only with accounts with type "oidc".
2021-04-08 20:54:32 -04:00
type OidcAccountAttributes struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2021-04-08 20:54:32 -04:00
// issuer is a case sensitive URL that maps to the OIDC iss claim.
// This value is immutable after creation time.
2022-03-29 17:42:23 -04:00
Issuer string `protobuf:"bytes,80,opt,name=issuer,proto3" json:"issuer,omitempty" class:"public"` // @gotags: `class:"public"`
2021-04-08 20:54:32 -04:00
// subject is a case sensitive string that maps to the OIDC sub claim.
// This value is immutable after creation time.
2022-03-29 17:42:23 -04:00
Subject string `protobuf:"bytes,90,opt,name=subject,proto3" json:"subject,omitempty" class:"public"` // @gotags: `class:"public"`
2024-04-08 13:55:17 -07:00
// A string that maps to the OIDC name claim.
2022-03-29 17:42:23 -04:00
FullName string `protobuf:"bytes,100,opt,name=full_name,proto3" json:"full_name,omitempty" class:"public"` // @gotags: `class:"public"`
2024-04-08 13:55:17 -07:00
// A string that maps to the OIDC email claim.
2022-03-29 17:42:23 -04:00
Email string `protobuf:"bytes,110,opt,name=email,proto3" json:"email,omitempty" class:"public"` // @gotags: `class:"public"`
2024-04-08 13:55:17 -07:00
// The marshaled claims from the token.
2021-07-26 17:52:18 -04:00
TokenClaims * structpb . Struct `protobuf:"bytes,120,opt,name=token_claims,json=tokenClaims,proto3" json:"token_claims,omitempty"`
2024-04-08 13:55:17 -07:00
// The marshaled claims from userinfo.
2021-07-26 17:52:18 -04:00
UserinfoClaims * structpb . Struct `protobuf:"bytes,130,opt,name=userinfo_claims,json=userinfoClaims,proto3" json:"userinfo_claims,omitempty"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2021-04-08 20:54:32 -04:00
}
func ( x * OidcAccountAttributes ) Reset () {
* x = OidcAccountAttributes {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2021-04-08 20:54:32 -04:00
}
func ( x * OidcAccountAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * OidcAccountAttributes ) ProtoMessage () {}
func ( x * OidcAccountAttributes ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 2 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2021-04-08 20:54:32 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use OidcAccountAttributes.ProtoReflect.Descriptor instead.
func ( * OidcAccountAttributes ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_accounts_v1_account_proto_rawDescGZIP (), [] int { 2 }
}
func ( x * OidcAccountAttributes ) GetIssuer () string {
if x != nil {
return x . Issuer
}
return ""
}
func ( x * OidcAccountAttributes ) GetSubject () string {
if x != nil {
return x . Subject
}
return ""
}
func ( x * OidcAccountAttributes ) GetFullName () string {
if x != nil {
return x . FullName
}
return ""
}
func ( x * OidcAccountAttributes ) GetEmail () string {
if x != nil {
return x . Email
}
return ""
}
2021-07-26 17:52:18 -04:00
func ( x * OidcAccountAttributes ) GetTokenClaims () * structpb . Struct {
if x != nil {
return x . TokenClaims
}
return nil
}
func ( x * OidcAccountAttributes ) GetUserinfoClaims () * structpb . Struct {
if x != nil {
return x . UserinfoClaims
}
return nil
}
2024-04-08 13:55:17 -07:00
// Attributes associated only with accounts with type "ldap".
2023-03-15 11:40:40 -04:00
type LdapAccountAttributes struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2024-04-08 13:55:17 -07:00
// login_name of the authenticated user. This is the login_name (or username)
2023-03-15 11:40:40 -04:00
// entered by the user when authenticating (typically the uid or cn
2024-04-08 13:55:17 -07:00
// attribute). Account login names must be lower case.
2023-03-15 11:40:40 -04:00
LoginName string `protobuf:"bytes,100,opt,name=login_name,proto3" json:"login_name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
2024-04-08 13:55:17 -07:00
// A string that maps to the name attribute for the
// authenticated user. This attribute is updated every time a user
2023-03-15 11:40:40 -04:00
// successfully authenticates.
FullName string `protobuf:"bytes,110,opt,name=full_name,proto3" json:"full_name,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
2024-04-08 13:55:17 -07:00
// A string that maps to the email address attribute for
// the authenticated user. This attribute is updated every time a user
2023-03-15 11:40:40 -04:00
// successfully authenticates.
Email string `protobuf:"bytes,120,opt,name=email,proto3" json:"email,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
2024-04-08 13:55:17 -07:00
// The distinguished name authenticated user's entry. Will
// be null until the user's first successful authentication. This attribute
2023-03-15 11:40:40 -04:00
// is updated every time a user successfully authenticates.
Dn string `protobuf:"bytes,130,opt,name=dn,proto3" json:"dn,omitempty" class:"public"` // @gotags: `class:"public"`
2024-04-08 13:55:17 -07:00
// The json marshalled groups the
2023-03-15 11:40:40 -04:00
// authenticated user is a member of. Will be null until the user's first
// successful authentication. This attribute is updated every time a user
// successfully authenticates.
MemberOfGroups [] string `protobuf:"bytes,140,rep,name=member_of_groups,json=memberOfGroups,proto3" json:"member_of_groups,omitempty" class:"public"` // @gotags: `class:"public"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2023-03-15 11:40:40 -04:00
}
func ( x * LdapAccountAttributes ) Reset () {
* x = LdapAccountAttributes {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2023-03-15 11:40:40 -04:00
}
func ( x * LdapAccountAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * LdapAccountAttributes ) ProtoMessage () {}
func ( x * LdapAccountAttributes ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 3 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2023-03-15 11:40:40 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use LdapAccountAttributes.ProtoReflect.Descriptor instead.
func ( * LdapAccountAttributes ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_accounts_v1_account_proto_rawDescGZIP (), [] int { 3 }
}
func ( x * LdapAccountAttributes ) GetLoginName () string {
if x != nil {
return x . LoginName
}
return ""
}
func ( x * LdapAccountAttributes ) GetFullName () string {
if x != nil {
return x . FullName
}
return ""
}
func ( x * LdapAccountAttributes ) GetEmail () string {
if x != nil {
return x . Email
}
return ""
}
func ( x * LdapAccountAttributes ) GetDn () string {
if x != nil {
return x . Dn
}
return ""
}
func ( x * LdapAccountAttributes ) GetMemberOfGroups () [] string {
if x != nil {
return x . MemberOfGroups
}
return nil
}
2020-08-27 20:43:33 -04:00
var File_controller_api_resources_accounts_v1_account_proto protoreflect . FileDescriptor
2025-05-23 09:42:26 -07:00
const file_controller_api_resources_accounts_v1_account_proto_rawDesc = "" +
"\n" +
"2controller/api/resources/accounts/v1/account.proto\x12$controller.api.resources.accounts.v1\x1a.controller/api/resources/scopes/v1/scope.proto\x1a*controller/custom_options/v1/options.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/visibility.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xd8\x0e\n" +
"\aAccount\x12\x14\n" +
"\x02id\x18\n" +
" \x01(\tB\x04\xe2A\x01\x03R\x02id\x12I\n" +
"\x05scope\x18\x14 \x01(\v2-.controller.api.resources.scopes.v1.ScopeInfoB\x04\xe2A\x01\x03R\x05scope\x12F\n" +
"\x04name\x18\x1e \x01(\v2\x1c.google.protobuf.StringValueB\x14\xa0\xda)\x01\xc2\xdd)\f\n" +
"\x04name\x12\x04NameR\x04name\x12b\n" +
"\vdescription\x18( \x01(\v2\x1c.google.protobuf.StringValueB\"\xa0\xda)\x01\xc2\xdd)\x1a\n" +
"\vdescription\x12\vDescriptionR\vdescription\x12D\n" +
"\fcreated_time\x182 \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\fcreated_time\x12D\n" +
"\fupdated_time\x18< \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\fupdated_time\x12\x18\n" +
"\aversion\x18F \x01(\rR\aversion\x12\x12\n" +
"\x04type\x18P \x01(\tR\x04type\x12,\n" +
"\x0eauth_method_id\x18Z \x01(\tB\x04\xa0\xe3)\x01R\x0eauth_method_id\x12\x91\x06\n" +
"\n" +
"attributes\x18d \x01(\v2\x17.google.protobuf.StructB\xd5\x05\x92A\xc2\x052\xa1\x05The attributes that are applicable for the specific account type. The schema of this field depends on the type of the auth method that you create the account in.\n" +
"For password auth methods, the parameters are:\n" +
"```json\n" +
"{\n" +
" \"login_name\": \"login_name\",\n" +
" \"password\": \"password\"\n" +
"}\n" +
"```\n" +
"For OIDC auth methods, the parameters are:\n" +
"```json\n" +
"{\n" +
" \"issuer\": \"issuer\",\n" +
" \"subject\": \"subject\",\n" +
" \"full_name\": \"full_name\",\n" +
" \"email\": \"email\",\n" +
" \"token_claims\": {},\n" +
" \"userinfo_claims\": {}\n" +
"}\n" +
"```\n" +
"For LDAP auth methods, the parameters are:\n" +
"```json\n" +
"{\n" +
" \"login_name\": \"login_name\",\n" +
" \"full_name\": \"full_name\",\n" +
" \"email\": \"email\",\n" +
" \"dn\": \"dn\",\n" +
" \"member_of_groups\": [\"member_of_groups\"]\n" +
"}\n" +
"```\n" +
"J\x1c{\"login_name\": \"login_name\"}\xa0\xda)\x01\x9a\xe3)\adefaultH\x00R\n" +
"attributes\x12\xa3\x01\n" +
"\x1bpassword_account_attributes\x18e \x01(\v2?.controller.api.resources.accounts.v1.PasswordAccountAttributesB \xa0\xda)\x01\x9a\xe3)\bpassword\xfa\xd2\xe4\x93\x02\n" +
"\x12\bINTERNALH\x00R\x19passwordAccountAttributes\x12\x93\x01\n" +
"\x17oidc_account_attributes\x18f \x01(\v2;.controller.api.resources.accounts.v1.OidcAccountAttributesB\x1c\xa0\xda)\x01\x9a\xe3)\x04oidc\xfa\xd2\xe4\x93\x02\n" +
"\x12\bINTERNALH\x00R\x15oidcAccountAttributes\x12\x93\x01\n" +
"\x17ldap_account_attributes\x18g \x01(\v2;.controller.api.resources.accounts.v1.LdapAccountAttributesB\x1c\xa0\xda)\x01\x9a\xe3)\x04ldap\xfa\xd2\xe4\x93\x02\n" +
"\x12\bINTERNALH\x00R\x15ldapAccountAttributes\x122\n" +
"\x11managed_group_ids\x18n \x03(\tB\x04\xe2A\x01\x03R\x11managed_group_ids\x125\n" +
"\x12authorized_actions\x18\xac\x02 \x03(\tB\x04\xe2A\x01\x03R\x12authorized_actionsB\a\n" +
"\x05attrs\"\xa7\x01\n" +
"\x19PasswordAccountAttributes\x12J\n" +
"\n" +
"login_name\x18\n" +
" \x01(\tB*\xa0\xda)\x01\xc2\xdd)\"\n" +
"\x15attributes.login_name\x12\tLoginNameR\n" +
"login_name\x12>\n" +
"\bpassword\x18\x14 \x01(\v2\x1c.google.protobuf.StringValueB\x04\xa0\xda)\x01R\bpassword\"\xa0\x02\n" +
"\x15OidcAccountAttributes\x12\x1c\n" +
"\x06issuer\x18P \x01(\tB\x04\xa0\xda)\x01R\x06issuer\x12\x1e\n" +
"\asubject\x18Z \x01(\tB\x04\xa0\xda)\x01R\asubject\x12\"\n" +
"\tfull_name\x18d \x01(\tB\x04\xe2A\x01\x03R\tfull_name\x12\x1a\n" +
"\x05email\x18n \x01(\tB\x04\xe2A\x01\x03R\x05email\x12@\n" +
"\ftoken_claims\x18x \x01(\v2\x17.google.protobuf.StructB\x04\xe2A\x01\x03R\vtokenClaims\x12G\n" +
"\x0fuserinfo_claims\x18\x82\x01 \x01(\v2\x17.google.protobuf.StructB\x04\xe2A\x01\x03R\x0euserinfoClaims\"\xeb\x01\n" +
"\x15LdapAccountAttributes\x12J\n" +
"\n" +
"login_name\x18d \x01(\tB*\xa0\xda)\x01\xc2\xdd)\"\n" +
"\x15attributes.login_name\x12\tLoginNameR\n" +
"login_name\x12\"\n" +
"\tfull_name\x18n \x01(\tB\x04\xe2A\x01\x03R\tfull_name\x12\x1a\n" +
"\x05email\x18x \x01(\tB\x04\xe2A\x01\x03R\x05email\x12\x15\n" +
"\x02dn\x18\x82\x01 \x01(\tB\x04\xe2A\x01\x03R\x02dn\x12/\n" +
"\x10member_of_groups\x18\x8c\x01 \x03(\tB\x04\xe2A\x01\x03R\x0ememberOfGroupsBRZPgithub.com/hashicorp/boundary/sdk/pbs/controller/api/resources/accounts;accountsb\x06proto3"
2020-08-27 20:43:33 -04:00
var (
file_controller_api_resources_accounts_v1_account_proto_rawDescOnce sync . Once
2025-05-23 09:42:26 -07:00
file_controller_api_resources_accounts_v1_account_proto_rawDescData [] byte
2020-08-27 20:43:33 -04:00
)
func file_controller_api_resources_accounts_v1_account_proto_rawDescGZIP () [] byte {
file_controller_api_resources_accounts_v1_account_proto_rawDescOnce . Do ( func () {
2025-05-23 09:42:26 -07:00
file_controller_api_resources_accounts_v1_account_proto_rawDescData = protoimpl . X . CompressGZIP ( unsafe . Slice ( unsafe . StringData ( file_controller_api_resources_accounts_v1_account_proto_rawDesc ), len ( file_controller_api_resources_accounts_v1_account_proto_rawDesc )))
2020-08-27 20:43:33 -04:00
})
return file_controller_api_resources_accounts_v1_account_proto_rawDescData
}
2023-03-15 11:40:40 -04:00
var file_controller_api_resources_accounts_v1_account_proto_msgTypes = make ([] protoimpl . MessageInfo , 4 )
2024-08-01 11:18:53 -04:00
var file_controller_api_resources_accounts_v1_account_proto_goTypes = [] any {
2021-01-08 10:32:02 -05:00
( * Account )( nil ), // 0: controller.api.resources.accounts.v1.Account
( * PasswordAccountAttributes )( nil ), // 1: controller.api.resources.accounts.v1.PasswordAccountAttributes
2021-04-08 20:54:32 -04:00
( * OidcAccountAttributes )( nil ), // 2: controller.api.resources.accounts.v1.OidcAccountAttributes
2023-03-15 11:40:40 -04:00
( * LdapAccountAttributes )( nil ), // 3: controller.api.resources.accounts.v1.LdapAccountAttributes
( * scopes . ScopeInfo )( nil ), // 4: controller.api.resources.scopes.v1.ScopeInfo
( * wrapperspb . StringValue )( nil ), // 5: google.protobuf.StringValue
( * timestamppb . Timestamp )( nil ), // 6: google.protobuf.Timestamp
( * structpb . Struct )( nil ), // 7: google.protobuf.Struct
2021-01-08 10:32:02 -05:00
}
2020-08-27 20:43:33 -04:00
var file_controller_api_resources_accounts_v1_account_proto_depIdxs = [] int32 {
2023-03-15 11:40:40 -04:00
4 , // 0: controller.api.resources.accounts.v1.Account.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
5 , // 1: controller.api.resources.accounts.v1.Account.name:type_name -> google.protobuf.StringValue
5 , // 2: controller.api.resources.accounts.v1.Account.description:type_name -> google.protobuf.StringValue
6 , // 3: controller.api.resources.accounts.v1.Account.created_time:type_name -> google.protobuf.Timestamp
6 , // 4: controller.api.resources.accounts.v1.Account.updated_time:type_name -> google.protobuf.Timestamp
7 , // 5: controller.api.resources.accounts.v1.Account.attributes:type_name -> google.protobuf.Struct
2022-03-28 11:12:02 -04:00
1 , // 6: controller.api.resources.accounts.v1.Account.password_account_attributes:type_name -> controller.api.resources.accounts.v1.PasswordAccountAttributes
2 , // 7: controller.api.resources.accounts.v1.Account.oidc_account_attributes:type_name -> controller.api.resources.accounts.v1.OidcAccountAttributes
2023-03-15 11:40:40 -04:00
3 , // 8: controller.api.resources.accounts.v1.Account.ldap_account_attributes:type_name -> controller.api.resources.accounts.v1.LdapAccountAttributes
5 , // 9: controller.api.resources.accounts.v1.PasswordAccountAttributes.password:type_name -> google.protobuf.StringValue
7 , // 10: controller.api.resources.accounts.v1.OidcAccountAttributes.token_claims:type_name -> google.protobuf.Struct
7 , // 11: controller.api.resources.accounts.v1.OidcAccountAttributes.userinfo_claims:type_name -> google.protobuf.Struct
12 , // [12:12] is the sub-list for method output_type
12 , // [12:12] is the sub-list for method input_type
12 , // [12:12] is the sub-list for extension type_name
12 , // [12:12] is the sub-list for extension extendee
0 , // [0:12] is the sub-list for field type_name
2020-08-27 20:43:33 -04:00
}
func init () { file_controller_api_resources_accounts_v1_account_proto_init () }
func file_controller_api_resources_accounts_v1_account_proto_init () {
if File_controller_api_resources_accounts_v1_account_proto != nil {
return
}
2024-08-01 11:18:53 -04:00
file_controller_api_resources_accounts_v1_account_proto_msgTypes [ 0 ]. OneofWrappers = [] any {
2022-03-28 11:12:02 -04:00
( * Account_Attributes )( nil ),
( * Account_PasswordAccountAttributes )( nil ),
( * Account_OidcAccountAttributes )( nil ),
2023-03-15 11:40:40 -04:00
( * Account_LdapAccountAttributes )( nil ),
2022-03-28 11:12:02 -04:00
}
2020-08-27 20:43:33 -04:00
type x struct {}
out := protoimpl . TypeBuilder {
File : protoimpl . DescBuilder {
GoPackagePath : reflect . TypeOf ( x {}). PkgPath (),
2025-05-23 09:42:26 -07:00
RawDescriptor : unsafe . Slice ( unsafe . StringData ( file_controller_api_resources_accounts_v1_account_proto_rawDesc ), len ( file_controller_api_resources_accounts_v1_account_proto_rawDesc )),
2020-08-27 20:43:33 -04:00
NumEnums : 0 ,
2023-03-15 11:40:40 -04:00
NumMessages : 4 ,
2020-08-27 20:43:33 -04:00
NumExtensions : 0 ,
NumServices : 0 ,
},
GoTypes : file_controller_api_resources_accounts_v1_account_proto_goTypes ,
DependencyIndexes : file_controller_api_resources_accounts_v1_account_proto_depIdxs ,
MessageInfos : file_controller_api_resources_accounts_v1_account_proto_msgTypes ,
}. Build ()
File_controller_api_resources_accounts_v1_account_proto = out . File
file_controller_api_resources_accounts_v1_account_proto_goTypes = nil
file_controller_api_resources_accounts_v1_account_proto_depIdxs = nil
}