You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/sdk/pbs/controller/api/resources/hostsets/host_set.pb.go

332 lines
14 KiB

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc (unknown)
// source: controller/api/resources/hostsets/v1/host_set.proto
package hostsets
import (
plugins "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/plugins"
scopes "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/scopes"
_ "github.com/hashicorp/boundary/sdk/pbs/controller/protooptions"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// HostSet is a collection of Hosts created and managed by a Host Catalog
type HostSet struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Output only. The ID of the Host Set.
Id string `protobuf:"bytes,10,opt,name=id,proto3" json:"id,omitempty" class:"public"` // @gotags: `class:"public"`
// The Host Catalog of which this Host Set is a part.
HostCatalogId string `protobuf:"bytes,20,opt,name=host_catalog_id,proto3" json:"host_catalog_id,omitempty" class:"public"` // @gotags: `class:"public"`
// Output only. Scope information for this resource.
Scope *scopes.ScopeInfo `protobuf:"bytes,30,opt,name=scope,proto3" json:"scope,omitempty"`
// Output only. Plugin information for this resource.
Plugin *plugins.PluginInfo `protobuf:"bytes,35,opt,name=plugin,proto3" json:"plugin,omitempty"`
// Optional name for identification purposes.
Name *wrapperspb.StringValue `protobuf:"bytes,40,opt,name=name,proto3" json:"name,omitempty" class:"public"` // @gotags: `class:"public"`
// Optional user-set description for identification purposes.
Description *wrapperspb.StringValue `protobuf:"bytes,50,opt,name=description,proto3" json:"description,omitempty" class:"public"` // @gotags: `class:"public"`
// Output only. The time this resource was created.
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,60,opt,name=created_time,proto3" json:"created_time,omitempty" class:"public"` // @gotags: `class:"public"`
// Output only. The time this resource was last updated.
UpdatedTime *timestamppb.Timestamp `protobuf:"bytes,70,opt,name=updated_time,proto3" json:"updated_time,omitempty" class:"public"` // @gotags: `class:"public"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
Version uint32 `protobuf:"varint,80,opt,name=version,proto3" json:"version,omitempty" class:"public"` // @gotags: `class:"public"`
// The type of the Host Set.
Type string `protobuf:"bytes,90,opt,name=type,proto3" json:"type,omitempty" class:"public"` // @gotags: `class:"public"`
// Output only. A list of Hosts in this Host Set.
HostIds []string `protobuf:"bytes,100,rep,name=host_ids,proto3" json:"host_ids,omitempty" class:"public"` // @gotags: `class:"public"`
// multiple possible endpoints for a host. Preferences are specified by
// "cidr:<valid IPv4/6 CIDR>" or "dns:<globbed name>", specifying which IP
// address or DNS name out of a host's available possibilities should be
// preferred. If no preferences are specified, a value will be chosen from
// among all avialable values using a built-in priority order. May not be
// valid for all plugin types.
PreferredEndpoints []string `protobuf:"bytes,101,rep,name=preferred_endpoints,proto3" json:"preferred_endpoints,omitempty" class:"public"` // @gotags: `class:"public"`
// An interger number of seconds indicating the amount of time that should
// elapse between syncs of the host set. The interval will be applied to the
// end of the previous sync operation, not the start. Setting to -1 will
// disable syncing for that host set; setting to zero will cause the set to
// use Boundary's default. The default may change between releases. May not
// be valid for all plugin types.
SyncIntervalSeconds *wrapperspb.Int32Value `protobuf:"bytes,102,opt,name=sync_interval_seconds,proto3" json:"sync_interval_seconds,omitempty" class:"public"` // @gotags: `class:"public"`
// Types that are valid to be assigned to Attrs:
//
// *HostSet_Attributes
Attrs isHostSet_Attrs `protobuf_oneof:"attrs"`
// Output only. The available actions on this resource for this user.
AuthorizedActions []string `protobuf:"bytes,300,rep,name=authorized_actions,proto3" json:"authorized_actions,omitempty" class:"public"` // @gotags: `class:"public"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HostSet) Reset() {
*x = HostSet{}
mi := &file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HostSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HostSet) ProtoMessage() {}
func (x *HostSet) ProtoReflect() protoreflect.Message {
mi := &file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HostSet.ProtoReflect.Descriptor instead.
func (*HostSet) Descriptor() ([]byte, []int) {
return file_controller_api_resources_hostsets_v1_host_set_proto_rawDescGZIP(), []int{0}
}
func (x *HostSet) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *HostSet) GetHostCatalogId() string {
if x != nil {
return x.HostCatalogId
}
return ""
}
func (x *HostSet) GetScope() *scopes.ScopeInfo {
if x != nil {
return x.Scope
}
return nil
}
func (x *HostSet) GetPlugin() *plugins.PluginInfo {
if x != nil {
return x.Plugin
}
return nil
}
func (x *HostSet) GetName() *wrapperspb.StringValue {
if x != nil {
return x.Name
}
return nil
}
func (x *HostSet) GetDescription() *wrapperspb.StringValue {
if x != nil {
return x.Description
}
return nil
}
func (x *HostSet) GetCreatedTime() *timestamppb.Timestamp {
if x != nil {
return x.CreatedTime
}
return nil
}
func (x *HostSet) GetUpdatedTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedTime
}
return nil
}
func (x *HostSet) GetVersion() uint32 {
if x != nil {
return x.Version
}
return 0
}
func (x *HostSet) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *HostSet) GetHostIds() []string {
if x != nil {
return x.HostIds
}
return nil
}
func (x *HostSet) GetPreferredEndpoints() []string {
if x != nil {
return x.PreferredEndpoints
}
return nil
}
func (x *HostSet) GetSyncIntervalSeconds() *wrapperspb.Int32Value {
if x != nil {
return x.SyncIntervalSeconds
}
return nil
}
func (x *HostSet) GetAttrs() isHostSet_Attrs {
if x != nil {
return x.Attrs
}
return nil
}
func (x *HostSet) GetAttributes() *structpb.Struct {
if x != nil {
if x, ok := x.Attrs.(*HostSet_Attributes); ok {
return x.Attributes
}
}
return nil
}
func (x *HostSet) GetAuthorizedActions() []string {
if x != nil {
return x.AuthorizedActions
}
return nil
}
type isHostSet_Attrs interface {
isHostSet_Attrs()
}
type HostSet_Attributes struct {
// The attributes that are applicable for the specific Host Set type.
Attributes *structpb.Struct `protobuf:"bytes,110,opt,name=attributes,proto3,oneof"`
}
func (*HostSet_Attributes) isHostSet_Attrs() {}
var File_controller_api_resources_hostsets_v1_host_set_proto protoreflect.FileDescriptor
const file_controller_api_resources_hostsets_v1_host_set_proto_rawDesc = "" +
"\n" +
"3controller/api/resources/hostsets/v1/host_set.proto\x12$controller.api.resources.hostsets.v1\x1a0controller/api/resources/plugins/v1/plugin.proto\x1a.controller/api/resources/scopes/v1/scope.proto\x1a*controller/custom_options/v1/options.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xbc\a\n" +
"\aHostSet\x12\x0e\n" +
"\x02id\x18\n" +
" \x01(\tR\x02id\x12(\n" +
"\x0fhost_catalog_id\x18\x14 \x01(\tR\x0fhost_catalog_id\x12C\n" +
"\x05scope\x18\x1e \x01(\v2-.controller.api.resources.scopes.v1.ScopeInfoR\x05scope\x12G\n" +
"\x06plugin\x18# \x01(\v2/.controller.api.resources.plugins.v1.PluginInfoR\x06plugin\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\x1a\n" +
"\bhost_ids\x18d \x03(\tR\bhost_ids\x12c\n" +
"\x13preferred_endpoints\x18e \x03(\tB1\xa0\xda)\x01\xc2\xdd))\n" +
"\x13preferred_endpoints\x12\x12PreferredEndpointsR\x13preferred_endpoints\x12\x87\x01\n" +
"\x15sync_interval_seconds\x18f \x01(\v2\x1b.google.protobuf.Int32ValueB4\xa0\xda)\x01\xc2\xdd),\n" +
"\x15sync_interval_seconds\x12\x13SyncIntervalSecondsR\x15sync_interval_seconds\x12J\n" +
"\n" +
"attributes\x18n \x01(\v2\x17.google.protobuf.StructB\x0f\xa0\xda)\x01\x9a\xe3)\adefaultH\x00R\n" +
"attributes\x12/\n" +
"\x12authorized_actions\x18\xac\x02 \x03(\tR\x12authorized_actionsB\a\n" +
"\x05attrsBRZPgithub.com/hashicorp/boundary/sdk/pbs/controller/api/resources/hostsets;hostsetsb\x06proto3"
var (
file_controller_api_resources_hostsets_v1_host_set_proto_rawDescOnce sync.Once
file_controller_api_resources_hostsets_v1_host_set_proto_rawDescData []byte
)
func file_controller_api_resources_hostsets_v1_host_set_proto_rawDescGZIP() []byte {
file_controller_api_resources_hostsets_v1_host_set_proto_rawDescOnce.Do(func() {
file_controller_api_resources_hostsets_v1_host_set_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_controller_api_resources_hostsets_v1_host_set_proto_rawDesc), len(file_controller_api_resources_hostsets_v1_host_set_proto_rawDesc)))
})
return file_controller_api_resources_hostsets_v1_host_set_proto_rawDescData
}
var file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_controller_api_resources_hostsets_v1_host_set_proto_goTypes = []any{
(*HostSet)(nil), // 0: controller.api.resources.hostsets.v1.HostSet
(*scopes.ScopeInfo)(nil), // 1: controller.api.resources.scopes.v1.ScopeInfo
(*plugins.PluginInfo)(nil), // 2: controller.api.resources.plugins.v1.PluginInfo
(*wrapperspb.StringValue)(nil), // 3: google.protobuf.StringValue
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
(*wrapperspb.Int32Value)(nil), // 5: google.protobuf.Int32Value
(*structpb.Struct)(nil), // 6: google.protobuf.Struct
}
var file_controller_api_resources_hostsets_v1_host_set_proto_depIdxs = []int32{
1, // 0: controller.api.resources.hostsets.v1.HostSet.scope:type_name -> controller.api.resources.scopes.v1.ScopeInfo
2, // 1: controller.api.resources.hostsets.v1.HostSet.plugin:type_name -> controller.api.resources.plugins.v1.PluginInfo
3, // 2: controller.api.resources.hostsets.v1.HostSet.name:type_name -> google.protobuf.StringValue
3, // 3: controller.api.resources.hostsets.v1.HostSet.description:type_name -> google.protobuf.StringValue
4, // 4: controller.api.resources.hostsets.v1.HostSet.created_time:type_name -> google.protobuf.Timestamp
4, // 5: controller.api.resources.hostsets.v1.HostSet.updated_time:type_name -> google.protobuf.Timestamp
5, // 6: controller.api.resources.hostsets.v1.HostSet.sync_interval_seconds:type_name -> google.protobuf.Int32Value
6, // 7: controller.api.resources.hostsets.v1.HostSet.attributes:type_name -> google.protobuf.Struct
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_controller_api_resources_hostsets_v1_host_set_proto_init() }
func file_controller_api_resources_hostsets_v1_host_set_proto_init() {
if File_controller_api_resources_hostsets_v1_host_set_proto != nil {
return
}
file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes[0].OneofWrappers = []any{
(*HostSet_Attributes)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_controller_api_resources_hostsets_v1_host_set_proto_rawDesc), len(file_controller_api_resources_hostsets_v1_host_set_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_controller_api_resources_hostsets_v1_host_set_proto_goTypes,
DependencyIndexes: file_controller_api_resources_hostsets_v1_host_set_proto_depIdxs,
MessageInfos: file_controller_api_resources_hostsets_v1_host_set_proto_msgTypes,
}.Build()
File_controller_api_resources_hostsets_v1_host_set_proto = out.File
file_controller_api_resources_hostsets_v1_host_set_proto_goTypes = nil
file_controller_api_resources_hostsets_v1_host_set_proto_depIdxs = nil
}