diff --git a/pkg/environments/environments_v1.pb.go b/pkg/environments/environments_v1.pb.go index 89e4df6..dbd75a7 100644 --- a/pkg/environments/environments_v1.pb.go +++ b/pkg/environments/environments_v1.pb.go @@ -71,6 +71,119 @@ func (Provider) EnumDescriptor() ([]byte, []int) { return file_environments_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 +) + +// 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", + } + 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, + } +) + +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_environments_v1_proto_enumTypes[1].Descriptor() +} + +func (ServerType) Type() protoreflect.EnumType { + return &file_environments_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_environments_v1_proto_rawDescGZIP(), []int{1} +} + +type HetznerLocation int32 + +const ( + HetznerLocation_HETZNER_LOCATION_UNSPECIFIED HetznerLocation = 0 + HetznerLocation_HETZNER_LOCATION_NUREMBERG HetznerLocation = 1 + HetznerLocation_HETZNER_LOCATION_FALKENSTEIN HetznerLocation = 2 + HetznerLocation_HETZNER_LOCATION_HELSINKI HetznerLocation = 3 + HetznerLocation_HETZNER_LOCATION_HILLSBORO HetznerLocation = 4 + HetznerLocation_HETZNER_LOCATION_ASHBURN HetznerLocation = 5 +) + +// Enum value maps for HetznerLocation. +var ( + HetznerLocation_name = map[int32]string{ + 0: "HETZNER_LOCATION_UNSPECIFIED", + 1: "HETZNER_LOCATION_NUREMBERG", + 2: "HETZNER_LOCATION_FALKENSTEIN", + 3: "HETZNER_LOCATION_HELSINKI", + 4: "HETZNER_LOCATION_HILLSBORO", + 5: "HETZNER_LOCATION_ASHBURN", + } + HetznerLocation_value = map[string]int32{ + "HETZNER_LOCATION_UNSPECIFIED": 0, + "HETZNER_LOCATION_NUREMBERG": 1, + "HETZNER_LOCATION_FALKENSTEIN": 2, + "HETZNER_LOCATION_HELSINKI": 3, + "HETZNER_LOCATION_HILLSBORO": 4, + "HETZNER_LOCATION_ASHBURN": 5, + } +) + +func (x HetznerLocation) Enum() *HetznerLocation { + p := new(HetznerLocation) + *p = x + return p +} + +func (x HetznerLocation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (HetznerLocation) Descriptor() protoreflect.EnumDescriptor { + return file_environments_environments_v1_proto_enumTypes[2].Descriptor() +} + +func (HetznerLocation) Type() protoreflect.EnumType { + return &file_environments_environments_v1_proto_enumTypes[2] +} + +func (x HetznerLocation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use HetznerLocation.Descriptor instead. +func (HetznerLocation) EnumDescriptor() ([]byte, []int) { + return file_environments_environments_v1_proto_rawDescGZIP(), []int{2} +} + type Kubernetes int32 const ( @@ -101,11 +214,11 @@ func (x Kubernetes) String() string { } func (Kubernetes) Descriptor() protoreflect.EnumDescriptor { - return file_environments_environments_v1_proto_enumTypes[1].Descriptor() + return file_environments_environments_v1_proto_enumTypes[3].Descriptor() } func (Kubernetes) Type() protoreflect.EnumType { - return &file_environments_environments_v1_proto_enumTypes[1] + return &file_environments_environments_v1_proto_enumTypes[3] } func (x Kubernetes) Number() protoreflect.EnumNumber { @@ -114,7 +227,7 @@ func (x Kubernetes) Number() protoreflect.EnumNumber { // Deprecated: Use Kubernetes.Descriptor instead. func (Kubernetes) EnumDescriptor() ([]byte, []int) { - return file_environments_environments_v1_proto_rawDescGZIP(), []int{1} + return file_environments_environments_v1_proto_rawDescGZIP(), []int{3} } type OwnerId struct { @@ -720,8 +833,8 @@ type HetznerOptions struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ServerType string `protobuf:"bytes,1,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"` - ServerLocation string `protobuf:"bytes,2,opt,name=server_location,json=serverLocation,proto3" json:"server_location,omitempty"` + ServerType ServerType `protobuf:"varint,1,opt,name=server_type,json=serverType,proto3,enum=environments.ServerType" json:"server_type,omitempty"` + ServerLocation HetznerLocation `protobuf:"varint,2,opt,name=server_location,json=serverLocation,proto3,enum=environments.HetznerLocation" json:"server_location,omitempty"` } func (x *HetznerOptions) Reset() { @@ -756,18 +869,18 @@ func (*HetznerOptions) Descriptor() ([]byte, []int) { return file_environments_environments_v1_proto_rawDescGZIP(), []int{10} } -func (x *HetznerOptions) GetServerType() string { +func (x *HetznerOptions) GetServerType() ServerType { if x != nil { return x.ServerType } - return "" + return ServerType_SERVER_TYPE_UNSPECIFIED } -func (x *HetznerOptions) GetServerLocation() string { +func (x *HetznerOptions) GetServerLocation() HetznerLocation { if x != nil { return x.ServerLocation } - return "" + return HetznerLocation_HETZNER_LOCATION_UNSPECIFIED } var File_environments_environments_v1_proto protoreflect.FileDescriptor @@ -868,48 +981,73 @@ var file_environments_environments_v1_proto_rawDesc = []byte{ 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, - 0x22, 0x5a, 0x0a, 0x0e, 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x3a, 0x0a, 0x08, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x56, - 0x49, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x48, - 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x2a, 0x3c, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, - 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, - 0x45, 0x54, 0x45, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, - 0x5f, 0x4b, 0x33, 0x53, 0x10, 0x01, 0x32, 0xe7, 0x02, 0x0a, 0x0c, 0x45, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, - 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, - 0x46, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, + 0x22, 0x93, 0x01, 0x0a, 0x0e, 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x46, + 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, + 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x3a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, + 0x50, 0x52, 0x4f, 0x56, 0x49, 0x44, 0x45, 0x52, 0x5f, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, + 0x10, 0x01, 0x2a, 0x86, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, + 0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, + 0x41, 0x52, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x45, 0x52, 0x56, 0x45, + 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x47, 0x55, 0x4c, 0x41, 0x52, 0x10, 0x02, + 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x50, 0x4c, 0x55, 0x53, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x10, 0x04, 0x2a, 0xd2, 0x01, 0x0a, 0x0f, + 0x48, 0x65, 0x74, 0x7a, 0x6e, 0x65, 0x72, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x20, 0x0a, 0x1c, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x55, 0x52, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x47, 0x10, + 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, 0x43, + 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x4c, 0x4b, 0x45, 0x4e, 0x53, 0x54, 0x45, 0x49, + 0x4e, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, + 0x4f, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x4c, 0x53, 0x49, 0x4e, 0x4b, 0x49, + 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x49, 0x4c, 0x4c, 0x53, 0x42, 0x4f, 0x52, 0x4f, + 0x10, 0x04, 0x12, 0x1c, 0x0a, 0x18, 0x48, 0x45, 0x54, 0x5a, 0x4e, 0x45, 0x52, 0x5f, 0x4c, 0x4f, + 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x53, 0x48, 0x42, 0x55, 0x52, 0x4e, 0x10, 0x05, + 0x2a, 0x3c, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x12, 0x1a, + 0x0a, 0x16, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x4b, 0x55, + 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, 0x4b, 0x33, 0x53, 0x10, 0x01, 0x32, 0xe7, + 0x02, 0x0a, 0x0c, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, + 0x46, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, + 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x46, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x40, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, - 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x47, - 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, 0x44, 0x0a, 0x04, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x19, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, - 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, - 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x30, 0x01, - 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65, - 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, 0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x65, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, + 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, + 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x12, + 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x65, 0x6e, 0x76, 0x69, + 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, + 0x12, 0x40, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, + 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x75, 0x6c, 0x6c, + 0x22, 0x00, 0x12, 0x44, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x65, 0x6e, 0x76, + 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x1d, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x46, 0x75, 0x6c, 0x6c, 0x22, 0x00, 0x30, 0x01, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x2e, + 0x62, 0x61, 0x64, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x70, 0x6c, 0x61, 0x6e, 0x74, 0x73, 0x2e, 0x6e, + 0x65, 0x74, 0x2f, 0x73, 0x6f, 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x73, 0x6f, + 0x66, 0x74, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2d, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -924,62 +1062,66 @@ func file_environments_environments_v1_proto_rawDescGZIP() []byte { return file_environments_environments_v1_proto_rawDescData } -var file_environments_environments_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_environments_environments_v1_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_environments_environments_v1_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_environments_environments_v1_proto_goTypes = []interface{}{ (Provider)(0), // 0: environments.Provider - (Kubernetes)(0), // 1: environments.Kubernetes - (*OwnerId)(nil), // 2: environments.OwnerId - (*Token)(nil), // 3: environments.Token - (*CreateOptions)(nil), // 4: environments.CreateOptions - (*UpdateOptions)(nil), // 5: environments.UpdateOptions - (*DeleteOptions)(nil), // 6: environments.DeleteOptions - (*GetOptions)(nil), // 7: environments.GetOptions - (*ListOptions)(nil), // 8: environments.ListOptions - (*EnvironmentMetadata)(nil), // 9: environments.EnvironmentMetadata - (*EnvironmentSpec)(nil), // 10: environments.EnvironmentSpec - (*EnvironmentFull)(nil), // 11: environments.EnvironmentFull - (*HetznerOptions)(nil), // 12: environments.HetznerOptions - (*emptypb.Empty)(nil), // 13: google.protobuf.Empty + (ServerType)(0), // 1: environments.ServerType + (HetznerLocation)(0), // 2: environments.HetznerLocation + (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 + (*EnvironmentMetadata)(nil), // 11: environments.EnvironmentMetadata + (*EnvironmentSpec)(nil), // 12: environments.EnvironmentSpec + (*EnvironmentFull)(nil), // 13: environments.EnvironmentFull + (*HetznerOptions)(nil), // 14: environments.HetznerOptions + (*emptypb.Empty)(nil), // 15: google.protobuf.Empty } var file_environments_environments_v1_proto_depIdxs = []int32{ - 9, // 0: environments.CreateOptions.metadata:type_name -> environments.EnvironmentMetadata - 10, // 1: environments.CreateOptions.spec:type_name -> environments.EnvironmentSpec - 2, // 2: environments.CreateOptions.owner_id:type_name -> environments.OwnerId - 3, // 3: environments.CreateOptions.token:type_name -> environments.Token - 9, // 4: environments.UpdateOptions.metadata:type_name -> environments.EnvironmentMetadata - 10, // 5: environments.UpdateOptions.spec:type_name -> environments.EnvironmentSpec - 2, // 6: environments.UpdateOptions.owner_id:type_name -> environments.OwnerId - 3, // 7: environments.UpdateOptions.token:type_name -> environments.Token - 9, // 8: environments.DeleteOptions.metadata:type_name -> environments.EnvironmentMetadata - 2, // 9: environments.DeleteOptions.owner_id:type_name -> environments.OwnerId - 3, // 10: environments.DeleteOptions.token:type_name -> environments.Token - 9, // 11: environments.GetOptions.metadata:type_name -> environments.EnvironmentMetadata - 2, // 12: environments.GetOptions.owner_id:type_name -> environments.OwnerId - 3, // 13: environments.GetOptions.token:type_name -> environments.Token - 9, // 14: environments.ListOptions.metadata:type_name -> environments.EnvironmentMetadata - 2, // 15: environments.ListOptions.owner_id:type_name -> environments.OwnerId - 3, // 16: environments.ListOptions.token:type_name -> environments.Token + 11, // 0: environments.CreateOptions.metadata:type_name -> environments.EnvironmentMetadata + 12, // 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.metadata:type_name -> environments.EnvironmentMetadata + 12, // 5: environments.UpdateOptions.spec:type_name -> environments.EnvironmentSpec + 4, // 6: environments.UpdateOptions.owner_id:type_name -> environments.OwnerId + 5, // 7: environments.UpdateOptions.token:type_name -> environments.Token + 11, // 8: environments.DeleteOptions.metadata:type_name -> environments.EnvironmentMetadata + 4, // 9: environments.DeleteOptions.owner_id:type_name -> environments.OwnerId + 5, // 10: environments.DeleteOptions.token:type_name -> environments.Token + 11, // 11: environments.GetOptions.metadata:type_name -> environments.EnvironmentMetadata + 4, // 12: environments.GetOptions.owner_id:type_name -> environments.OwnerId + 5, // 13: environments.GetOptions.token:type_name -> environments.Token + 11, // 14: environments.ListOptions.metadata:type_name -> environments.EnvironmentMetadata + 4, // 15: environments.ListOptions.owner_id:type_name -> environments.OwnerId + 5, // 16: environments.ListOptions.token:type_name -> environments.Token 0, // 17: environments.EnvironmentSpec.provider:type_name -> environments.Provider - 1, // 18: environments.EnvironmentSpec.kubernetes:type_name -> environments.Kubernetes - 12, // 19: environments.EnvironmentSpec.hetzner_options:type_name -> environments.HetznerOptions - 9, // 20: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata - 10, // 21: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec - 4, // 22: environments.Environments.Create:input_type -> environments.CreateOptions - 5, // 23: environments.Environments.Update:input_type -> environments.UpdateOptions - 6, // 24: environments.Environments.Delete:input_type -> environments.DeleteOptions - 7, // 25: environments.Environments.Get:input_type -> environments.GetOptions - 8, // 26: environments.Environments.List:input_type -> environments.ListOptions - 11, // 27: environments.Environments.Create:output_type -> environments.EnvironmentFull - 11, // 28: environments.Environments.Update:output_type -> environments.EnvironmentFull - 13, // 29: environments.Environments.Delete:output_type -> google.protobuf.Empty - 11, // 30: environments.Environments.Get:output_type -> environments.EnvironmentFull - 11, // 31: environments.Environments.List:output_type -> environments.EnvironmentFull - 27, // [27:32] is the sub-list for method output_type - 22, // [22:27] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name + 3, // 18: environments.EnvironmentSpec.kubernetes:type_name -> environments.Kubernetes + 14, // 19: environments.EnvironmentSpec.hetzner_options:type_name -> environments.HetznerOptions + 11, // 20: environments.EnvironmentFull.metadata:type_name -> environments.EnvironmentMetadata + 12, // 21: environments.EnvironmentFull.spec:type_name -> environments.EnvironmentSpec + 1, // 22: environments.HetznerOptions.server_type:type_name -> environments.ServerType + 2, // 23: environments.HetznerOptions.server_location:type_name -> environments.HetznerLocation + 6, // 24: environments.Environments.Create:input_type -> environments.CreateOptions + 7, // 25: environments.Environments.Update:input_type -> environments.UpdateOptions + 8, // 26: environments.Environments.Delete:input_type -> environments.DeleteOptions + 9, // 27: environments.Environments.Get:input_type -> environments.GetOptions + 10, // 28: environments.Environments.List:input_type -> environments.ListOptions + 13, // 29: environments.Environments.Create:output_type -> environments.EnvironmentFull + 13, // 30: environments.Environments.Update:output_type -> environments.EnvironmentFull + 15, // 31: environments.Environments.Delete:output_type -> google.protobuf.Empty + 13, // 32: environments.Environments.Get:output_type -> environments.EnvironmentFull + 13, // 33: environments.Environments.List:output_type -> environments.EnvironmentFull + 29, // [29:34] is the sub-list for method output_type + 24, // [24:29] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name } func init() { file_environments_environments_v1_proto_init() } @@ -1126,7 +1268,7 @@ func file_environments_environments_v1_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_environments_environments_v1_proto_rawDesc, - NumEnums: 2, + NumEnums: 4, NumMessages: 11, NumExtensions: 0, NumServices: 1, diff --git a/proto b/proto index 06cfef6..b864dbc 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 06cfef6ba2c0c63e783651c8ad34080de217f38d +Subproject commit b864dbcd8c2f8bd5d076b0e106677c4d89a37fff