From b33753450b7d60d8b706c9dca58353e945707926 Mon Sep 17 00:00:00 2001 From: Vitalii Valkov Date: Sat, 31 Oct 2026 20:43:30 +0100 Subject: [PATCH 1/2] Pin the connect plugin to its last v1 release The BSR's newest buf.build/connectrpc/go is v2, which generates for connectrpc.com/connect/v2. Left unpinned, `buf generate` now writes code this module cannot build -- "no required module provides package connectrpc.com/connect/v2" -- so every CI run and every release fails at the build. v1.21.0 is the newest v1 release the BSR serves, and the one the gateway pinned for the same reason. With it, the tracked bindings whose protos have not moved regenerate byte for byte. The rest gain only what the API gained since they were last committed: DeleteOrganizationResources on egress, groups and networks; upstream TLS, private-resource targets and the basic-auth username on egress rules; and private-resource mediation on networks. Nothing is removed. Those copies were already behind main's own code -- egress_test calls GetUsername, which only the regenerated file has -- and CI regenerates them before every build either way. buf.lock moves to the API commit this was generated from, which carries the hibernated sandbox status. --- buf.gen.yaml | 4 +- buf.lock | 4 +- gen/agynio/api/egress/v1/egress.pb.go | 1272 ++++++++++++++--- .../v1/egressv1connect/egress.connect.go | 141 +- gen/agynio/api/groups/v1/groups.pb.go | 180 ++- .../v1/groupsv1connect/groups.connect.go | 49 +- gen/agynio/api/networks/v1/networks.pb.go | 796 +++++++++-- .../v1/networksv1connect/networks.connect.go | 126 +- 8 files changed, 2154 insertions(+), 418 deletions(-) diff --git a/buf.gen.yaml b/buf.gen.yaml index 84a988e..5fd8d5c 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -9,7 +9,9 @@ plugins: out: gen opt: - paths=source_relative - - remote: buf.build/connectrpc/go + # Pinned: v2 generates for connectrpc.com/connect/v2, which this module + # does not use. + - remote: buf.build/connectrpc/go:v1.21.0 out: gen opt: - paths=source_relative diff --git a/buf.lock b/buf.lock index da69c12..03c86d4 100644 --- a/buf.lock +++ b/buf.lock @@ -2,8 +2,8 @@ version: v2 deps: - name: buf.build/agynio/api - commit: d155a8f9edf942e2a8822e6610272e2f - digest: b5:5d21a024a843830d4dae8809d8c33eb1e000cc7020ca02c48b7103f62b80878e35c7f1727179b2bf817d274a9af82002b8d57f13c775653366db60d4a285d8ce + commit: ff668c885dfe4208a9a42d384fbac74d + digest: b5:9ba2048115c723a8c5bceb3899a81ab69c579ad8e4df39a7298aa1905b55f642d4e83579db7873e5690736bbd1120b64263d4dc327e394bf377245cebcad372e - name: buf.build/opentelemetry/opentelemetry commit: 5f2c7d4f740541589805e0816dad4bb0 digest: b5:935626c896cfe0f5efda467869c65df49843190c1d16ad24957d62ae840aef5f5da2474ec5c766e730b2727c6a24b39b5a2a073da70cf3f2611ce7d3934def86 diff --git a/gen/agynio/api/egress/v1/egress.pb.go b/gen/agynio/api/egress/v1/egress.pb.go index 12fbdd4..52d084c 100644 --- a/gen/agynio/api/egress/v1/egress.pb.go +++ b/gen/agynio/api/egress/v1/egress.pb.go @@ -122,6 +122,104 @@ func (HeaderAuthScheme) EnumDescriptor() ([]byte, []int) { return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{1} } +type EgressRuleTargetKind int32 + +const ( + EgressRuleTargetKind_EGRESS_RULE_TARGET_KIND_UNSPECIFIED EgressRuleTargetKind = 0 + EgressRuleTargetKind_EGRESS_RULE_TARGET_KIND_PUBLIC EgressRuleTargetKind = 1 + EgressRuleTargetKind_EGRESS_RULE_TARGET_KIND_PRIVATE EgressRuleTargetKind = 2 +) + +// Enum value maps for EgressRuleTargetKind. +var ( + EgressRuleTargetKind_name = map[int32]string{ + 0: "EGRESS_RULE_TARGET_KIND_UNSPECIFIED", + 1: "EGRESS_RULE_TARGET_KIND_PUBLIC", + 2: "EGRESS_RULE_TARGET_KIND_PRIVATE", + } + EgressRuleTargetKind_value = map[string]int32{ + "EGRESS_RULE_TARGET_KIND_UNSPECIFIED": 0, + "EGRESS_RULE_TARGET_KIND_PUBLIC": 1, + "EGRESS_RULE_TARGET_KIND_PRIVATE": 2, + } +) + +func (x EgressRuleTargetKind) Enum() *EgressRuleTargetKind { + p := new(EgressRuleTargetKind) + *p = x + return p +} + +func (x EgressRuleTargetKind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EgressRuleTargetKind) Descriptor() protoreflect.EnumDescriptor { + return file_agynio_api_egress_v1_egress_proto_enumTypes[2].Descriptor() +} + +func (EgressRuleTargetKind) Type() protoreflect.EnumType { + return &file_agynio_api_egress_v1_egress_proto_enumTypes[2] +} + +func (x EgressRuleTargetKind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EgressRuleTargetKind.Descriptor instead. +func (EgressRuleTargetKind) EnumDescriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{2} +} + +type EgressPrivateResourceProtocol int32 + +const ( + EgressPrivateResourceProtocol_EGRESS_PRIVATE_RESOURCE_PROTOCOL_UNSPECIFIED EgressPrivateResourceProtocol = 0 + EgressPrivateResourceProtocol_EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTP EgressPrivateResourceProtocol = 1 + EgressPrivateResourceProtocol_EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTPS EgressPrivateResourceProtocol = 2 +) + +// Enum value maps for EgressPrivateResourceProtocol. +var ( + EgressPrivateResourceProtocol_name = map[int32]string{ + 0: "EGRESS_PRIVATE_RESOURCE_PROTOCOL_UNSPECIFIED", + 1: "EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTP", + 2: "EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTPS", + } + EgressPrivateResourceProtocol_value = map[string]int32{ + "EGRESS_PRIVATE_RESOURCE_PROTOCOL_UNSPECIFIED": 0, + "EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTP": 1, + "EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTPS": 2, + } +) + +func (x EgressPrivateResourceProtocol) Enum() *EgressPrivateResourceProtocol { + p := new(EgressPrivateResourceProtocol) + *p = x + return p +} + +func (x EgressPrivateResourceProtocol) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EgressPrivateResourceProtocol) Descriptor() protoreflect.EnumDescriptor { + return file_agynio_api_egress_v1_egress_proto_enumTypes[3].Descriptor() +} + +func (EgressPrivateResourceProtocol) Type() protoreflect.EnumType { + return &file_agynio_api_egress_v1_egress_proto_enumTypes[3] +} + +func (x EgressPrivateResourceProtocol) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use EgressPrivateResourceProtocol.Descriptor instead. +func (EgressPrivateResourceProtocol) EnumDescriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{3} +} + // Metadata shared by egress resources. type EntityMeta struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -193,9 +291,10 @@ type EgressRuleMatcher struct { // HTTP methods the rule applies to. Empty means any method. Methods []string `protobuf:"bytes,3,rep,name=methods,proto3" json:"methods,omitempty"` // Glob over the request path. Empty means any path. - PathPattern string `protobuf:"bytes,4,opt,name=path_pattern,json=pathPattern,proto3" json:"path_pattern,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + PathPattern string `protobuf:"bytes,4,opt,name=path_pattern,json=pathPattern,proto3" json:"path_pattern,omitempty"` + PrivateResourceId string `protobuf:"bytes,5,opt,name=private_resource_id,json=privateResourceId,proto3" json:"private_resource_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EgressRuleMatcher) Reset() { @@ -256,6 +355,103 @@ func (x *EgressRuleMatcher) GetPathPattern() string { return "" } +func (x *EgressRuleMatcher) GetPrivateResourceId() string { + if x != nil { + return x.PrivateResourceId + } + return "" +} + +type EgressRuleUpstreamTls struct { + state protoimpl.MessageState `protogen:"open.v1"` + ServerName string `protobuf:"bytes,1,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` + // Types that are valid to be assigned to Trust: + // + // *EgressRuleUpstreamTls_CaBundleSecretId + // *EgressRuleUpstreamTls_InsecureSkipVerify + Trust isEgressRuleUpstreamTls_Trust `protobuf_oneof:"trust"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EgressRuleUpstreamTls) Reset() { + *x = EgressRuleUpstreamTls{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EgressRuleUpstreamTls) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EgressRuleUpstreamTls) ProtoMessage() {} + +func (x *EgressRuleUpstreamTls) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_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 EgressRuleUpstreamTls.ProtoReflect.Descriptor instead. +func (*EgressRuleUpstreamTls) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{2} +} + +func (x *EgressRuleUpstreamTls) GetServerName() string { + if x != nil { + return x.ServerName + } + return "" +} + +func (x *EgressRuleUpstreamTls) GetTrust() isEgressRuleUpstreamTls_Trust { + if x != nil { + return x.Trust + } + return nil +} + +func (x *EgressRuleUpstreamTls) GetCaBundleSecretId() string { + if x != nil { + if x, ok := x.Trust.(*EgressRuleUpstreamTls_CaBundleSecretId); ok { + return x.CaBundleSecretId + } + } + return "" +} + +func (x *EgressRuleUpstreamTls) GetInsecureSkipVerify() bool { + if x != nil { + if x, ok := x.Trust.(*EgressRuleUpstreamTls_InsecureSkipVerify); ok { + return x.InsecureSkipVerify + } + } + return false +} + +type isEgressRuleUpstreamTls_Trust interface { + isEgressRuleUpstreamTls_Trust() +} + +type EgressRuleUpstreamTls_CaBundleSecretId struct { + CaBundleSecretId string `protobuf:"bytes,2,opt,name=ca_bundle_secret_id,json=caBundleSecretId,proto3,oneof"` +} + +type EgressRuleUpstreamTls_InsecureSkipVerify struct { + InsecureSkipVerify bool `protobuf:"varint,3,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3,oneof"` +} + +func (*EgressRuleUpstreamTls_CaBundleSecretId) isEgressRuleUpstreamTls_Trust() {} + +func (*EgressRuleUpstreamTls_InsecureSkipVerify) isEgressRuleUpstreamTls_Trust() {} + // Header credential injected by the egress gateway. type EgressRuleHeader struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -266,13 +462,14 @@ type EgressRuleHeader struct { // *EgressRuleHeader_Value // *EgressRuleHeader_SecretId Credential isEgressRuleHeader_Credential `protobuf_oneof:"credential"` + Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *EgressRuleHeader) Reset() { *x = EgressRuleHeader{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[2] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -284,7 +481,7 @@ func (x *EgressRuleHeader) String() string { func (*EgressRuleHeader) ProtoMessage() {} func (x *EgressRuleHeader) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[2] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -297,7 +494,7 @@ func (x *EgressRuleHeader) ProtoReflect() protoreflect.Message { // Deprecated: Use EgressRuleHeader.ProtoReflect.Descriptor instead. func (*EgressRuleHeader) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{2} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{3} } func (x *EgressRuleHeader) GetName() string { @@ -339,6 +536,13 @@ func (x *EgressRuleHeader) GetSecretId() string { return "" } +func (x *EgressRuleHeader) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + type isEgressRuleHeader_Credential interface { isEgressRuleHeader_Credential() } @@ -366,7 +570,7 @@ type EgressRuleEffect struct { func (x *EgressRuleEffect) Reset() { *x = EgressRuleEffect{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[3] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -378,7 +582,7 @@ func (x *EgressRuleEffect) String() string { func (*EgressRuleEffect) ProtoMessage() {} func (x *EgressRuleEffect) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[3] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -391,7 +595,7 @@ func (x *EgressRuleEffect) ProtoReflect() protoreflect.Message { // Deprecated: Use EgressRuleEffect.ProtoReflect.Descriptor instead. func (*EgressRuleEffect) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{3} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{4} } func (x *EgressRuleEffect) GetAction() EgressRuleAction { @@ -417,13 +621,14 @@ type EgressRule struct { Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Matcher *EgressRuleMatcher `protobuf:"bytes,5,opt,name=matcher,proto3" json:"matcher,omitempty"` Effect *EgressRuleEffect `protobuf:"bytes,6,opt,name=effect,proto3" json:"effect,omitempty"` + UpstreamTls *EgressRuleUpstreamTls `protobuf:"bytes,7,opt,name=upstream_tls,json=upstreamTls,proto3,oneof" json:"upstream_tls,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *EgressRule) Reset() { *x = EgressRule{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[4] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -435,7 +640,7 @@ func (x *EgressRule) String() string { func (*EgressRule) ProtoMessage() {} func (x *EgressRule) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[4] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -448,7 +653,7 @@ func (x *EgressRule) ProtoReflect() protoreflect.Message { // Deprecated: Use EgressRule.ProtoReflect.Descriptor instead. func (*EgressRule) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{4} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{5} } func (x *EgressRule) GetMeta() *EntityMeta { @@ -493,6 +698,13 @@ func (x *EgressRule) GetEffect() *EgressRuleEffect { return nil } +func (x *EgressRule) GetUpstreamTls() *EgressRuleUpstreamTls { + if x != nil { + return x.UpstreamTls + } + return nil +} + // Attachment binding an egress rule to an agent or environment. type EgressRuleAttachment struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -511,7 +723,7 @@ type EgressRuleAttachment struct { func (x *EgressRuleAttachment) Reset() { *x = EgressRuleAttachment{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[5] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -523,7 +735,7 @@ func (x *EgressRuleAttachment) String() string { func (*EgressRuleAttachment) ProtoMessage() {} func (x *EgressRuleAttachment) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[5] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -536,7 +748,7 @@ func (x *EgressRuleAttachment) ProtoReflect() protoreflect.Message { // Deprecated: Use EgressRuleAttachment.ProtoReflect.Descriptor instead. func (*EgressRuleAttachment) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{5} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{6} } func (x *EgressRuleAttachment) GetMeta() *EntityMeta { @@ -609,13 +821,14 @@ type CreateEgressRuleRequest struct { Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Matcher *EgressRuleMatcher `protobuf:"bytes,4,opt,name=matcher,proto3" json:"matcher,omitempty"` Effect *EgressRuleEffect `protobuf:"bytes,5,opt,name=effect,proto3" json:"effect,omitempty"` + UpstreamTls *EgressRuleUpstreamTls `protobuf:"bytes,6,opt,name=upstream_tls,json=upstreamTls,proto3,oneof" json:"upstream_tls,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateEgressRuleRequest) Reset() { *x = CreateEgressRuleRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[6] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -627,7 +840,7 @@ func (x *CreateEgressRuleRequest) String() string { func (*CreateEgressRuleRequest) ProtoMessage() {} func (x *CreateEgressRuleRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[6] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -640,7 +853,7 @@ func (x *CreateEgressRuleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateEgressRuleRequest.ProtoReflect.Descriptor instead. func (*CreateEgressRuleRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{6} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{7} } func (x *CreateEgressRuleRequest) GetOrganizationId() string { @@ -678,6 +891,13 @@ func (x *CreateEgressRuleRequest) GetEffect() *EgressRuleEffect { return nil } +func (x *CreateEgressRuleRequest) GetUpstreamTls() *EgressRuleUpstreamTls { + if x != nil { + return x.UpstreamTls + } + return nil +} + type CreateEgressRuleResponse struct { state protoimpl.MessageState `protogen:"open.v1"` EgressRule *EgressRule `protobuf:"bytes,1,opt,name=egress_rule,json=egressRule,proto3" json:"egress_rule,omitempty"` @@ -687,7 +907,7 @@ type CreateEgressRuleResponse struct { func (x *CreateEgressRuleResponse) Reset() { *x = CreateEgressRuleResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[7] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -699,7 +919,7 @@ func (x *CreateEgressRuleResponse) String() string { func (*CreateEgressRuleResponse) ProtoMessage() {} func (x *CreateEgressRuleResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[7] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -712,7 +932,7 @@ func (x *CreateEgressRuleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateEgressRuleResponse.ProtoReflect.Descriptor instead. func (*CreateEgressRuleResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{7} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{8} } func (x *CreateEgressRuleResponse) GetEgressRule() *EgressRule { @@ -731,7 +951,7 @@ type GetEgressRuleRequest struct { func (x *GetEgressRuleRequest) Reset() { *x = GetEgressRuleRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[8] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -743,7 +963,7 @@ func (x *GetEgressRuleRequest) String() string { func (*GetEgressRuleRequest) ProtoMessage() {} func (x *GetEgressRuleRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[8] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -756,7 +976,7 @@ func (x *GetEgressRuleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetEgressRuleRequest.ProtoReflect.Descriptor instead. func (*GetEgressRuleRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{8} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{9} } func (x *GetEgressRuleRequest) GetId() string { @@ -775,7 +995,7 @@ type GetEgressRuleResponse struct { func (x *GetEgressRuleResponse) Reset() { *x = GetEgressRuleResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[9] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -787,7 +1007,7 @@ func (x *GetEgressRuleResponse) String() string { func (*GetEgressRuleResponse) ProtoMessage() {} func (x *GetEgressRuleResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[9] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -800,7 +1020,7 @@ func (x *GetEgressRuleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetEgressRuleResponse.ProtoReflect.Descriptor instead. func (*GetEgressRuleResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{9} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{10} } func (x *GetEgressRuleResponse) GetEgressRule() *EgressRule { @@ -811,17 +1031,19 @@ func (x *GetEgressRuleResponse) GetEgressRule() *EgressRule { } type ListEgressRulesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + PrivateResourceId *string `protobuf:"bytes,4,opt,name=private_resource_id,json=privateResourceId,proto3,oneof" json:"private_resource_id,omitempty"` + TargetKind *EgressRuleTargetKind `protobuf:"varint,5,opt,name=target_kind,json=targetKind,proto3,enum=agynio.api.egress.v1.EgressRuleTargetKind,oneof" json:"target_kind,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListEgressRulesRequest) Reset() { *x = ListEgressRulesRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[10] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -833,7 +1055,7 @@ func (x *ListEgressRulesRequest) String() string { func (*ListEgressRulesRequest) ProtoMessage() {} func (x *ListEgressRulesRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[10] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -846,7 +1068,7 @@ func (x *ListEgressRulesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEgressRulesRequest.ProtoReflect.Descriptor instead. func (*ListEgressRulesRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{10} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{11} } func (x *ListEgressRulesRequest) GetOrganizationId() string { @@ -870,6 +1092,20 @@ func (x *ListEgressRulesRequest) GetPageToken() string { return "" } +func (x *ListEgressRulesRequest) GetPrivateResourceId() string { + if x != nil && x.PrivateResourceId != nil { + return *x.PrivateResourceId + } + return "" +} + +func (x *ListEgressRulesRequest) GetTargetKind() EgressRuleTargetKind { + if x != nil && x.TargetKind != nil { + return *x.TargetKind + } + return EgressRuleTargetKind_EGRESS_RULE_TARGET_KIND_UNSPECIFIED +} + type ListEgressRulesResponse struct { state protoimpl.MessageState `protogen:"open.v1"` EgressRules []*EgressRule `protobuf:"bytes,1,rep,name=egress_rules,json=egressRules,proto3" json:"egress_rules,omitempty"` @@ -880,7 +1116,7 @@ type ListEgressRulesResponse struct { func (x *ListEgressRulesResponse) Reset() { *x = ListEgressRulesResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[11] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -892,7 +1128,7 @@ func (x *ListEgressRulesResponse) String() string { func (*ListEgressRulesResponse) ProtoMessage() {} func (x *ListEgressRulesResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[11] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -905,7 +1141,7 @@ func (x *ListEgressRulesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEgressRulesResponse.ProtoReflect.Descriptor instead. func (*ListEgressRulesResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{11} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{12} } func (x *ListEgressRulesResponse) GetEgressRules() []*EgressRule { @@ -929,13 +1165,14 @@ type UpdateEgressRuleRequest struct { Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` Matcher *EgressRuleMatcher `protobuf:"bytes,4,opt,name=matcher,proto3,oneof" json:"matcher,omitempty"` Effect *EgressRuleEffect `protobuf:"bytes,5,opt,name=effect,proto3,oneof" json:"effect,omitempty"` + UpstreamTls *EgressRuleUpstreamTls `protobuf:"bytes,6,opt,name=upstream_tls,json=upstreamTls,proto3,oneof" json:"upstream_tls,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateEgressRuleRequest) Reset() { *x = UpdateEgressRuleRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[12] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -947,7 +1184,7 @@ func (x *UpdateEgressRuleRequest) String() string { func (*UpdateEgressRuleRequest) ProtoMessage() {} func (x *UpdateEgressRuleRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[12] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -960,7 +1197,7 @@ func (x *UpdateEgressRuleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEgressRuleRequest.ProtoReflect.Descriptor instead. func (*UpdateEgressRuleRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{12} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{13} } func (x *UpdateEgressRuleRequest) GetId() string { @@ -998,6 +1235,13 @@ func (x *UpdateEgressRuleRequest) GetEffect() *EgressRuleEffect { return nil } +func (x *UpdateEgressRuleRequest) GetUpstreamTls() *EgressRuleUpstreamTls { + if x != nil { + return x.UpstreamTls + } + return nil +} + type UpdateEgressRuleResponse struct { state protoimpl.MessageState `protogen:"open.v1"` EgressRule *EgressRule `protobuf:"bytes,1,opt,name=egress_rule,json=egressRule,proto3" json:"egress_rule,omitempty"` @@ -1007,7 +1251,7 @@ type UpdateEgressRuleResponse struct { func (x *UpdateEgressRuleResponse) Reset() { *x = UpdateEgressRuleResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[13] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1019,7 +1263,7 @@ func (x *UpdateEgressRuleResponse) String() string { func (*UpdateEgressRuleResponse) ProtoMessage() {} func (x *UpdateEgressRuleResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[13] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1032,7 +1276,7 @@ func (x *UpdateEgressRuleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateEgressRuleResponse.ProtoReflect.Descriptor instead. func (*UpdateEgressRuleResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{13} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{14} } func (x *UpdateEgressRuleResponse) GetEgressRule() *EgressRule { @@ -1051,7 +1295,7 @@ type DeleteEgressRuleRequest struct { func (x *DeleteEgressRuleRequest) Reset() { *x = DeleteEgressRuleRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[14] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1063,7 +1307,7 @@ func (x *DeleteEgressRuleRequest) String() string { func (*DeleteEgressRuleRequest) ProtoMessage() {} func (x *DeleteEgressRuleRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[14] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1076,7 +1320,7 @@ func (x *DeleteEgressRuleRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteEgressRuleRequest.ProtoReflect.Descriptor instead. func (*DeleteEgressRuleRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{14} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{15} } func (x *DeleteEgressRuleRequest) GetId() string { @@ -1094,7 +1338,7 @@ type DeleteEgressRuleResponse struct { func (x *DeleteEgressRuleResponse) Reset() { *x = DeleteEgressRuleResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[15] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1106,7 +1350,7 @@ func (x *DeleteEgressRuleResponse) String() string { func (*DeleteEgressRuleResponse) ProtoMessage() {} func (x *DeleteEgressRuleResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[15] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1119,7 +1363,7 @@ func (x *DeleteEgressRuleResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteEgressRuleResponse.ProtoReflect.Descriptor instead. func (*DeleteEgressRuleResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{15} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{16} } type CreateEgressRuleAttachmentRequest struct { @@ -1138,7 +1382,7 @@ type CreateEgressRuleAttachmentRequest struct { func (x *CreateEgressRuleAttachmentRequest) Reset() { *x = CreateEgressRuleAttachmentRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[16] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1150,7 +1394,7 @@ func (x *CreateEgressRuleAttachmentRequest) String() string { func (*CreateEgressRuleAttachmentRequest) ProtoMessage() {} func (x *CreateEgressRuleAttachmentRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[16] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1163,7 +1407,7 @@ func (x *CreateEgressRuleAttachmentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CreateEgressRuleAttachmentRequest.ProtoReflect.Descriptor instead. func (*CreateEgressRuleAttachmentRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{16} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{17} } func (x *CreateEgressRuleAttachmentRequest) GetRuleId() string { @@ -1233,7 +1477,7 @@ type CreateEgressRuleAttachmentResponse struct { func (x *CreateEgressRuleAttachmentResponse) Reset() { *x = CreateEgressRuleAttachmentResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[17] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1245,7 +1489,7 @@ func (x *CreateEgressRuleAttachmentResponse) String() string { func (*CreateEgressRuleAttachmentResponse) ProtoMessage() {} func (x *CreateEgressRuleAttachmentResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[17] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1258,7 +1502,7 @@ func (x *CreateEgressRuleAttachmentResponse) ProtoReflect() protoreflect.Message // Deprecated: Use CreateEgressRuleAttachmentResponse.ProtoReflect.Descriptor instead. func (*CreateEgressRuleAttachmentResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{17} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{18} } func (x *CreateEgressRuleAttachmentResponse) GetEgressRuleAttachment() *EgressRuleAttachment { @@ -1277,7 +1521,7 @@ type DeleteEgressRuleAttachmentRequest struct { func (x *DeleteEgressRuleAttachmentRequest) Reset() { *x = DeleteEgressRuleAttachmentRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[18] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1289,7 +1533,7 @@ func (x *DeleteEgressRuleAttachmentRequest) String() string { func (*DeleteEgressRuleAttachmentRequest) ProtoMessage() {} func (x *DeleteEgressRuleAttachmentRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[18] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1302,7 +1546,7 @@ func (x *DeleteEgressRuleAttachmentRequest) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteEgressRuleAttachmentRequest.ProtoReflect.Descriptor instead. func (*DeleteEgressRuleAttachmentRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{18} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{19} } func (x *DeleteEgressRuleAttachmentRequest) GetId() string { @@ -1320,7 +1564,7 @@ type DeleteEgressRuleAttachmentResponse struct { func (x *DeleteEgressRuleAttachmentResponse) Reset() { *x = DeleteEgressRuleAttachmentResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[19] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1332,7 +1576,7 @@ func (x *DeleteEgressRuleAttachmentResponse) String() string { func (*DeleteEgressRuleAttachmentResponse) ProtoMessage() {} func (x *DeleteEgressRuleAttachmentResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[19] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1345,7 +1589,7 @@ func (x *DeleteEgressRuleAttachmentResponse) ProtoReflect() protoreflect.Message // Deprecated: Use DeleteEgressRuleAttachmentResponse.ProtoReflect.Descriptor instead. func (*DeleteEgressRuleAttachmentResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{19} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{20} } type ListEgressRuleAttachmentsRequest struct { @@ -1364,7 +1608,7 @@ type ListEgressRuleAttachmentsRequest struct { func (x *ListEgressRuleAttachmentsRequest) Reset() { *x = ListEgressRuleAttachmentsRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[20] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1376,7 +1620,7 @@ func (x *ListEgressRuleAttachmentsRequest) String() string { func (*ListEgressRuleAttachmentsRequest) ProtoMessage() {} func (x *ListEgressRuleAttachmentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[20] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1389,7 +1633,7 @@ func (x *ListEgressRuleAttachmentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEgressRuleAttachmentsRequest.ProtoReflect.Descriptor instead. func (*ListEgressRuleAttachmentsRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{20} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{21} } func (x *ListEgressRuleAttachmentsRequest) GetOrganizationId() string { @@ -1452,7 +1696,7 @@ type ListEgressRuleAttachmentsResponse struct { func (x *ListEgressRuleAttachmentsResponse) Reset() { *x = ListEgressRuleAttachmentsResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[21] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1464,7 +1708,7 @@ func (x *ListEgressRuleAttachmentsResponse) String() string { func (*ListEgressRuleAttachmentsResponse) ProtoMessage() {} func (x *ListEgressRuleAttachmentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[21] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1477,7 +1721,7 @@ func (x *ListEgressRuleAttachmentsResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListEgressRuleAttachmentsResponse.ProtoReflect.Descriptor instead. func (*ListEgressRuleAttachmentsResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{21} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{22} } func (x *ListEgressRuleAttachmentsResponse) GetEgressRuleAttachments() []*EgressRuleAttachment { @@ -1494,6 +1738,58 @@ func (x *ListEgressRuleAttachmentsResponse) GetNextPageToken() string { return "" } +type PrivateResourceInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + InterceptHost string `protobuf:"bytes,1,opt,name=intercept_host,json=interceptHost,proto3" json:"intercept_host,omitempty"` + Protocol EgressPrivateResourceProtocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=agynio.api.egress.v1.EgressPrivateResourceProtocol" json:"protocol,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PrivateResourceInfo) Reset() { + *x = PrivateResourceInfo{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PrivateResourceInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrivateResourceInfo) ProtoMessage() {} + +func (x *PrivateResourceInfo) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[23] + 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 PrivateResourceInfo.ProtoReflect.Descriptor instead. +func (*PrivateResourceInfo) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{23} +} + +func (x *PrivateResourceInfo) GetInterceptHost() string { + if x != nil { + return x.InterceptHost + } + return "" +} + +func (x *PrivateResourceInfo) GetProtocol() EgressPrivateResourceProtocol { + if x != nil { + return x.Protocol + } + return EgressPrivateResourceProtocol_EGRESS_PRIVATE_RESOURCE_PROTOCOL_UNSPECIFIED +} + type ListEgressRulesByAgentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` @@ -1503,7 +1799,7 @@ type ListEgressRulesByAgentRequest struct { func (x *ListEgressRulesByAgentRequest) Reset() { *x = ListEgressRulesByAgentRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[22] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1515,7 +1811,7 @@ func (x *ListEgressRulesByAgentRequest) String() string { func (*ListEgressRulesByAgentRequest) ProtoMessage() {} func (x *ListEgressRulesByAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[22] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1528,7 +1824,7 @@ func (x *ListEgressRulesByAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEgressRulesByAgentRequest.ProtoReflect.Descriptor instead. func (*ListEgressRulesByAgentRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{22} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{24} } func (x *ListEgressRulesByAgentRequest) GetAgentId() string { @@ -1539,15 +1835,16 @@ func (x *ListEgressRulesByAgentRequest) GetAgentId() string { } type ListEgressRulesByAgentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - EgressRules []*EgressRule `protobuf:"bytes,1,rep,name=egress_rules,json=egressRules,proto3" json:"egress_rules,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EgressRules []*EgressRule `protobuf:"bytes,1,rep,name=egress_rules,json=egressRules,proto3" json:"egress_rules,omitempty"` + PrivateResources map[string]*PrivateResourceInfo `protobuf:"bytes,2,rep,name=private_resources,json=privateResources,proto3" json:"private_resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListEgressRulesByAgentResponse) Reset() { *x = ListEgressRulesByAgentResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[23] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1559,7 +1856,7 @@ func (x *ListEgressRulesByAgentResponse) String() string { func (*ListEgressRulesByAgentResponse) ProtoMessage() {} func (x *ListEgressRulesByAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[23] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1572,7 +1869,7 @@ func (x *ListEgressRulesByAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListEgressRulesByAgentResponse.ProtoReflect.Descriptor instead. func (*ListEgressRulesByAgentResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{23} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{25} } func (x *ListEgressRulesByAgentResponse) GetEgressRules() []*EgressRule { @@ -1582,6 +1879,13 @@ func (x *ListEgressRulesByAgentResponse) GetEgressRules() []*EgressRule { return nil } +func (x *ListEgressRulesByAgentResponse) GetPrivateResources() map[string]*PrivateResourceInfo { + if x != nil { + return x.PrivateResources + } + return nil +} + type ListEgressRulesByEnvironmentRequest struct { state protoimpl.MessageState `protogen:"open.v1"` EnvironmentId string `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` @@ -1591,7 +1895,7 @@ type ListEgressRulesByEnvironmentRequest struct { func (x *ListEgressRulesByEnvironmentRequest) Reset() { *x = ListEgressRulesByEnvironmentRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[24] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1603,7 +1907,7 @@ func (x *ListEgressRulesByEnvironmentRequest) String() string { func (*ListEgressRulesByEnvironmentRequest) ProtoMessage() {} func (x *ListEgressRulesByEnvironmentRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[24] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1616,7 +1920,7 @@ func (x *ListEgressRulesByEnvironmentRequest) ProtoReflect() protoreflect.Messag // Deprecated: Use ListEgressRulesByEnvironmentRequest.ProtoReflect.Descriptor instead. func (*ListEgressRulesByEnvironmentRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{24} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{26} } func (x *ListEgressRulesByEnvironmentRequest) GetEnvironmentId() string { @@ -1627,15 +1931,16 @@ func (x *ListEgressRulesByEnvironmentRequest) GetEnvironmentId() string { } type ListEgressRulesByEnvironmentResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` - EgressRules []*EgressRule `protobuf:"bytes,1,rep,name=egress_rules,json=egressRules,proto3" json:"egress_rules,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EgressRules []*EgressRule `protobuf:"bytes,1,rep,name=egress_rules,json=egressRules,proto3" json:"egress_rules,omitempty"` + PrivateResources map[string]*PrivateResourceInfo `protobuf:"bytes,2,rep,name=private_resources,json=privateResources,proto3" json:"private_resources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListEgressRulesByEnvironmentResponse) Reset() { *x = ListEgressRulesByEnvironmentResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[25] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1647,7 +1952,7 @@ func (x *ListEgressRulesByEnvironmentResponse) String() string { func (*ListEgressRulesByEnvironmentResponse) ProtoMessage() {} func (x *ListEgressRulesByEnvironmentResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[25] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1660,7 +1965,7 @@ func (x *ListEgressRulesByEnvironmentResponse) ProtoReflect() protoreflect.Messa // Deprecated: Use ListEgressRulesByEnvironmentResponse.ProtoReflect.Descriptor instead. func (*ListEgressRulesByEnvironmentResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{25} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{27} } func (x *ListEgressRulesByEnvironmentResponse) GetEgressRules() []*EgressRule { @@ -1670,6 +1975,13 @@ func (x *ListEgressRulesByEnvironmentResponse) GetEgressRules() []*EgressRule { return nil } +func (x *ListEgressRulesByEnvironmentResponse) GetPrivateResources() map[string]*PrivateResourceInfo { + if x != nil { + return x.PrivateResources + } + return nil +} + type CountRulesReferencingSecretRequest struct { state protoimpl.MessageState `protogen:"open.v1"` SecretId string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"` @@ -1679,7 +1991,7 @@ type CountRulesReferencingSecretRequest struct { func (x *CountRulesReferencingSecretRequest) Reset() { *x = CountRulesReferencingSecretRequest{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[26] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1691,7 +2003,7 @@ func (x *CountRulesReferencingSecretRequest) String() string { func (*CountRulesReferencingSecretRequest) ProtoMessage() {} func (x *CountRulesReferencingSecretRequest) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[26] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1704,7 +2016,7 @@ func (x *CountRulesReferencingSecretRequest) ProtoReflect() protoreflect.Message // Deprecated: Use CountRulesReferencingSecretRequest.ProtoReflect.Descriptor instead. func (*CountRulesReferencingSecretRequest) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{26} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{28} } func (x *CountRulesReferencingSecretRequest) GetSecretId() string { @@ -1724,7 +2036,7 @@ type CountRulesReferencingSecretResponse struct { func (x *CountRulesReferencingSecretResponse) Reset() { *x = CountRulesReferencingSecretResponse{} - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[27] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1736,7 +2048,7 @@ func (x *CountRulesReferencingSecretResponse) String() string { func (*CountRulesReferencingSecretResponse) ProtoMessage() {} func (x *CountRulesReferencingSecretResponse) ProtoReflect() protoreflect.Message { - mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[27] + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1749,7 +2061,7 @@ func (x *CountRulesReferencingSecretResponse) ProtoReflect() protoreflect.Messag // Deprecated: Use CountRulesReferencingSecretResponse.ProtoReflect.Descriptor instead. func (*CountRulesReferencingSecretResponse) Descriptor() ([]byte, []int) { - return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{27} + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{29} } func (x *CountRulesReferencingSecretResponse) GetCount() int32 { @@ -1766,6 +2078,456 @@ func (x *CountRulesReferencingSecretResponse) GetEgressRuleIds() []string { return nil } +type CountRulesReferencingPrivateResourceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + PrivateResourceId string `protobuf:"bytes,1,opt,name=private_resource_id,json=privateResourceId,proto3" json:"private_resource_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountRulesReferencingPrivateResourceRequest) Reset() { + *x = CountRulesReferencingPrivateResourceRequest{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountRulesReferencingPrivateResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountRulesReferencingPrivateResourceRequest) ProtoMessage() {} + +func (x *CountRulesReferencingPrivateResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[30] + 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 CountRulesReferencingPrivateResourceRequest.ProtoReflect.Descriptor instead. +func (*CountRulesReferencingPrivateResourceRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{30} +} + +func (x *CountRulesReferencingPrivateResourceRequest) GetPrivateResourceId() string { + if x != nil { + return x.PrivateResourceId + } + return "" +} + +type CountRulesReferencingPrivateResourceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + EgressRuleIds []string `protobuf:"bytes,2,rep,name=egress_rule_ids,json=egressRuleIds,proto3" json:"egress_rule_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CountRulesReferencingPrivateResourceResponse) Reset() { + *x = CountRulesReferencingPrivateResourceResponse{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CountRulesReferencingPrivateResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountRulesReferencingPrivateResourceResponse) ProtoMessage() {} + +func (x *CountRulesReferencingPrivateResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[31] + 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 CountRulesReferencingPrivateResourceResponse.ProtoReflect.Descriptor instead. +func (*CountRulesReferencingPrivateResourceResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{31} +} + +func (x *CountRulesReferencingPrivateResourceResponse) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *CountRulesReferencingPrivateResourceResponse) GetEgressRuleIds() []string { + if x != nil { + return x.EgressRuleIds + } + return nil +} + +type ListMediatedPrivateResourcesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListMediatedPrivateResourcesRequest) Reset() { + *x = ListMediatedPrivateResourcesRequest{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListMediatedPrivateResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMediatedPrivateResourcesRequest) ProtoMessage() {} + +func (x *ListMediatedPrivateResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[32] + 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 ListMediatedPrivateResourcesRequest.ProtoReflect.Descriptor instead. +func (*ListMediatedPrivateResourcesRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{32} +} + +func (x *ListMediatedPrivateResourcesRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type ListMediatedPrivateResourcesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + PrivateResourceIds []string `protobuf:"bytes,1,rep,name=private_resource_ids,json=privateResourceIds,proto3" json:"private_resource_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListMediatedPrivateResourcesResponse) Reset() { + *x = ListMediatedPrivateResourcesResponse{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListMediatedPrivateResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMediatedPrivateResourcesResponse) ProtoMessage() {} + +func (x *ListMediatedPrivateResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[33] + 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 ListMediatedPrivateResourcesResponse.ProtoReflect.Descriptor instead. +func (*ListMediatedPrivateResourcesResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{33} +} + +func (x *ListMediatedPrivateResourcesResponse) GetPrivateResourceIds() []string { + if x != nil { + return x.PrivateResourceIds + } + return nil +} + +type AttachedRuleDomain struct { + state protoimpl.MessageState `protogen:"open.v1"` + EgressRuleId string `protobuf:"bytes,1,opt,name=egress_rule_id,json=egressRuleId,proto3" json:"egress_rule_id,omitempty"` + DomainPattern string `protobuf:"bytes,2,opt,name=domain_pattern,json=domainPattern,proto3" json:"domain_pattern,omitempty"` + Ports []int32 `protobuf:"varint,3,rep,packed,name=ports,proto3" json:"ports,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AttachedRuleDomain) Reset() { + *x = AttachedRuleDomain{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AttachedRuleDomain) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AttachedRuleDomain) ProtoMessage() {} + +func (x *AttachedRuleDomain) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[34] + 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 AttachedRuleDomain.ProtoReflect.Descriptor instead. +func (*AttachedRuleDomain) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{34} +} + +func (x *AttachedRuleDomain) GetEgressRuleId() string { + if x != nil { + return x.EgressRuleId + } + return "" +} + +func (x *AttachedRuleDomain) GetDomainPattern() string { + if x != nil { + return x.DomainPattern + } + return "" +} + +func (x *AttachedRuleDomain) GetPorts() []int32 { + if x != nil { + return x.Ports + } + return nil +} + +type ListAttachedRuleDomainsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Principal: + // + // *ListAttachedRuleDomainsRequest_AgentId + // *ListAttachedRuleDomainsRequest_EnvironmentId + Principal isListAttachedRuleDomainsRequest_Principal `protobuf_oneof:"principal"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListAttachedRuleDomainsRequest) Reset() { + *x = ListAttachedRuleDomainsRequest{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListAttachedRuleDomainsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAttachedRuleDomainsRequest) ProtoMessage() {} + +func (x *ListAttachedRuleDomainsRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[35] + 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 ListAttachedRuleDomainsRequest.ProtoReflect.Descriptor instead. +func (*ListAttachedRuleDomainsRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{35} +} + +func (x *ListAttachedRuleDomainsRequest) GetPrincipal() isListAttachedRuleDomainsRequest_Principal { + if x != nil { + return x.Principal + } + return nil +} + +func (x *ListAttachedRuleDomainsRequest) GetAgentId() string { + if x != nil { + if x, ok := x.Principal.(*ListAttachedRuleDomainsRequest_AgentId); ok { + return x.AgentId + } + } + return "" +} + +func (x *ListAttachedRuleDomainsRequest) GetEnvironmentId() string { + if x != nil { + if x, ok := x.Principal.(*ListAttachedRuleDomainsRequest_EnvironmentId); ok { + return x.EnvironmentId + } + } + return "" +} + +type isListAttachedRuleDomainsRequest_Principal interface { + isListAttachedRuleDomainsRequest_Principal() +} + +type ListAttachedRuleDomainsRequest_AgentId struct { + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3,oneof"` +} + +type ListAttachedRuleDomainsRequest_EnvironmentId struct { + EnvironmentId string `protobuf:"bytes,2,opt,name=environment_id,json=environmentId,proto3,oneof"` +} + +func (*ListAttachedRuleDomainsRequest_AgentId) isListAttachedRuleDomainsRequest_Principal() {} + +func (*ListAttachedRuleDomainsRequest_EnvironmentId) isListAttachedRuleDomainsRequest_Principal() {} + +type ListAttachedRuleDomainsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Domains []*AttachedRuleDomain `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListAttachedRuleDomainsResponse) Reset() { + *x = ListAttachedRuleDomainsResponse{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListAttachedRuleDomainsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAttachedRuleDomainsResponse) ProtoMessage() {} + +func (x *ListAttachedRuleDomainsResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[36] + 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 ListAttachedRuleDomainsResponse.ProtoReflect.Descriptor instead. +func (*ListAttachedRuleDomainsResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{36} +} + +func (x *ListAttachedRuleDomainsResponse) GetDomains() []*AttachedRuleDomain { + if x != nil { + return x.Domains + } + return nil +} + +type DeleteOrganizationResourcesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResourcesRequest) Reset() { + *x = DeleteOrganizationResourcesRequest{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResourcesRequest) ProtoMessage() {} + +func (x *DeleteOrganizationResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[37] + 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 DeleteOrganizationResourcesRequest.ProtoReflect.Descriptor instead. +func (*DeleteOrganizationResourcesRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{37} +} + +func (x *DeleteOrganizationResourcesRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type DeleteOrganizationResourcesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResourcesResponse) Reset() { + *x = DeleteOrganizationResourcesResponse{} + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResourcesResponse) ProtoMessage() {} + +func (x *DeleteOrganizationResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_egress_v1_egress_proto_msgTypes[38] + 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 DeleteOrganizationResourcesResponse.ProtoReflect.Descriptor instead. +func (*DeleteOrganizationResourcesResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_egress_v1_egress_proto_rawDescGZIP(), []int{38} +} + var File_agynio_api_egress_v1_egress_proto protoreflect.FileDescriptor const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + @@ -1777,23 +2539,31 @@ const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + "\n" + "created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + "\n" + - "updated_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x8d\x01\n" + + "updated_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xbd\x01\n" + "\x11EgressRuleMatcher\x12%\n" + "\x0edomain_pattern\x18\x01 \x01(\tR\rdomainPattern\x12\x14\n" + "\x05ports\x18\x02 \x03(\x05R\x05ports\x12\x18\n" + "\amethods\x18\x03 \x03(\tR\amethods\x12!\n" + - "\fpath_pattern\x18\x04 \x01(\tR\vpathPattern\"\xab\x01\n" + + "\fpath_pattern\x18\x04 \x01(\tR\vpathPattern\x12.\n" + + "\x13private_resource_id\x18\x05 \x01(\tR\x11privateResourceId\"\xa6\x01\n" + + "\x15EgressRuleUpstreamTls\x12\x1f\n" + + "\vserver_name\x18\x01 \x01(\tR\n" + + "serverName\x12/\n" + + "\x13ca_bundle_secret_id\x18\x02 \x01(\tH\x00R\x10caBundleSecretId\x122\n" + + "\x14insecure_skip_verify\x18\x03 \x01(\bH\x00R\x12insecureSkipVerifyB\a\n" + + "\x05trust\"\xc7\x01\n" + "\x10EgressRuleHeader\x12\x12\n" + "\x04name\x18\x01 \x01(\tR\x04name\x12>\n" + "\x06scheme\x18\x02 \x01(\x0e2&.agynio.api.egress.v1.HeaderAuthSchemeR\x06scheme\x12\x16\n" + "\x05value\x18\x03 \x01(\tH\x00R\x05value\x12\x1d\n" + - "\tsecret_id\x18\x04 \x01(\tH\x00R\bsecretIdB\f\n" + + "\tsecret_id\x18\x04 \x01(\tH\x00R\bsecretId\x12\x1a\n" + + "\busername\x18\x05 \x01(\tR\busernameB\f\n" + "\n" + "credential\"\xa2\x01\n" + "\x10EgressRuleEffect\x12C\n" + "\x06action\x18\x01 \x01(\x0e2&.agynio.api.egress.v1.EgressRuleActionH\x00R\x06action\x88\x01\x01\x12>\n" + "\x06inject\x18\x02 \x03(\v2&.agynio.api.egress.v1.EgressRuleHeaderR\x06injectB\t\n" + - "\a_action\"\xa4\x02\n" + + "\a_action\"\x8a\x03\n" + "\n" + "EgressRule\x124\n" + "\x04meta\x18\x01 \x01(\v2 .agynio.api.egress.v1.EntityMetaR\x04meta\x12'\n" + @@ -1801,20 +2571,24 @@ const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + "\x04name\x18\x03 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x04 \x01(\tR\vdescription\x12A\n" + "\amatcher\x18\x05 \x01(\v2'.agynio.api.egress.v1.EgressRuleMatcherR\amatcher\x12>\n" + - "\x06effect\x18\x06 \x01(\v2&.agynio.api.egress.v1.EgressRuleEffectR\x06effect\"\xe1\x01\n" + + "\x06effect\x18\x06 \x01(\v2&.agynio.api.egress.v1.EgressRuleEffectR\x06effect\x12S\n" + + "\fupstream_tls\x18\a \x01(\v2+.agynio.api.egress.v1.EgressRuleUpstreamTlsH\x00R\vupstreamTls\x88\x01\x01B\x0f\n" + + "\r_upstream_tls\"\xe1\x01\n" + "\x14EgressRuleAttachment\x124\n" + "\x04meta\x18\x01 \x01(\v2 .agynio.api.egress.v1.EntityMetaR\x04meta\x12\x17\n" + "\arule_id\x18\x02 \x01(\tR\x06ruleId\x12\x1d\n" + "\bagent_id\x18\x03 \x01(\tB\x02\x18\x01R\aagentId\x12'\n" + "\x0eenvironment_id\x18\x04 \x01(\tH\x00R\renvironmentId\x12(\n" + "\x0fagent_target_id\x18\x05 \x01(\tH\x00R\ragentTargetIdB\b\n" + - "\x06target\"\xfb\x01\n" + + "\x06target\"\xe1\x02\n" + "\x17CreateEgressRuleRequest\x12'\n" + "\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12 \n" + "\vdescription\x18\x03 \x01(\tR\vdescription\x12A\n" + "\amatcher\x18\x04 \x01(\v2'.agynio.api.egress.v1.EgressRuleMatcherR\amatcher\x12>\n" + - "\x06effect\x18\x05 \x01(\v2&.agynio.api.egress.v1.EgressRuleEffectR\x06effect\"]\n" + + "\x06effect\x18\x05 \x01(\v2&.agynio.api.egress.v1.EgressRuleEffectR\x06effect\x12S\n" + + "\fupstream_tls\x18\x06 \x01(\v2+.agynio.api.egress.v1.EgressRuleUpstreamTlsH\x00R\vupstreamTls\x88\x01\x01B\x0f\n" + + "\r_upstream_tls\"]\n" + "\x18CreateEgressRuleResponse\x12A\n" + "\vegress_rule\x18\x01 \x01(\v2 .agynio.api.egress.v1.EgressRuleR\n" + "egressRule\"&\n" + @@ -1822,26 +2596,33 @@ const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + "\x02id\x18\x01 \x01(\tR\x02id\"Z\n" + "\x15GetEgressRuleResponse\x12A\n" + "\vegress_rule\x18\x01 \x01(\v2 .agynio.api.egress.v1.EgressRuleR\n" + - "egressRule\"}\n" + + "egressRule\"\xac\x02\n" + "\x16ListEgressRulesRequest\x12'\n" + "\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n" + "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" + "\n" + - "page_token\x18\x03 \x01(\tR\tpageToken\"\x86\x01\n" + + "page_token\x18\x03 \x01(\tR\tpageToken\x123\n" + + "\x13private_resource_id\x18\x04 \x01(\tH\x00R\x11privateResourceId\x88\x01\x01\x12P\n" + + "\vtarget_kind\x18\x05 \x01(\x0e2*.agynio.api.egress.v1.EgressRuleTargetKindH\x01R\n" + + "targetKind\x88\x01\x01B\x16\n" + + "\x14_private_resource_idB\x0e\n" + + "\f_target_kind\"\x86\x01\n" + "\x17ListEgressRulesResponse\x12C\n" + "\fegress_rules\x18\x01 \x03(\v2 .agynio.api.egress.v1.EgressRuleR\vegressRules\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\xa6\x02\n" + + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x8c\x03\n" + "\x17UpdateEgressRuleRequest\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" + "\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12%\n" + "\vdescription\x18\x03 \x01(\tH\x01R\vdescription\x88\x01\x01\x12F\n" + "\amatcher\x18\x04 \x01(\v2'.agynio.api.egress.v1.EgressRuleMatcherH\x02R\amatcher\x88\x01\x01\x12C\n" + - "\x06effect\x18\x05 \x01(\v2&.agynio.api.egress.v1.EgressRuleEffectH\x03R\x06effect\x88\x01\x01B\a\n" + + "\x06effect\x18\x05 \x01(\v2&.agynio.api.egress.v1.EgressRuleEffectH\x03R\x06effect\x88\x01\x01\x12S\n" + + "\fupstream_tls\x18\x06 \x01(\v2+.agynio.api.egress.v1.EgressRuleUpstreamTlsH\x04R\vupstreamTls\x88\x01\x01B\a\n" + "\x05_nameB\x0e\n" + "\f_descriptionB\n" + "\n" + "\b_matcherB\t\n" + - "\a_effect\"]\n" + + "\a_effectB\x0f\n" + + "\r_upstream_tls\"]\n" + "\x18UpdateEgressRuleResponse\x12A\n" + "\vegress_rule\x18\x01 \x01(\v2 .agynio.api.egress.v1.EgressRuleR\n" + "egressRule\")\n" + @@ -1875,20 +2656,53 @@ const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + "\x10_agent_target_id\"\xaf\x01\n" + "!ListEgressRuleAttachmentsResponse\x12b\n" + "\x17egress_rule_attachments\x18\x01 \x03(\v2*.agynio.api.egress.v1.EgressRuleAttachmentR\x15egressRuleAttachments\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\":\n" + + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x8d\x01\n" + + "\x13PrivateResourceInfo\x12%\n" + + "\x0eintercept_host\x18\x01 \x01(\tR\rinterceptHost\x12O\n" + + "\bprotocol\x18\x02 \x01(\x0e23.agynio.api.egress.v1.EgressPrivateResourceProtocolR\bprotocol\":\n" + "\x1dListEgressRulesByAgentRequest\x12\x19\n" + - "\bagent_id\x18\x01 \x01(\tR\aagentId\"e\n" + + "\bagent_id\x18\x01 \x01(\tR\aagentId\"\xce\x02\n" + "\x1eListEgressRulesByAgentResponse\x12C\n" + - "\fegress_rules\x18\x01 \x03(\v2 .agynio.api.egress.v1.EgressRuleR\vegressRules\"L\n" + + "\fegress_rules\x18\x01 \x03(\v2 .agynio.api.egress.v1.EgressRuleR\vegressRules\x12w\n" + + "\x11private_resources\x18\x02 \x03(\v2J.agynio.api.egress.v1.ListEgressRulesByAgentResponse.PrivateResourcesEntryR\x10privateResources\x1an\n" + + "\x15PrivateResourcesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12?\n" + + "\x05value\x18\x02 \x01(\v2).agynio.api.egress.v1.PrivateResourceInfoR\x05value:\x028\x01\"L\n" + "#ListEgressRulesByEnvironmentRequest\x12%\n" + - "\x0eenvironment_id\x18\x01 \x01(\tR\renvironmentId\"k\n" + + "\x0eenvironment_id\x18\x01 \x01(\tR\renvironmentId\"\xda\x02\n" + "$ListEgressRulesByEnvironmentResponse\x12C\n" + - "\fegress_rules\x18\x01 \x03(\v2 .agynio.api.egress.v1.EgressRuleR\vegressRules\"A\n" + + "\fegress_rules\x18\x01 \x03(\v2 .agynio.api.egress.v1.EgressRuleR\vegressRules\x12}\n" + + "\x11private_resources\x18\x02 \x03(\v2P.agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse.PrivateResourcesEntryR\x10privateResources\x1an\n" + + "\x15PrivateResourcesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12?\n" + + "\x05value\x18\x02 \x01(\v2).agynio.api.egress.v1.PrivateResourceInfoR\x05value:\x028\x01\"A\n" + "\"CountRulesReferencingSecretRequest\x12\x1b\n" + "\tsecret_id\x18\x01 \x01(\tR\bsecretId\"c\n" + "#CountRulesReferencingSecretResponse\x12\x14\n" + "\x05count\x18\x01 \x01(\x05R\x05count\x12&\n" + - "\x0fegress_rule_ids\x18\x02 \x03(\tR\regressRuleIds*q\n" + + "\x0fegress_rule_ids\x18\x02 \x03(\tR\regressRuleIds\"]\n" + + "+CountRulesReferencingPrivateResourceRequest\x12.\n" + + "\x13private_resource_id\x18\x01 \x01(\tR\x11privateResourceId\"l\n" + + ",CountRulesReferencingPrivateResourceResponse\x12\x14\n" + + "\x05count\x18\x01 \x01(\x05R\x05count\x12&\n" + + "\x0fegress_rule_ids\x18\x02 \x03(\tR\regressRuleIds\"N\n" + + "#ListMediatedPrivateResourcesRequest\x12'\n" + + "\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"X\n" + + "$ListMediatedPrivateResourcesResponse\x120\n" + + "\x14private_resource_ids\x18\x01 \x03(\tR\x12privateResourceIds\"w\n" + + "\x12AttachedRuleDomain\x12$\n" + + "\x0eegress_rule_id\x18\x01 \x01(\tR\fegressRuleId\x12%\n" + + "\x0edomain_pattern\x18\x02 \x01(\tR\rdomainPattern\x12\x14\n" + + "\x05ports\x18\x03 \x03(\x05R\x05ports\"s\n" + + "\x1eListAttachedRuleDomainsRequest\x12\x1b\n" + + "\bagent_id\x18\x01 \x01(\tH\x00R\aagentId\x12'\n" + + "\x0eenvironment_id\x18\x02 \x01(\tH\x00R\renvironmentIdB\v\n" + + "\tprincipal\"e\n" + + "\x1fListAttachedRuleDomainsResponse\x12B\n" + + "\adomains\x18\x01 \x03(\v2(.agynio.api.egress.v1.AttachedRuleDomainR\adomains\"M\n" + + "\"DeleteOrganizationResourcesRequest\x12'\n" + + "\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"%\n" + + "#DeleteOrganizationResourcesResponse*q\n" + "\x10EgressRuleAction\x12\"\n" + "\x1eEGRESS_RULE_ACTION_UNSPECIFIED\x10\x00\x12\x1c\n" + "\x18EGRESS_RULE_ACTION_ALLOW\x10\x01\x12\x1b\n" + @@ -1896,7 +2710,15 @@ const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + "\x10HeaderAuthScheme\x12\"\n" + "\x1eHEADER_AUTH_SCHEME_UNSPECIFIED\x10\x00\x12\x1d\n" + "\x19HEADER_AUTH_SCHEME_BEARER\x10\x01\x12\x1c\n" + - "\x18HEADER_AUTH_SCHEME_BASIC\x10\x022\xad\v\n" + + "\x18HEADER_AUTH_SCHEME_BASIC\x10\x02*\x88\x01\n" + + "\x14EgressRuleTargetKind\x12'\n" + + "#EGRESS_RULE_TARGET_KIND_UNSPECIFIED\x10\x00\x12\"\n" + + "\x1eEGRESS_RULE_TARGET_KIND_PUBLIC\x10\x01\x12#\n" + + "\x1fEGRESS_RULE_TARGET_KIND_PRIVATE\x10\x02*\xa8\x01\n" + + "\x1dEgressPrivateResourceProtocol\x120\n" + + ",EGRESS_PRIVATE_RESOURCE_PROTOCOL_UNSPECIFIED\x10\x00\x12)\n" + + "%EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTP\x10\x01\x12*\n" + + "&EGRESS_PRIVATE_RESOURCE_PROTOCOL_HTTPS\x10\x022\x93\x10\n" + "\x12EgressRulesService\x12q\n" + "\x10CreateEgressRule\x12-.agynio.api.egress.v1.CreateEgressRuleRequest\x1a..agynio.api.egress.v1.CreateEgressRuleResponse\x12h\n" + "\rGetEgressRule\x12*.agynio.api.egress.v1.GetEgressRuleRequest\x1a+.agynio.api.egress.v1.GetEgressRuleResponse\x12n\n" + @@ -1908,7 +2730,11 @@ const file_agynio_api_egress_v1_egress_proto_rawDesc = "" + "\x19ListEgressRuleAttachments\x126.agynio.api.egress.v1.ListEgressRuleAttachmentsRequest\x1a7.agynio.api.egress.v1.ListEgressRuleAttachmentsResponse\x12\x83\x01\n" + "\x16ListEgressRulesByAgent\x123.agynio.api.egress.v1.ListEgressRulesByAgentRequest\x1a4.agynio.api.egress.v1.ListEgressRulesByAgentResponse\x12\x95\x01\n" + "\x1cListEgressRulesByEnvironment\x129.agynio.api.egress.v1.ListEgressRulesByEnvironmentRequest\x1a:.agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse\x12\x92\x01\n" + - "\x1bCountRulesReferencingSecret\x128.agynio.api.egress.v1.CountRulesReferencingSecretRequest\x1a9.agynio.api.egress.v1.CountRulesReferencingSecretResponseB\xd8\x01\n" + + "\x1bCountRulesReferencingSecret\x128.agynio.api.egress.v1.CountRulesReferencingSecretRequest\x1a9.agynio.api.egress.v1.CountRulesReferencingSecretResponse\x12\xad\x01\n" + + "$CountRulesReferencingPrivateResource\x12A.agynio.api.egress.v1.CountRulesReferencingPrivateResourceRequest\x1aB.agynio.api.egress.v1.CountRulesReferencingPrivateResourceResponse\x12\x95\x01\n" + + "\x1cListMediatedPrivateResources\x129.agynio.api.egress.v1.ListMediatedPrivateResourcesRequest\x1a:.agynio.api.egress.v1.ListMediatedPrivateResourcesResponse\x12\x86\x01\n" + + "\x17ListAttachedRuleDomains\x124.agynio.api.egress.v1.ListAttachedRuleDomainsRequest\x1a5.agynio.api.egress.v1.ListAttachedRuleDomainsResponse\x12\x92\x01\n" + + "\x1bDeleteOrganizationResources\x128.agynio.api.egress.v1.DeleteOrganizationResourcesRequest\x1a9.agynio.api.egress.v1.DeleteOrganizationResourcesResponseB\xd8\x01\n" + "\x18com.agynio.api.egress.v1B\vEgressProtoP\x01Z google.protobuf.Timestamp - 30, // 1: agynio.api.egress.v1.EntityMeta.updated_at:type_name -> google.protobuf.Timestamp + 45, // 0: agynio.api.egress.v1.EntityMeta.created_at:type_name -> google.protobuf.Timestamp + 45, // 1: agynio.api.egress.v1.EntityMeta.updated_at:type_name -> google.protobuf.Timestamp 1, // 2: agynio.api.egress.v1.EgressRuleHeader.scheme:type_name -> agynio.api.egress.v1.HeaderAuthScheme 0, // 3: agynio.api.egress.v1.EgressRuleEffect.action:type_name -> agynio.api.egress.v1.EgressRuleAction - 4, // 4: agynio.api.egress.v1.EgressRuleEffect.inject:type_name -> agynio.api.egress.v1.EgressRuleHeader - 2, // 5: agynio.api.egress.v1.EgressRule.meta:type_name -> agynio.api.egress.v1.EntityMeta - 3, // 6: agynio.api.egress.v1.EgressRule.matcher:type_name -> agynio.api.egress.v1.EgressRuleMatcher - 5, // 7: agynio.api.egress.v1.EgressRule.effect:type_name -> agynio.api.egress.v1.EgressRuleEffect - 2, // 8: agynio.api.egress.v1.EgressRuleAttachment.meta:type_name -> agynio.api.egress.v1.EntityMeta - 3, // 9: agynio.api.egress.v1.CreateEgressRuleRequest.matcher:type_name -> agynio.api.egress.v1.EgressRuleMatcher - 5, // 10: agynio.api.egress.v1.CreateEgressRuleRequest.effect:type_name -> agynio.api.egress.v1.EgressRuleEffect - 6, // 11: agynio.api.egress.v1.CreateEgressRuleResponse.egress_rule:type_name -> agynio.api.egress.v1.EgressRule - 6, // 12: agynio.api.egress.v1.GetEgressRuleResponse.egress_rule:type_name -> agynio.api.egress.v1.EgressRule - 6, // 13: agynio.api.egress.v1.ListEgressRulesResponse.egress_rules:type_name -> agynio.api.egress.v1.EgressRule - 3, // 14: agynio.api.egress.v1.UpdateEgressRuleRequest.matcher:type_name -> agynio.api.egress.v1.EgressRuleMatcher - 5, // 15: agynio.api.egress.v1.UpdateEgressRuleRequest.effect:type_name -> agynio.api.egress.v1.EgressRuleEffect - 6, // 16: agynio.api.egress.v1.UpdateEgressRuleResponse.egress_rule:type_name -> agynio.api.egress.v1.EgressRule - 7, // 17: agynio.api.egress.v1.CreateEgressRuleAttachmentResponse.egress_rule_attachment:type_name -> agynio.api.egress.v1.EgressRuleAttachment - 7, // 18: agynio.api.egress.v1.ListEgressRuleAttachmentsResponse.egress_rule_attachments:type_name -> agynio.api.egress.v1.EgressRuleAttachment - 6, // 19: agynio.api.egress.v1.ListEgressRulesByAgentResponse.egress_rules:type_name -> agynio.api.egress.v1.EgressRule - 6, // 20: agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse.egress_rules:type_name -> agynio.api.egress.v1.EgressRule - 8, // 21: agynio.api.egress.v1.EgressRulesService.CreateEgressRule:input_type -> agynio.api.egress.v1.CreateEgressRuleRequest - 10, // 22: agynio.api.egress.v1.EgressRulesService.GetEgressRule:input_type -> agynio.api.egress.v1.GetEgressRuleRequest - 12, // 23: agynio.api.egress.v1.EgressRulesService.ListEgressRules:input_type -> agynio.api.egress.v1.ListEgressRulesRequest - 14, // 24: agynio.api.egress.v1.EgressRulesService.UpdateEgressRule:input_type -> agynio.api.egress.v1.UpdateEgressRuleRequest - 16, // 25: agynio.api.egress.v1.EgressRulesService.DeleteEgressRule:input_type -> agynio.api.egress.v1.DeleteEgressRuleRequest - 18, // 26: agynio.api.egress.v1.EgressRulesService.CreateEgressRuleAttachment:input_type -> agynio.api.egress.v1.CreateEgressRuleAttachmentRequest - 20, // 27: agynio.api.egress.v1.EgressRulesService.DeleteEgressRuleAttachment:input_type -> agynio.api.egress.v1.DeleteEgressRuleAttachmentRequest - 22, // 28: agynio.api.egress.v1.EgressRulesService.ListEgressRuleAttachments:input_type -> agynio.api.egress.v1.ListEgressRuleAttachmentsRequest - 24, // 29: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByAgent:input_type -> agynio.api.egress.v1.ListEgressRulesByAgentRequest - 26, // 30: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByEnvironment:input_type -> agynio.api.egress.v1.ListEgressRulesByEnvironmentRequest - 28, // 31: agynio.api.egress.v1.EgressRulesService.CountRulesReferencingSecret:input_type -> agynio.api.egress.v1.CountRulesReferencingSecretRequest - 9, // 32: agynio.api.egress.v1.EgressRulesService.CreateEgressRule:output_type -> agynio.api.egress.v1.CreateEgressRuleResponse - 11, // 33: agynio.api.egress.v1.EgressRulesService.GetEgressRule:output_type -> agynio.api.egress.v1.GetEgressRuleResponse - 13, // 34: agynio.api.egress.v1.EgressRulesService.ListEgressRules:output_type -> agynio.api.egress.v1.ListEgressRulesResponse - 15, // 35: agynio.api.egress.v1.EgressRulesService.UpdateEgressRule:output_type -> agynio.api.egress.v1.UpdateEgressRuleResponse - 17, // 36: agynio.api.egress.v1.EgressRulesService.DeleteEgressRule:output_type -> agynio.api.egress.v1.DeleteEgressRuleResponse - 19, // 37: agynio.api.egress.v1.EgressRulesService.CreateEgressRuleAttachment:output_type -> agynio.api.egress.v1.CreateEgressRuleAttachmentResponse - 21, // 38: agynio.api.egress.v1.EgressRulesService.DeleteEgressRuleAttachment:output_type -> agynio.api.egress.v1.DeleteEgressRuleAttachmentResponse - 23, // 39: agynio.api.egress.v1.EgressRulesService.ListEgressRuleAttachments:output_type -> agynio.api.egress.v1.ListEgressRuleAttachmentsResponse - 25, // 40: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByAgent:output_type -> agynio.api.egress.v1.ListEgressRulesByAgentResponse - 27, // 41: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByEnvironment:output_type -> agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse - 29, // 42: agynio.api.egress.v1.EgressRulesService.CountRulesReferencingSecret:output_type -> agynio.api.egress.v1.CountRulesReferencingSecretResponse - 32, // [32:43] is the sub-list for method output_type - 21, // [21:32] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name + 7, // 4: agynio.api.egress.v1.EgressRuleEffect.inject:type_name -> agynio.api.egress.v1.EgressRuleHeader + 4, // 5: agynio.api.egress.v1.EgressRule.meta:type_name -> agynio.api.egress.v1.EntityMeta + 5, // 6: agynio.api.egress.v1.EgressRule.matcher:type_name -> agynio.api.egress.v1.EgressRuleMatcher + 8, // 7: agynio.api.egress.v1.EgressRule.effect:type_name -> agynio.api.egress.v1.EgressRuleEffect + 6, // 8: agynio.api.egress.v1.EgressRule.upstream_tls:type_name -> agynio.api.egress.v1.EgressRuleUpstreamTls + 4, // 9: agynio.api.egress.v1.EgressRuleAttachment.meta:type_name -> agynio.api.egress.v1.EntityMeta + 5, // 10: agynio.api.egress.v1.CreateEgressRuleRequest.matcher:type_name -> agynio.api.egress.v1.EgressRuleMatcher + 8, // 11: agynio.api.egress.v1.CreateEgressRuleRequest.effect:type_name -> agynio.api.egress.v1.EgressRuleEffect + 6, // 12: agynio.api.egress.v1.CreateEgressRuleRequest.upstream_tls:type_name -> agynio.api.egress.v1.EgressRuleUpstreamTls + 9, // 13: agynio.api.egress.v1.CreateEgressRuleResponse.egress_rule:type_name -> agynio.api.egress.v1.EgressRule + 9, // 14: agynio.api.egress.v1.GetEgressRuleResponse.egress_rule:type_name -> agynio.api.egress.v1.EgressRule + 2, // 15: agynio.api.egress.v1.ListEgressRulesRequest.target_kind:type_name -> agynio.api.egress.v1.EgressRuleTargetKind + 9, // 16: agynio.api.egress.v1.ListEgressRulesResponse.egress_rules:type_name -> agynio.api.egress.v1.EgressRule + 5, // 17: agynio.api.egress.v1.UpdateEgressRuleRequest.matcher:type_name -> agynio.api.egress.v1.EgressRuleMatcher + 8, // 18: agynio.api.egress.v1.UpdateEgressRuleRequest.effect:type_name -> agynio.api.egress.v1.EgressRuleEffect + 6, // 19: agynio.api.egress.v1.UpdateEgressRuleRequest.upstream_tls:type_name -> agynio.api.egress.v1.EgressRuleUpstreamTls + 9, // 20: agynio.api.egress.v1.UpdateEgressRuleResponse.egress_rule:type_name -> agynio.api.egress.v1.EgressRule + 10, // 21: agynio.api.egress.v1.CreateEgressRuleAttachmentResponse.egress_rule_attachment:type_name -> agynio.api.egress.v1.EgressRuleAttachment + 10, // 22: agynio.api.egress.v1.ListEgressRuleAttachmentsResponse.egress_rule_attachments:type_name -> agynio.api.egress.v1.EgressRuleAttachment + 3, // 23: agynio.api.egress.v1.PrivateResourceInfo.protocol:type_name -> agynio.api.egress.v1.EgressPrivateResourceProtocol + 9, // 24: agynio.api.egress.v1.ListEgressRulesByAgentResponse.egress_rules:type_name -> agynio.api.egress.v1.EgressRule + 43, // 25: agynio.api.egress.v1.ListEgressRulesByAgentResponse.private_resources:type_name -> agynio.api.egress.v1.ListEgressRulesByAgentResponse.PrivateResourcesEntry + 9, // 26: agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse.egress_rules:type_name -> agynio.api.egress.v1.EgressRule + 44, // 27: agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse.private_resources:type_name -> agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse.PrivateResourcesEntry + 38, // 28: agynio.api.egress.v1.ListAttachedRuleDomainsResponse.domains:type_name -> agynio.api.egress.v1.AttachedRuleDomain + 27, // 29: agynio.api.egress.v1.ListEgressRulesByAgentResponse.PrivateResourcesEntry.value:type_name -> agynio.api.egress.v1.PrivateResourceInfo + 27, // 30: agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse.PrivateResourcesEntry.value:type_name -> agynio.api.egress.v1.PrivateResourceInfo + 11, // 31: agynio.api.egress.v1.EgressRulesService.CreateEgressRule:input_type -> agynio.api.egress.v1.CreateEgressRuleRequest + 13, // 32: agynio.api.egress.v1.EgressRulesService.GetEgressRule:input_type -> agynio.api.egress.v1.GetEgressRuleRequest + 15, // 33: agynio.api.egress.v1.EgressRulesService.ListEgressRules:input_type -> agynio.api.egress.v1.ListEgressRulesRequest + 17, // 34: agynio.api.egress.v1.EgressRulesService.UpdateEgressRule:input_type -> agynio.api.egress.v1.UpdateEgressRuleRequest + 19, // 35: agynio.api.egress.v1.EgressRulesService.DeleteEgressRule:input_type -> agynio.api.egress.v1.DeleteEgressRuleRequest + 21, // 36: agynio.api.egress.v1.EgressRulesService.CreateEgressRuleAttachment:input_type -> agynio.api.egress.v1.CreateEgressRuleAttachmentRequest + 23, // 37: agynio.api.egress.v1.EgressRulesService.DeleteEgressRuleAttachment:input_type -> agynio.api.egress.v1.DeleteEgressRuleAttachmentRequest + 25, // 38: agynio.api.egress.v1.EgressRulesService.ListEgressRuleAttachments:input_type -> agynio.api.egress.v1.ListEgressRuleAttachmentsRequest + 28, // 39: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByAgent:input_type -> agynio.api.egress.v1.ListEgressRulesByAgentRequest + 30, // 40: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByEnvironment:input_type -> agynio.api.egress.v1.ListEgressRulesByEnvironmentRequest + 32, // 41: agynio.api.egress.v1.EgressRulesService.CountRulesReferencingSecret:input_type -> agynio.api.egress.v1.CountRulesReferencingSecretRequest + 34, // 42: agynio.api.egress.v1.EgressRulesService.CountRulesReferencingPrivateResource:input_type -> agynio.api.egress.v1.CountRulesReferencingPrivateResourceRequest + 36, // 43: agynio.api.egress.v1.EgressRulesService.ListMediatedPrivateResources:input_type -> agynio.api.egress.v1.ListMediatedPrivateResourcesRequest + 39, // 44: agynio.api.egress.v1.EgressRulesService.ListAttachedRuleDomains:input_type -> agynio.api.egress.v1.ListAttachedRuleDomainsRequest + 41, // 45: agynio.api.egress.v1.EgressRulesService.DeleteOrganizationResources:input_type -> agynio.api.egress.v1.DeleteOrganizationResourcesRequest + 12, // 46: agynio.api.egress.v1.EgressRulesService.CreateEgressRule:output_type -> agynio.api.egress.v1.CreateEgressRuleResponse + 14, // 47: agynio.api.egress.v1.EgressRulesService.GetEgressRule:output_type -> agynio.api.egress.v1.GetEgressRuleResponse + 16, // 48: agynio.api.egress.v1.EgressRulesService.ListEgressRules:output_type -> agynio.api.egress.v1.ListEgressRulesResponse + 18, // 49: agynio.api.egress.v1.EgressRulesService.UpdateEgressRule:output_type -> agynio.api.egress.v1.UpdateEgressRuleResponse + 20, // 50: agynio.api.egress.v1.EgressRulesService.DeleteEgressRule:output_type -> agynio.api.egress.v1.DeleteEgressRuleResponse + 22, // 51: agynio.api.egress.v1.EgressRulesService.CreateEgressRuleAttachment:output_type -> agynio.api.egress.v1.CreateEgressRuleAttachmentResponse + 24, // 52: agynio.api.egress.v1.EgressRulesService.DeleteEgressRuleAttachment:output_type -> agynio.api.egress.v1.DeleteEgressRuleAttachmentResponse + 26, // 53: agynio.api.egress.v1.EgressRulesService.ListEgressRuleAttachments:output_type -> agynio.api.egress.v1.ListEgressRuleAttachmentsResponse + 29, // 54: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByAgent:output_type -> agynio.api.egress.v1.ListEgressRulesByAgentResponse + 31, // 55: agynio.api.egress.v1.EgressRulesService.ListEgressRulesByEnvironment:output_type -> agynio.api.egress.v1.ListEgressRulesByEnvironmentResponse + 33, // 56: agynio.api.egress.v1.EgressRulesService.CountRulesReferencingSecret:output_type -> agynio.api.egress.v1.CountRulesReferencingSecretResponse + 35, // 57: agynio.api.egress.v1.EgressRulesService.CountRulesReferencingPrivateResource:output_type -> agynio.api.egress.v1.CountRulesReferencingPrivateResourceResponse + 37, // 58: agynio.api.egress.v1.EgressRulesService.ListMediatedPrivateResources:output_type -> agynio.api.egress.v1.ListMediatedPrivateResourcesResponse + 40, // 59: agynio.api.egress.v1.EgressRulesService.ListAttachedRuleDomains:output_type -> agynio.api.egress.v1.ListAttachedRuleDomainsResponse + 42, // 60: agynio.api.egress.v1.EgressRulesService.DeleteOrganizationResources:output_type -> agynio.api.egress.v1.DeleteOrganizationResourcesResponse + 46, // [46:61] is the sub-list for method output_type + 31, // [31:46] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name } func init() { file_agynio_api_egress_v1_egress_proto_init() } @@ -2015,27 +2874,38 @@ func file_agynio_api_egress_v1_egress_proto_init() { return } file_agynio_api_egress_v1_egress_proto_msgTypes[2].OneofWrappers = []any{ + (*EgressRuleUpstreamTls_CaBundleSecretId)(nil), + (*EgressRuleUpstreamTls_InsecureSkipVerify)(nil), + } + file_agynio_api_egress_v1_egress_proto_msgTypes[3].OneofWrappers = []any{ (*EgressRuleHeader_Value)(nil), (*EgressRuleHeader_SecretId)(nil), } - file_agynio_api_egress_v1_egress_proto_msgTypes[3].OneofWrappers = []any{} - file_agynio_api_egress_v1_egress_proto_msgTypes[5].OneofWrappers = []any{ + file_agynio_api_egress_v1_egress_proto_msgTypes[4].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[5].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[6].OneofWrappers = []any{ (*EgressRuleAttachment_EnvironmentId)(nil), (*EgressRuleAttachment_AgentTargetId)(nil), } - file_agynio_api_egress_v1_egress_proto_msgTypes[12].OneofWrappers = []any{} - file_agynio_api_egress_v1_egress_proto_msgTypes[16].OneofWrappers = []any{ + file_agynio_api_egress_v1_egress_proto_msgTypes[7].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[11].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[13].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[17].OneofWrappers = []any{ (*CreateEgressRuleAttachmentRequest_EnvironmentId)(nil), (*CreateEgressRuleAttachmentRequest_AgentTargetId)(nil), } - file_agynio_api_egress_v1_egress_proto_msgTypes[20].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[21].OneofWrappers = []any{} + file_agynio_api_egress_v1_egress_proto_msgTypes[35].OneofWrappers = []any{ + (*ListAttachedRuleDomainsRequest_AgentId)(nil), + (*ListAttachedRuleDomainsRequest_EnvironmentId)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_agynio_api_egress_v1_egress_proto_rawDesc), len(file_agynio_api_egress_v1_egress_proto_rawDesc)), - NumEnums: 2, - NumMessages: 28, + NumEnums: 4, + NumMessages: 41, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/agynio/api/egress/v1/egressv1connect/egress.connect.go b/gen/agynio/api/egress/v1/egressv1connect/egress.connect.go index 95a9df5..b4dbe5a 100644 --- a/gen/agynio/api/egress/v1/egressv1connect/egress.connect.go +++ b/gen/agynio/api/egress/v1/egressv1connect/egress.connect.go @@ -66,6 +66,18 @@ const ( // EgressRulesServiceCountRulesReferencingSecretProcedure is the fully-qualified name of the // EgressRulesService's CountRulesReferencingSecret RPC. EgressRulesServiceCountRulesReferencingSecretProcedure = "/agynio.api.egress.v1.EgressRulesService/CountRulesReferencingSecret" + // EgressRulesServiceCountRulesReferencingPrivateResourceProcedure is the fully-qualified name of + // the EgressRulesService's CountRulesReferencingPrivateResource RPC. + EgressRulesServiceCountRulesReferencingPrivateResourceProcedure = "/agynio.api.egress.v1.EgressRulesService/CountRulesReferencingPrivateResource" + // EgressRulesServiceListMediatedPrivateResourcesProcedure is the fully-qualified name of the + // EgressRulesService's ListMediatedPrivateResources RPC. + EgressRulesServiceListMediatedPrivateResourcesProcedure = "/agynio.api.egress.v1.EgressRulesService/ListMediatedPrivateResources" + // EgressRulesServiceListAttachedRuleDomainsProcedure is the fully-qualified name of the + // EgressRulesService's ListAttachedRuleDomains RPC. + EgressRulesServiceListAttachedRuleDomainsProcedure = "/agynio.api.egress.v1.EgressRulesService/ListAttachedRuleDomains" + // EgressRulesServiceDeleteOrganizationResourcesProcedure is the fully-qualified name of the + // EgressRulesService's DeleteOrganizationResources RPC. + EgressRulesServiceDeleteOrganizationResourcesProcedure = "/agynio.api.egress.v1.EgressRulesService/DeleteOrganizationResources" ) // EgressRulesServiceClient is a client for the agynio.api.egress.v1.EgressRulesService service. @@ -84,6 +96,10 @@ type EgressRulesServiceClient interface { ListEgressRulesByAgent(context.Context, *connect.Request[v1.ListEgressRulesByAgentRequest]) (*connect.Response[v1.ListEgressRulesByAgentResponse], error) ListEgressRulesByEnvironment(context.Context, *connect.Request[v1.ListEgressRulesByEnvironmentRequest]) (*connect.Response[v1.ListEgressRulesByEnvironmentResponse], error) CountRulesReferencingSecret(context.Context, *connect.Request[v1.CountRulesReferencingSecretRequest]) (*connect.Response[v1.CountRulesReferencingSecretResponse], error) + CountRulesReferencingPrivateResource(context.Context, *connect.Request[v1.CountRulesReferencingPrivateResourceRequest]) (*connect.Response[v1.CountRulesReferencingPrivateResourceResponse], error) + ListMediatedPrivateResources(context.Context, *connect.Request[v1.ListMediatedPrivateResourcesRequest]) (*connect.Response[v1.ListMediatedPrivateResourcesResponse], error) + ListAttachedRuleDomains(context.Context, *connect.Request[v1.ListAttachedRuleDomainsRequest]) (*connect.Response[v1.ListAttachedRuleDomainsResponse], error) + DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) } // NewEgressRulesServiceClient constructs a client for the agynio.api.egress.v1.EgressRulesService @@ -163,22 +179,50 @@ func NewEgressRulesServiceClient(httpClient connect.HTTPClient, baseURL string, connect.WithSchema(egressRulesServiceMethods.ByName("CountRulesReferencingSecret")), connect.WithClientOptions(opts...), ), + countRulesReferencingPrivateResource: connect.NewClient[v1.CountRulesReferencingPrivateResourceRequest, v1.CountRulesReferencingPrivateResourceResponse]( + httpClient, + baseURL+EgressRulesServiceCountRulesReferencingPrivateResourceProcedure, + connect.WithSchema(egressRulesServiceMethods.ByName("CountRulesReferencingPrivateResource")), + connect.WithClientOptions(opts...), + ), + listMediatedPrivateResources: connect.NewClient[v1.ListMediatedPrivateResourcesRequest, v1.ListMediatedPrivateResourcesResponse]( + httpClient, + baseURL+EgressRulesServiceListMediatedPrivateResourcesProcedure, + connect.WithSchema(egressRulesServiceMethods.ByName("ListMediatedPrivateResources")), + connect.WithClientOptions(opts...), + ), + listAttachedRuleDomains: connect.NewClient[v1.ListAttachedRuleDomainsRequest, v1.ListAttachedRuleDomainsResponse]( + httpClient, + baseURL+EgressRulesServiceListAttachedRuleDomainsProcedure, + connect.WithSchema(egressRulesServiceMethods.ByName("ListAttachedRuleDomains")), + connect.WithClientOptions(opts...), + ), + deleteOrganizationResources: connect.NewClient[v1.DeleteOrganizationResourcesRequest, v1.DeleteOrganizationResourcesResponse]( + httpClient, + baseURL+EgressRulesServiceDeleteOrganizationResourcesProcedure, + connect.WithSchema(egressRulesServiceMethods.ByName("DeleteOrganizationResources")), + connect.WithClientOptions(opts...), + ), } } // egressRulesServiceClient implements EgressRulesServiceClient. type egressRulesServiceClient struct { - createEgressRule *connect.Client[v1.CreateEgressRuleRequest, v1.CreateEgressRuleResponse] - getEgressRule *connect.Client[v1.GetEgressRuleRequest, v1.GetEgressRuleResponse] - listEgressRules *connect.Client[v1.ListEgressRulesRequest, v1.ListEgressRulesResponse] - updateEgressRule *connect.Client[v1.UpdateEgressRuleRequest, v1.UpdateEgressRuleResponse] - deleteEgressRule *connect.Client[v1.DeleteEgressRuleRequest, v1.DeleteEgressRuleResponse] - createEgressRuleAttachment *connect.Client[v1.CreateEgressRuleAttachmentRequest, v1.CreateEgressRuleAttachmentResponse] - deleteEgressRuleAttachment *connect.Client[v1.DeleteEgressRuleAttachmentRequest, v1.DeleteEgressRuleAttachmentResponse] - listEgressRuleAttachments *connect.Client[v1.ListEgressRuleAttachmentsRequest, v1.ListEgressRuleAttachmentsResponse] - listEgressRulesByAgent *connect.Client[v1.ListEgressRulesByAgentRequest, v1.ListEgressRulesByAgentResponse] - listEgressRulesByEnvironment *connect.Client[v1.ListEgressRulesByEnvironmentRequest, v1.ListEgressRulesByEnvironmentResponse] - countRulesReferencingSecret *connect.Client[v1.CountRulesReferencingSecretRequest, v1.CountRulesReferencingSecretResponse] + createEgressRule *connect.Client[v1.CreateEgressRuleRequest, v1.CreateEgressRuleResponse] + getEgressRule *connect.Client[v1.GetEgressRuleRequest, v1.GetEgressRuleResponse] + listEgressRules *connect.Client[v1.ListEgressRulesRequest, v1.ListEgressRulesResponse] + updateEgressRule *connect.Client[v1.UpdateEgressRuleRequest, v1.UpdateEgressRuleResponse] + deleteEgressRule *connect.Client[v1.DeleteEgressRuleRequest, v1.DeleteEgressRuleResponse] + createEgressRuleAttachment *connect.Client[v1.CreateEgressRuleAttachmentRequest, v1.CreateEgressRuleAttachmentResponse] + deleteEgressRuleAttachment *connect.Client[v1.DeleteEgressRuleAttachmentRequest, v1.DeleteEgressRuleAttachmentResponse] + listEgressRuleAttachments *connect.Client[v1.ListEgressRuleAttachmentsRequest, v1.ListEgressRuleAttachmentsResponse] + listEgressRulesByAgent *connect.Client[v1.ListEgressRulesByAgentRequest, v1.ListEgressRulesByAgentResponse] + listEgressRulesByEnvironment *connect.Client[v1.ListEgressRulesByEnvironmentRequest, v1.ListEgressRulesByEnvironmentResponse] + countRulesReferencingSecret *connect.Client[v1.CountRulesReferencingSecretRequest, v1.CountRulesReferencingSecretResponse] + countRulesReferencingPrivateResource *connect.Client[v1.CountRulesReferencingPrivateResourceRequest, v1.CountRulesReferencingPrivateResourceResponse] + listMediatedPrivateResources *connect.Client[v1.ListMediatedPrivateResourcesRequest, v1.ListMediatedPrivateResourcesResponse] + listAttachedRuleDomains *connect.Client[v1.ListAttachedRuleDomainsRequest, v1.ListAttachedRuleDomainsResponse] + deleteOrganizationResources *connect.Client[v1.DeleteOrganizationResourcesRequest, v1.DeleteOrganizationResourcesResponse] } // CreateEgressRule calls agynio.api.egress.v1.EgressRulesService.CreateEgressRule. @@ -241,6 +285,29 @@ func (c *egressRulesServiceClient) CountRulesReferencingSecret(ctx context.Conte return c.countRulesReferencingSecret.CallUnary(ctx, req) } +// CountRulesReferencingPrivateResource calls +// agynio.api.egress.v1.EgressRulesService.CountRulesReferencingPrivateResource. +func (c *egressRulesServiceClient) CountRulesReferencingPrivateResource(ctx context.Context, req *connect.Request[v1.CountRulesReferencingPrivateResourceRequest]) (*connect.Response[v1.CountRulesReferencingPrivateResourceResponse], error) { + return c.countRulesReferencingPrivateResource.CallUnary(ctx, req) +} + +// ListMediatedPrivateResources calls +// agynio.api.egress.v1.EgressRulesService.ListMediatedPrivateResources. +func (c *egressRulesServiceClient) ListMediatedPrivateResources(ctx context.Context, req *connect.Request[v1.ListMediatedPrivateResourcesRequest]) (*connect.Response[v1.ListMediatedPrivateResourcesResponse], error) { + return c.listMediatedPrivateResources.CallUnary(ctx, req) +} + +// ListAttachedRuleDomains calls agynio.api.egress.v1.EgressRulesService.ListAttachedRuleDomains. +func (c *egressRulesServiceClient) ListAttachedRuleDomains(ctx context.Context, req *connect.Request[v1.ListAttachedRuleDomainsRequest]) (*connect.Response[v1.ListAttachedRuleDomainsResponse], error) { + return c.listAttachedRuleDomains.CallUnary(ctx, req) +} + +// DeleteOrganizationResources calls +// agynio.api.egress.v1.EgressRulesService.DeleteOrganizationResources. +func (c *egressRulesServiceClient) DeleteOrganizationResources(ctx context.Context, req *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) { + return c.deleteOrganizationResources.CallUnary(ctx, req) +} + // EgressRulesServiceHandler is an implementation of the agynio.api.egress.v1.EgressRulesService // service. type EgressRulesServiceHandler interface { @@ -258,6 +325,10 @@ type EgressRulesServiceHandler interface { ListEgressRulesByAgent(context.Context, *connect.Request[v1.ListEgressRulesByAgentRequest]) (*connect.Response[v1.ListEgressRulesByAgentResponse], error) ListEgressRulesByEnvironment(context.Context, *connect.Request[v1.ListEgressRulesByEnvironmentRequest]) (*connect.Response[v1.ListEgressRulesByEnvironmentResponse], error) CountRulesReferencingSecret(context.Context, *connect.Request[v1.CountRulesReferencingSecretRequest]) (*connect.Response[v1.CountRulesReferencingSecretResponse], error) + CountRulesReferencingPrivateResource(context.Context, *connect.Request[v1.CountRulesReferencingPrivateResourceRequest]) (*connect.Response[v1.CountRulesReferencingPrivateResourceResponse], error) + ListMediatedPrivateResources(context.Context, *connect.Request[v1.ListMediatedPrivateResourcesRequest]) (*connect.Response[v1.ListMediatedPrivateResourcesResponse], error) + ListAttachedRuleDomains(context.Context, *connect.Request[v1.ListAttachedRuleDomainsRequest]) (*connect.Response[v1.ListAttachedRuleDomainsResponse], error) + DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) } // NewEgressRulesServiceHandler builds an HTTP handler from the service implementation. It returns @@ -333,6 +404,30 @@ func NewEgressRulesServiceHandler(svc EgressRulesServiceHandler, opts ...connect connect.WithSchema(egressRulesServiceMethods.ByName("CountRulesReferencingSecret")), connect.WithHandlerOptions(opts...), ) + egressRulesServiceCountRulesReferencingPrivateResourceHandler := connect.NewUnaryHandler( + EgressRulesServiceCountRulesReferencingPrivateResourceProcedure, + svc.CountRulesReferencingPrivateResource, + connect.WithSchema(egressRulesServiceMethods.ByName("CountRulesReferencingPrivateResource")), + connect.WithHandlerOptions(opts...), + ) + egressRulesServiceListMediatedPrivateResourcesHandler := connect.NewUnaryHandler( + EgressRulesServiceListMediatedPrivateResourcesProcedure, + svc.ListMediatedPrivateResources, + connect.WithSchema(egressRulesServiceMethods.ByName("ListMediatedPrivateResources")), + connect.WithHandlerOptions(opts...), + ) + egressRulesServiceListAttachedRuleDomainsHandler := connect.NewUnaryHandler( + EgressRulesServiceListAttachedRuleDomainsProcedure, + svc.ListAttachedRuleDomains, + connect.WithSchema(egressRulesServiceMethods.ByName("ListAttachedRuleDomains")), + connect.WithHandlerOptions(opts...), + ) + egressRulesServiceDeleteOrganizationResourcesHandler := connect.NewUnaryHandler( + EgressRulesServiceDeleteOrganizationResourcesProcedure, + svc.DeleteOrganizationResources, + connect.WithSchema(egressRulesServiceMethods.ByName("DeleteOrganizationResources")), + connect.WithHandlerOptions(opts...), + ) return "/agynio.api.egress.v1.EgressRulesService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case EgressRulesServiceCreateEgressRuleProcedure: @@ -357,6 +452,14 @@ func NewEgressRulesServiceHandler(svc EgressRulesServiceHandler, opts ...connect egressRulesServiceListEgressRulesByEnvironmentHandler.ServeHTTP(w, r) case EgressRulesServiceCountRulesReferencingSecretProcedure: egressRulesServiceCountRulesReferencingSecretHandler.ServeHTTP(w, r) + case EgressRulesServiceCountRulesReferencingPrivateResourceProcedure: + egressRulesServiceCountRulesReferencingPrivateResourceHandler.ServeHTTP(w, r) + case EgressRulesServiceListMediatedPrivateResourcesProcedure: + egressRulesServiceListMediatedPrivateResourcesHandler.ServeHTTP(w, r) + case EgressRulesServiceListAttachedRuleDomainsProcedure: + egressRulesServiceListAttachedRuleDomainsHandler.ServeHTTP(w, r) + case EgressRulesServiceDeleteOrganizationResourcesProcedure: + egressRulesServiceDeleteOrganizationResourcesHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -409,3 +512,19 @@ func (UnimplementedEgressRulesServiceHandler) ListEgressRulesByEnvironment(conte func (UnimplementedEgressRulesServiceHandler) CountRulesReferencingSecret(context.Context, *connect.Request[v1.CountRulesReferencingSecretRequest]) (*connect.Response[v1.CountRulesReferencingSecretResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.egress.v1.EgressRulesService.CountRulesReferencingSecret is not implemented")) } + +func (UnimplementedEgressRulesServiceHandler) CountRulesReferencingPrivateResource(context.Context, *connect.Request[v1.CountRulesReferencingPrivateResourceRequest]) (*connect.Response[v1.CountRulesReferencingPrivateResourceResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.egress.v1.EgressRulesService.CountRulesReferencingPrivateResource is not implemented")) +} + +func (UnimplementedEgressRulesServiceHandler) ListMediatedPrivateResources(context.Context, *connect.Request[v1.ListMediatedPrivateResourcesRequest]) (*connect.Response[v1.ListMediatedPrivateResourcesResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.egress.v1.EgressRulesService.ListMediatedPrivateResources is not implemented")) +} + +func (UnimplementedEgressRulesServiceHandler) ListAttachedRuleDomains(context.Context, *connect.Request[v1.ListAttachedRuleDomainsRequest]) (*connect.Response[v1.ListAttachedRuleDomainsResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.egress.v1.EgressRulesService.ListAttachedRuleDomains is not implemented")) +} + +func (UnimplementedEgressRulesServiceHandler) DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.egress.v1.EgressRulesService.DeleteOrganizationResources is not implemented")) +} diff --git a/gen/agynio/api/groups/v1/groups.pb.go b/gen/agynio/api/groups/v1/groups.pb.go index 673bcf5..4bd7c71 100644 --- a/gen/agynio/api/groups/v1/groups.pb.go +++ b/gen/agynio/api/groups/v1/groups.pb.go @@ -1456,6 +1456,86 @@ func (x *ListMemberGroupsBatchResponse) GetEntries() []*ListMemberGroupsBatchEnt return nil } +type DeleteOrganizationResourcesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResourcesRequest) Reset() { + *x = DeleteOrganizationResourcesRequest{} + mi := &file_agynio_api_groups_v1_groups_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResourcesRequest) ProtoMessage() {} + +func (x *DeleteOrganizationResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_groups_v1_groups_proto_msgTypes[24] + 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 DeleteOrganizationResourcesRequest.ProtoReflect.Descriptor instead. +func (*DeleteOrganizationResourcesRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_groups_v1_groups_proto_rawDescGZIP(), []int{24} +} + +func (x *DeleteOrganizationResourcesRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type DeleteOrganizationResourcesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResourcesResponse) Reset() { + *x = DeleteOrganizationResourcesResponse{} + mi := &file_agynio_api_groups_v1_groups_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResourcesResponse) ProtoMessage() {} + +func (x *DeleteOrganizationResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_groups_v1_groups_proto_msgTypes[25] + 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 DeleteOrganizationResourcesResponse.ProtoReflect.Descriptor instead. +func (*DeleteOrganizationResourcesResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_groups_v1_groups_proto_rawDescGZIP(), []int{25} +} + var File_agynio_api_groups_v1_groups_proto protoreflect.FileDescriptor const file_agynio_api_groups_v1_groups_proto_rawDesc = "" + @@ -1563,7 +1643,10 @@ const file_agynio_api_groups_v1_groups_proto_rawDesc = "" + "\tmember_id\x18\x02 \x01(\tR\bmemberId\x123\n" + "\x06groups\x18\x03 \x03(\v2\x1b.agynio.api.groups.v1.GroupR\x06groups\"k\n" + "\x1dListMemberGroupsBatchResponse\x12J\n" + - "\aentries\x18\x01 \x03(\v20.agynio.api.groups.v1.ListMemberGroupsBatchEntryR\aentries*]\n" + + "\aentries\x18\x01 \x03(\v20.agynio.api.groups.v1.ListMemberGroupsBatchEntryR\aentries\"M\n" + + "\"DeleteOrganizationResourcesRequest\x12'\n" + + "\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"%\n" + + "#DeleteOrganizationResourcesResponse*]\n" + "\vGroupSource\x12\x1c\n" + "\x18GROUP_SOURCE_UNSPECIFIED\x10\x00\x12\x19\n" + "\x15GROUP_SOURCE_PLATFORM\x10\x01\x12\x15\n" + @@ -1572,7 +1655,7 @@ const file_agynio_api_groups_v1_groups_proto_rawDesc = "" + "\x1dGROUP_MEMBER_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n" + "\x16GROUP_MEMBER_TYPE_USER\x10\x01\x12\x1b\n" + "\x17GROUP_MEMBER_TYPE_AGENT\x10\x02\x12\x19\n" + - "\x15GROUP_MEMBER_TYPE_APP\x10\x032\x96\b\n" + + "\x15GROUP_MEMBER_TYPE_APP\x10\x032\xab\t\n" + "\rGroupsService\x12b\n" + "\vCreateGroup\x12(.agynio.api.groups.v1.CreateGroupRequest\x1a).agynio.api.groups.v1.CreateGroupResponse\x12Y\n" + "\bGetGroup\x12%.agynio.api.groups.v1.GetGroupRequest\x1a&.agynio.api.groups.v1.GetGroupResponse\x12_\n" + @@ -1584,7 +1667,8 @@ const file_agynio_api_groups_v1_groups_proto_rawDesc = "" + "\fRemoveMember\x12).agynio.api.groups.v1.RemoveMemberRequest\x1a*.agynio.api.groups.v1.RemoveMemberResponse\x12b\n" + "\vListMembers\x12(.agynio.api.groups.v1.ListMembersRequest\x1a).agynio.api.groups.v1.ListMembersResponse\x12q\n" + "\x10ListMemberGroups\x12-.agynio.api.groups.v1.ListMemberGroupsRequest\x1a..agynio.api.groups.v1.ListMemberGroupsResponse\x12\x80\x01\n" + - "\x15ListMemberGroupsBatch\x122.agynio.api.groups.v1.ListMemberGroupsBatchRequest\x1a3.agynio.api.groups.v1.ListMemberGroupsBatchResponseB\xd8\x01\n" + + "\x15ListMemberGroupsBatch\x122.agynio.api.groups.v1.ListMemberGroupsBatchRequest\x1a3.agynio.api.groups.v1.ListMemberGroupsBatchResponse\x12\x92\x01\n" + + "\x1bDeleteOrganizationResources\x128.agynio.api.groups.v1.DeleteOrganizationResourcesRequest\x1a9.agynio.api.groups.v1.DeleteOrganizationResourcesResponseB\xd8\x01\n" + "\x18com.agynio.api.groups.v1B\vGroupsProtoP\x01Z google.protobuf.Timestamp - 26, // 1: agynio.api.groups.v1.EntityMeta.updated_at:type_name -> google.protobuf.Timestamp + 28, // 0: agynio.api.groups.v1.EntityMeta.created_at:type_name -> google.protobuf.Timestamp + 28, // 1: agynio.api.groups.v1.EntityMeta.updated_at:type_name -> google.protobuf.Timestamp 2, // 2: agynio.api.groups.v1.Group.meta:type_name -> agynio.api.groups.v1.EntityMeta 0, // 3: agynio.api.groups.v1.Group.source:type_name -> agynio.api.groups.v1.GroupSource 2, // 4: agynio.api.groups.v1.GroupMembership.meta:type_name -> agynio.api.groups.v1.EntityMeta @@ -1665,18 +1751,20 @@ var file_agynio_api_groups_v1_groups_proto_depIdxs = []int32{ 19, // 31: agynio.api.groups.v1.GroupsService.ListMembers:input_type -> agynio.api.groups.v1.ListMembersRequest 21, // 32: agynio.api.groups.v1.GroupsService.ListMemberGroups:input_type -> agynio.api.groups.v1.ListMemberGroupsRequest 23, // 33: agynio.api.groups.v1.GroupsService.ListMemberGroupsBatch:input_type -> agynio.api.groups.v1.ListMemberGroupsBatchRequest - 6, // 34: agynio.api.groups.v1.GroupsService.CreateGroup:output_type -> agynio.api.groups.v1.CreateGroupResponse - 8, // 35: agynio.api.groups.v1.GroupsService.GetGroup:output_type -> agynio.api.groups.v1.GetGroupResponse - 10, // 36: agynio.api.groups.v1.GroupsService.ListGroups:output_type -> agynio.api.groups.v1.ListGroupsResponse - 12, // 37: agynio.api.groups.v1.GroupsService.UpdateGroup:output_type -> agynio.api.groups.v1.UpdateGroupResponse - 14, // 38: agynio.api.groups.v1.GroupsService.DeleteGroup:output_type -> agynio.api.groups.v1.DeleteGroupResponse - 16, // 39: agynio.api.groups.v1.GroupsService.AddMember:output_type -> agynio.api.groups.v1.AddMemberResponse - 18, // 40: agynio.api.groups.v1.GroupsService.RemoveMember:output_type -> agynio.api.groups.v1.RemoveMemberResponse - 20, // 41: agynio.api.groups.v1.GroupsService.ListMembers:output_type -> agynio.api.groups.v1.ListMembersResponse - 22, // 42: agynio.api.groups.v1.GroupsService.ListMemberGroups:output_type -> agynio.api.groups.v1.ListMemberGroupsResponse - 25, // 43: agynio.api.groups.v1.GroupsService.ListMemberGroupsBatch:output_type -> agynio.api.groups.v1.ListMemberGroupsBatchResponse - 34, // [34:44] is the sub-list for method output_type - 24, // [24:34] is the sub-list for method input_type + 26, // 34: agynio.api.groups.v1.GroupsService.DeleteOrganizationResources:input_type -> agynio.api.groups.v1.DeleteOrganizationResourcesRequest + 6, // 35: agynio.api.groups.v1.GroupsService.CreateGroup:output_type -> agynio.api.groups.v1.CreateGroupResponse + 8, // 36: agynio.api.groups.v1.GroupsService.GetGroup:output_type -> agynio.api.groups.v1.GetGroupResponse + 10, // 37: agynio.api.groups.v1.GroupsService.ListGroups:output_type -> agynio.api.groups.v1.ListGroupsResponse + 12, // 38: agynio.api.groups.v1.GroupsService.UpdateGroup:output_type -> agynio.api.groups.v1.UpdateGroupResponse + 14, // 39: agynio.api.groups.v1.GroupsService.DeleteGroup:output_type -> agynio.api.groups.v1.DeleteGroupResponse + 16, // 40: agynio.api.groups.v1.GroupsService.AddMember:output_type -> agynio.api.groups.v1.AddMemberResponse + 18, // 41: agynio.api.groups.v1.GroupsService.RemoveMember:output_type -> agynio.api.groups.v1.RemoveMemberResponse + 20, // 42: agynio.api.groups.v1.GroupsService.ListMembers:output_type -> agynio.api.groups.v1.ListMembersResponse + 22, // 43: agynio.api.groups.v1.GroupsService.ListMemberGroups:output_type -> agynio.api.groups.v1.ListMemberGroupsResponse + 25, // 44: agynio.api.groups.v1.GroupsService.ListMemberGroupsBatch:output_type -> agynio.api.groups.v1.ListMemberGroupsBatchResponse + 27, // 45: agynio.api.groups.v1.GroupsService.DeleteOrganizationResources:output_type -> agynio.api.groups.v1.DeleteOrganizationResourcesResponse + 35, // [35:46] is the sub-list for method output_type + 24, // [24:35] 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 @@ -1698,7 +1786,7 @@ func file_agynio_api_groups_v1_groups_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_agynio_api_groups_v1_groups_proto_rawDesc), len(file_agynio_api_groups_v1_groups_proto_rawDesc)), NumEnums: 2, - NumMessages: 24, + NumMessages: 26, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/agynio/api/groups/v1/groupsv1connect/groups.connect.go b/gen/agynio/api/groups/v1/groupsv1connect/groups.connect.go index f79da88..3cf380e 100644 --- a/gen/agynio/api/groups/v1/groupsv1connect/groups.connect.go +++ b/gen/agynio/api/groups/v1/groupsv1connect/groups.connect.go @@ -61,6 +61,9 @@ const ( // GroupsServiceListMemberGroupsBatchProcedure is the fully-qualified name of the GroupsService's // ListMemberGroupsBatch RPC. GroupsServiceListMemberGroupsBatchProcedure = "/agynio.api.groups.v1.GroupsService/ListMemberGroupsBatch" + // GroupsServiceDeleteOrganizationResourcesProcedure is the fully-qualified name of the + // GroupsService's DeleteOrganizationResources RPC. + GroupsServiceDeleteOrganizationResourcesProcedure = "/agynio.api.groups.v1.GroupsService/DeleteOrganizationResources" ) // GroupsServiceClient is a client for the agynio.api.groups.v1.GroupsService service. @@ -78,6 +81,7 @@ type GroupsServiceClient interface { ListMemberGroups(context.Context, *connect.Request[v1.ListMemberGroupsRequest]) (*connect.Response[v1.ListMemberGroupsResponse], error) // --- Internal --- ListMemberGroupsBatch(context.Context, *connect.Request[v1.ListMemberGroupsBatchRequest]) (*connect.Response[v1.ListMemberGroupsBatchResponse], error) + DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) } // NewGroupsServiceClient constructs a client for the agynio.api.groups.v1.GroupsService service. By @@ -151,21 +155,28 @@ func NewGroupsServiceClient(httpClient connect.HTTPClient, baseURL string, opts connect.WithSchema(groupsServiceMethods.ByName("ListMemberGroupsBatch")), connect.WithClientOptions(opts...), ), + deleteOrganizationResources: connect.NewClient[v1.DeleteOrganizationResourcesRequest, v1.DeleteOrganizationResourcesResponse]( + httpClient, + baseURL+GroupsServiceDeleteOrganizationResourcesProcedure, + connect.WithSchema(groupsServiceMethods.ByName("DeleteOrganizationResources")), + connect.WithClientOptions(opts...), + ), } } // groupsServiceClient implements GroupsServiceClient. type groupsServiceClient struct { - createGroup *connect.Client[v1.CreateGroupRequest, v1.CreateGroupResponse] - getGroup *connect.Client[v1.GetGroupRequest, v1.GetGroupResponse] - listGroups *connect.Client[v1.ListGroupsRequest, v1.ListGroupsResponse] - updateGroup *connect.Client[v1.UpdateGroupRequest, v1.UpdateGroupResponse] - deleteGroup *connect.Client[v1.DeleteGroupRequest, v1.DeleteGroupResponse] - addMember *connect.Client[v1.AddMemberRequest, v1.AddMemberResponse] - removeMember *connect.Client[v1.RemoveMemberRequest, v1.RemoveMemberResponse] - listMembers *connect.Client[v1.ListMembersRequest, v1.ListMembersResponse] - listMemberGroups *connect.Client[v1.ListMemberGroupsRequest, v1.ListMemberGroupsResponse] - listMemberGroupsBatch *connect.Client[v1.ListMemberGroupsBatchRequest, v1.ListMemberGroupsBatchResponse] + createGroup *connect.Client[v1.CreateGroupRequest, v1.CreateGroupResponse] + getGroup *connect.Client[v1.GetGroupRequest, v1.GetGroupResponse] + listGroups *connect.Client[v1.ListGroupsRequest, v1.ListGroupsResponse] + updateGroup *connect.Client[v1.UpdateGroupRequest, v1.UpdateGroupResponse] + deleteGroup *connect.Client[v1.DeleteGroupRequest, v1.DeleteGroupResponse] + addMember *connect.Client[v1.AddMemberRequest, v1.AddMemberResponse] + removeMember *connect.Client[v1.RemoveMemberRequest, v1.RemoveMemberResponse] + listMembers *connect.Client[v1.ListMembersRequest, v1.ListMembersResponse] + listMemberGroups *connect.Client[v1.ListMemberGroupsRequest, v1.ListMemberGroupsResponse] + listMemberGroupsBatch *connect.Client[v1.ListMemberGroupsBatchRequest, v1.ListMemberGroupsBatchResponse] + deleteOrganizationResources *connect.Client[v1.DeleteOrganizationResourcesRequest, v1.DeleteOrganizationResourcesResponse] } // CreateGroup calls agynio.api.groups.v1.GroupsService.CreateGroup. @@ -218,6 +229,11 @@ func (c *groupsServiceClient) ListMemberGroupsBatch(ctx context.Context, req *co return c.listMemberGroupsBatch.CallUnary(ctx, req) } +// DeleteOrganizationResources calls agynio.api.groups.v1.GroupsService.DeleteOrganizationResources. +func (c *groupsServiceClient) DeleteOrganizationResources(ctx context.Context, req *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) { + return c.deleteOrganizationResources.CallUnary(ctx, req) +} + // GroupsServiceHandler is an implementation of the agynio.api.groups.v1.GroupsService service. type GroupsServiceHandler interface { // --- Groups --- @@ -233,6 +249,7 @@ type GroupsServiceHandler interface { ListMemberGroups(context.Context, *connect.Request[v1.ListMemberGroupsRequest]) (*connect.Response[v1.ListMemberGroupsResponse], error) // --- Internal --- ListMemberGroupsBatch(context.Context, *connect.Request[v1.ListMemberGroupsBatchRequest]) (*connect.Response[v1.ListMemberGroupsBatchResponse], error) + DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) } // NewGroupsServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -302,6 +319,12 @@ func NewGroupsServiceHandler(svc GroupsServiceHandler, opts ...connect.HandlerOp connect.WithSchema(groupsServiceMethods.ByName("ListMemberGroupsBatch")), connect.WithHandlerOptions(opts...), ) + groupsServiceDeleteOrganizationResourcesHandler := connect.NewUnaryHandler( + GroupsServiceDeleteOrganizationResourcesProcedure, + svc.DeleteOrganizationResources, + connect.WithSchema(groupsServiceMethods.ByName("DeleteOrganizationResources")), + connect.WithHandlerOptions(opts...), + ) return "/agynio.api.groups.v1.GroupsService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case GroupsServiceCreateGroupProcedure: @@ -324,6 +347,8 @@ func NewGroupsServiceHandler(svc GroupsServiceHandler, opts ...connect.HandlerOp groupsServiceListMemberGroupsHandler.ServeHTTP(w, r) case GroupsServiceListMemberGroupsBatchProcedure: groupsServiceListMemberGroupsBatchHandler.ServeHTTP(w, r) + case GroupsServiceDeleteOrganizationResourcesProcedure: + groupsServiceDeleteOrganizationResourcesHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -372,3 +397,7 @@ func (UnimplementedGroupsServiceHandler) ListMemberGroups(context.Context, *conn func (UnimplementedGroupsServiceHandler) ListMemberGroupsBatch(context.Context, *connect.Request[v1.ListMemberGroupsBatchRequest]) (*connect.Response[v1.ListMemberGroupsBatchResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.groups.v1.GroupsService.ListMemberGroupsBatch is not implemented")) } + +func (UnimplementedGroupsServiceHandler) DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.groups.v1.GroupsService.DeleteOrganizationResources is not implemented")) +} diff --git a/gen/agynio/api/networks/v1/networks.pb.go b/gen/agynio/api/networks/v1/networks.pb.go index 12c685f..e05c397 100644 --- a/gen/agynio/api/networks/v1/networks.pb.go +++ b/gen/agynio/api/networks/v1/networks.pb.go @@ -228,6 +228,55 @@ func (PrivateResourceProtocol) EnumDescriptor() ([]byte, []int) { return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{3} } +type PrivateResourceMediation int32 + +const ( + PrivateResourceMediation_PRIVATE_RESOURCE_MEDIATION_UNSPECIFIED PrivateResourceMediation = 0 + PrivateResourceMediation_PRIVATE_RESOURCE_MEDIATION_TUNNEL PrivateResourceMediation = 1 + PrivateResourceMediation_PRIVATE_RESOURCE_MEDIATION_EGRESS_GATEWAY PrivateResourceMediation = 2 +) + +// Enum value maps for PrivateResourceMediation. +var ( + PrivateResourceMediation_name = map[int32]string{ + 0: "PRIVATE_RESOURCE_MEDIATION_UNSPECIFIED", + 1: "PRIVATE_RESOURCE_MEDIATION_TUNNEL", + 2: "PRIVATE_RESOURCE_MEDIATION_EGRESS_GATEWAY", + } + PrivateResourceMediation_value = map[string]int32{ + "PRIVATE_RESOURCE_MEDIATION_UNSPECIFIED": 0, + "PRIVATE_RESOURCE_MEDIATION_TUNNEL": 1, + "PRIVATE_RESOURCE_MEDIATION_EGRESS_GATEWAY": 2, + } +) + +func (x PrivateResourceMediation) Enum() *PrivateResourceMediation { + p := new(PrivateResourceMediation) + *p = x + return p +} + +func (x PrivateResourceMediation) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PrivateResourceMediation) Descriptor() protoreflect.EnumDescriptor { + return file_agynio_api_networks_v1_networks_proto_enumTypes[4].Descriptor() +} + +func (PrivateResourceMediation) Type() protoreflect.EnumType { + return &file_agynio_api_networks_v1_networks_proto_enumTypes[4] +} + +func (x PrivateResourceMediation) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PrivateResourceMediation.Descriptor instead. +func (PrivateResourceMediation) EnumDescriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{4} +} + // Principal types eligible for private resource access. type PrivateResourceAccessPrincipalType int32 @@ -271,11 +320,11 @@ func (x PrivateResourceAccessPrincipalType) String() string { } func (PrivateResourceAccessPrincipalType) Descriptor() protoreflect.EnumDescriptor { - return file_agynio_api_networks_v1_networks_proto_enumTypes[4].Descriptor() + return file_agynio_api_networks_v1_networks_proto_enumTypes[5].Descriptor() } func (PrivateResourceAccessPrincipalType) Type() protoreflect.EnumType { - return &file_agynio_api_networks_v1_networks_proto_enumTypes[4] + return &file_agynio_api_networks_v1_networks_proto_enumTypes[5] } func (x PrivateResourceAccessPrincipalType) Number() protoreflect.EnumNumber { @@ -284,7 +333,7 @@ func (x PrivateResourceAccessPrincipalType) Number() protoreflect.EnumNumber { // Deprecated: Use PrivateResourceAccessPrincipalType.Descriptor instead. func (PrivateResourceAccessPrincipalType) EnumDescriptor() ([]byte, []int) { - return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{4} + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{5} } // Metadata shared by network resources. @@ -548,8 +597,9 @@ type PrivateResource struct { TargetPorts []int32 `protobuf:"varint,7,rep,packed,name=target_ports,json=targetPorts,proto3" json:"target_ports,omitempty"` InterceptHost string `protobuf:"bytes,8,opt,name=intercept_host,json=interceptHost,proto3" json:"intercept_host,omitempty"` // Numeric intercept ports. Each value must be in the range 1..65535. - InterceptPorts []int32 `protobuf:"varint,9,rep,packed,name=intercept_ports,json=interceptPorts,proto3" json:"intercept_ports,omitempty"` - ProvisioningState ProvisioningState `protobuf:"varint,10,opt,name=provisioning_state,json=provisioningState,proto3,enum=agynio.api.networks.v1.ProvisioningState" json:"provisioning_state,omitempty"` + InterceptPorts []int32 `protobuf:"varint,9,rep,packed,name=intercept_ports,json=interceptPorts,proto3" json:"intercept_ports,omitempty"` + ProvisioningState ProvisioningState `protobuf:"varint,10,opt,name=provisioning_state,json=provisioningState,proto3,enum=agynio.api.networks.v1.ProvisioningState" json:"provisioning_state,omitempty"` + Mediation PrivateResourceMediation `protobuf:"varint,11,opt,name=mediation,proto3,enum=agynio.api.networks.v1.PrivateResourceMediation" json:"mediation,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -654,6 +704,13 @@ func (x *PrivateResource) GetProvisioningState() ProvisioningState { return ProvisioningState_PROVISIONING_STATE_UNSPECIFIED } +func (x *PrivateResource) GetMediation() PrivateResourceMediation { + if x != nil { + return x.Mediation + } + return PrivateResourceMediation_PRIVATE_RESOURCE_MEDIATION_UNSPECIFIED +} + // Immutable grant authorizing a principal to dial a private resource. type PrivateResourceAccess struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -2548,6 +2605,430 @@ func (x *ListPrivateResourceAccessResponse) GetNextPageToken() string { return "" } +type SetPrivateResourceMediationRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Mediation PrivateResourceMediation `protobuf:"varint,2,opt,name=mediation,proto3,enum=agynio.api.networks.v1.PrivateResourceMediation" json:"mediation,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetPrivateResourceMediationRequest) Reset() { + *x = SetPrivateResourceMediationRequest{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetPrivateResourceMediationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetPrivateResourceMediationRequest) ProtoMessage() {} + +func (x *SetPrivateResourceMediationRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[40] + 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 SetPrivateResourceMediationRequest.ProtoReflect.Descriptor instead. +func (*SetPrivateResourceMediationRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{40} +} + +func (x *SetPrivateResourceMediationRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *SetPrivateResourceMediationRequest) GetMediation() PrivateResourceMediation { + if x != nil { + return x.Mediation + } + return PrivateResourceMediation_PRIVATE_RESOURCE_MEDIATION_UNSPECIFIED +} + +type SetPrivateResourceMediationResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + PrivateResource *PrivateResource `protobuf:"bytes,1,opt,name=private_resource,json=privateResource,proto3" json:"private_resource,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SetPrivateResourceMediationResponse) Reset() { + *x = SetPrivateResourceMediationResponse{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SetPrivateResourceMediationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetPrivateResourceMediationResponse) ProtoMessage() {} + +func (x *SetPrivateResourceMediationResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[41] + 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 SetPrivateResourceMediationResponse.ProtoReflect.Descriptor instead. +func (*SetPrivateResourceMediationResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{41} +} + +func (x *SetPrivateResourceMediationResponse) GetPrivateResource() *PrivateResource { + if x != nil { + return x.PrivateResource + } + return nil +} + +type ReachablePrivateResourceGrant struct { + state protoimpl.MessageState `protogen:"open.v1"` + PrincipalType PrivateResourceAccessPrincipalType `protobuf:"varint,1,opt,name=principal_type,json=principalType,proto3,enum=agynio.api.networks.v1.PrivateResourceAccessPrincipalType" json:"principal_type,omitempty"` + PrincipalId string `protobuf:"bytes,2,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReachablePrivateResourceGrant) Reset() { + *x = ReachablePrivateResourceGrant{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReachablePrivateResourceGrant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReachablePrivateResourceGrant) ProtoMessage() {} + +func (x *ReachablePrivateResourceGrant) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[42] + 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 ReachablePrivateResourceGrant.ProtoReflect.Descriptor instead. +func (*ReachablePrivateResourceGrant) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{42} +} + +func (x *ReachablePrivateResourceGrant) GetPrincipalType() PrivateResourceAccessPrincipalType { + if x != nil { + return x.PrincipalType + } + return PrivateResourceAccessPrincipalType_PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_UNSPECIFIED +} + +func (x *ReachablePrivateResourceGrant) GetPrincipalId() string { + if x != nil { + return x.PrincipalId + } + return "" +} + +type ReachablePrivateResource struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + InterceptHost string `protobuf:"bytes,2,opt,name=intercept_host,json=interceptHost,proto3" json:"intercept_host,omitempty"` + InterceptPorts []int32 `protobuf:"varint,3,rep,packed,name=intercept_ports,json=interceptPorts,proto3" json:"intercept_ports,omitempty"` + Grants []*ReachablePrivateResourceGrant `protobuf:"bytes,4,rep,name=grants,proto3" json:"grants,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReachablePrivateResource) Reset() { + *x = ReachablePrivateResource{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReachablePrivateResource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReachablePrivateResource) ProtoMessage() {} + +func (x *ReachablePrivateResource) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[43] + 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 ReachablePrivateResource.ProtoReflect.Descriptor instead. +func (*ReachablePrivateResource) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{43} +} + +func (x *ReachablePrivateResource) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *ReachablePrivateResource) GetInterceptHost() string { + if x != nil { + return x.InterceptHost + } + return "" +} + +func (x *ReachablePrivateResource) GetInterceptPorts() []int32 { + if x != nil { + return x.InterceptPorts + } + return nil +} + +func (x *ReachablePrivateResource) GetGrants() []*ReachablePrivateResourceGrant { + if x != nil { + return x.Grants + } + return nil +} + +type ListPrivateResourcesReachableByRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Principal: + // + // *ListPrivateResourcesReachableByRequest_AgentId + // *ListPrivateResourcesReachableByRequest_EnvironmentId + Principal isListPrivateResourcesReachableByRequest_Principal `protobuf_oneof:"principal"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPrivateResourcesReachableByRequest) Reset() { + *x = ListPrivateResourcesReachableByRequest{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPrivateResourcesReachableByRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPrivateResourcesReachableByRequest) ProtoMessage() {} + +func (x *ListPrivateResourcesReachableByRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[44] + 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 ListPrivateResourcesReachableByRequest.ProtoReflect.Descriptor instead. +func (*ListPrivateResourcesReachableByRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{44} +} + +func (x *ListPrivateResourcesReachableByRequest) GetPrincipal() isListPrivateResourcesReachableByRequest_Principal { + if x != nil { + return x.Principal + } + return nil +} + +func (x *ListPrivateResourcesReachableByRequest) GetAgentId() string { + if x != nil { + if x, ok := x.Principal.(*ListPrivateResourcesReachableByRequest_AgentId); ok { + return x.AgentId + } + } + return "" +} + +func (x *ListPrivateResourcesReachableByRequest) GetEnvironmentId() string { + if x != nil { + if x, ok := x.Principal.(*ListPrivateResourcesReachableByRequest_EnvironmentId); ok { + return x.EnvironmentId + } + } + return "" +} + +type isListPrivateResourcesReachableByRequest_Principal interface { + isListPrivateResourcesReachableByRequest_Principal() +} + +type ListPrivateResourcesReachableByRequest_AgentId struct { + AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3,oneof"` +} + +type ListPrivateResourcesReachableByRequest_EnvironmentId struct { + EnvironmentId string `protobuf:"bytes,2,opt,name=environment_id,json=environmentId,proto3,oneof"` +} + +func (*ListPrivateResourcesReachableByRequest_AgentId) isListPrivateResourcesReachableByRequest_Principal() { +} + +func (*ListPrivateResourcesReachableByRequest_EnvironmentId) isListPrivateResourcesReachableByRequest_Principal() { +} + +type ListPrivateResourcesReachableByResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + PrivateResources []*ReachablePrivateResource `protobuf:"bytes,1,rep,name=private_resources,json=privateResources,proto3" json:"private_resources,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListPrivateResourcesReachableByResponse) Reset() { + *x = ListPrivateResourcesReachableByResponse{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListPrivateResourcesReachableByResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListPrivateResourcesReachableByResponse) ProtoMessage() {} + +func (x *ListPrivateResourcesReachableByResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[45] + 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 ListPrivateResourcesReachableByResponse.ProtoReflect.Descriptor instead. +func (*ListPrivateResourcesReachableByResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{45} +} + +func (x *ListPrivateResourcesReachableByResponse) GetPrivateResources() []*ReachablePrivateResource { + if x != nil { + return x.PrivateResources + } + return nil +} + +type DeleteOrganizationResourcesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResourcesRequest) Reset() { + *x = DeleteOrganizationResourcesRequest{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResourcesRequest) ProtoMessage() {} + +func (x *DeleteOrganizationResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[46] + 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 DeleteOrganizationResourcesRequest.ProtoReflect.Descriptor instead. +func (*DeleteOrganizationResourcesRequest) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{46} +} + +func (x *DeleteOrganizationResourcesRequest) GetOrganizationId() string { + if x != nil { + return x.OrganizationId + } + return "" +} + +type DeleteOrganizationResourcesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteOrganizationResourcesResponse) Reset() { + *x = DeleteOrganizationResourcesResponse{} + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteOrganizationResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteOrganizationResourcesResponse) ProtoMessage() {} + +func (x *DeleteOrganizationResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_agynio_api_networks_v1_networks_proto_msgTypes[47] + 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 DeleteOrganizationResourcesResponse.ProtoReflect.Descriptor instead. +func (*DeleteOrganizationResourcesResponse) Descriptor() ([]byte, []int) { + return file_agynio_api_networks_v1_networks_proto_rawDescGZIP(), []int{47} +} + var File_agynio_api_networks_v1_networks_proto protoreflect.FileDescriptor const file_agynio_api_networks_v1_networks_proto_rawDesc = "" + @@ -2580,7 +3061,7 @@ const file_agynio_api_networks_v1_networks_proto_rawDesc = "" + "\flast_seen_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampH\x01R\n" + "lastSeenAt\x88\x01\x01B\x0e\n" + "\f_enrolled_atB\x0f\n" + - "\r_last_seen_at\"\xe0\x03\n" + + "\r_last_seen_at\"\xb0\x04\n" + "\x0fPrivateResource\x126\n" + "\x04meta\x18\x01 \x01(\v2\".agynio.api.networks.v1.EntityMetaR\x04meta\x12'\n" + "\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x1d\n" + @@ -2594,7 +3075,8 @@ const file_agynio_api_networks_v1_networks_proto_rawDesc = "" + "\x0eintercept_host\x18\b \x01(\tR\rinterceptHost\x12'\n" + "\x0fintercept_ports\x18\t \x03(\x05R\x0einterceptPorts\x12X\n" + "\x12provisioning_state\x18\n" + - " \x01(\x0e2).agynio.api.networks.v1.ProvisioningStateR\x11provisioningState\"\xdf\x02\n" + + " \x01(\x0e2).agynio.api.networks.v1.ProvisioningStateR\x11provisioningState\x12N\n" + + "\tmediation\x18\v \x01(\x0e20.agynio.api.networks.v1.PrivateResourceMediationR\tmediation\"\xdf\x02\n" + "\x15PrivateResourceAccess\x126\n" + "\x04meta\x18\x01 \x01(\v2\".agynio.api.networks.v1.EntityMetaR\x04meta\x12.\n" + "\x13private_resource_id\x18\x02 \x01(\tR\x11privateResourceId\x12a\n" + @@ -2728,7 +3210,29 @@ const file_agynio_api_networks_v1_networks_proto_rawDesc = "" + "\r_principal_id\"\xb2\x01\n" + "!ListPrivateResourceAccessResponse\x12e\n" + "\x17private_resource_access\x18\x01 \x03(\v2-.agynio.api.networks.v1.PrivateResourceAccessR\x15privateResourceAccess\x12&\n" + - "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken*\x96\x01\n" + + "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x84\x01\n" + + "\"SetPrivateResourceMediationRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12N\n" + + "\tmediation\x18\x02 \x01(\x0e20.agynio.api.networks.v1.PrivateResourceMediationR\tmediation\"y\n" + + "#SetPrivateResourceMediationResponse\x12R\n" + + "\x10private_resource\x18\x01 \x01(\v2'.agynio.api.networks.v1.PrivateResourceR\x0fprivateResource\"\xa5\x01\n" + + "\x1dReachablePrivateResourceGrant\x12a\n" + + "\x0eprincipal_type\x18\x01 \x01(\x0e2:.agynio.api.networks.v1.PrivateResourceAccessPrincipalTypeR\rprincipalType\x12!\n" + + "\fprincipal_id\x18\x02 \x01(\tR\vprincipalId\"\xc9\x01\n" + + "\x18ReachablePrivateResource\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12%\n" + + "\x0eintercept_host\x18\x02 \x01(\tR\rinterceptHost\x12'\n" + + "\x0fintercept_ports\x18\x03 \x03(\x05R\x0einterceptPorts\x12M\n" + + "\x06grants\x18\x04 \x03(\v25.agynio.api.networks.v1.ReachablePrivateResourceGrantR\x06grants\"{\n" + + "&ListPrivateResourcesReachableByRequest\x12\x1b\n" + + "\bagent_id\x18\x01 \x01(\tH\x00R\aagentId\x12'\n" + + "\x0eenvironment_id\x18\x02 \x01(\tH\x00R\renvironmentIdB\v\n" + + "\tprincipal\"\x88\x01\n" + + "'ListPrivateResourcesReachableByResponse\x12]\n" + + "\x11private_resources\x18\x01 \x03(\v20.agynio.api.networks.v1.ReachablePrivateResourceR\x10privateResources\"M\n" + + "\"DeleteOrganizationResourcesRequest\x12'\n" + + "\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\"%\n" + + "#DeleteOrganizationResourcesResponse*\x96\x01\n" + "\x11ProvisioningState\x12\"\n" + "\x1ePROVISIONING_STATE_UNSPECIFIED\x10\x00\x12\x1d\n" + "\x19PROVISIONING_STATE_ACTIVE\x10\x01\x12\x1d\n" + @@ -2746,14 +3250,18 @@ const file_agynio_api_networks_v1_networks_proto_rawDesc = "" + "%PRIVATE_RESOURCE_PROTOCOL_UNSPECIFIED\x10\x00\x12!\n" + "\x1dPRIVATE_RESOURCE_PROTOCOL_TCP\x10\x01\x12\"\n" + "\x1ePRIVATE_RESOURCE_PROTOCOL_HTTP\x10\x02\x12#\n" + - "\x1fPRIVATE_RESOURCE_PROTOCOL_HTTPS\x10\x03*\xd9\x02\n" + + "\x1fPRIVATE_RESOURCE_PROTOCOL_HTTPS\x10\x03*\x9c\x01\n" + + "\x18PrivateResourceMediation\x12*\n" + + "&PRIVATE_RESOURCE_MEDIATION_UNSPECIFIED\x10\x00\x12%\n" + + "!PRIVATE_RESOURCE_MEDIATION_TUNNEL\x10\x01\x12-\n" + + ")PRIVATE_RESOURCE_MEDIATION_EGRESS_GATEWAY\x10\x02*\xd9\x02\n" + "\"PrivateResourceAccessPrincipalType\x126\n" + "2PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_UNSPECIFIED\x10\x00\x120\n" + ",PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_AGENT\x10\x01\x12/\n" + "+PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_USER\x10\x02\x12.\n" + "*PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_APP\x10\x03\x120\n" + ",PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_GROUP\x10\x04\x126\n" + - "2PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_ENVIRONMENT\x10\x052\xa1\x11\n" + + "2PRIVATE_RESOURCE_ACCESS_PRINCIPAL_TYPE_ENVIRONMENT\x10\x052\xf8\x14\n" + "\x0fNetworksService\x12l\n" + "\rCreateNetwork\x12,.agynio.api.networks.v1.CreateNetworkRequest\x1a-.agynio.api.networks.v1.CreateNetworkResponse\x12c\n" + "\n" + @@ -2772,7 +3280,10 @@ const file_agynio_api_networks_v1_networks_proto_rawDesc = "" + "\x15DeletePrivateResource\x124.agynio.api.networks.v1.DeletePrivateResourceRequest\x1a5.agynio.api.networks.v1.DeletePrivateResourceResponse\x12\x96\x01\n" + "\x1bCreatePrivateResourceAccess\x12:.agynio.api.networks.v1.CreatePrivateResourceAccessRequest\x1a;.agynio.api.networks.v1.CreatePrivateResourceAccessResponse\x12\x96\x01\n" + "\x1bDeletePrivateResourceAccess\x12:.agynio.api.networks.v1.DeletePrivateResourceAccessRequest\x1a;.agynio.api.networks.v1.DeletePrivateResourceAccessResponse\x12\x90\x01\n" + - "\x19ListPrivateResourceAccess\x128.agynio.api.networks.v1.ListPrivateResourceAccessRequest\x1a9.agynio.api.networks.v1.ListPrivateResourceAccessResponseB\xe8\x01\n" + + "\x19ListPrivateResourceAccess\x128.agynio.api.networks.v1.ListPrivateResourceAccessRequest\x1a9.agynio.api.networks.v1.ListPrivateResourceAccessResponse\x12\x96\x01\n" + + "\x1bSetPrivateResourceMediation\x12:.agynio.api.networks.v1.SetPrivateResourceMediationRequest\x1a;.agynio.api.networks.v1.SetPrivateResourceMediationResponse\x12\xa2\x01\n" + + "\x1fListPrivateResourcesReachableBy\x12>.agynio.api.networks.v1.ListPrivateResourcesReachableByRequest\x1a?.agynio.api.networks.v1.ListPrivateResourcesReachableByResponse\x12\x96\x01\n" + + "\x1bDeleteOrganizationResources\x12:.agynio.api.networks.v1.DeleteOrganizationResourcesRequest\x1a;.agynio.api.networks.v1.DeleteOrganizationResourcesResponseB\xe8\x01\n" + "\x1acom.agynio.api.networks.v1B\rNetworksProtoP\x01Z@github.com/agynio/agyn-cli/gen/agynio/api/networks/v1;networksv1\xa2\x02\x03AAN\xaa\x02\x16Agynio.Api.Networks.V1\xca\x02\x16Agynio\\Api\\Networks\\V1\xe2\x02\"Agynio\\Api\\Networks\\V1\\GPBMetadata\xea\x02\x19Agynio::Api::Networks::V1b\x06proto3" var ( @@ -2787,132 +3298,153 @@ func file_agynio_api_networks_v1_networks_proto_rawDescGZIP() []byte { return file_agynio_api_networks_v1_networks_proto_rawDescData } -var file_agynio_api_networks_v1_networks_proto_enumTypes = make([]protoimpl.EnumInfo, 5) -var file_agynio_api_networks_v1_networks_proto_msgTypes = make([]protoimpl.MessageInfo, 40) +var file_agynio_api_networks_v1_networks_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_agynio_api_networks_v1_networks_proto_msgTypes = make([]protoimpl.MessageInfo, 48) var file_agynio_api_networks_v1_networks_proto_goTypes = []any{ - (ProvisioningState)(0), // 0: agynio.api.networks.v1.ProvisioningState - (TunnelEnrollmentState)(0), // 1: agynio.api.networks.v1.TunnelEnrollmentState - (TunnelConnectivity)(0), // 2: agynio.api.networks.v1.TunnelConnectivity - (PrivateResourceProtocol)(0), // 3: agynio.api.networks.v1.PrivateResourceProtocol - (PrivateResourceAccessPrincipalType)(0), // 4: agynio.api.networks.v1.PrivateResourceAccessPrincipalType - (*EntityMeta)(nil), // 5: agynio.api.networks.v1.EntityMeta - (*Network)(nil), // 6: agynio.api.networks.v1.Network - (*TunnelCredential)(nil), // 7: agynio.api.networks.v1.TunnelCredential - (*PrivateResource)(nil), // 8: agynio.api.networks.v1.PrivateResource - (*PrivateResourceAccess)(nil), // 9: agynio.api.networks.v1.PrivateResourceAccess - (*PortListUpdate)(nil), // 10: agynio.api.networks.v1.PortListUpdate - (*CreateNetworkRequest)(nil), // 11: agynio.api.networks.v1.CreateNetworkRequest - (*CreateNetworkResponse)(nil), // 12: agynio.api.networks.v1.CreateNetworkResponse - (*GetNetworkRequest)(nil), // 13: agynio.api.networks.v1.GetNetworkRequest - (*GetNetworkResponse)(nil), // 14: agynio.api.networks.v1.GetNetworkResponse - (*ListNetworksRequest)(nil), // 15: agynio.api.networks.v1.ListNetworksRequest - (*ListNetworksResponse)(nil), // 16: agynio.api.networks.v1.ListNetworksResponse - (*UpdateNetworkRequest)(nil), // 17: agynio.api.networks.v1.UpdateNetworkRequest - (*UpdateNetworkResponse)(nil), // 18: agynio.api.networks.v1.UpdateNetworkResponse - (*DeleteNetworkRequest)(nil), // 19: agynio.api.networks.v1.DeleteNetworkRequest - (*DeleteNetworkResponse)(nil), // 20: agynio.api.networks.v1.DeleteNetworkResponse - (*CreateTunnelCredentialRequest)(nil), // 21: agynio.api.networks.v1.CreateTunnelCredentialRequest - (*CreateTunnelCredentialResponse)(nil), // 22: agynio.api.networks.v1.CreateTunnelCredentialResponse - (*GetTunnelCredentialRequest)(nil), // 23: agynio.api.networks.v1.GetTunnelCredentialRequest - (*GetTunnelCredentialResponse)(nil), // 24: agynio.api.networks.v1.GetTunnelCredentialResponse - (*ListTunnelCredentialsRequest)(nil), // 25: agynio.api.networks.v1.ListTunnelCredentialsRequest - (*ListTunnelCredentialsResponse)(nil), // 26: agynio.api.networks.v1.ListTunnelCredentialsResponse - (*DeleteTunnelCredentialRequest)(nil), // 27: agynio.api.networks.v1.DeleteTunnelCredentialRequest - (*DeleteTunnelCredentialResponse)(nil), // 28: agynio.api.networks.v1.DeleteTunnelCredentialResponse - (*CreatePrivateResourceRequest)(nil), // 29: agynio.api.networks.v1.CreatePrivateResourceRequest - (*CreatePrivateResourceResponse)(nil), // 30: agynio.api.networks.v1.CreatePrivateResourceResponse - (*GetPrivateResourceRequest)(nil), // 31: agynio.api.networks.v1.GetPrivateResourceRequest - (*GetPrivateResourceResponse)(nil), // 32: agynio.api.networks.v1.GetPrivateResourceResponse - (*ListPrivateResourcesRequest)(nil), // 33: agynio.api.networks.v1.ListPrivateResourcesRequest - (*ListPrivateResourcesResponse)(nil), // 34: agynio.api.networks.v1.ListPrivateResourcesResponse - (*UpdatePrivateResourceRequest)(nil), // 35: agynio.api.networks.v1.UpdatePrivateResourceRequest - (*UpdatePrivateResourceResponse)(nil), // 36: agynio.api.networks.v1.UpdatePrivateResourceResponse - (*DeletePrivateResourceRequest)(nil), // 37: agynio.api.networks.v1.DeletePrivateResourceRequest - (*DeletePrivateResourceResponse)(nil), // 38: agynio.api.networks.v1.DeletePrivateResourceResponse - (*CreatePrivateResourceAccessRequest)(nil), // 39: agynio.api.networks.v1.CreatePrivateResourceAccessRequest - (*CreatePrivateResourceAccessResponse)(nil), // 40: agynio.api.networks.v1.CreatePrivateResourceAccessResponse - (*DeletePrivateResourceAccessRequest)(nil), // 41: agynio.api.networks.v1.DeletePrivateResourceAccessRequest - (*DeletePrivateResourceAccessResponse)(nil), // 42: agynio.api.networks.v1.DeletePrivateResourceAccessResponse - (*ListPrivateResourceAccessRequest)(nil), // 43: agynio.api.networks.v1.ListPrivateResourceAccessRequest - (*ListPrivateResourceAccessResponse)(nil), // 44: agynio.api.networks.v1.ListPrivateResourceAccessResponse - (*timestamppb.Timestamp)(nil), // 45: google.protobuf.Timestamp + (ProvisioningState)(0), // 0: agynio.api.networks.v1.ProvisioningState + (TunnelEnrollmentState)(0), // 1: agynio.api.networks.v1.TunnelEnrollmentState + (TunnelConnectivity)(0), // 2: agynio.api.networks.v1.TunnelConnectivity + (PrivateResourceProtocol)(0), // 3: agynio.api.networks.v1.PrivateResourceProtocol + (PrivateResourceMediation)(0), // 4: agynio.api.networks.v1.PrivateResourceMediation + (PrivateResourceAccessPrincipalType)(0), // 5: agynio.api.networks.v1.PrivateResourceAccessPrincipalType + (*EntityMeta)(nil), // 6: agynio.api.networks.v1.EntityMeta + (*Network)(nil), // 7: agynio.api.networks.v1.Network + (*TunnelCredential)(nil), // 8: agynio.api.networks.v1.TunnelCredential + (*PrivateResource)(nil), // 9: agynio.api.networks.v1.PrivateResource + (*PrivateResourceAccess)(nil), // 10: agynio.api.networks.v1.PrivateResourceAccess + (*PortListUpdate)(nil), // 11: agynio.api.networks.v1.PortListUpdate + (*CreateNetworkRequest)(nil), // 12: agynio.api.networks.v1.CreateNetworkRequest + (*CreateNetworkResponse)(nil), // 13: agynio.api.networks.v1.CreateNetworkResponse + (*GetNetworkRequest)(nil), // 14: agynio.api.networks.v1.GetNetworkRequest + (*GetNetworkResponse)(nil), // 15: agynio.api.networks.v1.GetNetworkResponse + (*ListNetworksRequest)(nil), // 16: agynio.api.networks.v1.ListNetworksRequest + (*ListNetworksResponse)(nil), // 17: agynio.api.networks.v1.ListNetworksResponse + (*UpdateNetworkRequest)(nil), // 18: agynio.api.networks.v1.UpdateNetworkRequest + (*UpdateNetworkResponse)(nil), // 19: agynio.api.networks.v1.UpdateNetworkResponse + (*DeleteNetworkRequest)(nil), // 20: agynio.api.networks.v1.DeleteNetworkRequest + (*DeleteNetworkResponse)(nil), // 21: agynio.api.networks.v1.DeleteNetworkResponse + (*CreateTunnelCredentialRequest)(nil), // 22: agynio.api.networks.v1.CreateTunnelCredentialRequest + (*CreateTunnelCredentialResponse)(nil), // 23: agynio.api.networks.v1.CreateTunnelCredentialResponse + (*GetTunnelCredentialRequest)(nil), // 24: agynio.api.networks.v1.GetTunnelCredentialRequest + (*GetTunnelCredentialResponse)(nil), // 25: agynio.api.networks.v1.GetTunnelCredentialResponse + (*ListTunnelCredentialsRequest)(nil), // 26: agynio.api.networks.v1.ListTunnelCredentialsRequest + (*ListTunnelCredentialsResponse)(nil), // 27: agynio.api.networks.v1.ListTunnelCredentialsResponse + (*DeleteTunnelCredentialRequest)(nil), // 28: agynio.api.networks.v1.DeleteTunnelCredentialRequest + (*DeleteTunnelCredentialResponse)(nil), // 29: agynio.api.networks.v1.DeleteTunnelCredentialResponse + (*CreatePrivateResourceRequest)(nil), // 30: agynio.api.networks.v1.CreatePrivateResourceRequest + (*CreatePrivateResourceResponse)(nil), // 31: agynio.api.networks.v1.CreatePrivateResourceResponse + (*GetPrivateResourceRequest)(nil), // 32: agynio.api.networks.v1.GetPrivateResourceRequest + (*GetPrivateResourceResponse)(nil), // 33: agynio.api.networks.v1.GetPrivateResourceResponse + (*ListPrivateResourcesRequest)(nil), // 34: agynio.api.networks.v1.ListPrivateResourcesRequest + (*ListPrivateResourcesResponse)(nil), // 35: agynio.api.networks.v1.ListPrivateResourcesResponse + (*UpdatePrivateResourceRequest)(nil), // 36: agynio.api.networks.v1.UpdatePrivateResourceRequest + (*UpdatePrivateResourceResponse)(nil), // 37: agynio.api.networks.v1.UpdatePrivateResourceResponse + (*DeletePrivateResourceRequest)(nil), // 38: agynio.api.networks.v1.DeletePrivateResourceRequest + (*DeletePrivateResourceResponse)(nil), // 39: agynio.api.networks.v1.DeletePrivateResourceResponse + (*CreatePrivateResourceAccessRequest)(nil), // 40: agynio.api.networks.v1.CreatePrivateResourceAccessRequest + (*CreatePrivateResourceAccessResponse)(nil), // 41: agynio.api.networks.v1.CreatePrivateResourceAccessResponse + (*DeletePrivateResourceAccessRequest)(nil), // 42: agynio.api.networks.v1.DeletePrivateResourceAccessRequest + (*DeletePrivateResourceAccessResponse)(nil), // 43: agynio.api.networks.v1.DeletePrivateResourceAccessResponse + (*ListPrivateResourceAccessRequest)(nil), // 44: agynio.api.networks.v1.ListPrivateResourceAccessRequest + (*ListPrivateResourceAccessResponse)(nil), // 45: agynio.api.networks.v1.ListPrivateResourceAccessResponse + (*SetPrivateResourceMediationRequest)(nil), // 46: agynio.api.networks.v1.SetPrivateResourceMediationRequest + (*SetPrivateResourceMediationResponse)(nil), // 47: agynio.api.networks.v1.SetPrivateResourceMediationResponse + (*ReachablePrivateResourceGrant)(nil), // 48: agynio.api.networks.v1.ReachablePrivateResourceGrant + (*ReachablePrivateResource)(nil), // 49: agynio.api.networks.v1.ReachablePrivateResource + (*ListPrivateResourcesReachableByRequest)(nil), // 50: agynio.api.networks.v1.ListPrivateResourcesReachableByRequest + (*ListPrivateResourcesReachableByResponse)(nil), // 51: agynio.api.networks.v1.ListPrivateResourcesReachableByResponse + (*DeleteOrganizationResourcesRequest)(nil), // 52: agynio.api.networks.v1.DeleteOrganizationResourcesRequest + (*DeleteOrganizationResourcesResponse)(nil), // 53: agynio.api.networks.v1.DeleteOrganizationResourcesResponse + (*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp } var file_agynio_api_networks_v1_networks_proto_depIdxs = []int32{ - 45, // 0: agynio.api.networks.v1.EntityMeta.created_at:type_name -> google.protobuf.Timestamp - 45, // 1: agynio.api.networks.v1.EntityMeta.updated_at:type_name -> google.protobuf.Timestamp - 5, // 2: agynio.api.networks.v1.Network.meta:type_name -> agynio.api.networks.v1.EntityMeta + 54, // 0: agynio.api.networks.v1.EntityMeta.created_at:type_name -> google.protobuf.Timestamp + 54, // 1: agynio.api.networks.v1.EntityMeta.updated_at:type_name -> google.protobuf.Timestamp + 6, // 2: agynio.api.networks.v1.Network.meta:type_name -> agynio.api.networks.v1.EntityMeta 0, // 3: agynio.api.networks.v1.Network.provisioning_state:type_name -> agynio.api.networks.v1.ProvisioningState - 5, // 4: agynio.api.networks.v1.TunnelCredential.meta:type_name -> agynio.api.networks.v1.EntityMeta - 45, // 5: agynio.api.networks.v1.TunnelCredential.enrollment_jwt_expires_at:type_name -> google.protobuf.Timestamp + 6, // 4: agynio.api.networks.v1.TunnelCredential.meta:type_name -> agynio.api.networks.v1.EntityMeta + 54, // 5: agynio.api.networks.v1.TunnelCredential.enrollment_jwt_expires_at:type_name -> google.protobuf.Timestamp 1, // 6: agynio.api.networks.v1.TunnelCredential.enrollment_state:type_name -> agynio.api.networks.v1.TunnelEnrollmentState 2, // 7: agynio.api.networks.v1.TunnelCredential.connectivity:type_name -> agynio.api.networks.v1.TunnelConnectivity 0, // 8: agynio.api.networks.v1.TunnelCredential.provisioning_state:type_name -> agynio.api.networks.v1.ProvisioningState - 45, // 9: agynio.api.networks.v1.TunnelCredential.enrolled_at:type_name -> google.protobuf.Timestamp - 45, // 10: agynio.api.networks.v1.TunnelCredential.last_seen_at:type_name -> google.protobuf.Timestamp - 5, // 11: agynio.api.networks.v1.PrivateResource.meta:type_name -> agynio.api.networks.v1.EntityMeta + 54, // 9: agynio.api.networks.v1.TunnelCredential.enrolled_at:type_name -> google.protobuf.Timestamp + 54, // 10: agynio.api.networks.v1.TunnelCredential.last_seen_at:type_name -> google.protobuf.Timestamp + 6, // 11: agynio.api.networks.v1.PrivateResource.meta:type_name -> agynio.api.networks.v1.EntityMeta 3, // 12: agynio.api.networks.v1.PrivateResource.protocol:type_name -> agynio.api.networks.v1.PrivateResourceProtocol 0, // 13: agynio.api.networks.v1.PrivateResource.provisioning_state:type_name -> agynio.api.networks.v1.ProvisioningState - 5, // 14: agynio.api.networks.v1.PrivateResourceAccess.meta:type_name -> agynio.api.networks.v1.EntityMeta - 4, // 15: agynio.api.networks.v1.PrivateResourceAccess.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType - 0, // 16: agynio.api.networks.v1.PrivateResourceAccess.provisioning_state:type_name -> agynio.api.networks.v1.ProvisioningState - 6, // 17: agynio.api.networks.v1.CreateNetworkResponse.network:type_name -> agynio.api.networks.v1.Network - 6, // 18: agynio.api.networks.v1.GetNetworkResponse.network:type_name -> agynio.api.networks.v1.Network - 6, // 19: agynio.api.networks.v1.ListNetworksResponse.networks:type_name -> agynio.api.networks.v1.Network - 6, // 20: agynio.api.networks.v1.UpdateNetworkResponse.network:type_name -> agynio.api.networks.v1.Network - 7, // 21: agynio.api.networks.v1.CreateTunnelCredentialResponse.tunnel_credential:type_name -> agynio.api.networks.v1.TunnelCredential - 7, // 22: agynio.api.networks.v1.GetTunnelCredentialResponse.tunnel_credential:type_name -> agynio.api.networks.v1.TunnelCredential - 7, // 23: agynio.api.networks.v1.ListTunnelCredentialsResponse.tunnel_credentials:type_name -> agynio.api.networks.v1.TunnelCredential - 3, // 24: agynio.api.networks.v1.CreatePrivateResourceRequest.protocol:type_name -> agynio.api.networks.v1.PrivateResourceProtocol - 8, // 25: agynio.api.networks.v1.CreatePrivateResourceResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource - 8, // 26: agynio.api.networks.v1.GetPrivateResourceResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource - 8, // 27: agynio.api.networks.v1.ListPrivateResourcesResponse.private_resources:type_name -> agynio.api.networks.v1.PrivateResource - 3, // 28: agynio.api.networks.v1.UpdatePrivateResourceRequest.protocol:type_name -> agynio.api.networks.v1.PrivateResourceProtocol - 10, // 29: agynio.api.networks.v1.UpdatePrivateResourceRequest.target_ports_update:type_name -> agynio.api.networks.v1.PortListUpdate - 10, // 30: agynio.api.networks.v1.UpdatePrivateResourceRequest.intercept_ports_update:type_name -> agynio.api.networks.v1.PortListUpdate - 8, // 31: agynio.api.networks.v1.UpdatePrivateResourceResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource - 4, // 32: agynio.api.networks.v1.CreatePrivateResourceAccessRequest.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType - 9, // 33: agynio.api.networks.v1.CreatePrivateResourceAccessResponse.private_resource_access:type_name -> agynio.api.networks.v1.PrivateResourceAccess - 4, // 34: agynio.api.networks.v1.ListPrivateResourceAccessRequest.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType - 9, // 35: agynio.api.networks.v1.ListPrivateResourceAccessResponse.private_resource_access:type_name -> agynio.api.networks.v1.PrivateResourceAccess - 11, // 36: agynio.api.networks.v1.NetworksService.CreateNetwork:input_type -> agynio.api.networks.v1.CreateNetworkRequest - 13, // 37: agynio.api.networks.v1.NetworksService.GetNetwork:input_type -> agynio.api.networks.v1.GetNetworkRequest - 15, // 38: agynio.api.networks.v1.NetworksService.ListNetworks:input_type -> agynio.api.networks.v1.ListNetworksRequest - 17, // 39: agynio.api.networks.v1.NetworksService.UpdateNetwork:input_type -> agynio.api.networks.v1.UpdateNetworkRequest - 19, // 40: agynio.api.networks.v1.NetworksService.DeleteNetwork:input_type -> agynio.api.networks.v1.DeleteNetworkRequest - 21, // 41: agynio.api.networks.v1.NetworksService.CreateTunnelCredential:input_type -> agynio.api.networks.v1.CreateTunnelCredentialRequest - 23, // 42: agynio.api.networks.v1.NetworksService.GetTunnelCredential:input_type -> agynio.api.networks.v1.GetTunnelCredentialRequest - 25, // 43: agynio.api.networks.v1.NetworksService.ListTunnelCredentials:input_type -> agynio.api.networks.v1.ListTunnelCredentialsRequest - 27, // 44: agynio.api.networks.v1.NetworksService.DeleteTunnelCredential:input_type -> agynio.api.networks.v1.DeleteTunnelCredentialRequest - 29, // 45: agynio.api.networks.v1.NetworksService.CreatePrivateResource:input_type -> agynio.api.networks.v1.CreatePrivateResourceRequest - 31, // 46: agynio.api.networks.v1.NetworksService.GetPrivateResource:input_type -> agynio.api.networks.v1.GetPrivateResourceRequest - 33, // 47: agynio.api.networks.v1.NetworksService.ListPrivateResources:input_type -> agynio.api.networks.v1.ListPrivateResourcesRequest - 35, // 48: agynio.api.networks.v1.NetworksService.UpdatePrivateResource:input_type -> agynio.api.networks.v1.UpdatePrivateResourceRequest - 37, // 49: agynio.api.networks.v1.NetworksService.DeletePrivateResource:input_type -> agynio.api.networks.v1.DeletePrivateResourceRequest - 39, // 50: agynio.api.networks.v1.NetworksService.CreatePrivateResourceAccess:input_type -> agynio.api.networks.v1.CreatePrivateResourceAccessRequest - 41, // 51: agynio.api.networks.v1.NetworksService.DeletePrivateResourceAccess:input_type -> agynio.api.networks.v1.DeletePrivateResourceAccessRequest - 43, // 52: agynio.api.networks.v1.NetworksService.ListPrivateResourceAccess:input_type -> agynio.api.networks.v1.ListPrivateResourceAccessRequest - 12, // 53: agynio.api.networks.v1.NetworksService.CreateNetwork:output_type -> agynio.api.networks.v1.CreateNetworkResponse - 14, // 54: agynio.api.networks.v1.NetworksService.GetNetwork:output_type -> agynio.api.networks.v1.GetNetworkResponse - 16, // 55: agynio.api.networks.v1.NetworksService.ListNetworks:output_type -> agynio.api.networks.v1.ListNetworksResponse - 18, // 56: agynio.api.networks.v1.NetworksService.UpdateNetwork:output_type -> agynio.api.networks.v1.UpdateNetworkResponse - 20, // 57: agynio.api.networks.v1.NetworksService.DeleteNetwork:output_type -> agynio.api.networks.v1.DeleteNetworkResponse - 22, // 58: agynio.api.networks.v1.NetworksService.CreateTunnelCredential:output_type -> agynio.api.networks.v1.CreateTunnelCredentialResponse - 24, // 59: agynio.api.networks.v1.NetworksService.GetTunnelCredential:output_type -> agynio.api.networks.v1.GetTunnelCredentialResponse - 26, // 60: agynio.api.networks.v1.NetworksService.ListTunnelCredentials:output_type -> agynio.api.networks.v1.ListTunnelCredentialsResponse - 28, // 61: agynio.api.networks.v1.NetworksService.DeleteTunnelCredential:output_type -> agynio.api.networks.v1.DeleteTunnelCredentialResponse - 30, // 62: agynio.api.networks.v1.NetworksService.CreatePrivateResource:output_type -> agynio.api.networks.v1.CreatePrivateResourceResponse - 32, // 63: agynio.api.networks.v1.NetworksService.GetPrivateResource:output_type -> agynio.api.networks.v1.GetPrivateResourceResponse - 34, // 64: agynio.api.networks.v1.NetworksService.ListPrivateResources:output_type -> agynio.api.networks.v1.ListPrivateResourcesResponse - 36, // 65: agynio.api.networks.v1.NetworksService.UpdatePrivateResource:output_type -> agynio.api.networks.v1.UpdatePrivateResourceResponse - 38, // 66: agynio.api.networks.v1.NetworksService.DeletePrivateResource:output_type -> agynio.api.networks.v1.DeletePrivateResourceResponse - 40, // 67: agynio.api.networks.v1.NetworksService.CreatePrivateResourceAccess:output_type -> agynio.api.networks.v1.CreatePrivateResourceAccessResponse - 42, // 68: agynio.api.networks.v1.NetworksService.DeletePrivateResourceAccess:output_type -> agynio.api.networks.v1.DeletePrivateResourceAccessResponse - 44, // 69: agynio.api.networks.v1.NetworksService.ListPrivateResourceAccess:output_type -> agynio.api.networks.v1.ListPrivateResourceAccessResponse - 53, // [53:70] is the sub-list for method output_type - 36, // [36:53] is the sub-list for method input_type - 36, // [36:36] is the sub-list for extension type_name - 36, // [36:36] is the sub-list for extension extendee - 0, // [0:36] is the sub-list for field type_name + 4, // 14: agynio.api.networks.v1.PrivateResource.mediation:type_name -> agynio.api.networks.v1.PrivateResourceMediation + 6, // 15: agynio.api.networks.v1.PrivateResourceAccess.meta:type_name -> agynio.api.networks.v1.EntityMeta + 5, // 16: agynio.api.networks.v1.PrivateResourceAccess.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType + 0, // 17: agynio.api.networks.v1.PrivateResourceAccess.provisioning_state:type_name -> agynio.api.networks.v1.ProvisioningState + 7, // 18: agynio.api.networks.v1.CreateNetworkResponse.network:type_name -> agynio.api.networks.v1.Network + 7, // 19: agynio.api.networks.v1.GetNetworkResponse.network:type_name -> agynio.api.networks.v1.Network + 7, // 20: agynio.api.networks.v1.ListNetworksResponse.networks:type_name -> agynio.api.networks.v1.Network + 7, // 21: agynio.api.networks.v1.UpdateNetworkResponse.network:type_name -> agynio.api.networks.v1.Network + 8, // 22: agynio.api.networks.v1.CreateTunnelCredentialResponse.tunnel_credential:type_name -> agynio.api.networks.v1.TunnelCredential + 8, // 23: agynio.api.networks.v1.GetTunnelCredentialResponse.tunnel_credential:type_name -> agynio.api.networks.v1.TunnelCredential + 8, // 24: agynio.api.networks.v1.ListTunnelCredentialsResponse.tunnel_credentials:type_name -> agynio.api.networks.v1.TunnelCredential + 3, // 25: agynio.api.networks.v1.CreatePrivateResourceRequest.protocol:type_name -> agynio.api.networks.v1.PrivateResourceProtocol + 9, // 26: agynio.api.networks.v1.CreatePrivateResourceResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource + 9, // 27: agynio.api.networks.v1.GetPrivateResourceResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource + 9, // 28: agynio.api.networks.v1.ListPrivateResourcesResponse.private_resources:type_name -> agynio.api.networks.v1.PrivateResource + 3, // 29: agynio.api.networks.v1.UpdatePrivateResourceRequest.protocol:type_name -> agynio.api.networks.v1.PrivateResourceProtocol + 11, // 30: agynio.api.networks.v1.UpdatePrivateResourceRequest.target_ports_update:type_name -> agynio.api.networks.v1.PortListUpdate + 11, // 31: agynio.api.networks.v1.UpdatePrivateResourceRequest.intercept_ports_update:type_name -> agynio.api.networks.v1.PortListUpdate + 9, // 32: agynio.api.networks.v1.UpdatePrivateResourceResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource + 5, // 33: agynio.api.networks.v1.CreatePrivateResourceAccessRequest.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType + 10, // 34: agynio.api.networks.v1.CreatePrivateResourceAccessResponse.private_resource_access:type_name -> agynio.api.networks.v1.PrivateResourceAccess + 5, // 35: agynio.api.networks.v1.ListPrivateResourceAccessRequest.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType + 10, // 36: agynio.api.networks.v1.ListPrivateResourceAccessResponse.private_resource_access:type_name -> agynio.api.networks.v1.PrivateResourceAccess + 4, // 37: agynio.api.networks.v1.SetPrivateResourceMediationRequest.mediation:type_name -> agynio.api.networks.v1.PrivateResourceMediation + 9, // 38: agynio.api.networks.v1.SetPrivateResourceMediationResponse.private_resource:type_name -> agynio.api.networks.v1.PrivateResource + 5, // 39: agynio.api.networks.v1.ReachablePrivateResourceGrant.principal_type:type_name -> agynio.api.networks.v1.PrivateResourceAccessPrincipalType + 48, // 40: agynio.api.networks.v1.ReachablePrivateResource.grants:type_name -> agynio.api.networks.v1.ReachablePrivateResourceGrant + 49, // 41: agynio.api.networks.v1.ListPrivateResourcesReachableByResponse.private_resources:type_name -> agynio.api.networks.v1.ReachablePrivateResource + 12, // 42: agynio.api.networks.v1.NetworksService.CreateNetwork:input_type -> agynio.api.networks.v1.CreateNetworkRequest + 14, // 43: agynio.api.networks.v1.NetworksService.GetNetwork:input_type -> agynio.api.networks.v1.GetNetworkRequest + 16, // 44: agynio.api.networks.v1.NetworksService.ListNetworks:input_type -> agynio.api.networks.v1.ListNetworksRequest + 18, // 45: agynio.api.networks.v1.NetworksService.UpdateNetwork:input_type -> agynio.api.networks.v1.UpdateNetworkRequest + 20, // 46: agynio.api.networks.v1.NetworksService.DeleteNetwork:input_type -> agynio.api.networks.v1.DeleteNetworkRequest + 22, // 47: agynio.api.networks.v1.NetworksService.CreateTunnelCredential:input_type -> agynio.api.networks.v1.CreateTunnelCredentialRequest + 24, // 48: agynio.api.networks.v1.NetworksService.GetTunnelCredential:input_type -> agynio.api.networks.v1.GetTunnelCredentialRequest + 26, // 49: agynio.api.networks.v1.NetworksService.ListTunnelCredentials:input_type -> agynio.api.networks.v1.ListTunnelCredentialsRequest + 28, // 50: agynio.api.networks.v1.NetworksService.DeleteTunnelCredential:input_type -> agynio.api.networks.v1.DeleteTunnelCredentialRequest + 30, // 51: agynio.api.networks.v1.NetworksService.CreatePrivateResource:input_type -> agynio.api.networks.v1.CreatePrivateResourceRequest + 32, // 52: agynio.api.networks.v1.NetworksService.GetPrivateResource:input_type -> agynio.api.networks.v1.GetPrivateResourceRequest + 34, // 53: agynio.api.networks.v1.NetworksService.ListPrivateResources:input_type -> agynio.api.networks.v1.ListPrivateResourcesRequest + 36, // 54: agynio.api.networks.v1.NetworksService.UpdatePrivateResource:input_type -> agynio.api.networks.v1.UpdatePrivateResourceRequest + 38, // 55: agynio.api.networks.v1.NetworksService.DeletePrivateResource:input_type -> agynio.api.networks.v1.DeletePrivateResourceRequest + 40, // 56: agynio.api.networks.v1.NetworksService.CreatePrivateResourceAccess:input_type -> agynio.api.networks.v1.CreatePrivateResourceAccessRequest + 42, // 57: agynio.api.networks.v1.NetworksService.DeletePrivateResourceAccess:input_type -> agynio.api.networks.v1.DeletePrivateResourceAccessRequest + 44, // 58: agynio.api.networks.v1.NetworksService.ListPrivateResourceAccess:input_type -> agynio.api.networks.v1.ListPrivateResourceAccessRequest + 46, // 59: agynio.api.networks.v1.NetworksService.SetPrivateResourceMediation:input_type -> agynio.api.networks.v1.SetPrivateResourceMediationRequest + 50, // 60: agynio.api.networks.v1.NetworksService.ListPrivateResourcesReachableBy:input_type -> agynio.api.networks.v1.ListPrivateResourcesReachableByRequest + 52, // 61: agynio.api.networks.v1.NetworksService.DeleteOrganizationResources:input_type -> agynio.api.networks.v1.DeleteOrganizationResourcesRequest + 13, // 62: agynio.api.networks.v1.NetworksService.CreateNetwork:output_type -> agynio.api.networks.v1.CreateNetworkResponse + 15, // 63: agynio.api.networks.v1.NetworksService.GetNetwork:output_type -> agynio.api.networks.v1.GetNetworkResponse + 17, // 64: agynio.api.networks.v1.NetworksService.ListNetworks:output_type -> agynio.api.networks.v1.ListNetworksResponse + 19, // 65: agynio.api.networks.v1.NetworksService.UpdateNetwork:output_type -> agynio.api.networks.v1.UpdateNetworkResponse + 21, // 66: agynio.api.networks.v1.NetworksService.DeleteNetwork:output_type -> agynio.api.networks.v1.DeleteNetworkResponse + 23, // 67: agynio.api.networks.v1.NetworksService.CreateTunnelCredential:output_type -> agynio.api.networks.v1.CreateTunnelCredentialResponse + 25, // 68: agynio.api.networks.v1.NetworksService.GetTunnelCredential:output_type -> agynio.api.networks.v1.GetTunnelCredentialResponse + 27, // 69: agynio.api.networks.v1.NetworksService.ListTunnelCredentials:output_type -> agynio.api.networks.v1.ListTunnelCredentialsResponse + 29, // 70: agynio.api.networks.v1.NetworksService.DeleteTunnelCredential:output_type -> agynio.api.networks.v1.DeleteTunnelCredentialResponse + 31, // 71: agynio.api.networks.v1.NetworksService.CreatePrivateResource:output_type -> agynio.api.networks.v1.CreatePrivateResourceResponse + 33, // 72: agynio.api.networks.v1.NetworksService.GetPrivateResource:output_type -> agynio.api.networks.v1.GetPrivateResourceResponse + 35, // 73: agynio.api.networks.v1.NetworksService.ListPrivateResources:output_type -> agynio.api.networks.v1.ListPrivateResourcesResponse + 37, // 74: agynio.api.networks.v1.NetworksService.UpdatePrivateResource:output_type -> agynio.api.networks.v1.UpdatePrivateResourceResponse + 39, // 75: agynio.api.networks.v1.NetworksService.DeletePrivateResource:output_type -> agynio.api.networks.v1.DeletePrivateResourceResponse + 41, // 76: agynio.api.networks.v1.NetworksService.CreatePrivateResourceAccess:output_type -> agynio.api.networks.v1.CreatePrivateResourceAccessResponse + 43, // 77: agynio.api.networks.v1.NetworksService.DeletePrivateResourceAccess:output_type -> agynio.api.networks.v1.DeletePrivateResourceAccessResponse + 45, // 78: agynio.api.networks.v1.NetworksService.ListPrivateResourceAccess:output_type -> agynio.api.networks.v1.ListPrivateResourceAccessResponse + 47, // 79: agynio.api.networks.v1.NetworksService.SetPrivateResourceMediation:output_type -> agynio.api.networks.v1.SetPrivateResourceMediationResponse + 51, // 80: agynio.api.networks.v1.NetworksService.ListPrivateResourcesReachableBy:output_type -> agynio.api.networks.v1.ListPrivateResourcesReachableByResponse + 53, // 81: agynio.api.networks.v1.NetworksService.DeleteOrganizationResources:output_type -> agynio.api.networks.v1.DeleteOrganizationResourcesResponse + 62, // [62:82] is the sub-list for method output_type + 42, // [42:62] 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 } func init() { file_agynio_api_networks_v1_networks_proto_init() } @@ -2925,13 +3457,17 @@ func file_agynio_api_networks_v1_networks_proto_init() { file_agynio_api_networks_v1_networks_proto_msgTypes[28].OneofWrappers = []any{} file_agynio_api_networks_v1_networks_proto_msgTypes[30].OneofWrappers = []any{} file_agynio_api_networks_v1_networks_proto_msgTypes[38].OneofWrappers = []any{} + file_agynio_api_networks_v1_networks_proto_msgTypes[44].OneofWrappers = []any{ + (*ListPrivateResourcesReachableByRequest_AgentId)(nil), + (*ListPrivateResourcesReachableByRequest_EnvironmentId)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_agynio_api_networks_v1_networks_proto_rawDesc), len(file_agynio_api_networks_v1_networks_proto_rawDesc)), - NumEnums: 5, - NumMessages: 40, + NumEnums: 6, + NumMessages: 48, NumExtensions: 0, NumServices: 1, }, diff --git a/gen/agynio/api/networks/v1/networksv1connect/networks.connect.go b/gen/agynio/api/networks/v1/networksv1connect/networks.connect.go index d6f7e89..47f0e69 100644 --- a/gen/agynio/api/networks/v1/networksv1connect/networks.connect.go +++ b/gen/agynio/api/networks/v1/networksv1connect/networks.connect.go @@ -84,6 +84,15 @@ const ( // NetworksServiceListPrivateResourceAccessProcedure is the fully-qualified name of the // NetworksService's ListPrivateResourceAccess RPC. NetworksServiceListPrivateResourceAccessProcedure = "/agynio.api.networks.v1.NetworksService/ListPrivateResourceAccess" + // NetworksServiceSetPrivateResourceMediationProcedure is the fully-qualified name of the + // NetworksService's SetPrivateResourceMediation RPC. + NetworksServiceSetPrivateResourceMediationProcedure = "/agynio.api.networks.v1.NetworksService/SetPrivateResourceMediation" + // NetworksServiceListPrivateResourcesReachableByProcedure is the fully-qualified name of the + // NetworksService's ListPrivateResourcesReachableBy RPC. + NetworksServiceListPrivateResourcesReachableByProcedure = "/agynio.api.networks.v1.NetworksService/ListPrivateResourcesReachableBy" + // NetworksServiceDeleteOrganizationResourcesProcedure is the fully-qualified name of the + // NetworksService's DeleteOrganizationResources RPC. + NetworksServiceDeleteOrganizationResourcesProcedure = "/agynio.api.networks.v1.NetworksService/DeleteOrganizationResources" ) // NetworksServiceClient is a client for the agynio.api.networks.v1.NetworksService service. @@ -109,6 +118,10 @@ type NetworksServiceClient interface { CreatePrivateResourceAccess(context.Context, *connect.Request[v1.CreatePrivateResourceAccessRequest]) (*connect.Response[v1.CreatePrivateResourceAccessResponse], error) DeletePrivateResourceAccess(context.Context, *connect.Request[v1.DeletePrivateResourceAccessRequest]) (*connect.Response[v1.DeletePrivateResourceAccessResponse], error) ListPrivateResourceAccess(context.Context, *connect.Request[v1.ListPrivateResourceAccessRequest]) (*connect.Response[v1.ListPrivateResourceAccessResponse], error) + // --- Internal --- + SetPrivateResourceMediation(context.Context, *connect.Request[v1.SetPrivateResourceMediationRequest]) (*connect.Response[v1.SetPrivateResourceMediationResponse], error) + ListPrivateResourcesReachableBy(context.Context, *connect.Request[v1.ListPrivateResourcesReachableByRequest]) (*connect.Response[v1.ListPrivateResourcesReachableByResponse], error) + DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) } // NewNetworksServiceClient constructs a client for the agynio.api.networks.v1.NetworksService @@ -224,28 +237,49 @@ func NewNetworksServiceClient(httpClient connect.HTTPClient, baseURL string, opt connect.WithSchema(networksServiceMethods.ByName("ListPrivateResourceAccess")), connect.WithClientOptions(opts...), ), + setPrivateResourceMediation: connect.NewClient[v1.SetPrivateResourceMediationRequest, v1.SetPrivateResourceMediationResponse]( + httpClient, + baseURL+NetworksServiceSetPrivateResourceMediationProcedure, + connect.WithSchema(networksServiceMethods.ByName("SetPrivateResourceMediation")), + connect.WithClientOptions(opts...), + ), + listPrivateResourcesReachableBy: connect.NewClient[v1.ListPrivateResourcesReachableByRequest, v1.ListPrivateResourcesReachableByResponse]( + httpClient, + baseURL+NetworksServiceListPrivateResourcesReachableByProcedure, + connect.WithSchema(networksServiceMethods.ByName("ListPrivateResourcesReachableBy")), + connect.WithClientOptions(opts...), + ), + deleteOrganizationResources: connect.NewClient[v1.DeleteOrganizationResourcesRequest, v1.DeleteOrganizationResourcesResponse]( + httpClient, + baseURL+NetworksServiceDeleteOrganizationResourcesProcedure, + connect.WithSchema(networksServiceMethods.ByName("DeleteOrganizationResources")), + connect.WithClientOptions(opts...), + ), } } // networksServiceClient implements NetworksServiceClient. type networksServiceClient struct { - createNetwork *connect.Client[v1.CreateNetworkRequest, v1.CreateNetworkResponse] - getNetwork *connect.Client[v1.GetNetworkRequest, v1.GetNetworkResponse] - listNetworks *connect.Client[v1.ListNetworksRequest, v1.ListNetworksResponse] - updateNetwork *connect.Client[v1.UpdateNetworkRequest, v1.UpdateNetworkResponse] - deleteNetwork *connect.Client[v1.DeleteNetworkRequest, v1.DeleteNetworkResponse] - createTunnelCredential *connect.Client[v1.CreateTunnelCredentialRequest, v1.CreateTunnelCredentialResponse] - getTunnelCredential *connect.Client[v1.GetTunnelCredentialRequest, v1.GetTunnelCredentialResponse] - listTunnelCredentials *connect.Client[v1.ListTunnelCredentialsRequest, v1.ListTunnelCredentialsResponse] - deleteTunnelCredential *connect.Client[v1.DeleteTunnelCredentialRequest, v1.DeleteTunnelCredentialResponse] - createPrivateResource *connect.Client[v1.CreatePrivateResourceRequest, v1.CreatePrivateResourceResponse] - getPrivateResource *connect.Client[v1.GetPrivateResourceRequest, v1.GetPrivateResourceResponse] - listPrivateResources *connect.Client[v1.ListPrivateResourcesRequest, v1.ListPrivateResourcesResponse] - updatePrivateResource *connect.Client[v1.UpdatePrivateResourceRequest, v1.UpdatePrivateResourceResponse] - deletePrivateResource *connect.Client[v1.DeletePrivateResourceRequest, v1.DeletePrivateResourceResponse] - createPrivateResourceAccess *connect.Client[v1.CreatePrivateResourceAccessRequest, v1.CreatePrivateResourceAccessResponse] - deletePrivateResourceAccess *connect.Client[v1.DeletePrivateResourceAccessRequest, v1.DeletePrivateResourceAccessResponse] - listPrivateResourceAccess *connect.Client[v1.ListPrivateResourceAccessRequest, v1.ListPrivateResourceAccessResponse] + createNetwork *connect.Client[v1.CreateNetworkRequest, v1.CreateNetworkResponse] + getNetwork *connect.Client[v1.GetNetworkRequest, v1.GetNetworkResponse] + listNetworks *connect.Client[v1.ListNetworksRequest, v1.ListNetworksResponse] + updateNetwork *connect.Client[v1.UpdateNetworkRequest, v1.UpdateNetworkResponse] + deleteNetwork *connect.Client[v1.DeleteNetworkRequest, v1.DeleteNetworkResponse] + createTunnelCredential *connect.Client[v1.CreateTunnelCredentialRequest, v1.CreateTunnelCredentialResponse] + getTunnelCredential *connect.Client[v1.GetTunnelCredentialRequest, v1.GetTunnelCredentialResponse] + listTunnelCredentials *connect.Client[v1.ListTunnelCredentialsRequest, v1.ListTunnelCredentialsResponse] + deleteTunnelCredential *connect.Client[v1.DeleteTunnelCredentialRequest, v1.DeleteTunnelCredentialResponse] + createPrivateResource *connect.Client[v1.CreatePrivateResourceRequest, v1.CreatePrivateResourceResponse] + getPrivateResource *connect.Client[v1.GetPrivateResourceRequest, v1.GetPrivateResourceResponse] + listPrivateResources *connect.Client[v1.ListPrivateResourcesRequest, v1.ListPrivateResourcesResponse] + updatePrivateResource *connect.Client[v1.UpdatePrivateResourceRequest, v1.UpdatePrivateResourceResponse] + deletePrivateResource *connect.Client[v1.DeletePrivateResourceRequest, v1.DeletePrivateResourceResponse] + createPrivateResourceAccess *connect.Client[v1.CreatePrivateResourceAccessRequest, v1.CreatePrivateResourceAccessResponse] + deletePrivateResourceAccess *connect.Client[v1.DeletePrivateResourceAccessRequest, v1.DeletePrivateResourceAccessResponse] + listPrivateResourceAccess *connect.Client[v1.ListPrivateResourceAccessRequest, v1.ListPrivateResourceAccessResponse] + setPrivateResourceMediation *connect.Client[v1.SetPrivateResourceMediationRequest, v1.SetPrivateResourceMediationResponse] + listPrivateResourcesReachableBy *connect.Client[v1.ListPrivateResourcesReachableByRequest, v1.ListPrivateResourcesReachableByResponse] + deleteOrganizationResources *connect.Client[v1.DeleteOrganizationResourcesRequest, v1.DeleteOrganizationResourcesResponse] } // CreateNetwork calls agynio.api.networks.v1.NetworksService.CreateNetwork. @@ -335,6 +369,24 @@ func (c *networksServiceClient) ListPrivateResourceAccess(ctx context.Context, r return c.listPrivateResourceAccess.CallUnary(ctx, req) } +// SetPrivateResourceMediation calls +// agynio.api.networks.v1.NetworksService.SetPrivateResourceMediation. +func (c *networksServiceClient) SetPrivateResourceMediation(ctx context.Context, req *connect.Request[v1.SetPrivateResourceMediationRequest]) (*connect.Response[v1.SetPrivateResourceMediationResponse], error) { + return c.setPrivateResourceMediation.CallUnary(ctx, req) +} + +// ListPrivateResourcesReachableBy calls +// agynio.api.networks.v1.NetworksService.ListPrivateResourcesReachableBy. +func (c *networksServiceClient) ListPrivateResourcesReachableBy(ctx context.Context, req *connect.Request[v1.ListPrivateResourcesReachableByRequest]) (*connect.Response[v1.ListPrivateResourcesReachableByResponse], error) { + return c.listPrivateResourcesReachableBy.CallUnary(ctx, req) +} + +// DeleteOrganizationResources calls +// agynio.api.networks.v1.NetworksService.DeleteOrganizationResources. +func (c *networksServiceClient) DeleteOrganizationResources(ctx context.Context, req *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) { + return c.deleteOrganizationResources.CallUnary(ctx, req) +} + // NetworksServiceHandler is an implementation of the agynio.api.networks.v1.NetworksService // service. type NetworksServiceHandler interface { @@ -359,6 +411,10 @@ type NetworksServiceHandler interface { CreatePrivateResourceAccess(context.Context, *connect.Request[v1.CreatePrivateResourceAccessRequest]) (*connect.Response[v1.CreatePrivateResourceAccessResponse], error) DeletePrivateResourceAccess(context.Context, *connect.Request[v1.DeletePrivateResourceAccessRequest]) (*connect.Response[v1.DeletePrivateResourceAccessResponse], error) ListPrivateResourceAccess(context.Context, *connect.Request[v1.ListPrivateResourceAccessRequest]) (*connect.Response[v1.ListPrivateResourceAccessResponse], error) + // --- Internal --- + SetPrivateResourceMediation(context.Context, *connect.Request[v1.SetPrivateResourceMediationRequest]) (*connect.Response[v1.SetPrivateResourceMediationResponse], error) + ListPrivateResourcesReachableBy(context.Context, *connect.Request[v1.ListPrivateResourcesReachableByRequest]) (*connect.Response[v1.ListPrivateResourcesReachableByResponse], error) + DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) } // NewNetworksServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -470,6 +526,24 @@ func NewNetworksServiceHandler(svc NetworksServiceHandler, opts ...connect.Handl connect.WithSchema(networksServiceMethods.ByName("ListPrivateResourceAccess")), connect.WithHandlerOptions(opts...), ) + networksServiceSetPrivateResourceMediationHandler := connect.NewUnaryHandler( + NetworksServiceSetPrivateResourceMediationProcedure, + svc.SetPrivateResourceMediation, + connect.WithSchema(networksServiceMethods.ByName("SetPrivateResourceMediation")), + connect.WithHandlerOptions(opts...), + ) + networksServiceListPrivateResourcesReachableByHandler := connect.NewUnaryHandler( + NetworksServiceListPrivateResourcesReachableByProcedure, + svc.ListPrivateResourcesReachableBy, + connect.WithSchema(networksServiceMethods.ByName("ListPrivateResourcesReachableBy")), + connect.WithHandlerOptions(opts...), + ) + networksServiceDeleteOrganizationResourcesHandler := connect.NewUnaryHandler( + NetworksServiceDeleteOrganizationResourcesProcedure, + svc.DeleteOrganizationResources, + connect.WithSchema(networksServiceMethods.ByName("DeleteOrganizationResources")), + connect.WithHandlerOptions(opts...), + ) return "/agynio.api.networks.v1.NetworksService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case NetworksServiceCreateNetworkProcedure: @@ -506,6 +580,12 @@ func NewNetworksServiceHandler(svc NetworksServiceHandler, opts ...connect.Handl networksServiceDeletePrivateResourceAccessHandler.ServeHTTP(w, r) case NetworksServiceListPrivateResourceAccessProcedure: networksServiceListPrivateResourceAccessHandler.ServeHTTP(w, r) + case NetworksServiceSetPrivateResourceMediationProcedure: + networksServiceSetPrivateResourceMediationHandler.ServeHTTP(w, r) + case NetworksServiceListPrivateResourcesReachableByProcedure: + networksServiceListPrivateResourcesReachableByHandler.ServeHTTP(w, r) + case NetworksServiceDeleteOrganizationResourcesProcedure: + networksServiceDeleteOrganizationResourcesHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -582,3 +662,15 @@ func (UnimplementedNetworksServiceHandler) DeletePrivateResourceAccess(context.C func (UnimplementedNetworksServiceHandler) ListPrivateResourceAccess(context.Context, *connect.Request[v1.ListPrivateResourceAccessRequest]) (*connect.Response[v1.ListPrivateResourceAccessResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.networks.v1.NetworksService.ListPrivateResourceAccess is not implemented")) } + +func (UnimplementedNetworksServiceHandler) SetPrivateResourceMediation(context.Context, *connect.Request[v1.SetPrivateResourceMediationRequest]) (*connect.Response[v1.SetPrivateResourceMediationResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.networks.v1.NetworksService.SetPrivateResourceMediation is not implemented")) +} + +func (UnimplementedNetworksServiceHandler) ListPrivateResourcesReachableBy(context.Context, *connect.Request[v1.ListPrivateResourcesReachableByRequest]) (*connect.Response[v1.ListPrivateResourcesReachableByResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.networks.v1.NetworksService.ListPrivateResourcesReachableBy is not implemented")) +} + +func (UnimplementedNetworksServiceHandler) DeleteOrganizationResources(context.Context, *connect.Request[v1.DeleteOrganizationResourcesRequest]) (*connect.Response[v1.DeleteOrganizationResourcesResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("agynio.api.networks.v1.NetworksService.DeleteOrganizationResources is not implemented")) +} From 8bd00b28e085d7fb85e860a001e7563ea67a918f Mon Sep 17 00:00:00 2001 From: Vitalii Valkov Date: Sat, 31 Oct 2026 20:44:15 +0100 Subject: [PATCH 2/2] Call a hibernated sandbox hibernated The Agents service reports SANDBOX_STATUS_HIBERNATED for a sandbox whose idle timeout put it to sleep on a runner that can hibernate, and `agyn sandbox list` printed it as "unknown" -- for the one state that says everything in the sandbox is still there, a connect away. sandboxStatusLabel names it, which covers list, stop and delete, and the candidates a command lists when it is given no name and the caller has several sandboxes. A sync session over a hibernated sandbox already paused, as it should: automatic resumption no more wakes a sandbox than it restarts one. But it said "the sandbox is stopped" -- in `sync status`, in the session's note and in its log -- and now says hibernated. connect needs nothing new. EnsureSandboxRunning wakes a hibernated sandbox by writing it starting, and the wait for running that follows is the one a restart already takes. start creates its sandbox and never meets a hibernated one. Sandboxes have no hibernating or waking status; those belong to workloads, which nothing in the CLI reads. The label test walks SandboxStatus_name, so the first CI run after the API gains a status the CLI has no name for fails, rather than leaving it to someone reading "unknown" in a list. --- internal/cmd/sandbox.go | 7 +++-- internal/cmd/sandbox_status_test.go | 33 ++++++++++++++++++++ internal/cmd/sandbox_sync_run.go | 6 ++-- internal/sync/session/runner.go | 12 +++++--- internal/sync/session/runner_test.go | 46 ++++++++++++++++++++++++++++ internal/sync/session/state.go | 5 +-- 6 files changed, 98 insertions(+), 11 deletions(-) create mode 100644 internal/cmd/sandbox_status_test.go diff --git a/internal/cmd/sandbox.go b/internal/cmd/sandbox.go index e7cdcd3..4242981 100644 --- a/internal/cmd/sandbox.go +++ b/internal/cmd/sandbox.go @@ -168,8 +168,9 @@ func newSandboxConnectCmd() *cobra.Command { return err } - // EnsureSandboxRunning is a no-op when running, a restart when - // stopped, and a fresh start attempt when failed. + // EnsureSandboxRunning is a no-op when running, a wake when + // hibernated, a restart when stopped, and a fresh start attempt + // when failed. ensured, err := clients.agents.EnsureSandboxRunning(ctx, connect.NewRequest(&agentsv1.EnsureSandboxRunningRequest{ Id: sandbox.GetMeta().GetId(), })) @@ -416,6 +417,8 @@ func sandboxStatusLabel(status agentsv1.SandboxStatus) string { return "failed" case agentsv1.SandboxStatus_SANDBOX_STATUS_TERMINATED: return "terminated" + case agentsv1.SandboxStatus_SANDBOX_STATUS_HIBERNATED: + return "hibernated" default: return "unknown" } diff --git a/internal/cmd/sandbox_status_test.go b/internal/cmd/sandbox_status_test.go new file mode 100644 index 0000000..e0bdd7e --- /dev/null +++ b/internal/cmd/sandbox_status_test.go @@ -0,0 +1,33 @@ +package cmd + +import ( + "testing" + + agentsv1 "github.com/agynio/agyn-cli/gen/agynio/api/agents/v1" +) + +// Every status the API defines has a name at the shell. A value the CLI has not +// learned is listed as "unknown", which for a hibernated sandbox — asleep, its +// shells intact, one `connect` from back — reads as something gone wrong. +func TestEverySandboxStatusHasALabel(t *testing.T) { + labels := map[agentsv1.SandboxStatus]string{ + agentsv1.SandboxStatus_SANDBOX_STATUS_UNSPECIFIED: "unknown", + agentsv1.SandboxStatus_SANDBOX_STATUS_STARTING: "starting", + agentsv1.SandboxStatus_SANDBOX_STATUS_RUNNING: "running", + agentsv1.SandboxStatus_SANDBOX_STATUS_STOPPED: "stopped", + agentsv1.SandboxStatus_SANDBOX_STATUS_FAILED: "failed", + agentsv1.SandboxStatus_SANDBOX_STATUS_TERMINATED: "terminated", + agentsv1.SandboxStatus_SANDBOX_STATUS_HIBERNATED: "hibernated", + } + for number, name := range agentsv1.SandboxStatus_name { + status := agentsv1.SandboxStatus(number) + want, ok := labels[status] + if !ok { + t.Errorf("%s has no label here; name it in sandboxStatusLabel and in this table", name) + continue + } + if got := sandboxStatusLabel(status); got != want { + t.Errorf("sandboxStatusLabel(%s) = %q, want %q", name, got, want) + } + } +} diff --git a/internal/cmd/sandbox_sync_run.go b/internal/cmd/sandbox_sync_run.go index a19cac9..3de2829 100644 --- a/internal/cmd/sandbox_sync_run.go +++ b/internal/cmd/sandbox_sync_run.go @@ -257,8 +257,8 @@ func runSession(ctx context.Context, clients *sandboxClients, store *session.Sto if err != nil { return nil, err } - // Reconnect never restarts a stopped sandbox — a background file - // change must not start billable compute. + // Reconnect never restarts a stopped sandbox or wakes a hibernated + // one — a background file change must not start billable compute. if current.Msg.GetSandbox().GetStatus() != agentsv1.SandboxStatus_SANDBOX_STATUS_RUNNING { return nil, fmt.Errorf("sandbox %s is not running", state.Sandbox) } @@ -282,6 +282,8 @@ func runSession(ctx context.Context, clients *sandboxClients, store *session.Sto switch current.Msg.GetSandbox().GetStatus() { case agentsv1.SandboxStatus_SANDBOX_STATUS_RUNNING: return session.SandboxRunning, nil + case agentsv1.SandboxStatus_SANDBOX_STATUS_HIBERNATED: + return session.SandboxHibernated, nil case agentsv1.SandboxStatus_SANDBOX_STATUS_TERMINATED: return session.SandboxTerminated, nil default: diff --git a/internal/sync/session/runner.go b/internal/sync/session/runner.go index deb6267..f162e7f 100644 --- a/internal/sync/session/runner.go +++ b/internal/sync/session/runner.go @@ -26,6 +26,7 @@ type SandboxState string const ( SandboxRunning SandboxState = "running" SandboxStopped SandboxState = "stopped" + SandboxHibernated SandboxState = "hibernated" SandboxTerminated SandboxState = "terminated" ) @@ -97,11 +98,12 @@ func (r *Runner) Run(ctx context.Context) error { r.setStatus(StatusHalted, "the sandbox was terminated") r.Log("halted: the sandbox was terminated") return &Halt{Reason: HaltSandboxGone, Detail: "the sandbox was terminated"} - case stateErr == nil && state == SandboxStopped: - // Pause, and never restart it. Resumes when the engineer next - // connects. - r.setStatus(StatusPaused, "the sandbox is stopped") - r.Log("paused: the sandbox is stopped") + case stateErr == nil && (state == SandboxStopped || state == SandboxHibernated): + // Pause, and never restart or wake it. Resumes when the engineer + // next connects. + note := "the sandbox is " + string(state) + r.setStatus(StatusPaused, note) + r.Log("paused: %s", note) if !sleep(ctx, pausedPoll) { return nil } diff --git a/internal/sync/session/runner_test.go b/internal/sync/session/runner_test.go index 5b84596..8821544 100644 --- a/internal/sync/session/runner_test.go +++ b/internal/sync/session/runner_test.go @@ -91,3 +91,49 @@ func TestSilentFailureReconnectsRatherThanHalting(t *testing.T) { t.Fatal("a silent transport failure halted the session") } } + +// A sandbox at rest pauses the session rather than halting it, and the pause +// names which rest: a hibernated sandbox is asleep with everything in it kept, +// which "stopped" would misstate. +func TestSandboxAtRestPausesTheSession(t *testing.T) { + cases := []struct { + state SandboxState + note string + }{ + {state: SandboxStopped, note: "the sandbox is stopped"}, + {state: SandboxHibernated, note: "the sandbox is hibernated"}, + } + for _, testCase := range cases { + t.Run(string(testCase.state), func(t *testing.T) { + store := NewStore(t.TempDir()) + state := &State{ID: "s", Name: "s", LocalRoot: t.TempDir(), Status: StatusIdle} + + dials := 0 + runner := &Runner{ + State: state, + Store: store, + Dial: func(context.Context) (*Connection, error) { + dials++ + return nil, errors.New("sandbox s is not running") + }, + Sandbox: func(context.Context) (SandboxState, error) { return testCase.state, nil }, + } + + // Far shorter than the paused poll, so Run returns while paused. + ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond) + defer cancel() + if err := runner.Run(ctx); err != nil { + t.Fatalf("expected a pause, got %v", err) + } + if state.Status != StatusPaused { + t.Fatalf("session left in %s rather than paused", state.Status) + } + if state.StatusNote != testCase.note { + t.Fatalf("expected note %q, got %q", testCase.note, state.StatusNote) + } + if dials != 1 { + t.Fatalf("expected one attempt, got %d — a paused session dialed again", dials) + } + }) + } +} diff --git a/internal/sync/session/state.go b/internal/sync/session/state.go index eb64d92..b6d669a 100644 --- a/internal/sync/session/state.go +++ b/internal/sync/session/state.go @@ -63,8 +63,9 @@ type Status string const ( StatusIdle Status = "idle" StatusSyncing Status = "syncing" - // StatusPaused is a sandbox that stopped. Automatic resumption never - // restarts it — a background file change must not start billable compute. + // StatusPaused is a sandbox that stopped or hibernated. Automatic + // resumption never restarts or wakes it — a background file change must + // not start billable compute. StatusPaused Status = "paused" // StatusHalted is durable and safe to remain in indefinitely, which is what // makes it acceptable for a background process nobody may be watching.