Files
softplayer-go-proto/pkg/environments/v1/environments_v1.pb.go

1089 lines
35 KiB
Go

/// This file has messages for describing environments
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: environments/v1/environments_v1.proto
package environments
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
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)
)
// *
// Helpers and other messages
type Provider int32
const (
Provider_PROVIDER_UNSPECIFIED Provider = 0
Provider_PROVIDER_HETZNER Provider = 1
)
// Enum value maps for Provider.
var (
Provider_name = map[int32]string{
0: "PROVIDER_UNSPECIFIED",
1: "PROVIDER_HETZNER",
}
Provider_value = map[string]int32{
"PROVIDER_UNSPECIFIED": 0,
"PROVIDER_HETZNER": 1,
}
)
func (x Provider) Enum() *Provider {
p := new(Provider)
*p = x
return p
}
func (x Provider) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Provider) Descriptor() protoreflect.EnumDescriptor {
return file_environments_v1_environments_v1_proto_enumTypes[0].Descriptor()
}
func (Provider) Type() protoreflect.EnumType {
return &file_environments_v1_environments_v1_proto_enumTypes[0]
}
func (x Provider) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Provider.Descriptor instead.
func (Provider) EnumDescriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{0}
}
type ServerType int32
const (
ServerType_SERVER_TYPE_UNSPECIFIED ServerType = 0
ServerType_SERVER_TYPE_STARTER ServerType = 1
ServerType_SERVER_TYPE_REGULAR ServerType = 2
ServerType_SERVER_TYPE_PLUS ServerType = 3
ServerType_SERVER_TYPE_PRO ServerType = 4
ServerType_SERVER_TYPE_CUSTOM ServerType = 5
)
// Enum value maps for ServerType.
var (
ServerType_name = map[int32]string{
0: "SERVER_TYPE_UNSPECIFIED",
1: "SERVER_TYPE_STARTER",
2: "SERVER_TYPE_REGULAR",
3: "SERVER_TYPE_PLUS",
4: "SERVER_TYPE_PRO",
5: "SERVER_TYPE_CUSTOM",
}
ServerType_value = map[string]int32{
"SERVER_TYPE_UNSPECIFIED": 0,
"SERVER_TYPE_STARTER": 1,
"SERVER_TYPE_REGULAR": 2,
"SERVER_TYPE_PLUS": 3,
"SERVER_TYPE_PRO": 4,
"SERVER_TYPE_CUSTOM": 5,
}
)
func (x ServerType) Enum() *ServerType {
p := new(ServerType)
*p = x
return p
}
func (x ServerType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ServerType) Descriptor() protoreflect.EnumDescriptor {
return file_environments_v1_environments_v1_proto_enumTypes[1].Descriptor()
}
func (ServerType) Type() protoreflect.EnumType {
return &file_environments_v1_environments_v1_proto_enumTypes[1]
}
func (x ServerType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ServerType.Descriptor instead.
func (ServerType) EnumDescriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{1}
}
type Location int32
const (
Location_LOCATION_UNSPECIFIED Location = 0
Location_LOCATION_HETZNER_NUREMBERG Location = 1
Location_LOCATION_HETZNER_FALKENSTEIN Location = 2
Location_LOCATION_HETZNER_HELSINKI Location = 3
Location_LOCATION_HETZNER_HILLSBORO Location = 4
Location_LOCATION_HETZNER_ASHBURN Location = 5
)
// Enum value maps for Location.
var (
Location_name = map[int32]string{
0: "LOCATION_UNSPECIFIED",
1: "LOCATION_HETZNER_NUREMBERG",
2: "LOCATION_HETZNER_FALKENSTEIN",
3: "LOCATION_HETZNER_HELSINKI",
4: "LOCATION_HETZNER_HILLSBORO",
5: "LOCATION_HETZNER_ASHBURN",
}
Location_value = map[string]int32{
"LOCATION_UNSPECIFIED": 0,
"LOCATION_HETZNER_NUREMBERG": 1,
"LOCATION_HETZNER_FALKENSTEIN": 2,
"LOCATION_HETZNER_HELSINKI": 3,
"LOCATION_HETZNER_HILLSBORO": 4,
"LOCATION_HETZNER_ASHBURN": 5,
}
)
func (x Location) Enum() *Location {
p := new(Location)
*p = x
return p
}
func (x Location) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Location) Descriptor() protoreflect.EnumDescriptor {
return file_environments_v1_environments_v1_proto_enumTypes[2].Descriptor()
}
func (Location) Type() protoreflect.EnumType {
return &file_environments_v1_environments_v1_proto_enumTypes[2]
}
func (x Location) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Location.Descriptor instead.
func (Location) EnumDescriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{2}
}
type Kubernetes int32
const (
Kubernetes_KUBERNETES_UNSPECIFIED Kubernetes = 0
Kubernetes_KUBERNETES_K3S Kubernetes = 1
)
// Enum value maps for Kubernetes.
var (
Kubernetes_name = map[int32]string{
0: "KUBERNETES_UNSPECIFIED",
1: "KUBERNETES_K3S",
}
Kubernetes_value = map[string]int32{
"KUBERNETES_UNSPECIFIED": 0,
"KUBERNETES_K3S": 1,
}
)
func (x Kubernetes) Enum() *Kubernetes {
p := new(Kubernetes)
*p = x
return p
}
func (x Kubernetes) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Kubernetes) Descriptor() protoreflect.EnumDescriptor {
return file_environments_v1_environments_v1_proto_enumTypes[3].Descriptor()
}
func (Kubernetes) Type() protoreflect.EnumType {
return &file_environments_v1_environments_v1_proto_enumTypes[3]
}
func (x Kubernetes) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Kubernetes.Descriptor instead.
func (Kubernetes) EnumDescriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{3}
}
type OwnerId struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUID of a user that is creating an environemnt
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OwnerId) Reset() {
*x = OwnerId{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OwnerId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OwnerId) ProtoMessage() {}
func (x *OwnerId) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_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 OwnerId.ProtoReflect.Descriptor instead.
func (*OwnerId) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{0}
}
func (x *OwnerId) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
type Token struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Token that should be used to create an environment
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Token) Reset() {
*x = Token{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Token) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Token) ProtoMessage() {}
func (x *Token) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Token.ProtoReflect.Descriptor instead.
func (*Token) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{1}
}
func (x *Token) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type CreateOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
Metadata *EnvironmentMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *EnvironmentSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateOptions) Reset() {
*x = CreateOptions{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateOptions) ProtoMessage() {}
func (x *CreateOptions) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[2]
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 CreateOptions.ProtoReflect.Descriptor instead.
func (*CreateOptions) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{2}
}
func (x *CreateOptions) GetMetadata() *EnvironmentMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *CreateOptions) GetSpec() *EnvironmentSpec {
if x != nil {
return x.Spec
}
return nil
}
func (x *CreateOptions) GetOwnerId() *OwnerId {
if x != nil {
return x.OwnerId
}
return nil
}
func (x *CreateOptions) GetToken() *Token {
if x != nil {
return x.Token
}
return nil
}
type UpdateOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id *EnvironmentId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Metadata *EnvironmentMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *EnvironmentSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
OwnerId *OwnerId `protobuf:"bytes,4,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
Token *Token `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateOptions) Reset() {
*x = UpdateOptions{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateOptions) ProtoMessage() {}
func (x *UpdateOptions) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[3]
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 UpdateOptions.ProtoReflect.Descriptor instead.
func (*UpdateOptions) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{3}
}
func (x *UpdateOptions) GetId() *EnvironmentId {
if x != nil {
return x.Id
}
return nil
}
func (x *UpdateOptions) GetMetadata() *EnvironmentMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *UpdateOptions) GetSpec() *EnvironmentSpec {
if x != nil {
return x.Spec
}
return nil
}
func (x *UpdateOptions) GetOwnerId() *OwnerId {
if x != nil {
return x.OwnerId
}
return nil
}
func (x *UpdateOptions) GetToken() *Token {
if x != nil {
return x.Token
}
return nil
}
type DeleteOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id *EnvironmentId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Metadata *EnvironmentMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteOptions) Reset() {
*x = DeleteOptions{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteOptions) ProtoMessage() {}
func (x *DeleteOptions) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[4]
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 DeleteOptions.ProtoReflect.Descriptor instead.
func (*DeleteOptions) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{4}
}
func (x *DeleteOptions) GetId() *EnvironmentId {
if x != nil {
return x.Id
}
return nil
}
func (x *DeleteOptions) GetMetadata() *EnvironmentMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *DeleteOptions) GetOwnerId() *OwnerId {
if x != nil {
return x.OwnerId
}
return nil
}
func (x *DeleteOptions) GetToken() *Token {
if x != nil {
return x.Token
}
return nil
}
type GetOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id *EnvironmentId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Metadata *EnvironmentMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetOptions) Reset() {
*x = GetOptions{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetOptions) ProtoMessage() {}
func (x *GetOptions) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[5]
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 GetOptions.ProtoReflect.Descriptor instead.
func (*GetOptions) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{5}
}
func (x *GetOptions) GetId() *EnvironmentId {
if x != nil {
return x.Id
}
return nil
}
func (x *GetOptions) GetMetadata() *EnvironmentMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *GetOptions) GetOwnerId() *OwnerId {
if x != nil {
return x.OwnerId
}
return nil
}
func (x *GetOptions) GetToken() *Token {
if x != nil {
return x.Token
}
return nil
}
type ListOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
Metadata *EnvironmentMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
SearchString string `protobuf:"bytes,2,opt,name=search_string,json=searchString,proto3" json:"search_string,omitempty"`
OwnerId *OwnerId `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"`
Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListOptions) Reset() {
*x = ListOptions{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListOptions) ProtoMessage() {}
func (x *ListOptions) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[6]
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 ListOptions.ProtoReflect.Descriptor instead.
func (*ListOptions) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{6}
}
func (x *ListOptions) GetMetadata() *EnvironmentMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *ListOptions) GetSearchString() string {
if x != nil {
return x.SearchString
}
return ""
}
func (x *ListOptions) GetOwnerId() *OwnerId {
if x != nil {
return x.OwnerId
}
return nil
}
func (x *ListOptions) GetToken() *Token {
if x != nil {
return x.Token
}
return nil
}
type EnvironmentId struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnvironmentId) Reset() {
*x = EnvironmentId{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnvironmentId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentId) ProtoMessage() {}
func (x *EnvironmentId) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[7]
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 EnvironmentId.ProtoReflect.Descriptor instead.
func (*EnvironmentId) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{7}
}
func (x *EnvironmentId) GetUuid() string {
if x != nil {
return x.Uuid
}
return ""
}
type EnvironmentMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A name of the environment
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnvironmentMetadata) Reset() {
*x = EnvironmentMetadata{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnvironmentMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentMetadata) ProtoMessage() {}
func (x *EnvironmentMetadata) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[8]
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 EnvironmentMetadata.ProtoReflect.Descriptor instead.
func (*EnvironmentMetadata) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{8}
}
func (x *EnvironmentMetadata) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *EnvironmentMetadata) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
type EnvironmentSpec struct {
state protoimpl.MessageState `protogen:"open.v1"`
Provider Provider `protobuf:"varint,1,opt,name=provider,proto3,enum=environments.Provider" json:"provider,omitempty"` // Provide
Kubernetes Kubernetes `protobuf:"varint,2,opt,name=kubernetes,proto3,enum=environments.Kubernetes" json:"kubernetes,omitempty"`
ServerType ServerType `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3,enum=environments.ServerType" json:"server_type,omitempty"`
ServerLocation Location `protobuf:"varint,4,opt,name=server_location,json=serverLocation,proto3,enum=environments.Location" json:"server_location,omitempty"`
DiskSize int32 `protobuf:"varint,5,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnvironmentSpec) Reset() {
*x = EnvironmentSpec{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnvironmentSpec) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentSpec) ProtoMessage() {}
func (x *EnvironmentSpec) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_proto_msgTypes[9]
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 EnvironmentSpec.ProtoReflect.Descriptor instead.
func (*EnvironmentSpec) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{9}
}
func (x *EnvironmentSpec) GetProvider() Provider {
if x != nil {
return x.Provider
}
return Provider_PROVIDER_UNSPECIFIED
}
func (x *EnvironmentSpec) GetKubernetes() Kubernetes {
if x != nil {
return x.Kubernetes
}
return Kubernetes_KUBERNETES_UNSPECIFIED
}
func (x *EnvironmentSpec) GetServerType() ServerType {
if x != nil {
return x.ServerType
}
return ServerType_SERVER_TYPE_UNSPECIFIED
}
func (x *EnvironmentSpec) GetServerLocation() Location {
if x != nil {
return x.ServerLocation
}
return Location_LOCATION_UNSPECIFIED
}
func (x *EnvironmentSpec) GetDiskSize() int32 {
if x != nil {
return x.DiskSize
}
return 0
}
type EnvironmentFull struct {
state protoimpl.MessageState `protogen:"open.v1"`
Metadata *EnvironmentMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *EnvironmentSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
Id *EnvironmentId `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *EnvironmentFull) Reset() {
*x = EnvironmentFull{}
mi := &file_environments_v1_environments_v1_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *EnvironmentFull) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnvironmentFull) ProtoMessage() {}
func (x *EnvironmentFull) ProtoReflect() protoreflect.Message {
mi := &file_environments_v1_environments_v1_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 EnvironmentFull.ProtoReflect.Descriptor instead.
func (*EnvironmentFull) Descriptor() ([]byte, []int) {
return file_environments_v1_environments_v1_proto_rawDescGZIP(), []int{10}
}
func (x *EnvironmentFull) GetMetadata() *EnvironmentMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *EnvironmentFull) GetSpec() *EnvironmentSpec {
if x != nil {
return x.Spec
}
return nil
}
func (x *EnvironmentFull) GetId() *EnvironmentId {
if x != nil {
return x.Id
}
return nil
}
var File_environments_v1_environments_v1_proto protoreflect.FileDescriptor
const file_environments_v1_environments_v1_proto_rawDesc = "" +
"\n" +
"%environments/v1/environments_v1.proto\x12\fenvironments\x1a\x1bgoogle/protobuf/empty.proto\"\x1d\n" +
"\aOwnerId\x12\x12\n" +
"\x04uuid\x18\x01 \x01(\tR\x04uuid\"\x1d\n" +
"\x05Token\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\"\xde\x01\n" +
"\rCreateOptions\x12=\n" +
"\bmetadata\x18\x01 \x01(\v2!.environments.EnvironmentMetadataR\bmetadata\x121\n" +
"\x04spec\x18\x02 \x01(\v2\x1d.environments.EnvironmentSpecR\x04spec\x120\n" +
"\bowner_id\x18\x03 \x01(\v2\x15.environments.OwnerIdR\aownerId\x12)\n" +
"\x05token\x18\x04 \x01(\v2\x13.environments.TokenR\x05token\"\x8b\x02\n" +
"\rUpdateOptions\x12+\n" +
"\x02id\x18\x01 \x01(\v2\x1b.environments.EnvironmentIdR\x02id\x12=\n" +
"\bmetadata\x18\x02 \x01(\v2!.environments.EnvironmentMetadataR\bmetadata\x121\n" +
"\x04spec\x18\x03 \x01(\v2\x1d.environments.EnvironmentSpecR\x04spec\x120\n" +
"\bowner_id\x18\x04 \x01(\v2\x15.environments.OwnerIdR\aownerId\x12)\n" +
"\x05token\x18\x05 \x01(\v2\x13.environments.TokenR\x05token\"\xd8\x01\n" +
"\rDeleteOptions\x12+\n" +
"\x02id\x18\x01 \x01(\v2\x1b.environments.EnvironmentIdR\x02id\x12=\n" +
"\bmetadata\x18\x02 \x01(\v2!.environments.EnvironmentMetadataR\bmetadata\x120\n" +
"\bowner_id\x18\x03 \x01(\v2\x15.environments.OwnerIdR\aownerId\x12)\n" +
"\x05token\x18\x04 \x01(\v2\x13.environments.TokenR\x05token\"\xd5\x01\n" +
"\n" +
"GetOptions\x12+\n" +
"\x02id\x18\x01 \x01(\v2\x1b.environments.EnvironmentIdR\x02id\x12=\n" +
"\bmetadata\x18\x02 \x01(\v2!.environments.EnvironmentMetadataR\bmetadata\x120\n" +
"\bowner_id\x18\x03 \x01(\v2\x15.environments.OwnerIdR\aownerId\x12)\n" +
"\x05token\x18\x04 \x01(\v2\x13.environments.TokenR\x05token\"\xce\x01\n" +
"\vListOptions\x12=\n" +
"\bmetadata\x18\x01 \x01(\v2!.environments.EnvironmentMetadataR\bmetadata\x12#\n" +
"\rsearch_string\x18\x02 \x01(\tR\fsearchString\x120\n" +
"\bowner_id\x18\x03 \x01(\v2\x15.environments.OwnerIdR\aownerId\x12)\n" +
"\x05token\x18\x04 \x01(\v2\x13.environments.TokenR\x05token\"#\n" +
"\rEnvironmentId\x12\x12\n" +
"\x04uuid\x18\x01 \x01(\tR\x04uuid\"K\n" +
"\x13EnvironmentMetadata\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12 \n" +
"\vdescription\x18\x02 \x01(\tR\vdescription\"\x98\x02\n" +
"\x0fEnvironmentSpec\x122\n" +
"\bprovider\x18\x01 \x01(\x0e2\x16.environments.ProviderR\bprovider\x128\n" +
"\n" +
"kubernetes\x18\x02 \x01(\x0e2\x18.environments.KubernetesR\n" +
"kubernetes\x129\n" +
"\vserver_type\x18\x03 \x01(\x0e2\x18.environments.ServerTypeR\n" +
"serverType\x12?\n" +
"\x0fserver_location\x18\x04 \x01(\x0e2\x16.environments.LocationR\x0eserverLocation\x12\x1b\n" +
"\tdisk_size\x18\x05 \x01(\x05R\bdiskSize\"\xb0\x01\n" +
"\x0fEnvironmentFull\x12=\n" +
"\bmetadata\x18\x01 \x01(\v2!.environments.EnvironmentMetadataR\bmetadata\x121\n" +
"\x04spec\x18\x02 \x01(\v2\x1d.environments.EnvironmentSpecR\x04spec\x12+\n" +
"\x02id\x18\x03 \x01(\v2\x1b.environments.EnvironmentIdR\x02id*:\n" +
"\bProvider\x12\x18\n" +
"\x14PROVIDER_UNSPECIFIED\x10\x00\x12\x14\n" +
"\x10PROVIDER_HETZNER\x10\x01*\x9e\x01\n" +
"\n" +
"ServerType\x12\x1b\n" +
"\x17SERVER_TYPE_UNSPECIFIED\x10\x00\x12\x17\n" +
"\x13SERVER_TYPE_STARTER\x10\x01\x12\x17\n" +
"\x13SERVER_TYPE_REGULAR\x10\x02\x12\x14\n" +
"\x10SERVER_TYPE_PLUS\x10\x03\x12\x13\n" +
"\x0fSERVER_TYPE_PRO\x10\x04\x12\x16\n" +
"\x12SERVER_TYPE_CUSTOM\x10\x05*\xc3\x01\n" +
"\bLocation\x12\x18\n" +
"\x14LOCATION_UNSPECIFIED\x10\x00\x12\x1e\n" +
"\x1aLOCATION_HETZNER_NUREMBERG\x10\x01\x12 \n" +
"\x1cLOCATION_HETZNER_FALKENSTEIN\x10\x02\x12\x1d\n" +
"\x19LOCATION_HETZNER_HELSINKI\x10\x03\x12\x1e\n" +
"\x1aLOCATION_HETZNER_HILLSBORO\x10\x04\x12\x1c\n" +
"\x18LOCATION_HETZNER_ASHBURN\x10\x05*<\n" +
"\n" +
"Kubernetes\x12\x1a\n" +
"\x16KUBERNETES_UNSPECIFIED\x10\x00\x12\x12\n" +
"\x0eKUBERNETES_K3S\x10\x012\xe7\x02\n" +
"\fEnvironments\x12F\n" +
"\x06Create\x12\x1b.environments.CreateOptions\x1a\x1d.environments.EnvironmentFull\"\x00\x12F\n" +
"\x06Update\x12\x1b.environments.UpdateOptions\x1a\x1d.environments.EnvironmentFull\"\x00\x12?\n" +
"\x06Delete\x12\x1b.environments.DeleteOptions\x1a\x16.google.protobuf.Empty\"\x00\x12@\n" +
"\x03Get\x12\x18.environments.GetOptions\x1a\x1d.environments.EnvironmentFull\"\x00\x12D\n" +
"\x04List\x12\x19.environments.ListOptions\x1a\x1d.environments.EnvironmentFull\"\x000\x01BJZHgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/environmentsb\x06proto3"
var (
file_environments_v1_environments_v1_proto_rawDescOnce sync.Once
file_environments_v1_environments_v1_proto_rawDescData []byte
)
func file_environments_v1_environments_v1_proto_rawDescGZIP() []byte {
file_environments_v1_environments_v1_proto_rawDescOnce.Do(func() {
file_environments_v1_environments_v1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_environments_v1_environments_v1_proto_rawDesc), len(file_environments_v1_environments_v1_proto_rawDesc)))
})
return file_environments_v1_environments_v1_proto_rawDescData
}
var file_environments_v1_environments_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_environments_v1_environments_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_environments_v1_environments_v1_proto_goTypes = []any{
(Provider)(0), // 0: environments.Provider
(ServerType)(0), // 1: environments.ServerType
(Location)(0), // 2: environments.Location
(Kubernetes)(0), // 3: environments.Kubernetes
(*OwnerId)(nil), // 4: environments.OwnerId
(*Token)(nil), // 5: environments.Token
(*CreateOptions)(nil), // 6: environments.CreateOptions
(*UpdateOptions)(nil), // 7: environments.UpdateOptions
(*DeleteOptions)(nil), // 8: environments.DeleteOptions
(*GetOptions)(nil), // 9: environments.GetOptions
(*ListOptions)(nil), // 10: environments.ListOptions
(*EnvironmentId)(nil), // 11: environments.EnvironmentId
(*EnvironmentMetadata)(nil), // 12: environments.EnvironmentMetadata
(*EnvironmentSpec)(nil), // 13: environments.EnvironmentSpec
(*EnvironmentFull)(nil), // 14: environments.EnvironmentFull
(*emptypb.Empty)(nil), // 15: google.protobuf.Empty
}
var file_environments_v1_environments_v1_proto_depIdxs = []int32{
12, // 0: environments.CreateOptions.metadata:type_name -> environments.EnvironmentMetadata
13, // 1: environments.CreateOptions.spec:type_name -> environments.EnvironmentSpec
4, // 2: environments.CreateOptions.owner_id:type_name -> environments.OwnerId
5, // 3: environments.CreateOptions.token:type_name -> environments.Token
11, // 4: environments.UpdateOptions.id:type_name -> environments.EnvironmentId
12, // 5: environments.UpdateOptions.metadata:type_name -> environments.EnvironmentMetadata
13, // 6: environments.UpdateOptions.spec:type_name -> environments.EnvironmentSpec
4, // 7: environments.UpdateOptions.owner_id:type_name -> environments.OwnerId
5, // 8: environments.UpdateOptions.token:type_name -> environments.Token
11, // 9: environments.DeleteOptions.id:type_name -> environments.EnvironmentId
12, // 10: environments.DeleteOptions.metadata:type_name -> environments.EnvironmentMetadata
4, // 11: environments.DeleteOptions.owner_id:type_name -> environments.OwnerId
5, // 12: environments.DeleteOptions.token:type_name -> environments.Token
11, // 13: environments.GetOptions.id:type_name -> environments.EnvironmentId
12, // 14: environments.GetOptions.metadata:type_name -> environments.EnvironmentMetadata
4, // 15: environments.GetOptions.owner_id:type_name -> environments.OwnerId
5, // 16: environments.GetOptions.token:type_name -> environments.Token
12, // 17: environments.ListOptions.metadata:type_name -> environments.EnvironmentMetadata
4, // 18: environments.ListOptions.owner_id:type_name -> environments.OwnerId
5, // 19: environments.ListOptions.token:type_name -> environments.Token
0, // 20: environments.EnvironmentSpec.provider:type_name -> environments.Provider
3, // 21: environments.EnvironmentSpec.kubernetes:type_name -> environments.Kubernetes
1, // 22: environments.EnvironmentSpec.server_type:type_name -> environments.ServerType
2, // 23: environments.EnvironmentSpec.server_location:type_name -> environments.Location
12, // 24: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata
13, // 25: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec
11, // 26: environments.EnvironmentFull.id:type_name -> environments.EnvironmentId
6, // 27: environments.Environments.Create:input_type -> environments.CreateOptions
7, // 28: environments.Environments.Update:input_type -> environments.UpdateOptions
8, // 29: environments.Environments.Delete:input_type -> environments.DeleteOptions
9, // 30: environments.Environments.Get:input_type -> environments.GetOptions
10, // 31: environments.Environments.List:input_type -> environments.ListOptions
14, // 32: environments.Environments.Create:output_type -> environments.EnvironmentFull
14, // 33: environments.Environments.Update:output_type -> environments.EnvironmentFull
15, // 34: environments.Environments.Delete:output_type -> google.protobuf.Empty
14, // 35: environments.Environments.Get:output_type -> environments.EnvironmentFull
14, // 36: environments.Environments.List:output_type -> environments.EnvironmentFull
32, // [32:37] is the sub-list for method output_type
27, // [27:32] is the sub-list for method input_type
27, // [27:27] is the sub-list for extension type_name
27, // [27:27] is the sub-list for extension extendee
0, // [0:27] is the sub-list for field type_name
}
func init() { file_environments_v1_environments_v1_proto_init() }
func file_environments_v1_environments_v1_proto_init() {
if File_environments_v1_environments_v1_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_environments_v1_environments_v1_proto_rawDesc), len(file_environments_v1_environments_v1_proto_rawDesc)),
NumEnums: 4,
NumMessages: 11,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_environments_v1_environments_v1_proto_goTypes,
DependencyIndexes: file_environments_v1_environments_v1_proto_depIdxs,
EnumInfos: file_environments_v1_environments_v1_proto_enumTypes,
MessageInfos: file_environments_v1_environments_v1_proto_msgTypes,
}.Build()
File_environments_v1_environments_v1_proto = out.File
file_environments_v1_environments_v1_proto_goTypes = nil
file_environments_v1_environments_v1_proto_depIdxs = nil
}