2020-10-07 21:30:44 -04:00
// Copyright (c) HashiCorp, Inc.
2020-09-26 08:30:27 -04:00
// SPDX-License-Identifier: MPL-2.0
2023-02-02 17:15:17 -08:00
2020-09-01 15:05:46 -07:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-09-15 16:50:50 -04:00
// protoc-gen-go v1.36.9
2022-04-04 13:55:42 -04:00
// protoc (unknown)
2020-09-01 15:05:46 -07:00
// source: controller/api/resources/targets/v1/target.proto
package targets
import (
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"
2022-04-13 16:27:48 -04:00
_ "google.golang.org/genproto/googleapis/api/visibility"
2020-09-01 15:05:46 -07: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-09-01 15:05:46 -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 )
)
2024-03-12 13:57:47 -07:00
// Alias is the alias information related to the aliases associated with the target.
2024-02-01 08:58:56 -08:00
type Alias struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2024-02-01 08:58:56 -08:00
// Output only. The ID of the alias referencing this target.
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// Ouput only. The value of the alias referencing this target.
2025-02-19 09:14:41 -08:00
Value string `protobuf:"bytes,20,opt,name=value,proto3" json:"value,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
ScopeId string `protobuf:"bytes,30,opt,name=scope_id,proto3" json:"scope_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`;
Attributes * TargetAliasAttributes `protobuf:"bytes,40,opt,name=attributes,proto3" json:"attributes,omitempty"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2024-02-01 08:58:56 -08:00
}
func ( x * Alias ) Reset () {
* x = Alias {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 0 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2024-02-01 08:58:56 -08:00
}
func ( x * Alias ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Alias ) ProtoMessage () {}
func ( x * Alias ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 0 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2024-02-01 08:58:56 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use Alias.ProtoReflect.Descriptor instead.
func ( * Alias ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 0 }
}
func ( x * Alias ) GetId () string {
if x != nil {
return x . Id
}
return ""
}
func ( x * Alias ) GetValue () string {
if x != nil {
return x . Value
}
return ""
}
2024-03-12 13:57:47 -07:00
func ( x * Alias ) GetScopeId () string {
if x != nil {
return x . ScopeId
}
return ""
}
func ( x * Alias ) GetAttributes () * TargetAliasAttributes {
if x != nil {
return x . Attributes
}
return nil
}
type TargetAliasAttributes struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2024-03-12 13:57:47 -07:00
AuthorizeSessionArguments * AuthorizeSessionArguments `protobuf:"bytes,1,opt,name=authorize_session_arguments,proto3" json:"authorize_session_arguments,omitempty" class:"public"` // @gotags: `class:"public"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2024-03-12 13:57:47 -07:00
}
func ( x * TargetAliasAttributes ) Reset () {
* x = TargetAliasAttributes {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 1 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2024-03-12 13:57:47 -07:00
}
func ( x * TargetAliasAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * TargetAliasAttributes ) ProtoMessage () {}
func ( x * TargetAliasAttributes ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 1 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2024-03-12 13:57:47 -07:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use TargetAliasAttributes.ProtoReflect.Descriptor instead.
func ( * TargetAliasAttributes ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 1 }
}
func ( x * TargetAliasAttributes ) GetAuthorizeSessionArguments () * AuthorizeSessionArguments {
if x != nil {
return x . AuthorizeSessionArguments
}
return nil
}
type AuthorizeSessionArguments struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2024-03-12 13:57:47 -07:00
// host_id is the id of the host that the session will be authorized for.
// When specified authorizing a session using this alias will have the same
// effect of authorizing a session to the alias' destination_id and passing
// in this value through the -host-id flag. If the host-id flag is also
// specified when calling authorize-session an error will be returned unless
// the provided host-id matches this value.
2025-02-19 09:14:41 -08:00
HostId string `protobuf:"bytes,1,opt,name=host_id,proto3" json:"host_id,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2024-03-12 13:57:47 -07:00
}
func ( x * AuthorizeSessionArguments ) Reset () {
* x = AuthorizeSessionArguments {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2024-03-12 13:57:47 -07:00
}
func ( x * AuthorizeSessionArguments ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * AuthorizeSessionArguments ) ProtoMessage () {}
func ( x * AuthorizeSessionArguments ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 2 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2024-03-12 13:57:47 -07:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use AuthorizeSessionArguments.ProtoReflect.Descriptor instead.
func ( * AuthorizeSessionArguments ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 2 }
}
func ( x * AuthorizeSessionArguments ) GetHostId () string {
if x != nil {
return x . HostId
}
return ""
}
2021-07-30 08:48:03 -04:00
type HostSource struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2021-07-30 08:48:03 -04:00
// Output only. The ID of the Host Set.
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"`
2021-07-30 08:48:03 -04:00
// Output only. The Host Catalog to which this Host Source belongs.
2023-07-28 12:41:55 -07:00
HostCatalogId string `protobuf:"bytes,20,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2021-07-30 08:48:03 -04:00
}
func ( x * HostSource ) Reset () {
* x = HostSource {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2021-07-30 08:48:03 -04:00
}
func ( x * HostSource ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * HostSource ) ProtoMessage () {}
func ( x * HostSource ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 3 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2021-07-30 08:48:03 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use HostSource.ProtoReflect.Descriptor instead.
func ( * HostSource ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 3 }
2021-07-30 08:48:03 -04:00
}
func ( x * HostSource ) GetId () string {
if x != nil {
return x . Id
}
return ""
}
func ( x * HostSource ) GetHostCatalogId () string {
if x != nil {
return x . HostCatalogId
}
return ""
}
2021-07-27 12:48:36 -04:00
type CredentialSource struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2021-07-27 12:48:36 -04:00
// The ID of the Credential. May be empty if the credential is dynamically generated from a library.
2022-04-14 14:34:58 -04:00
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
2021-07-27 12:48:36 -04:00
// Output only. The name of the Credential source.
2022-04-14 14:34:58 -04:00
Name string `protobuf:"bytes,20,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"`
2021-07-27 12:48:36 -04:00
// Output only. The description of the Credential source.
2022-04-14 14:34:58 -04:00
Description string `protobuf:"bytes,30,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"`
2021-07-27 12:48:36 -04:00
// Output only. The Credential Store to which this Credential source belongs.
2022-04-14 14:34:58 -04:00
CredentialStoreId string `protobuf:"bytes,40,opt,name=credential_store_id,proto3" json:"credential_store_id,omitempty" class:"public"` // @gotags: `class:"public"`
2021-07-27 12:48:36 -04:00
// Output only. The type of the credential source (e.g. "vault"; not the type of the credential itself).
2022-04-14 14:34:58 -04:00
Type string `protobuf:"bytes,60,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
2022-01-05 14:15:38 -08:00
// Output only. The type of the credential, empty if unspecified.
2022-04-14 14:34:58 -04:00
CredentialType string `protobuf:"bytes,70,opt,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty" class:"public"` // @gotags: `class:"public"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2021-07-27 12:48:36 -04:00
}
func ( x * CredentialSource ) Reset () {
* x = CredentialSource {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 4 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2021-07-27 12:48:36 -04:00
}
func ( x * CredentialSource ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * CredentialSource ) ProtoMessage () {}
func ( x * CredentialSource ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 4 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2021-07-27 12:48:36 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use CredentialSource.ProtoReflect.Descriptor instead.
func ( * CredentialSource ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 4 }
2021-07-27 12:48:36 -04:00
}
func ( x * CredentialSource ) GetId () string {
if x != nil {
return x . Id
}
return ""
}
func ( x * CredentialSource ) GetName () string {
if x != nil {
return x . Name
}
return ""
}
func ( x * CredentialSource ) GetDescription () string {
if x != nil {
return x . Description
}
return ""
}
func ( x * CredentialSource ) GetCredentialStoreId () string {
if x != nil {
return x . CredentialStoreId
}
return ""
}
func ( x * CredentialSource ) GetType () string {
if x != nil {
return x . Type
}
return ""
}
2022-01-05 14:15:38 -08:00
func ( x * CredentialSource ) GetCredentialType () string {
if x != nil {
return x . CredentialType
}
return ""
}
2021-06-30 18:02:03 -04:00
// The actual secret for a session credential.
type SessionSecret struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2021-06-30 18:02:03 -04:00
// Output only. The base64-encoded value representing the raw bytes from the
// credential provider.
2022-04-14 14:34:58 -04:00
Raw string `protobuf:"bytes,10,opt,name=raw,proto3" json:"raw,omitempty" class:"secret"` // @gotags: `class:"secret"`
2021-06-30 18:02:03 -04:00
// Output only. The decoded raw string, if a JSON object.
2025-02-19 09:14:41 -08:00
Decoded * structpb . Struct `protobuf:"bytes,20,opt,name=decoded,proto3" json:"decoded,omitempty"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2021-06-30 18:02:03 -04:00
}
func ( x * SessionSecret ) Reset () {
* x = SessionSecret {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 5 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2021-06-30 18:02:03 -04:00
}
func ( x * SessionSecret ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * SessionSecret ) ProtoMessage () {}
func ( x * SessionSecret ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 5 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2021-06-30 18:02:03 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use SessionSecret.ProtoReflect.Descriptor instead.
func ( * SessionSecret ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 5 }
2021-06-30 18:02:03 -04:00
}
func ( x * SessionSecret ) GetRaw () string {
if x != nil {
return x . Raw
}
return ""
}
func ( x * SessionSecret ) GetDecoded () * structpb . Struct {
if x != nil {
return x . Decoded
}
return nil
}
2021-07-27 12:48:36 -04:00
// Credential information for a session.
2021-06-22 22:26:26 -04:00
type SessionCredential struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2021-07-27 12:48:36 -04:00
// Output only. The credential source information.
CredentialSource * CredentialSource `protobuf:"bytes,1,opt,name=credential_source,json=credentialSource,proto3" json:"credential_source,omitempty"`
2021-06-22 22:26:26 -04:00
// Output only. The secret of this credential base64 encoded.
2021-06-30 18:02:03 -04:00
Secret * SessionSecret `protobuf:"bytes,20,opt,name=secret,proto3" json:"secret,omitempty"`
2022-01-05 14:15:38 -08:00
// Output only. The fields of the strongly typed credential, empty if the credential type of the
// credential source is unspecified.
2025-02-19 09:14:41 -08:00
Credential * structpb . Struct `protobuf:"bytes,40,opt,name=credential,proto3" json:"credential,omitempty"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2021-06-22 22:26:26 -04:00
}
func ( x * SessionCredential ) Reset () {
* x = SessionCredential {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 6 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2021-06-22 22:26:26 -04:00
}
func ( x * SessionCredential ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * SessionCredential ) ProtoMessage () {}
func ( x * SessionCredential ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 6 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2021-06-22 22:26:26 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use SessionCredential.ProtoReflect.Descriptor instead.
func ( * SessionCredential ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 6 }
2021-07-27 12:48:36 -04:00
}
func ( x * SessionCredential ) GetCredentialSource () * CredentialSource {
if x != nil {
return x . CredentialSource
}
return nil
2021-06-22 22:26:26 -04:00
}
2021-06-30 18:02:03 -04:00
func ( x * SessionCredential ) GetSecret () * SessionSecret {
2021-06-22 22:26:26 -04:00
if x != nil {
return x . Secret
}
2021-06-30 18:02:03 -04:00
return nil
2021-06-22 22:26:26 -04:00
}
2022-01-05 14:15:38 -08:00
func ( x * SessionCredential ) GetCredential () * structpb . Struct {
if x != nil {
return x . Credential
}
return nil
}
2020-09-01 15:05:46 -07:00
// Target contains all fields related to a Target resource
type Target 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 resource.
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 Scope of of this resource. This must be defined for creation of this resource, but is otherwise output only.
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 resource.
2020-09-01 15:05:46 -07:00
Scope * scopes . ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
2020-09-26 08:30:27 -04:00
// Required name for identification purposes.
2022-04-14 14:34:58 -04:00
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 description for identification purposes.
2022-04-14 14:34:58 -04:00
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"`
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.
// The mutation will fail if the version does not match the latest known good version.
2022-04-14 14:34:58 -04:00
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
// The type of the Target.
2023-07-28 12:41:55 -07:00
Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2021-10-19 09:37:32 -04:00
// Output only. The IDs of the Host Sources associated with this Target.
2023-07-28 12:41:55 -07:00
HostSourceIds [] string `protobuf:"bytes,420,rep,name=host_source_ids,proto3" json:"host_source_ids,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2021-07-30 08:48:03 -04:00
// Output only. The Host Sources associated with this Target.
HostSources [] * HostSource `protobuf:"bytes,430,rep,name=host_sources,proto3" json:"host_sources,omitempty"`
2020-09-26 08:30:27 -04:00
// Maximum total lifetime of a created Session, in seconds.
2022-04-14 14:34:58 -04:00
SessionMaxSeconds * wrapperspb . UInt32Value `protobuf:"bytes,120,opt,name=session_max_seconds,proto3" json:"session_max_seconds,omitempty" class:"public"` // @gotags: `class:"public"`
2020-09-29 13:17:59 -07:00
// Maximum number of connections allowed in a Session. Unlimited is indicated by the value -1.
2022-04-14 14:34:58 -04:00
SessionConnectionLimit * wrapperspb . Int32Value `protobuf:"bytes,130,opt,name=session_connection_limit,proto3" json:"session_connection_limit,omitempty" class:"public"` // @gotags: `class:"public"`
2021-01-21 16:27:20 -05:00
// Optional boolean expression to filter the workers that are allowed to satisfy this request.
2022-11-30 15:23:37 -05:00
// Deprecated; use egress or ingress worker filters instead.
//
2023-03-22 14:32:52 -04:00
// Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.
2022-04-14 14:34:58 -04:00
WorkerFilter * wrapperspb . StringValue `protobuf:"bytes,140,opt,name=worker_filter,proto3" json:"worker_filter,omitempty" class:"public"` // @gotags: `class:"public"`
2022-11-30 15:23:37 -05:00
// Optional boolean expressions to filter the egress workers that are allowed to satisfy this request.
EgressWorkerFilter * wrapperspb . StringValue `protobuf:"bytes,160,opt,name=egress_worker_filter,proto3" json:"egress_worker_filter,omitempty" class:"public"` // @gotags: `class:"public"`
// Optional boolean expressions to filter the ingress workers that are allowed to satisfy this request.
// Unsupported on OSS.
IngressWorkerFilter * wrapperspb . StringValue `protobuf:"bytes,170,opt,name=ingress_worker_filter,proto3" json:"ingress_worker_filter,omitempty" class:"public"` // @gotags: `class:"public"`
2022-07-19 15:16:24 -07:00
// Output only. The IDs of the brokered credential source ids associated with this Target.
BrokeredCredentialSourceIds [] string `protobuf:"bytes,440,rep,name=brokered_credential_source_ids,proto3" json:"brokered_credential_source_ids,omitempty" class:"public"` // @gotags: `class:"public"`
// Output only. The brokered credential sources associated with this Target.
BrokeredCredentialSources [] * CredentialSource `protobuf:"bytes,450,rep,name=brokered_credential_sources,proto3" json:"brokered_credential_sources,omitempty"`
// Output only. The IDs of the injected application credential source ids associated with this Target.
InjectedApplicationCredentialSourceIds [] string `protobuf:"bytes,520,rep,name=injected_application_credential_source_ids,proto3" json:"injected_application_credential_source_ids,omitempty" class:"public"` // @gotags: `class:"public"`
// Output only. The injected application credential sources associated with this Target.
InjectedApplicationCredentialSources [] * CredentialSource `protobuf:"bytes,530,rep,name=injected_application_credential_sources,proto3" json:"injected_application_credential_sources,omitempty"`
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-04-13 16:27:48 -04:00
// *Target_Attributes
// *Target_TcpTargetAttributes
2021-11-18 14:17:18 -05:00
// *Target_SshTargetAttributes
2025-06-20 09:28:58 -04:00
// *Target_RdpTargetAttributes
2022-04-13 16:27:48 -04:00
Attrs isTarget_Attrs `protobuf_oneof:"attrs"`
2021-01-20 10:53:01 -05:00
// Output only. The available actions on this resource for this user.
2022-04-14 14:34:58 -04:00
AuthorizedActions [] string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"`
2022-12-06 12:33:28 -08:00
// Optional string value that represents a network resource and is used when establishing a session.
Address * wrapperspb . StringValue `protobuf:"bytes,540,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
2024-02-01 08:58:56 -08:00
// Output only. The aliases that point to this Target.
Aliases [] * Alias `protobuf:"bytes,550,rep,name=aliases,proto3" json:"aliases,omitempty" class:"public"` // @gotags: `class:"public"`
2024-03-12 13:57:47 -07:00
// Input only. with_aliases specify the aliases that should be created when
// the target is created. This field is only usable at target creation time.
2025-02-19 09:14:41 -08:00
WithAliases [] * Alias `protobuf:"bytes,560,rep,name=with_aliases,proto3" json:"with_aliases,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2020-09-01 15:05:46 -07:00
}
func ( x * Target ) Reset () {
* x = Target {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 7 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-09-01 15:05:46 -07:00
}
func ( x * Target ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Target ) ProtoMessage () {}
func ( x * Target ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 7 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-09-01 15:05:46 -07:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use Target.ProtoReflect.Descriptor instead.
func ( * Target ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 7 }
2020-09-01 15:05:46 -07:00
}
func ( x * Target ) GetId () string {
if x != nil {
return x . Id
}
return ""
}
func ( x * Target ) GetScopeId () string {
if x != nil {
return x . ScopeId
}
return ""
}
func ( x * Target ) GetScope () * scopes . ScopeInfo {
if x != nil {
return x . Scope
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetName () * wrapperspb . StringValue {
2020-09-01 15:05:46 -07:00
if x != nil {
return x . Name
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetDescription () * wrapperspb . StringValue {
2020-09-01 15:05:46 -07:00
if x != nil {
return x . Description
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetCreatedTime () * timestamppb . Timestamp {
2020-09-01 15:05:46 -07:00
if x != nil {
return x . CreatedTime
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetUpdatedTime () * timestamppb . Timestamp {
2020-09-01 15:05:46 -07:00
if x != nil {
return x . UpdatedTime
}
return nil
}
func ( x * Target ) GetVersion () uint32 {
if x != nil {
return x . Version
}
return 0
}
func ( x * Target ) GetType () string {
if x != nil {
return x . Type
}
return ""
}
2021-07-30 08:48:03 -04:00
func ( x * Target ) GetHostSourceIds () [] string {
if x != nil {
return x . HostSourceIds
}
return nil
}
func ( x * Target ) GetHostSources () [] * HostSource {
if x != nil {
return x . HostSources
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetSessionMaxSeconds () * wrapperspb . UInt32Value {
2020-09-19 10:31:49 -04:00
if x != nil {
2020-09-19 11:32:38 -04:00
return x . SessionMaxSeconds
2020-09-19 10:31:49 -04:00
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetSessionConnectionLimit () * wrapperspb . Int32Value {
2020-09-19 10:31:49 -04:00
if x != nil {
return x . SessionConnectionLimit
}
return nil
}
2023-03-22 14:32:52 -04:00
// Deprecated: Marked as deprecated in controller/api/resources/targets/v1/target.proto.
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetWorkerFilter () * wrapperspb . StringValue {
2021-01-21 16:27:20 -05:00
if x != nil {
return x . WorkerFilter
}
return nil
}
2022-11-30 15:23:37 -05:00
func ( x * Target ) GetEgressWorkerFilter () * wrapperspb . StringValue {
if x != nil {
return x . EgressWorkerFilter
}
return nil
}
func ( x * Target ) GetIngressWorkerFilter () * wrapperspb . StringValue {
if x != nil {
return x . IngressWorkerFilter
}
return nil
}
2022-07-19 15:16:24 -07:00
func ( x * Target ) GetBrokeredCredentialSourceIds () [] string {
2021-10-28 14:24:40 -04:00
if x != nil {
2022-07-19 15:16:24 -07:00
return x . BrokeredCredentialSourceIds
2021-10-28 14:24:40 -04:00
}
return nil
}
2022-07-19 15:16:24 -07:00
func ( x * Target ) GetBrokeredCredentialSources () [] * CredentialSource {
2021-10-28 14:24:40 -04:00
if x != nil {
2022-07-19 15:16:24 -07:00
return x . BrokeredCredentialSources
}
return nil
}
func ( x * Target ) GetInjectedApplicationCredentialSourceIds () [] string {
if x != nil {
return x . InjectedApplicationCredentialSourceIds
}
return nil
}
func ( x * Target ) GetInjectedApplicationCredentialSources () [] * CredentialSource {
if x != nil {
return x . InjectedApplicationCredentialSources
2021-10-28 14:24:40 -04:00
}
return nil
}
2025-02-19 09:14:41 -08:00
func ( x * Target ) GetAttrs () isTarget_Attrs {
if x != nil {
return x . Attrs
2022-04-13 16:27:48 -04:00
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * Target ) GetAttributes () * structpb . Struct {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Target_Attributes ); ok {
return x . Attributes
}
2021-01-13 14:42:37 -05:00
}
return nil
}
2022-04-13 16:27:48 -04:00
func ( x * Target ) GetTcpTargetAttributes () * TcpTargetAttributes {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Target_TcpTargetAttributes ); ok {
return x . TcpTargetAttributes
}
2022-04-13 16:27:48 -04:00
}
return nil
}
2021-11-18 14:17:18 -05:00
func ( x * Target ) GetSshTargetAttributes () * SshTargetAttributes {
2025-02-19 09:14:41 -08:00
if x != nil {
if x , ok := x . Attrs .( * Target_SshTargetAttributes ); ok {
return x . SshTargetAttributes
}
2021-11-18 14:17:18 -05:00
}
return nil
}
2025-06-20 09:28:58 -04:00
func ( x * Target ) GetRdpTargetAttributes () * RdpTargetAttributes {
if x != nil {
if x , ok := x . Attrs .( * Target_RdpTargetAttributes ); ok {
return x . RdpTargetAttributes
}
}
return nil
}
2021-01-20 10:53:01 -05:00
func ( x * Target ) GetAuthorizedActions () [] string {
2020-09-15 15:20:49 -04:00
if x != nil {
2021-01-20 10:53:01 -05:00
return x . AuthorizedActions
2020-09-15 15:20:49 -04:00
}
return nil
}
2022-12-06 12:33:28 -08:00
func ( x * Target ) GetAddress () * wrapperspb . StringValue {
2022-11-11 13:48:18 +00:00
if x != nil {
return x . Address
}
2022-12-06 12:33:28 -08:00
return nil
2022-11-11 13:48:18 +00:00
}
2024-02-01 08:58:56 -08:00
func ( x * Target ) GetAliases () [] * Alias {
if x != nil {
return x . Aliases
}
return nil
}
2024-03-12 13:57:47 -07:00
func ( x * Target ) GetWithAliases () [] * Alias {
if x != nil {
return x . WithAliases
}
return nil
}
2022-04-13 16:27:48 -04:00
type isTarget_Attrs interface {
isTarget_Attrs ()
}
type Target_Attributes struct {
// The attributes that are applicable for the specific Target.
Attributes * structpb . Struct `protobuf:"bytes,200,opt,name=attributes,proto3,oneof"`
}
type Target_TcpTargetAttributes struct {
TcpTargetAttributes * TcpTargetAttributes `protobuf:"bytes,201,opt,name=tcp_target_attributes,json=tcpTargetAttributes,proto3,oneof"`
}
2021-11-18 14:17:18 -05:00
type Target_SshTargetAttributes struct {
SshTargetAttributes * SshTargetAttributes `protobuf:"bytes,202,opt,name=ssh_target_attributes,json=sshTargetAttributes,proto3,oneof"`
}
2025-06-20 09:28:58 -04:00
type Target_RdpTargetAttributes struct {
RdpTargetAttributes * RdpTargetAttributes `protobuf:"bytes,203,opt,name=rdp_target_attributes,json=rdpTargetAttributes,proto3,oneof"`
}
2022-04-13 16:27:48 -04:00
func ( * Target_Attributes ) isTarget_Attrs () {}
func ( * Target_TcpTargetAttributes ) isTarget_Attrs () {}
2021-11-18 14:17:18 -05:00
func ( * Target_SshTargetAttributes ) isTarget_Attrs () {}
2025-06-20 09:28:58 -04:00
func ( * Target_RdpTargetAttributes ) isTarget_Attrs () {}
2020-09-26 08:30:27 -04:00
// TcpTargetAttributes contains attributes relevant to Targets of type "tcp"
2020-09-15 15:20:49 -04:00
type TcpTargetAttributes struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2020-09-26 08:30:27 -04:00
// The default TCP port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
2022-04-14 14:34:58 -04:00
DefaultPort * wrapperspb . UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty" class:"public"` // @gotags: `class:"public"`
2023-04-21 06:50:53 -04:00
// The default TCP port that will be listened on by the client's local proxy.
DefaultClientPort * wrapperspb . UInt32Value `protobuf:"bytes,20,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2020-09-15 15:20:49 -04:00
}
func ( x * TcpTargetAttributes ) Reset () {
* x = TcpTargetAttributes {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 8 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-09-15 15:20:49 -04:00
}
func ( x * TcpTargetAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * TcpTargetAttributes ) ProtoMessage () {}
func ( x * TcpTargetAttributes ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 8 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-09-15 15:20:49 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use TcpTargetAttributes.ProtoReflect.Descriptor instead.
func ( * TcpTargetAttributes ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 8 }
2020-09-15 15:20:49 -04:00
}
2021-04-15 13:11:23 -05:00
func ( x * TcpTargetAttributes ) GetDefaultPort () * wrapperspb . UInt32Value {
2020-09-01 15:05:46 -07:00
if x != nil {
return x . DefaultPort
}
return nil
}
2023-04-21 06:50:53 -04:00
func ( x * TcpTargetAttributes ) GetDefaultClientPort () * wrapperspb . UInt32Value {
if x != nil {
return x . DefaultClientPort
}
return nil
}
2021-11-18 14:17:18 -05:00
// SshTargetAttributes contains attributes relevant to Targets of type "ssh"
type SshTargetAttributes struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2021-11-18 14:17:18 -05:00
// The default SSH port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
// If this is not specified the DefaultPort will be 22.
DefaultPort * wrapperspb . UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty" class:"public"` // @gotags: `class:"public"`
2023-04-21 06:50:53 -04:00
// The default TCP port that will be listened on by the client's local proxy.
DefaultClientPort * wrapperspb . UInt32Value `protobuf:"bytes,20,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
2023-05-03 15:54:33 -07:00
// PublicId of the storage bucket associated with the target
2024-05-24 10:34:15 -07:00
StorageBucketId * wrapperspb . StringValue `protobuf:"bytes,30,opt,name=storage_bucket_id,proto3" json:"storage_bucket_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2023-05-03 15:54:33 -07:00
// A boolean indicating if session recording has been enabled
2023-07-28 12:41:55 -07:00
EnableSessionRecording * wrapperspb . BoolValue `protobuf:"bytes,40,opt,name=enable_session_recording,proto3" json:"enable_session_recording,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2021-11-18 14:17:18 -05:00
}
func ( x * SshTargetAttributes ) Reset () {
* x = SshTargetAttributes {}
2025-02-19 09:14:41 -08:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 9 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2021-11-18 14:17:18 -05:00
}
func ( x * SshTargetAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * SshTargetAttributes ) ProtoMessage () {}
func ( x * SshTargetAttributes ) ProtoReflect () protoreflect . Message {
2024-03-12 13:57:47 -07:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 9 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2021-11-18 14:17:18 -05:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use SshTargetAttributes.ProtoReflect.Descriptor instead.
func ( * SshTargetAttributes ) Descriptor () ([] byte , [] int ) {
2024-03-12 13:57:47 -07:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 9 }
2021-11-18 14:17:18 -05:00
}
func ( x * SshTargetAttributes ) GetDefaultPort () * wrapperspb . UInt32Value {
if x != nil {
return x . DefaultPort
}
return nil
}
2023-04-21 06:50:53 -04:00
func ( x * SshTargetAttributes ) GetDefaultClientPort () * wrapperspb . UInt32Value {
if x != nil {
return x . DefaultClientPort
}
return nil
}
2023-05-03 15:54:33 -07:00
func ( x * SshTargetAttributes ) GetStorageBucketId () * wrapperspb . StringValue {
if x != nil {
return x . StorageBucketId
}
return nil
}
func ( x * SshTargetAttributes ) GetEnableSessionRecording () * wrapperspb . BoolValue {
if x != nil {
return x . EnableSessionRecording
}
return nil
}
2025-06-20 09:28:58 -04:00
// RdpTargetAttributes contains attributes relevant to Targets of type "rdp"
type RdpTargetAttributes struct {
state protoimpl . MessageState `protogen:"open.v1"`
// The default RDP port that will be used when connecting to the endpoint unless overridden by a Host Set or Host.
// If this is not specified the DefaultPort will be 3389.
DefaultPort * wrapperspb . UInt32Value `protobuf:"bytes,10,opt,name=default_port,proto3" json:"default_port,omitempty" class:"public"` // @gotags: `class:"public"`
// The default RDP port that will be listened on by the client's local proxy.
DefaultClientPort * wrapperspb . UInt32Value `protobuf:"bytes,20,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
}
func ( x * RdpTargetAttributes ) Reset () {
* x = RdpTargetAttributes {}
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 10 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
func ( x * RdpTargetAttributes ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * RdpTargetAttributes ) ProtoMessage () {}
func ( x * RdpTargetAttributes ) ProtoReflect () protoreflect . Message {
mi := & file_controller_api_resources_targets_v1_target_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 RdpTargetAttributes.ProtoReflect.Descriptor instead.
func ( * RdpTargetAttributes ) Descriptor () ([] byte , [] int ) {
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 10 }
}
func ( x * RdpTargetAttributes ) GetDefaultPort () * wrapperspb . UInt32Value {
if x != nil {
return x . DefaultPort
}
return nil
}
func ( x * RdpTargetAttributes ) GetDefaultClientPort () * wrapperspb . UInt32Value {
if x != nil {
return x . DefaultClientPort
}
return nil
}
2020-09-26 08:30:27 -04:00
// WorkerInfo contains information about workers, returned in to the client in SessionAuthorization
2020-09-19 00:18:17 -04:00
type WorkerInfo 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 address of the worker.
2025-02-19 09:14:41 -08:00
Address string `protobuf:"bytes,10,opt,name=address,proto3" json:"address,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2020-09-19 00:18:17 -04:00
}
func ( x * WorkerInfo ) Reset () {
* x = WorkerInfo {}
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 11 ]
2025-02-19 09:14:41 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-09-19 00:18:17 -04:00
}
func ( x * WorkerInfo ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * WorkerInfo ) ProtoMessage () {}
func ( x * WorkerInfo ) ProtoReflect () protoreflect . Message {
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 11 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-09-19 00:18:17 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use WorkerInfo.ProtoReflect.Descriptor instead.
func ( * WorkerInfo ) Descriptor () ([] byte , [] int ) {
2025-06-20 09:28:58 -04:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 11 }
2020-09-19 00:18:17 -04:00
}
func ( x * WorkerInfo ) GetAddress () string {
if x != nil {
return x . Address
}
return ""
}
2023-10-22 17:48:54 -07:00
// SessionAuthorizationData contains the fields needed by the proxy command to
// connect to a worker. It is marshaled inside the SessionAuthorization message.
2020-09-19 00:18:17 -04:00
type SessionAuthorizationData 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 session.
2023-07-28 12:41:55 -07:00
SessionId string `protobuf:"bytes,10,opt,name=session_id,proto3" json:"session_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The ID of the Target authorizing this session.
2023-07-28 12:41:55 -07:00
TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_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 the Target that authorized this session.
2020-09-19 00:18:17 -04:00
Scope * scopes . ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
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,40,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. Type of the session (e.g. tcp, ssh, etc.).
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"`
2020-09-26 08:30:27 -04:00
// Output only. The connection limit being applied to this session. -1 means unlimited. This is not actually enforced on the client side but it provides for better listener handling by including it.
ConnectionLimit int32 `protobuf:"varint,90,opt,name=connection_limit,proto3" json:"connection_limit,omitempty"`
2023-10-22 17:48:54 -07:00
// Output only. The endpoint port that will be connected to, either from a
// port directly on the target or from a service definition.
EndpointPort uint32 `protobuf:"varint,102,opt,name=endpoint_port,proto3" json:"endpoint_port,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// Output only. The expiration time of the session.
Expiration * timestamppb . Timestamp `protobuf:"bytes,105,opt,name=expiration,proto3" json:"expiration,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The certificate to use when connecting. Raw DER bytes.
2022-04-14 14:34:58 -04:00
Certificate [] byte `protobuf:"bytes,120,opt,name=certificate,proto3" json:"certificate,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
2020-09-26 08:30:27 -04:00
// Output only. The private key to use when connecting. We are using Ed25519, so this is purely raw bytes, no marshaling.
2021-11-09 11:43:41 -05:00
PrivateKey [] byte `protobuf:"bytes,130,opt,name=private_key,proto3" json:"private_key,omitempty" class:"secret"` // @gotags: `class:"secret"`
2020-10-07 21:30:44 -04:00
// Output only. The host ID...not used for security purposes, but for some special command handling (e.g. ssh host key aliasing).
2023-07-28 12:41:55 -07:00
HostId string `protobuf:"bytes,140,opt,name=host_id,json=hostId,proto3" json:"host_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-12-09 14:45:53 -05:00
// Output only. The endpoint, for some special command handling.
2021-11-09 11:43:41 -05:00
Endpoint string `protobuf:"bytes,141,opt,name=endpoint,proto3" json:"endpoint,omitempty" class:"public"` // @gotags: `class:"public"`
2020-09-26 08:30:27 -04:00
// Output only. Worker information. The first worker in the array should be prioritized.
2020-09-19 00:18:17 -04:00
WorkerInfo [] * WorkerInfo `protobuf:"bytes,150,rep,name=worker_info,proto3" json:"worker_info,omitempty"`
2023-04-21 06:50:53 -04:00
// Output only. A default port to listen on for client connections.
DefaultClientPort uint32 `protobuf:"varint,160,opt,name=default_client_port,proto3" json:"default_client_port,omitempty" class:"public"` // @gotags: `class:"public"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2020-09-19 00:18:17 -04:00
}
func ( x * SessionAuthorizationData ) Reset () {
* x = SessionAuthorizationData {}
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 12 ]
2025-02-19 09:14:41 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-09-19 00:18:17 -04:00
}
func ( x * SessionAuthorizationData ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * SessionAuthorizationData ) ProtoMessage () {}
func ( x * SessionAuthorizationData ) ProtoReflect () protoreflect . Message {
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 12 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-09-19 00:18:17 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use SessionAuthorizationData.ProtoReflect.Descriptor instead.
func ( * SessionAuthorizationData ) Descriptor () ([] byte , [] int ) {
2025-06-20 09:28:58 -04:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 12 }
2020-09-19 00:18:17 -04:00
}
func ( x * SessionAuthorizationData ) GetSessionId () string {
if x != nil {
return x . SessionId
}
return ""
}
func ( x * SessionAuthorizationData ) GetTargetId () string {
if x != nil {
return x . TargetId
}
return ""
}
func ( x * SessionAuthorizationData ) GetScope () * scopes . ScopeInfo {
if x != nil {
return x . Scope
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * SessionAuthorizationData ) GetCreatedTime () * timestamppb . Timestamp {
2020-09-19 00:18:17 -04:00
if x != nil {
return x . CreatedTime
}
return nil
}
func ( x * SessionAuthorizationData ) GetType () string {
if x != nil {
return x . Type
}
return ""
}
2020-09-20 21:18:07 -04:00
func ( x * SessionAuthorizationData ) GetConnectionLimit () int32 {
if x != nil {
return x . ConnectionLimit
}
return 0
}
2023-10-22 17:48:54 -07:00
func ( x * SessionAuthorizationData ) GetEndpointPort () uint32 {
if x != nil {
return x . EndpointPort
}
return 0
}
func ( x * SessionAuthorizationData ) GetExpiration () * timestamppb . Timestamp {
if x != nil {
return x . Expiration
}
return nil
}
2020-09-19 00:18:17 -04:00
func ( x * SessionAuthorizationData ) GetCertificate () [] byte {
if x != nil {
return x . Certificate
}
return nil
}
func ( x * SessionAuthorizationData ) GetPrivateKey () [] byte {
if x != nil {
return x . PrivateKey
}
return nil
}
2020-10-07 21:30:44 -04:00
func ( x * SessionAuthorizationData ) GetHostId () string {
if x != nil {
return x . HostId
}
return ""
}
2020-12-09 14:45:53 -05:00
func ( x * SessionAuthorizationData ) GetEndpoint () string {
if x != nil {
return x . Endpoint
}
return ""
}
2020-09-19 00:18:17 -04:00
func ( x * SessionAuthorizationData ) GetWorkerInfo () [] * WorkerInfo {
if x != nil {
return x . WorkerInfo
}
return nil
}
2023-04-21 06:50:53 -04:00
func ( x * SessionAuthorizationData ) GetDefaultClientPort () uint32 {
if x != nil {
return x . DefaultClientPort
}
return 0
}
2020-09-26 08:30:27 -04:00
// SessionAuthorization contains all fields related to authorization for a Session. It's in the Targets package because it's returned by a Target's authorize action.
2020-09-19 00:18:17 -04:00
type SessionAuthorization 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 Session.
2023-07-28 12:41:55 -07:00
SessionId string `protobuf:"bytes,10,opt,name=session_id,proto3" json:"session_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The ID of the Target authorizing this Session.
2023-07-28 12:41:55 -07:00
TargetId string `protobuf:"bytes,20,opt,name=target_id,proto3" json:"target_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 resource.
2020-09-19 00:18:17 -04:00
Scope * scopes . ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
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,40,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 User for which this Session was authorized.
2023-07-28 12:41:55 -07:00
UserId string `protobuf:"bytes,50,opt,name=user_id,proto3" json:"user_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The Host Set containing the Host being used for this Session.
2023-07-28 12:41:55 -07:00
HostSetId string `protobuf:"bytes,60,opt,name=host_set_id,proto3" json:"host_set_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. The Host whose address is being used as the endpoint for this Session.
2023-07-28 12:41:55 -07:00
HostId string `protobuf:"bytes,70,opt,name=host_id,proto3" json:"host_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2020-09-26 08:30:27 -04:00
// Output only. Type of the Session (e.g. tcp, ssh, etc.).
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"`
2020-09-26 08:30:27 -04:00
// Output only. The marshaled SessionAuthorizationData message containing all information that the proxy needs.
2023-06-01 06:41:09 -07:00
AuthorizationToken string `protobuf:"bytes,90,opt,name=authorization_token,proto3" json:"authorization_token,omitempty" class:"secret"` // @gotags: `class:"secret"`
2024-01-21 19:34:33 -08:00
// Output only. The connection limit being applied to this session. -1 means unlimited. This is not actually enforced on the client side but it provides for better listener handling by including it.
ConnectionLimit int32 `protobuf:"varint,95,opt,name=connection_limit,proto3" json:"connection_limit,omitempty"`
2020-12-09 14:45:53 -05:00
// Output only. The endpoint address that the worker will connect to, useful for setting TLS parameters.
2021-11-09 11:43:41 -05:00
Endpoint string `protobuf:"bytes,100,opt,name=endpoint,proto3" json:"endpoint,omitempty" class:"public"` // @gotags: `class:"public"`
2023-10-22 17:48:54 -07:00
// Output only. The endpoint port that will be connected to, either from a
// port directly on the target or from a service definition.
EndpointPort uint32 `protobuf:"varint,102,opt,name=endpoint_port,proto3" json:"endpoint_port,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
// Output only. The expiration time of the session.
Expiration * timestamppb . Timestamp `protobuf:"bytes,105,opt,name=expiration,proto3" json:"expiration,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2021-06-22 22:26:26 -04:00
// Output only. The credentials for this session.
Credentials [] * SessionCredential `protobuf:"bytes,110,rep,name=credentials,proto3" json:"credentials,omitempty"`
2024-04-03 17:54:37 -07:00
// Output only. The ID of the Session Recording.
SessionRecordingId string `protobuf:"bytes,115,opt,name=session_recording_id,proto3" json:"session_recording_id,omitempty" class:"public" eventstream:"observation"` // @gotags: `class:"public" eventstream:"observation"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2020-09-19 00:18:17 -04:00
}
func ( x * SessionAuthorization ) Reset () {
* x = SessionAuthorization {}
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 13 ]
2025-02-19 09:14:41 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2020-09-19 00:18:17 -04:00
}
func ( x * SessionAuthorization ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * SessionAuthorization ) ProtoMessage () {}
func ( x * SessionAuthorization ) ProtoReflect () protoreflect . Message {
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 13 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2020-09-19 00:18:17 -04:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use SessionAuthorization.ProtoReflect.Descriptor instead.
func ( * SessionAuthorization ) Descriptor () ([] byte , [] int ) {
2025-06-20 09:28:58 -04:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 13 }
2020-09-19 00:18:17 -04:00
}
func ( x * SessionAuthorization ) GetSessionId () string {
if x != nil {
return x . SessionId
}
return ""
}
func ( x * SessionAuthorization ) GetTargetId () string {
if x != nil {
return x . TargetId
}
return ""
}
func ( x * SessionAuthorization ) GetScope () * scopes . ScopeInfo {
if x != nil {
return x . Scope
}
return nil
}
2021-04-15 13:11:23 -05:00
func ( x * SessionAuthorization ) GetCreatedTime () * timestamppb . Timestamp {
2020-09-19 00:18:17 -04:00
if x != nil {
return x . CreatedTime
}
return nil
}
2020-09-24 14:12:34 -04:00
func ( x * SessionAuthorization ) GetUserId () string {
if x != nil {
return x . UserId
}
return ""
}
func ( x * SessionAuthorization ) GetHostSetId () string {
if x != nil {
return x . HostSetId
}
return ""
}
func ( x * SessionAuthorization ) GetHostId () string {
if x != nil {
return x . HostId
}
return ""
}
2020-09-19 00:18:17 -04:00
func ( x * SessionAuthorization ) GetType () string {
if x != nil {
return x . Type
}
return ""
}
func ( x * SessionAuthorization ) GetAuthorizationToken () string {
if x != nil {
return x . AuthorizationToken
}
return ""
}
2024-01-21 19:34:33 -08:00
func ( x * SessionAuthorization ) GetConnectionLimit () int32 {
if x != nil {
return x . ConnectionLimit
}
return 0
}
2020-12-09 14:45:53 -05:00
func ( x * SessionAuthorization ) GetEndpoint () string {
if x != nil {
return x . Endpoint
}
return ""
}
2023-10-22 17:48:54 -07:00
func ( x * SessionAuthorization ) GetEndpointPort () uint32 {
if x != nil {
return x . EndpointPort
}
return 0
}
func ( x * SessionAuthorization ) GetExpiration () * timestamppb . Timestamp {
if x != nil {
return x . Expiration
}
return nil
}
2021-06-22 22:26:26 -04:00
func ( x * SessionAuthorization ) GetCredentials () [] * SessionCredential {
if x != nil {
return x . Credentials
}
return nil
}
2024-04-03 17:54:37 -07:00
func ( x * SessionAuthorization ) GetSessionRecordingId () string {
if x != nil {
return x . SessionRecordingId
}
return ""
}
2022-06-27 14:03:12 -07:00
// The layout of the struct for "credential" field in SessionCredential for a username_password credential type.
type UsernamePasswordCredential struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2022-01-05 14:15:38 -08:00
// Username of the credential
2022-04-14 14:34:58 -04:00
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
2022-01-05 14:15:38 -08:00
// Password of the credential
2025-02-19 09:14:41 -08:00
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" class:"secret"` // @gotags: `class:"secret"`
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2022-01-05 14:15:38 -08:00
}
2022-06-27 14:03:12 -07:00
func ( x * UsernamePasswordCredential ) Reset () {
* x = UsernamePasswordCredential {}
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 14 ]
2025-02-19 09:14:41 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2022-01-05 14:15:38 -08:00
}
2022-06-27 14:03:12 -07:00
func ( x * UsernamePasswordCredential ) String () string {
2022-01-05 14:15:38 -08:00
return protoimpl . X . MessageStringOf ( x )
}
2022-06-27 14:03:12 -07:00
func ( * UsernamePasswordCredential ) ProtoMessage () {}
2022-01-05 14:15:38 -08:00
2022-06-27 14:03:12 -07:00
func ( x * UsernamePasswordCredential ) ProtoReflect () protoreflect . Message {
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 14 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2022-01-05 14:15:38 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
2022-06-27 14:03:12 -07:00
// Deprecated: Use UsernamePasswordCredential.ProtoReflect.Descriptor instead.
func ( * UsernamePasswordCredential ) Descriptor () ([] byte , [] int ) {
2025-06-20 09:28:58 -04:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 14 }
2022-01-05 14:15:38 -08:00
}
2022-06-27 14:03:12 -07:00
func ( x * UsernamePasswordCredential ) GetUsername () string {
2022-01-05 14:15:38 -08:00
if x != nil {
return x . Username
}
return ""
}
2022-06-27 14:03:12 -07:00
func ( x * UsernamePasswordCredential ) GetPassword () string {
2022-01-05 14:15:38 -08:00
if x != nil {
return x . Password
}
return ""
}
2025-05-13 13:39:02 +01:00
// The layout of the struct for "credential" field in SessionCredential for a username_password_domain credential type.
type UsernamePasswordDomainCredential struct {
state protoimpl . MessageState `protogen:"open.v1"`
// Username of the credential
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
// Password of the credential
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" class:"secret"` // @gotags: `class:"secret"`
// Domain of the credential
2025-05-19 13:04:11 +01:00
Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty" class:"public"` // @gotags: `class:"public"`
2025-05-13 13:39:02 +01:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
}
func ( x * UsernamePasswordDomainCredential ) Reset () {
* x = UsernamePasswordDomainCredential {}
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 15 ]
2025-05-13 13:39:02 +01:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
}
func ( x * UsernamePasswordDomainCredential ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * UsernamePasswordDomainCredential ) ProtoMessage () {}
func ( x * UsernamePasswordDomainCredential ) ProtoReflect () protoreflect . Message {
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 15 ]
2025-05-13 13:39:02 +01: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 UsernamePasswordDomainCredential.ProtoReflect.Descriptor instead.
func ( * UsernamePasswordDomainCredential ) Descriptor () ([] byte , [] int ) {
2025-06-20 09:28:58 -04:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 15 }
2025-05-13 13:39:02 +01:00
}
func ( x * UsernamePasswordDomainCredential ) GetUsername () string {
if x != nil {
return x . Username
}
return ""
}
func ( x * UsernamePasswordDomainCredential ) GetPassword () string {
if x != nil {
return x . Password
}
return ""
}
func ( x * UsernamePasswordDomainCredential ) GetDomain () string {
if x != nil {
return x . Domain
}
return ""
}
2022-07-19 10:31:53 -07:00
// The layout of the struct for "credential" field in SessionCredential for a ssh_private_key credential type.
type SshPrivateKeyCredential struct {
2025-02-19 09:14:41 -08:00
state protoimpl . MessageState `protogen:"open.v1"`
2022-07-19 10:31:53 -07:00
// Username of the credential
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" class:"sensitive"` // @gotags: `class:"sensitive"`
// Private key of the credential
PrivateKey string `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty" class:"secret"` // @gotags: `class:"secret"`
2022-08-08 15:15:03 -04:00
// The optional passphrase of the private_key
PrivateKeyPassphrase string `protobuf:"bytes,3,opt,name=private_key_passphrase,json=privateKeyPassphrase,proto3" json:"private_key_passphrase,omitempty" class:"secret"` // @gotags: `class:"secret"`
2025-02-19 09:14:41 -08:00
unknownFields protoimpl . UnknownFields
sizeCache protoimpl . SizeCache
2022-07-19 10:31:53 -07:00
}
func ( x * SshPrivateKeyCredential ) Reset () {
* x = SshPrivateKeyCredential {}
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 16 ]
2025-02-19 09:14:41 -08:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
ms . StoreMessageInfo ( mi )
2022-07-19 10:31:53 -07:00
}
func ( x * SshPrivateKeyCredential ) String () string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * SshPrivateKeyCredential ) ProtoMessage () {}
func ( x * SshPrivateKeyCredential ) ProtoReflect () protoreflect . Message {
2025-06-20 09:28:58 -04:00
mi := & file_controller_api_resources_targets_v1_target_proto_msgTypes [ 16 ]
2025-02-19 09:14:41 -08:00
if x != nil {
2022-07-19 10:31:53 -07:00
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
if ms . LoadMessageInfo () == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use SshPrivateKeyCredential.ProtoReflect.Descriptor instead.
func ( * SshPrivateKeyCredential ) Descriptor () ([] byte , [] int ) {
2025-06-20 09:28:58 -04:00
return file_controller_api_resources_targets_v1_target_proto_rawDescGZIP (), [] int { 16 }
2022-07-19 10:31:53 -07:00
}
func ( x * SshPrivateKeyCredential ) GetUsername () string {
if x != nil {
return x . Username
}
return ""
}
func ( x * SshPrivateKeyCredential ) GetPrivateKey () string {
if x != nil {
return x . PrivateKey
}
return ""
}
2022-08-08 15:15:03 -04:00
func ( x * SshPrivateKeyCredential ) GetPrivateKeyPassphrase () string {
if x != nil {
return x . PrivateKeyPassphrase
}
return ""
}
2020-09-01 15:05:46 -07:00
var File_controller_api_resources_targets_v1_target_proto protoreflect . FileDescriptor
2025-05-23 09:42:26 -07:00
const file_controller_api_resources_targets_v1_target_proto_rawDesc = "" +
"\n" +
"0controller/api/resources/targets/v1/target.proto\x12#controller.api.resources.targets.v1\x1a.controller/api/resources/scopes/v1/scope.proto\x1a*controller/custom_options/v1/options.proto\x1a\x1bgoogle/api/visibility.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa5\x01\n" +
"\x05Alias\x12\x0e\n" +
"\x02id\x18\n" +
" \x01(\tR\x02id\x12\x14\n" +
"\x05value\x18\x14 \x01(\tR\x05value\x12\x1a\n" +
"\bscope_id\x18\x1e \x01(\tR\bscope_id\x12Z\n" +
"\n" +
"attributes\x18( \x01(\v2:.controller.api.resources.targets.v1.TargetAliasAttributesR\n" +
"attributes\"\x9a\x01\n" +
"\x15TargetAliasAttributes\x12\x80\x01\n" +
"\x1bauthorize_session_arguments\x18\x01 \x01(\v2>.controller.api.resources.targets.v1.AuthorizeSessionArgumentsR\x1bauthorize_session_arguments\"5\n" +
"\x19AuthorizeSessionArguments\x12\x18\n" +
"\ahost_id\x18\x01 \x01(\tR\ahost_id\"F\n" +
"\n" +
"HostSource\x12\x0e\n" +
"\x02id\x18\n" +
" \x01(\tR\x02id\x12(\n" +
"\x0fhost_catalog_id\x18\x14 \x01(\tR\x0fhost_catalog_id\"\xc7\x01\n" +
"\x10CredentialSource\x12\x0e\n" +
"\x02id\x18\n" +
" \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x14 \x01(\tR\x04name\x12 \n" +
"\vdescription\x18\x1e \x01(\tR\vdescription\x120\n" +
"\x13credential_store_id\x18( \x01(\tR\x13credential_store_id\x12\x12\n" +
"\x04type\x18< \x01(\tR\x04type\x12'\n" +
"\x0fcredential_type\x18F \x01(\tR\x0ecredentialType\"T\n" +
"\rSessionSecret\x12\x10\n" +
"\x03raw\x18\n" +
" \x01(\tR\x03raw\x121\n" +
"\adecoded\x18\x14 \x01(\v2\x17.google.protobuf.StructR\adecoded\"\x96\x02\n" +
"\x11SessionCredential\x12b\n" +
"\x11credential_source\x18\x01 \x01(\v25.controller.api.resources.targets.v1.CredentialSourceR\x10credentialSource\x12J\n" +
"\x06secret\x18\x14 \x01(\v22.controller.api.resources.targets.v1.SessionSecretR\x06secret\x127\n" +
"\n" +
"credential\x18( \x01(\v2\x17.google.protobuf.StructR\n" +
"credentialJ\x04\b\n" +
2025-06-20 09:28:58 -04:00
"\x10\vR\x12credential_library\"\xdf\x15\n" +
2025-05-23 09:42:26 -07:00
"\x06Target\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\x12\n" +
"\x04type\x18Z \x01(\tR\x04type\x12)\n" +
"\x0fhost_source_ids\x18\xa4\x03 \x03(\tR\x0fhost_source_ids\x12T\n" +
"\fhost_sources\x18\xae\x03 \x03(\v2/.controller.api.resources.targets.v1.HostSourceR\fhost_sources\x12\x80\x01\n" +
"\x13session_max_seconds\x18x \x01(\v2\x1c.google.protobuf.UInt32ValueB0\xa0\xda)\x01\xc2\xdd)(\n" +
"\x13session_max_seconds\x12\x11SessionMaxSecondsR\x13session_max_seconds\x12\x94\x01\n" +
"\x18session_connection_limit\x18\x82\x01 \x01(\v2\x1b.google.protobuf.Int32ValueB:\xa0\xda)\x01\xc2\xdd)2\n" +
"\x18session_connection_limit\x12\x16SessionConnectionLimitR\x18session_connection_limit\x12l\n" +
"\rworker_filter\x18\x8c\x01 \x01(\v2\x1c.google.protobuf.StringValueB'\xa0\xda)\x01\xc2\xdd)\x1d\n" +
"\rworker_filter\x12\fWorkerFilter\x18\x01R\rworker_filter\x12\x85\x01\n" +
"\x14egress_worker_filter\x18\xa0\x01 \x01(\v2\x1c.google.protobuf.StringValueB2\xa0\xda)\x01\xc2\xdd)*\n" +
"\x14egress_worker_filter\x12\x12EgressWorkerFilterR\x14egress_worker_filter\x12\x89\x01\n" +
"\x15ingress_worker_filter\x18\xaa\x01 \x01(\v2\x1c.google.protobuf.StringValueB4\xa0\xda)\x01\xc2\xdd),\n" +
"\x15ingress_worker_filter\x12\x13IngressWorkerFilterR\x15ingress_worker_filter\x12G\n" +
"\x1ebrokered_credential_source_ids\x18\xb8\x03 \x03(\tR\x1ebrokered_credential_source_ids\x12x\n" +
"\x1bbrokered_credential_sources\x18\xc2\x03 \x03(\v25.controller.api.resources.targets.v1.CredentialSourceR\x1bbrokered_credential_sources\x12_\n" +
"*injected_application_credential_source_ids\x18\x88\x04 \x03(\tR*injected_application_credential_source_ids\x12\x90\x01\n" +
"'injected_application_credential_sources\x18\x92\x04 \x03(\v25.controller.api.resources.targets.v1.CredentialSourceR'injected_application_credential_sources\x12K\n" +
"\n" +
"attributes\x18\xc8\x01 \x01(\v2\x17.google.protobuf.StructB\x0f\xa0\xda)\x01\x9a\xe3)\adefaultH\x00R\n" +
"attributes\x12\x8c\x01\n" +
"\x15tcp_target_attributes\x18\xc9\x01 \x01(\v28.controller.api.resources.targets.v1.TcpTargetAttributesB\x1b\xa0\xda)\x01\x9a\xe3)\x03tcp\xfa\xd2\xe4\x93\x02\n" +
"\x12\bINTERNALH\x00R\x13tcpTargetAttributes\x12\x8c\x01\n" +
"\x15ssh_target_attributes\x18\xca\x01 \x01(\v28.controller.api.resources.targets.v1.SshTargetAttributesB\x1b\xa0\xda)\x01\x9a\xe3)\x03ssh\xfa\xd2\xe4\x93\x02\n" +
2025-06-20 09:28:58 -04:00
"\x12\bINTERNALH\x00R\x13sshTargetAttributes\x12\x8c\x01\n" +
"\x15rdp_target_attributes\x18\xcb\x01 \x01(\v28.controller.api.resources.targets.v1.RdpTargetAttributesB\x1b\xa0\xda)\x01\x9a\xe3)\x03rdp\xfa\xd2\xe4\x93\x02\n" +
"\x12\bINTERNALH\x00R\x13rdpTargetAttributes\x12/\n" +
2025-05-23 09:42:26 -07:00
"\x12authorized_actions\x18\xac\x02 \x03(\tR\x12authorized_actions\x12S\n" +
"\aaddress\x18\x9c\x04 \x01(\v2\x1c.google.protobuf.StringValueB\x1a\xa0\xda)\x01\xc2\xdd)\x12\n" +
"\aaddress\x12\aaddressR\aaddress\x12E\n" +
"\aaliases\x18\xa6\x04 \x03(\v2*.controller.api.resources.targets.v1.AliasR\aaliases\x12O\n" +
"\fwith_aliases\x18\xb0\x04 \x03(\v2*.controller.api.resources.targets.v1.AliasR\fwith_aliasesB\a\n" +
"\x05attrsJ\x06\b\x96\x01\x10\x97\x01J\x06\b\xb4\x01\x10\xb5\x01J\x06\b\xf4\x03\x10\xf5\x03J\x06\b\xfe\x03\x10\xff\x03J\x04\bd\x10eJ\x04\bn\x10oJ\x06\b\x90\x03\x10\x91\x03J\x06\b\x9a\x03\x10\x9b\x03R\"application_credential_library_idsR application_credential_librariesR\x1cegress_credential_source_idsR\x19egress_credential_sourcesR\fhost_set_idsR\thost_setsR!application_credential_source_idsR\x1eapplication_credential_sources\"\x95\x02\n" +
"\x13TcpTargetAttributes\x12p\n" +
"\fdefault_port\x18\n" +
" \x01(\v2\x1c.google.protobuf.UInt32ValueB.\xa0\xda)\x01\xc2\xdd)&\n" +
"\x17attributes.default_port\x12\vDefaultPortR\fdefault_port\x12\x8b\x01\n" +
"\x13default_client_port\x18\x14 \x01(\v2\x1c.google.protobuf.UInt32ValueB;\xa0\xda)\x01\xc2\xdd)3\n" +
"\x1eattributes.default_client_port\x12\x11DefaultClientPortR\x13default_client_port\"\xbb\x04\n" +
"\x13SshTargetAttributes\x12p\n" +
"\fdefault_port\x18\n" +
" \x01(\v2\x1c.google.protobuf.UInt32ValueB.\xa0\xda)\x01\xc2\xdd)&\n" +
"\x17attributes.default_port\x12\vDefaultPortR\fdefault_port\x12\x8b\x01\n" +
"\x13default_client_port\x18\x14 \x01(\v2\x1c.google.protobuf.UInt32ValueB;\xa0\xda)\x01\xc2\xdd)3\n" +
"\x1eattributes.default_client_port\x12\x11DefaultClientPortR\x13default_client_port\x12\x83\x01\n" +
"\x11storage_bucket_id\x18\x1e \x01(\v2\x1c.google.protobuf.StringValueB7\xa0\xda)\x01\xc2\xdd)/\n" +
"\x1cattributes.storage_bucket_id\x12\x0fStorageBucketIdR\x11storage_bucket_id\x12\x9d\x01\n" +
"\x18enable_session_recording\x18( \x01(\v2\x1a.google.protobuf.BoolValueBE\xa0\xda)\x01\xc2\xdd)=\n" +
2025-06-20 09:28:58 -04:00
"#attributes.enable_session_recording\x12\x16EnableSessionRecordingR\x18enable_session_recording\"\x95\x02\n" +
"\x13RdpTargetAttributes\x12p\n" +
"\fdefault_port\x18\n" +
" \x01(\v2\x1c.google.protobuf.UInt32ValueB.\xa0\xda)\x01\xc2\xdd)&\n" +
"\x17attributes.default_port\x12\vDefaultPortR\fdefault_port\x12\x8b\x01\n" +
"\x13default_client_port\x18\x14 \x01(\v2\x1c.google.protobuf.UInt32ValueB;\xa0\xda)\x01\xc2\xdd)3\n" +
"\x1eattributes.default_client_port\x12\x11DefaultClientPortR\x13default_client_port\"&\n" +
2025-05-23 09:42:26 -07:00
"\n" +
"WorkerInfo\x12\x18\n" +
"\aaddress\x18\n" +
" \x01(\tR\aaddress\"\x82\x05\n" +
"\x18SessionAuthorizationData\x12\x1e\n" +
"\n" +
"session_id\x18\n" +
" \x01(\tR\n" +
"session_id\x12\x1c\n" +
"\ttarget_id\x18\x14 \x01(\tR\ttarget_id\x12C\n" +
"\x05scope\x18\x1e \x01(\v2-.controller.api.resources.scopes.v1.ScopeInfoR\x05scope\x12>\n" +
"\fcreated_time\x18( \x01(\v2\x1a.google.protobuf.TimestampR\fcreated_time\x12\x12\n" +
"\x04type\x18P \x01(\tR\x04type\x12*\n" +
"\x10connection_limit\x18Z \x01(\x05R\x10connection_limit\x12$\n" +
"\rendpoint_port\x18f \x01(\rR\rendpoint_port\x12:\n" +
"\n" +
"expiration\x18i \x01(\v2\x1a.google.protobuf.TimestampR\n" +
"expiration\x12 \n" +
"\vcertificate\x18x \x01(\fR\vcertificate\x12!\n" +
"\vprivate_key\x18\x82\x01 \x01(\fR\vprivate_key\x12\x18\n" +
"\ahost_id\x18\x8c\x01 \x01(\tR\x06hostId\x12\x1b\n" +
"\bendpoint\x18\x8d\x01 \x01(\tR\bendpoint\x12R\n" +
"\vworker_info\x18\x96\x01 \x03(\v2/.controller.api.resources.targets.v1.WorkerInfoR\vworker_info\x121\n" +
"\x13default_client_port\x18\xa0\x01 \x01(\rR\x13default_client_port\"\xad\x05\n" +
"\x14SessionAuthorization\x12\x1e\n" +
"\n" +
"session_id\x18\n" +
" \x01(\tR\n" +
"session_id\x12\x1c\n" +
"\ttarget_id\x18\x14 \x01(\tR\ttarget_id\x12C\n" +
"\x05scope\x18\x1e \x01(\v2-.controller.api.resources.scopes.v1.ScopeInfoR\x05scope\x12>\n" +
"\fcreated_time\x18( \x01(\v2\x1a.google.protobuf.TimestampR\fcreated_time\x12\x18\n" +
"\auser_id\x182 \x01(\tR\auser_id\x12 \n" +
"\vhost_set_id\x18< \x01(\tR\vhost_set_id\x12\x18\n" +
"\ahost_id\x18F \x01(\tR\ahost_id\x12\x12\n" +
"\x04type\x18P \x01(\tR\x04type\x120\n" +
"\x13authorization_token\x18Z \x01(\tR\x13authorization_token\x12*\n" +
"\x10connection_limit\x18_ \x01(\x05R\x10connection_limit\x12\x1a\n" +
"\bendpoint\x18d \x01(\tR\bendpoint\x12$\n" +
"\rendpoint_port\x18f \x01(\rR\rendpoint_port\x12:\n" +
"\n" +
"expiration\x18i \x01(\v2\x1a.google.protobuf.TimestampR\n" +
"expiration\x12X\n" +
"\vcredentials\x18n \x03(\v26.controller.api.resources.targets.v1.SessionCredentialR\vcredentials\x122\n" +
"\x14session_recording_id\x18s \x01(\tR\x14session_recording_id\"T\n" +
"\x1aUsernamePasswordCredential\x12\x1a\n" +
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
2025-05-13 13:39:02 +01:00
"\bpassword\x18\x02 \x01(\tR\bpassword\"r\n" +
" UsernamePasswordDomainCredential\x12\x1a\n" +
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x16\n" +
"\x06domain\x18\x03 \x01(\tR\x06domain\"\x8c\x01\n" +
2025-05-23 09:42:26 -07:00
"\x17SshPrivateKeyCredential\x12\x1a\n" +
"\busername\x18\x01 \x01(\tR\busername\x12\x1f\n" +
"\vprivate_key\x18\x02 \x01(\tR\n" +
"privateKey\x124\n" +
"\x16private_key_passphrase\x18\x03 \x01(\tR\x14privateKeyPassphraseBPZNgithub.com/hashicorp/boundary/sdk/pbs/controller/api/resources/targets;targetsb\x06proto3"
2020-09-01 15:05:46 -07:00
var (
file_controller_api_resources_targets_v1_target_proto_rawDescOnce sync . Once
2025-05-23 09:42:26 -07:00
file_controller_api_resources_targets_v1_target_proto_rawDescData [] byte
2020-09-01 15:05:46 -07:00
)
func file_controller_api_resources_targets_v1_target_proto_rawDescGZIP () [] byte {
file_controller_api_resources_targets_v1_target_proto_rawDescOnce . Do ( func () {
2025-05-23 09:42:26 -07:00
file_controller_api_resources_targets_v1_target_proto_rawDescData = protoimpl . X . CompressGZIP ( unsafe . Slice ( unsafe . StringData ( file_controller_api_resources_targets_v1_target_proto_rawDesc ), len ( file_controller_api_resources_targets_v1_target_proto_rawDesc )))
2020-09-01 15:05:46 -07:00
})
return file_controller_api_resources_targets_v1_target_proto_rawDescData
}
2025-06-20 09:28:58 -04:00
var file_controller_api_resources_targets_v1_target_proto_msgTypes = make ([] protoimpl . MessageInfo , 17 )
2024-08-01 11:18:53 -04:00
var file_controller_api_resources_targets_v1_target_proto_goTypes = [] any {
2025-05-13 13:39:02 +01:00
( * Alias )( nil ), // 0: controller.api.resources.targets.v1.Alias
( * TargetAliasAttributes )( nil ), // 1: controller.api.resources.targets.v1.TargetAliasAttributes
( * AuthorizeSessionArguments )( nil ), // 2: controller.api.resources.targets.v1.AuthorizeSessionArguments
( * HostSource )( nil ), // 3: controller.api.resources.targets.v1.HostSource
( * CredentialSource )( nil ), // 4: controller.api.resources.targets.v1.CredentialSource
( * SessionSecret )( nil ), // 5: controller.api.resources.targets.v1.SessionSecret
( * SessionCredential )( nil ), // 6: controller.api.resources.targets.v1.SessionCredential
( * Target )( nil ), // 7: controller.api.resources.targets.v1.Target
( * TcpTargetAttributes )( nil ), // 8: controller.api.resources.targets.v1.TcpTargetAttributes
( * SshTargetAttributes )( nil ), // 9: controller.api.resources.targets.v1.SshTargetAttributes
2025-06-20 09:28:58 -04:00
( * RdpTargetAttributes )( nil ), // 10: controller.api.resources.targets.v1.RdpTargetAttributes
( * WorkerInfo )( nil ), // 11: controller.api.resources.targets.v1.WorkerInfo
( * SessionAuthorizationData )( nil ), // 12: controller.api.resources.targets.v1.SessionAuthorizationData
( * SessionAuthorization )( nil ), // 13: controller.api.resources.targets.v1.SessionAuthorization
( * UsernamePasswordCredential )( nil ), // 14: controller.api.resources.targets.v1.UsernamePasswordCredential
( * UsernamePasswordDomainCredential )( nil ), // 15: controller.api.resources.targets.v1.UsernamePasswordDomainCredential
( * SshPrivateKeyCredential )( nil ), // 16: controller.api.resources.targets.v1.SshPrivateKeyCredential
( * structpb . Struct )( nil ), // 17: google.protobuf.Struct
( * scopes . ScopeInfo )( nil ), // 18: controller.api.resources.scopes.v1.ScopeInfo
( * wrapperspb . StringValue )( nil ), // 19: google.protobuf.StringValue
( * timestamppb . Timestamp )( nil ), // 20: google.protobuf.Timestamp
( * wrapperspb . UInt32Value )( nil ), // 21: google.protobuf.UInt32Value
( * wrapperspb . Int32Value )( nil ), // 22: google.protobuf.Int32Value
( * wrapperspb . BoolValue )( nil ), // 23: google.protobuf.BoolValue
2021-01-08 10:32:02 -05:00
}
2020-09-01 15:05:46 -07:00
var file_controller_api_resources_targets_v1_target_proto_depIdxs = [] int32 {
2024-03-12 13:57:47 -07:00
1 , // 0: controller.api.resources.targets.v1.Alias.attributes:type_name -> controller.api.resources.targets.v1.TargetAliasAttributes
2 , // 1: controller.api.resources.targets.v1.TargetAliasAttributes.authorize_session_arguments:type_name -> controller.api.resources.targets.v1.AuthorizeSessionArguments
2025-06-20 09:28:58 -04:00
17 , // 2: controller.api.resources.targets.v1.SessionSecret.decoded:type_name -> google.protobuf.Struct
2024-03-12 13:57:47 -07:00
4 , // 3: controller.api.resources.targets.v1.SessionCredential.credential_source:type_name -> controller.api.resources.targets.v1.CredentialSource
5 , // 4: controller.api.resources.targets.v1.SessionCredential.secret:type_name -> controller.api.resources.targets.v1.SessionSecret
2025-06-20 09:28:58 -04:00
17 , // 5: controller.api.resources.targets.v1.SessionCredential.credential:type_name -> google.protobuf.Struct
18 , // 6: controller.api.resources.targets.v1.Target.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
19 , // 7: controller.api.resources.targets.v1.Target.name:type_name -> google.protobuf.StringValue
19 , // 8: controller.api.resources.targets.v1.Target.description:type_name -> google.protobuf.StringValue
20 , // 9: controller.api.resources.targets.v1.Target.created_time:type_name -> google.protobuf.Timestamp
20 , // 10: controller.api.resources.targets.v1.Target.updated_time:type_name -> google.protobuf.Timestamp
2024-03-12 13:57:47 -07:00
3 , // 11: controller.api.resources.targets.v1.Target.host_sources:type_name -> controller.api.resources.targets.v1.HostSource
2025-06-20 09:28:58 -04:00
21 , // 12: controller.api.resources.targets.v1.Target.session_max_seconds:type_name -> google.protobuf.UInt32Value
22 , // 13: controller.api.resources.targets.v1.Target.session_connection_limit:type_name -> google.protobuf.Int32Value
19 , // 14: controller.api.resources.targets.v1.Target.worker_filter:type_name -> google.protobuf.StringValue
19 , // 15: controller.api.resources.targets.v1.Target.egress_worker_filter:type_name -> google.protobuf.StringValue
19 , // 16: controller.api.resources.targets.v1.Target.ingress_worker_filter:type_name -> google.protobuf.StringValue
2024-03-12 13:57:47 -07:00
4 , // 17: controller.api.resources.targets.v1.Target.brokered_credential_sources:type_name -> controller.api.resources.targets.v1.CredentialSource
4 , // 18: controller.api.resources.targets.v1.Target.injected_application_credential_sources:type_name -> controller.api.resources.targets.v1.CredentialSource
2025-06-20 09:28:58 -04:00
17 , // 19: controller.api.resources.targets.v1.Target.attributes:type_name -> google.protobuf.Struct
2024-03-12 13:57:47 -07:00
8 , // 20: controller.api.resources.targets.v1.Target.tcp_target_attributes:type_name -> controller.api.resources.targets.v1.TcpTargetAttributes
9 , // 21: controller.api.resources.targets.v1.Target.ssh_target_attributes:type_name -> controller.api.resources.targets.v1.SshTargetAttributes
2025-06-20 09:28:58 -04:00
10 , // 22: controller.api.resources.targets.v1.Target.rdp_target_attributes:type_name -> controller.api.resources.targets.v1.RdpTargetAttributes
19 , // 23: controller.api.resources.targets.v1.Target.address:type_name -> google.protobuf.StringValue
0 , // 24: controller.api.resources.targets.v1.Target.aliases:type_name -> controller.api.resources.targets.v1.Alias
0 , // 25: controller.api.resources.targets.v1.Target.with_aliases:type_name -> controller.api.resources.targets.v1.Alias
21 , // 26: controller.api.resources.targets.v1.TcpTargetAttributes.default_port:type_name -> google.protobuf.UInt32Value
21 , // 27: controller.api.resources.targets.v1.TcpTargetAttributes.default_client_port:type_name -> google.protobuf.UInt32Value
21 , // 28: controller.api.resources.targets.v1.SshTargetAttributes.default_port:type_name -> google.protobuf.UInt32Value
21 , // 29: controller.api.resources.targets.v1.SshTargetAttributes.default_client_port:type_name -> google.protobuf.UInt32Value
19 , // 30: controller.api.resources.targets.v1.SshTargetAttributes.storage_bucket_id:type_name -> google.protobuf.StringValue
23 , // 31: controller.api.resources.targets.v1.SshTargetAttributes.enable_session_recording:type_name -> google.protobuf.BoolValue
21 , // 32: controller.api.resources.targets.v1.RdpTargetAttributes.default_port:type_name -> google.protobuf.UInt32Value
21 , // 33: controller.api.resources.targets.v1.RdpTargetAttributes.default_client_port:type_name -> google.protobuf.UInt32Value
18 , // 34: controller.api.resources.targets.v1.SessionAuthorizationData.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
20 , // 35: controller.api.resources.targets.v1.SessionAuthorizationData.created_time:type_name -> google.protobuf.Timestamp
20 , // 36: controller.api.resources.targets.v1.SessionAuthorizationData.expiration:type_name -> google.protobuf.Timestamp
11 , // 37: controller.api.resources.targets.v1.SessionAuthorizationData.worker_info:type_name -> controller.api.resources.targets.v1.WorkerInfo
18 , // 38: controller.api.resources.targets.v1.SessionAuthorization.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
20 , // 39: controller.api.resources.targets.v1.SessionAuthorization.created_time:type_name -> google.protobuf.Timestamp
20 , // 40: controller.api.resources.targets.v1.SessionAuthorization.expiration:type_name -> google.protobuf.Timestamp
6 , // 41: controller.api.resources.targets.v1.SessionAuthorization.credentials:type_name -> controller.api.resources.targets.v1.SessionCredential
42 , // [42:42] is the sub-list for method output_type
42 , // [42:42] is the sub-list for method input_type
42 , // [42:42] is the sub-list for extension type_name
42 , // [42:42] is the sub-list for extension extendee
0 , // [0:42] is the sub-list for field type_name
2020-09-01 15:05:46 -07:00
}
func init () { file_controller_api_resources_targets_v1_target_proto_init () }
func file_controller_api_resources_targets_v1_target_proto_init () {
if File_controller_api_resources_targets_v1_target_proto != nil {
return
}
2024-08-01 11:18:53 -04:00
file_controller_api_resources_targets_v1_target_proto_msgTypes [ 7 ]. OneofWrappers = [] any {
2022-04-13 16:27:48 -04:00
( * Target_Attributes )( nil ),
( * Target_TcpTargetAttributes )( nil ),
2021-11-18 14:17:18 -05:00
( * Target_SshTargetAttributes )( nil ),
2025-06-20 09:28:58 -04:00
( * Target_RdpTargetAttributes )( nil ),
2022-04-13 16:27:48 -04:00
}
2020-09-01 15:05:46 -07: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_targets_v1_target_proto_rawDesc ), len ( file_controller_api_resources_targets_v1_target_proto_rawDesc )),
2020-09-01 15:05:46 -07:00
NumEnums : 0 ,
2025-06-20 09:28:58 -04:00
NumMessages : 17 ,
2020-09-01 15:05:46 -07:00
NumExtensions : 0 ,
NumServices : 0 ,
},
GoTypes : file_controller_api_resources_targets_v1_target_proto_goTypes ,
DependencyIndexes : file_controller_api_resources_targets_v1_target_proto_depIdxs ,
MessageInfos : file_controller_api_resources_targets_v1_target_proto_msgTypes ,
}. Build ()
File_controller_api_resources_targets_v1_target_proto = out . File
file_controller_api_resources_targets_v1_target_proto_goTypes = nil
file_controller_api_resources_targets_v1_target_proto_depIdxs = nil
}