diff --git a/internal/api/osac/private/v1/public_ip_pool_type.pb.go b/internal/api/osac/private/v1/public_ip_pool_type.pb.go new file mode 100644 index 000000000..c712f447a --- /dev/null +++ b/internal/api/osac/private/v1/public_ip_pool_type.pb.go @@ -0,0 +1,754 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: osac/private/v1/public_ip_pool_type.proto + +//go:build !protoopaque + +package privatev1 + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// IP address family for a PublicIPPool. +type IPFamily int32 + +const ( + // IP family is unknown or has not been specified. + IPFamily_IP_FAMILY_UNSPECIFIED IPFamily = 0 + // IPv4 address family. CIDRs must be valid IPv4 CIDR notation. + IPFamily_IP_FAMILY_IPV4 IPFamily = 1 + // IPv6 address family. CIDRs must be valid IPv6 CIDR notation. + IPFamily_IP_FAMILY_IPV6 IPFamily = 2 +) + +// Enum value maps for IPFamily. +var ( + IPFamily_name = map[int32]string{ + 0: "IP_FAMILY_UNSPECIFIED", + 1: "IP_FAMILY_IPV4", + 2: "IP_FAMILY_IPV6", + } + IPFamily_value = map[string]int32{ + "IP_FAMILY_UNSPECIFIED": 0, + "IP_FAMILY_IPV4": 1, + "IP_FAMILY_IPV6": 2, + } +) + +func (x IPFamily) Enum() *IPFamily { + p := new(IPFamily) + *p = x + return p +} + +func (x IPFamily) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IPFamily) Descriptor() protoreflect.EnumDescriptor { + return file_osac_private_v1_public_ip_pool_type_proto_enumTypes[0].Descriptor() +} + +func (IPFamily) Type() protoreflect.EnumType { + return &file_osac_private_v1_public_ip_pool_type_proto_enumTypes[0] +} + +func (x IPFamily) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Lifecycle states for PublicIPPool resources. +// +// State transitions typically follow: UNSPECIFIED -> PENDING -> READY, with FAILED as a terminal +// error state that may require user intervention or resource recreation. +// +// The CRD phase "Progressing" maps to PENDING at the proto level. This is consistent with all +// networking resources in the fulfillment-service (VirtualNetwork, Subnet, SecurityGroup, +// NetworkClass, HostClass). PENDING describes user-facing readiness ("not usable yet"), while +// the CRD phase describes controller activity ("reconciliation in progress"). +type PublicIPPoolState int32 + +const ( + // State is unknown or has not been determined yet. Default state before initialization. + PublicIPPoolState_PUBLIC_IP_POOL_STATE_UNSPECIFIED PublicIPPoolState = 0 + // The pool is being provisioned and is not ready for IP allocation yet. + // + // During this state, the system is creating the MetalLB IPAddressPool on the target cluster + // and configuring L2 advertisement. Maps from CRD phase "Progressing". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_PENDING PublicIPPoolState = 1 + // The pool is fully operational and ready for PublicIP allocation. + // + // MetalLB IPAddressPool is configured and L2 advertisement is active. PublicIPs can be + // allocated from this pool's CIDR ranges. Maps from CRD phase "Ready". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_READY PublicIPPoolState = 2 + // The pool provisioning has failed. + // + // The status.message field contains error details. Common causes include MetalLB configuration + // errors or cluster connectivity issues. Maps from CRD phase "Failed". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_FAILED PublicIPPoolState = 3 + // The pool is being deleted. + // + // During this state, the system is removing the MetalLB IPAddressPool and cleaning up + // cluster resources. Deletion is rejected if allocated PublicIPs still reference this pool. + // Maps from CRD phase "Deleting". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_DELETING PublicIPPoolState = 4 + // The pool deletion has failed. + // + // The deprovision operation encountered an error and could not complete. The status.message + // field contains error details. Manual intervention may be required before retrying deletion. + // No CRD phase equivalent (follows the Subnet pattern for proto-level tracking). + PublicIPPoolState_PUBLIC_IP_POOL_STATE_DELETE_FAILED PublicIPPoolState = 5 +) + +// Enum value maps for PublicIPPoolState. +var ( + PublicIPPoolState_name = map[int32]string{ + 0: "PUBLIC_IP_POOL_STATE_UNSPECIFIED", + 1: "PUBLIC_IP_POOL_STATE_PENDING", + 2: "PUBLIC_IP_POOL_STATE_READY", + 3: "PUBLIC_IP_POOL_STATE_FAILED", + 4: "PUBLIC_IP_POOL_STATE_DELETING", + 5: "PUBLIC_IP_POOL_STATE_DELETE_FAILED", + } + PublicIPPoolState_value = map[string]int32{ + "PUBLIC_IP_POOL_STATE_UNSPECIFIED": 0, + "PUBLIC_IP_POOL_STATE_PENDING": 1, + "PUBLIC_IP_POOL_STATE_READY": 2, + "PUBLIC_IP_POOL_STATE_FAILED": 3, + "PUBLIC_IP_POOL_STATE_DELETING": 4, + "PUBLIC_IP_POOL_STATE_DELETE_FAILED": 5, + } +) + +func (x PublicIPPoolState) Enum() *PublicIPPoolState { + p := new(PublicIPPoolState) + *p = x + return p +} + +func (x PublicIPPoolState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PublicIPPoolState) Descriptor() protoreflect.EnumDescriptor { + return file_osac_private_v1_public_ip_pool_type_proto_enumTypes[1].Descriptor() +} + +func (PublicIPPoolState) Type() protoreflect.EnumType { + return &file_osac_private_v1_public_ip_pool_type_proto_enumTypes[1] +} + +func (x PublicIPPoolState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Represents a pool of public IP addresses available for allocation to compute instances. +// +// Each PublicIPPool supports a single IP family (IPv4 or IPv6). The pool contains one or more CIDR +// ranges from which individual PublicIP addresses are allocated. Pools are provider-managed +// resources created by administrators through the private API. +// +// The implementation_strategy field determines how IPs from this pool are advertised on the target +// cluster (e.g., MetalLB L2 mode). This field is set by the system and is not user-configurable. +// +// Capacity tracking fields in the status (total, allocated, available) reflect the current utilization +// of the pool across all its CIDR ranges. +type PublicIPPool struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Unique identifier of the public IP pool. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Metadata of the public IP pool, including name, labels, and timestamps. + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Desired configuration of the public IP pool (admin-specified). + Spec *PublicIPPoolSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` + // Current state of the public IP pool (system-provided, read-only). + Status *PublicIPPoolStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPool) Reset() { + *x = PublicIPPool{} + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPool) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPool) ProtoMessage() {} + +func (x *PublicIPPool) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPool) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PublicIPPool) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *PublicIPPool) GetSpec() *PublicIPPoolSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *PublicIPPool) GetStatus() *PublicIPPoolStatus { + if x != nil { + return x.Status + } + return nil +} + +func (x *PublicIPPool) SetId(v string) { + x.Id = v +} + +func (x *PublicIPPool) SetMetadata(v *Metadata) { + x.Metadata = v +} + +func (x *PublicIPPool) SetSpec(v *PublicIPPoolSpec) { + x.Spec = v +} + +func (x *PublicIPPool) SetStatus(v *PublicIPPoolStatus) { + x.Status = v +} + +func (x *PublicIPPool) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *PublicIPPool) HasSpec() bool { + if x == nil { + return false + } + return x.Spec != nil +} + +func (x *PublicIPPool) HasStatus() bool { + if x == nil { + return false + } + return x.Status != nil +} + +func (x *PublicIPPool) ClearMetadata() { + x.Metadata = nil +} + +func (x *PublicIPPool) ClearSpec() { + x.Spec = nil +} + +func (x *PublicIPPool) ClearStatus() { + x.Status = nil +} + +type PublicIPPool_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unique identifier of the public IP pool. + Id string + // Metadata of the public IP pool, including name, labels, and timestamps. + Metadata *Metadata + // Desired configuration of the public IP pool (admin-specified). + Spec *PublicIPPoolSpec + // Current state of the public IP pool (system-provided, read-only). + Status *PublicIPPoolStatus +} + +func (b0 PublicIPPool_builder) Build() *PublicIPPool { + m0 := &PublicIPPool{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Metadata = b.Metadata + x.Spec = b.Spec + x.Status = b.Status + return m0 +} + +// Defines the desired configuration for a PublicIPPool. +// +// All spec fields are immutable after creation. To change CIDRs, delete the pool and create a +// new one. The Update RPC only allows metadata changes (name, labels, annotations). +type PublicIPPoolSpec struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // CIDR ranges for this pool. Required and immutable after creation. + // + // Each entry must be valid CIDR notation matching the declared ip_family. All CIDRs must be + // the same IP family. CIDRs must not overlap with CIDRs in other pools. + // + // Example (IPv4): ["192.168.1.0/24", "10.0.5.0/28"] + // Example (IPv6): ["2001:db8::/64"] + Cidrs []string `protobuf:"bytes,2,rep,name=cidrs,proto3" json:"cidrs,omitempty"` + // IP address family for this pool. Required and immutable after creation. + // + // Determines whether the CIDRs in this pool are IPv4 or IPv6. All CIDRs must match this + // family. A single pool cannot mix IPv4 and IPv6 ranges. + IpFamily IPFamily `protobuf:"varint,3,opt,name=ip_family,json=ipFamily,proto3,enum=osac.private.v1.IPFamily" json:"ip_family,omitempty"` + // Backend strategy used to advertise IPs from this pool on the target cluster. + // + // Set by the system based on cluster configuration. Not user-configurable. Currently the + // only supported strategy is "metallb-l2" (MetalLB Layer 2 advertisement mode). + ImplementationStrategy string `protobuf:"bytes,4,opt,name=implementation_strategy,json=implementationStrategy,proto3" json:"implementation_strategy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolSpec) Reset() { + *x = PublicIPPoolSpec{} + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolSpec) ProtoMessage() {} + +func (x *PublicIPPoolSpec) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolSpec) GetCidrs() []string { + if x != nil { + return x.Cidrs + } + return nil +} + +func (x *PublicIPPoolSpec) GetIpFamily() IPFamily { + if x != nil { + return x.IpFamily + } + return IPFamily_IP_FAMILY_UNSPECIFIED +} + +func (x *PublicIPPoolSpec) GetImplementationStrategy() string { + if x != nil { + return x.ImplementationStrategy + } + return "" +} + +func (x *PublicIPPoolSpec) SetCidrs(v []string) { + x.Cidrs = v +} + +func (x *PublicIPPoolSpec) SetIpFamily(v IPFamily) { + x.IpFamily = v +} + +func (x *PublicIPPoolSpec) SetImplementationStrategy(v string) { + x.ImplementationStrategy = v +} + +type PublicIPPoolSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // CIDR ranges for this pool. Required and immutable after creation. + // + // Each entry must be valid CIDR notation matching the declared ip_family. All CIDRs must be + // the same IP family. CIDRs must not overlap with CIDRs in other pools. + // + // Example (IPv4): ["192.168.1.0/24", "10.0.5.0/28"] + // Example (IPv6): ["2001:db8::/64"] + Cidrs []string + // IP address family for this pool. Required and immutable after creation. + // + // Determines whether the CIDRs in this pool are IPv4 or IPv6. All CIDRs must match this + // family. A single pool cannot mix IPv4 and IPv6 ranges. + IpFamily IPFamily + // Backend strategy used to advertise IPs from this pool on the target cluster. + // + // Set by the system based on cluster configuration. Not user-configurable. Currently the + // only supported strategy is "metallb-l2" (MetalLB Layer 2 advertisement mode). + ImplementationStrategy string +} + +func (b0 PublicIPPoolSpec_builder) Build() *PublicIPPoolSpec { + m0 := &PublicIPPoolSpec{} + b, x := &b0, m0 + _, _ = b, x + x.Cidrs = b.Cidrs + x.IpFamily = b.IpFamily + x.ImplementationStrategy = b.ImplementationStrategy + return m0 +} + +// Represents the current operational state of a PublicIPPool. +// +// Status is system-provided and read-only. Users cannot modify status fields directly; the system +// updates them based on reconciliation of the spec and feedback from the cluster controller. +type PublicIPPoolStatus struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Current lifecycle state of the public IP pool. + State PublicIPPoolState `protobuf:"varint,1,opt,name=state,proto3,enum=osac.private.v1.PublicIPPoolState" json:"state,omitempty"` + // Human-readable message providing additional details about the current state. + // + // For PENDING state, may contain progress information like "Waiting for MetalLB configuration". + // For FAILED state, contains error details. For READY state, typically empty. + Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"` + // Identifier of the hub cluster that this pool is deployed to. + // + // Set by the fulfillment-service controller when reconciling the pool to a Kubernetes CR on + // the target hub cluster. Used for tracking which cluster the pool resources reside on. + Hub string `protobuf:"bytes,3,opt,name=hub,proto3" json:"hub,omitempty"` + // Total number of usable IP addresses across all CIDRs in this pool. + // + // Calculated from the CIDR ranges (e.g., a /24 IPv4 CIDR yields 254 usable addresses, + // excluding network and broadcast addresses). Uses int64 to accommodate large IPv6 CIDR + // ranges whose address counts exceed int32 capacity. + Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` + // Number of IP addresses currently allocated to PublicIP resources from this pool. + Allocated int64 `protobuf:"varint,5,opt,name=allocated,proto3" json:"allocated,omitempty"` + // Number of IP addresses available for new allocations from this pool. + // + // Equal to total minus allocated. + Available int64 `protobuf:"varint,6,opt,name=available,proto3" json:"available,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolStatus) Reset() { + *x = PublicIPPoolStatus{} + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolStatus) ProtoMessage() {} + +func (x *PublicIPPoolStatus) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pool_type_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) +} + +func (x *PublicIPPoolStatus) GetState() PublicIPPoolState { + if x != nil { + return x.State + } + return PublicIPPoolState_PUBLIC_IP_POOL_STATE_UNSPECIFIED +} + +func (x *PublicIPPoolStatus) GetMessage() string { + if x != nil && x.Message != nil { + return *x.Message + } + return "" +} + +func (x *PublicIPPoolStatus) GetHub() string { + if x != nil { + return x.Hub + } + return "" +} + +func (x *PublicIPPoolStatus) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *PublicIPPoolStatus) GetAllocated() int64 { + if x != nil { + return x.Allocated + } + return 0 +} + +func (x *PublicIPPoolStatus) GetAvailable() int64 { + if x != nil { + return x.Available + } + return 0 +} + +func (x *PublicIPPoolStatus) SetState(v PublicIPPoolState) { + x.State = v +} + +func (x *PublicIPPoolStatus) SetMessage(v string) { + x.Message = &v +} + +func (x *PublicIPPoolStatus) SetHub(v string) { + x.Hub = v +} + +func (x *PublicIPPoolStatus) SetTotal(v int64) { + x.Total = v +} + +func (x *PublicIPPoolStatus) SetAllocated(v int64) { + x.Allocated = v +} + +func (x *PublicIPPoolStatus) SetAvailable(v int64) { + x.Available = v +} + +func (x *PublicIPPoolStatus) HasMessage() bool { + if x == nil { + return false + } + return x.Message != nil +} + +func (x *PublicIPPoolStatus) ClearMessage() { + x.Message = nil +} + +type PublicIPPoolStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Current lifecycle state of the public IP pool. + State PublicIPPoolState + // Human-readable message providing additional details about the current state. + // + // For PENDING state, may contain progress information like "Waiting for MetalLB configuration". + // For FAILED state, contains error details. For READY state, typically empty. + Message *string + // Identifier of the hub cluster that this pool is deployed to. + // + // Set by the fulfillment-service controller when reconciling the pool to a Kubernetes CR on + // the target hub cluster. Used for tracking which cluster the pool resources reside on. + Hub string + // Total number of usable IP addresses across all CIDRs in this pool. + // + // Calculated from the CIDR ranges (e.g., a /24 IPv4 CIDR yields 254 usable addresses, + // excluding network and broadcast addresses). Uses int64 to accommodate large IPv6 CIDR + // ranges whose address counts exceed int32 capacity. + Total int64 + // Number of IP addresses currently allocated to PublicIP resources from this pool. + Allocated int64 + // Number of IP addresses available for new allocations from this pool. + // + // Equal to total minus allocated. + Available int64 +} + +func (b0 PublicIPPoolStatus_builder) Build() *PublicIPPoolStatus { + m0 := &PublicIPPoolStatus{} + b, x := &b0, m0 + _, _ = b, x + x.State = b.State + x.Message = b.Message + x.Hub = b.Hub + x.Total = b.Total + x.Allocated = b.Allocated + x.Available = b.Available + return m0 +} + +var File_osac_private_v1_public_ip_pool_type_proto protoreflect.FileDescriptor + +var file_osac_private_v1_public_ip_pool_type_proto_rawDesc = string([]byte{ + 0x0a, 0x29, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6f, 0x73, 0x61, + 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, + 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6f, + 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xc9, 0x01, 0x0a, 0x0c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, + 0x63, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xb1, + 0x01, 0x0a, 0x10, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x1c, 0x0a, 0x05, 0x63, 0x69, 0x64, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x05, 0x63, 0x69, 0x64, 0x72, + 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x69, 0x70, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x50, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x42, + 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x08, 0x69, 0x70, 0x46, 0x61, 0x6d, 0x69, 0x6c, + 0x79, 0x12, 0x3f, 0x0a, 0x17, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x16, 0x69, 0x6d, 0x70, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x22, 0xdd, 0x01, 0x0a, 0x12, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x88, + 0x01, 0x01, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x75, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x68, 0x75, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2a, 0x4d, 0x0a, 0x08, 0x49, 0x50, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x19, + 0x0a, 0x15, 0x49, 0x50, 0x5f, 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x50, 0x5f, + 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x5f, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, 0x12, 0x12, 0x0a, + 0x0e, 0x49, 0x50, 0x5f, 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x5f, 0x49, 0x50, 0x56, 0x36, 0x10, + 0x02, 0x2a, 0xe7, 0x01, 0x0a, 0x11, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x55, 0x42, 0x4c, 0x49, + 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, + 0x1c, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, + 0x1e, 0x0a, 0x1a, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, + 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, + 0x1f, 0x0a, 0x1b, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, + 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, + 0x4f, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, + 0x47, 0x10, 0x04, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, + 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, + 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x42, 0xe0, 0x01, 0x0a, 0x13, + 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x42, 0x15, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x70, 0x50, 0x6f, 0x6f, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x52, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, + 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x4f, 0x50, 0x58, 0xaa, 0x02, 0x0f, 0x4f, 0x73, 0x61, 0x63, 0x2e, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x4f, 0x73, 0x61, 0x63, 0x5c, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4f, 0x73, + 0x61, 0x63, 0x5c, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4f, 0x73, 0x61, + 0x63, 0x3a, 0x3a, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) + +var file_osac_private_v1_public_ip_pool_type_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_osac_private_v1_public_ip_pool_type_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_osac_private_v1_public_ip_pool_type_proto_goTypes = []any{ + (IPFamily)(0), // 0: osac.private.v1.IPFamily + (PublicIPPoolState)(0), // 1: osac.private.v1.PublicIPPoolState + (*PublicIPPool)(nil), // 2: osac.private.v1.PublicIPPool + (*PublicIPPoolSpec)(nil), // 3: osac.private.v1.PublicIPPoolSpec + (*PublicIPPoolStatus)(nil), // 4: osac.private.v1.PublicIPPoolStatus + (*Metadata)(nil), // 5: osac.private.v1.Metadata +} +var file_osac_private_v1_public_ip_pool_type_proto_depIdxs = []int32{ + 5, // 0: osac.private.v1.PublicIPPool.metadata:type_name -> osac.private.v1.Metadata + 3, // 1: osac.private.v1.PublicIPPool.spec:type_name -> osac.private.v1.PublicIPPoolSpec + 4, // 2: osac.private.v1.PublicIPPool.status:type_name -> osac.private.v1.PublicIPPoolStatus + 0, // 3: osac.private.v1.PublicIPPoolSpec.ip_family:type_name -> osac.private.v1.IPFamily + 1, // 4: osac.private.v1.PublicIPPoolStatus.state:type_name -> osac.private.v1.PublicIPPoolState + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_osac_private_v1_public_ip_pool_type_proto_init() } +func file_osac_private_v1_public_ip_pool_type_proto_init() { + if File_osac_private_v1_public_ip_pool_type_proto != nil { + return + } + file_osac_private_v1_metadata_type_proto_init() + file_osac_private_v1_public_ip_pool_type_proto_msgTypes[2].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_osac_private_v1_public_ip_pool_type_proto_rawDesc), len(file_osac_private_v1_public_ip_pool_type_proto_rawDesc)), + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_osac_private_v1_public_ip_pool_type_proto_goTypes, + DependencyIndexes: file_osac_private_v1_public_ip_pool_type_proto_depIdxs, + EnumInfos: file_osac_private_v1_public_ip_pool_type_proto_enumTypes, + MessageInfos: file_osac_private_v1_public_ip_pool_type_proto_msgTypes, + }.Build() + File_osac_private_v1_public_ip_pool_type_proto = out.File + file_osac_private_v1_public_ip_pool_type_proto_goTypes = nil + file_osac_private_v1_public_ip_pool_type_proto_depIdxs = nil +} diff --git a/internal/api/osac/private/v1/public_ip_pool_type_protoopaque.pb.go b/internal/api/osac/private/v1/public_ip_pool_type_protoopaque.pb.go new file mode 100644 index 000000000..6e4b42d33 --- /dev/null +++ b/internal/api/osac/private/v1/public_ip_pool_type_protoopaque.pb.go @@ -0,0 +1,727 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: osac/private/v1/public_ip_pool_type.proto + +//go:build protoopaque + +package privatev1 + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// IP address family for a PublicIPPool. +type IPFamily int32 + +const ( + // IP family is unknown or has not been specified. + IPFamily_IP_FAMILY_UNSPECIFIED IPFamily = 0 + // IPv4 address family. CIDRs must be valid IPv4 CIDR notation. + IPFamily_IP_FAMILY_IPV4 IPFamily = 1 + // IPv6 address family. CIDRs must be valid IPv6 CIDR notation. + IPFamily_IP_FAMILY_IPV6 IPFamily = 2 +) + +// Enum value maps for IPFamily. +var ( + IPFamily_name = map[int32]string{ + 0: "IP_FAMILY_UNSPECIFIED", + 1: "IP_FAMILY_IPV4", + 2: "IP_FAMILY_IPV6", + } + IPFamily_value = map[string]int32{ + "IP_FAMILY_UNSPECIFIED": 0, + "IP_FAMILY_IPV4": 1, + "IP_FAMILY_IPV6": 2, + } +) + +func (x IPFamily) Enum() *IPFamily { + p := new(IPFamily) + *p = x + return p +} + +func (x IPFamily) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IPFamily) Descriptor() protoreflect.EnumDescriptor { + return file_osac_private_v1_public_ip_pool_type_proto_enumTypes[0].Descriptor() +} + +func (IPFamily) Type() protoreflect.EnumType { + return &file_osac_private_v1_public_ip_pool_type_proto_enumTypes[0] +} + +func (x IPFamily) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Lifecycle states for PublicIPPool resources. +// +// State transitions typically follow: UNSPECIFIED -> PENDING -> READY, with FAILED as a terminal +// error state that may require user intervention or resource recreation. +// +// The CRD phase "Progressing" maps to PENDING at the proto level. This is consistent with all +// networking resources in the fulfillment-service (VirtualNetwork, Subnet, SecurityGroup, +// NetworkClass, HostClass). PENDING describes user-facing readiness ("not usable yet"), while +// the CRD phase describes controller activity ("reconciliation in progress"). +type PublicIPPoolState int32 + +const ( + // State is unknown or has not been determined yet. Default state before initialization. + PublicIPPoolState_PUBLIC_IP_POOL_STATE_UNSPECIFIED PublicIPPoolState = 0 + // The pool is being provisioned and is not ready for IP allocation yet. + // + // During this state, the system is creating the MetalLB IPAddressPool on the target cluster + // and configuring L2 advertisement. Maps from CRD phase "Progressing". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_PENDING PublicIPPoolState = 1 + // The pool is fully operational and ready for PublicIP allocation. + // + // MetalLB IPAddressPool is configured and L2 advertisement is active. PublicIPs can be + // allocated from this pool's CIDR ranges. Maps from CRD phase "Ready". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_READY PublicIPPoolState = 2 + // The pool provisioning has failed. + // + // The status.message field contains error details. Common causes include MetalLB configuration + // errors or cluster connectivity issues. Maps from CRD phase "Failed". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_FAILED PublicIPPoolState = 3 + // The pool is being deleted. + // + // During this state, the system is removing the MetalLB IPAddressPool and cleaning up + // cluster resources. Deletion is rejected if allocated PublicIPs still reference this pool. + // Maps from CRD phase "Deleting". + PublicIPPoolState_PUBLIC_IP_POOL_STATE_DELETING PublicIPPoolState = 4 + // The pool deletion has failed. + // + // The deprovision operation encountered an error and could not complete. The status.message + // field contains error details. Manual intervention may be required before retrying deletion. + // No CRD phase equivalent (follows the Subnet pattern for proto-level tracking). + PublicIPPoolState_PUBLIC_IP_POOL_STATE_DELETE_FAILED PublicIPPoolState = 5 +) + +// Enum value maps for PublicIPPoolState. +var ( + PublicIPPoolState_name = map[int32]string{ + 0: "PUBLIC_IP_POOL_STATE_UNSPECIFIED", + 1: "PUBLIC_IP_POOL_STATE_PENDING", + 2: "PUBLIC_IP_POOL_STATE_READY", + 3: "PUBLIC_IP_POOL_STATE_FAILED", + 4: "PUBLIC_IP_POOL_STATE_DELETING", + 5: "PUBLIC_IP_POOL_STATE_DELETE_FAILED", + } + PublicIPPoolState_value = map[string]int32{ + "PUBLIC_IP_POOL_STATE_UNSPECIFIED": 0, + "PUBLIC_IP_POOL_STATE_PENDING": 1, + "PUBLIC_IP_POOL_STATE_READY": 2, + "PUBLIC_IP_POOL_STATE_FAILED": 3, + "PUBLIC_IP_POOL_STATE_DELETING": 4, + "PUBLIC_IP_POOL_STATE_DELETE_FAILED": 5, + } +) + +func (x PublicIPPoolState) Enum() *PublicIPPoolState { + p := new(PublicIPPoolState) + *p = x + return p +} + +func (x PublicIPPoolState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PublicIPPoolState) Descriptor() protoreflect.EnumDescriptor { + return file_osac_private_v1_public_ip_pool_type_proto_enumTypes[1].Descriptor() +} + +func (PublicIPPoolState) Type() protoreflect.EnumType { + return &file_osac_private_v1_public_ip_pool_type_proto_enumTypes[1] +} + +func (x PublicIPPoolState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Represents a pool of public IP addresses available for allocation to compute instances. +// +// Each PublicIPPool supports a single IP family (IPv4 or IPv6). The pool contains one or more CIDR +// ranges from which individual PublicIP addresses are allocated. Pools are provider-managed +// resources created by administrators through the private API. +// +// The implementation_strategy field determines how IPs from this pool are advertised on the target +// cluster (e.g., MetalLB L2 mode). This field is set by the system and is not user-configurable. +// +// Capacity tracking fields in the status (total, allocated, available) reflect the current utilization +// of the pool across all its CIDR ranges. +type PublicIPPool struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3"` + xxx_hidden_Spec *PublicIPPoolSpec `protobuf:"bytes,3,opt,name=spec,proto3"` + xxx_hidden_Status *PublicIPPoolStatus `protobuf:"bytes,4,opt,name=status,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPool) Reset() { + *x = PublicIPPool{} + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPool) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPool) ProtoMessage() {} + +func (x *PublicIPPool) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPool) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *PublicIPPool) GetMetadata() *Metadata { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *PublicIPPool) GetSpec() *PublicIPPoolSpec { + if x != nil { + return x.xxx_hidden_Spec + } + return nil +} + +func (x *PublicIPPool) GetStatus() *PublicIPPoolStatus { + if x != nil { + return x.xxx_hidden_Status + } + return nil +} + +func (x *PublicIPPool) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *PublicIPPool) SetMetadata(v *Metadata) { + x.xxx_hidden_Metadata = v +} + +func (x *PublicIPPool) SetSpec(v *PublicIPPoolSpec) { + x.xxx_hidden_Spec = v +} + +func (x *PublicIPPool) SetStatus(v *PublicIPPoolStatus) { + x.xxx_hidden_Status = v +} + +func (x *PublicIPPool) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *PublicIPPool) HasSpec() bool { + if x == nil { + return false + } + return x.xxx_hidden_Spec != nil +} + +func (x *PublicIPPool) HasStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_Status != nil +} + +func (x *PublicIPPool) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +func (x *PublicIPPool) ClearSpec() { + x.xxx_hidden_Spec = nil +} + +func (x *PublicIPPool) ClearStatus() { + x.xxx_hidden_Status = nil +} + +type PublicIPPool_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Unique identifier of the public IP pool. + Id string + // Metadata of the public IP pool, including name, labels, and timestamps. + Metadata *Metadata + // Desired configuration of the public IP pool (admin-specified). + Spec *PublicIPPoolSpec + // Current state of the public IP pool (system-provided, read-only). + Status *PublicIPPoolStatus +} + +func (b0 PublicIPPool_builder) Build() *PublicIPPool { + m0 := &PublicIPPool{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Metadata = b.Metadata + x.xxx_hidden_Spec = b.Spec + x.xxx_hidden_Status = b.Status + return m0 +} + +// Defines the desired configuration for a PublicIPPool. +// +// All spec fields are immutable after creation. To change CIDRs, delete the pool and create a +// new one. The Update RPC only allows metadata changes (name, labels, annotations). +type PublicIPPoolSpec struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Cidrs []string `protobuf:"bytes,2,rep,name=cidrs,proto3"` + xxx_hidden_IpFamily IPFamily `protobuf:"varint,3,opt,name=ip_family,json=ipFamily,proto3,enum=osac.private.v1.IPFamily"` + xxx_hidden_ImplementationStrategy string `protobuf:"bytes,4,opt,name=implementation_strategy,json=implementationStrategy,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolSpec) Reset() { + *x = PublicIPPoolSpec{} + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolSpec) ProtoMessage() {} + +func (x *PublicIPPoolSpec) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolSpec) GetCidrs() []string { + if x != nil { + return x.xxx_hidden_Cidrs + } + return nil +} + +func (x *PublicIPPoolSpec) GetIpFamily() IPFamily { + if x != nil { + return x.xxx_hidden_IpFamily + } + return IPFamily_IP_FAMILY_UNSPECIFIED +} + +func (x *PublicIPPoolSpec) GetImplementationStrategy() string { + if x != nil { + return x.xxx_hidden_ImplementationStrategy + } + return "" +} + +func (x *PublicIPPoolSpec) SetCidrs(v []string) { + x.xxx_hidden_Cidrs = v +} + +func (x *PublicIPPoolSpec) SetIpFamily(v IPFamily) { + x.xxx_hidden_IpFamily = v +} + +func (x *PublicIPPoolSpec) SetImplementationStrategy(v string) { + x.xxx_hidden_ImplementationStrategy = v +} + +type PublicIPPoolSpec_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // CIDR ranges for this pool. Required and immutable after creation. + // + // Each entry must be valid CIDR notation matching the declared ip_family. All CIDRs must be + // the same IP family. CIDRs must not overlap with CIDRs in other pools. + // + // Example (IPv4): ["192.168.1.0/24", "10.0.5.0/28"] + // Example (IPv6): ["2001:db8::/64"] + Cidrs []string + // IP address family for this pool. Required and immutable after creation. + // + // Determines whether the CIDRs in this pool are IPv4 or IPv6. All CIDRs must match this + // family. A single pool cannot mix IPv4 and IPv6 ranges. + IpFamily IPFamily + // Backend strategy used to advertise IPs from this pool on the target cluster. + // + // Set by the system based on cluster configuration. Not user-configurable. Currently the + // only supported strategy is "metallb-l2" (MetalLB Layer 2 advertisement mode). + ImplementationStrategy string +} + +func (b0 PublicIPPoolSpec_builder) Build() *PublicIPPoolSpec { + m0 := &PublicIPPoolSpec{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Cidrs = b.Cidrs + x.xxx_hidden_IpFamily = b.IpFamily + x.xxx_hidden_ImplementationStrategy = b.ImplementationStrategy + return m0 +} + +// Represents the current operational state of a PublicIPPool. +// +// Status is system-provided and read-only. Users cannot modify status fields directly; the system +// updates them based on reconciliation of the spec and feedback from the cluster controller. +type PublicIPPoolStatus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_State PublicIPPoolState `protobuf:"varint,1,opt,name=state,proto3,enum=osac.private.v1.PublicIPPoolState"` + xxx_hidden_Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof"` + xxx_hidden_Hub string `protobuf:"bytes,3,opt,name=hub,proto3"` + xxx_hidden_Total int64 `protobuf:"varint,4,opt,name=total,proto3"` + xxx_hidden_Allocated int64 `protobuf:"varint,5,opt,name=allocated,proto3"` + xxx_hidden_Available int64 `protobuf:"varint,6,opt,name=available,proto3"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolStatus) Reset() { + *x = PublicIPPoolStatus{} + mi := &file_osac_private_v1_public_ip_pool_type_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolStatus) ProtoMessage() {} + +func (x *PublicIPPoolStatus) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pool_type_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) +} + +func (x *PublicIPPoolStatus) GetState() PublicIPPoolState { + if x != nil { + return x.xxx_hidden_State + } + return PublicIPPoolState_PUBLIC_IP_POOL_STATE_UNSPECIFIED +} + +func (x *PublicIPPoolStatus) GetMessage() string { + if x != nil { + if x.xxx_hidden_Message != nil { + return *x.xxx_hidden_Message + } + return "" + } + return "" +} + +func (x *PublicIPPoolStatus) GetHub() string { + if x != nil { + return x.xxx_hidden_Hub + } + return "" +} + +func (x *PublicIPPoolStatus) GetTotal() int64 { + if x != nil { + return x.xxx_hidden_Total + } + return 0 +} + +func (x *PublicIPPoolStatus) GetAllocated() int64 { + if x != nil { + return x.xxx_hidden_Allocated + } + return 0 +} + +func (x *PublicIPPoolStatus) GetAvailable() int64 { + if x != nil { + return x.xxx_hidden_Available + } + return 0 +} + +func (x *PublicIPPoolStatus) SetState(v PublicIPPoolState) { + x.xxx_hidden_State = v +} + +func (x *PublicIPPoolStatus) SetMessage(v string) { + x.xxx_hidden_Message = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 6) +} + +func (x *PublicIPPoolStatus) SetHub(v string) { + x.xxx_hidden_Hub = v +} + +func (x *PublicIPPoolStatus) SetTotal(v int64) { + x.xxx_hidden_Total = v +} + +func (x *PublicIPPoolStatus) SetAllocated(v int64) { + x.xxx_hidden_Allocated = v +} + +func (x *PublicIPPoolStatus) SetAvailable(v int64) { + x.xxx_hidden_Available = v +} + +func (x *PublicIPPoolStatus) HasMessage() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *PublicIPPoolStatus) ClearMessage() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Message = nil +} + +type PublicIPPoolStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Current lifecycle state of the public IP pool. + State PublicIPPoolState + // Human-readable message providing additional details about the current state. + // + // For PENDING state, may contain progress information like "Waiting for MetalLB configuration". + // For FAILED state, contains error details. For READY state, typically empty. + Message *string + // Identifier of the hub cluster that this pool is deployed to. + // + // Set by the fulfillment-service controller when reconciling the pool to a Kubernetes CR on + // the target hub cluster. Used for tracking which cluster the pool resources reside on. + Hub string + // Total number of usable IP addresses across all CIDRs in this pool. + // + // Calculated from the CIDR ranges (e.g., a /24 IPv4 CIDR yields 254 usable addresses, + // excluding network and broadcast addresses). Uses int64 to accommodate large IPv6 CIDR + // ranges whose address counts exceed int32 capacity. + Total int64 + // Number of IP addresses currently allocated to PublicIP resources from this pool. + Allocated int64 + // Number of IP addresses available for new allocations from this pool. + // + // Equal to total minus allocated. + Available int64 +} + +func (b0 PublicIPPoolStatus_builder) Build() *PublicIPPoolStatus { + m0 := &PublicIPPoolStatus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_State = b.State + if b.Message != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 6) + x.xxx_hidden_Message = b.Message + } + x.xxx_hidden_Hub = b.Hub + x.xxx_hidden_Total = b.Total + x.xxx_hidden_Allocated = b.Allocated + x.xxx_hidden_Available = b.Available + return m0 +} + +var File_osac_private_v1_public_ip_pool_type_proto protoreflect.FileDescriptor + +var file_osac_private_v1_public_ip_pool_type_proto_rawDesc = string([]byte{ + 0x0a, 0x29, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6f, 0x73, 0x61, + 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, + 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x6f, + 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xc9, 0x01, 0x0a, 0x0c, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, + 0x63, 0x12, 0x3b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xb1, + 0x01, 0x0a, 0x10, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x1c, 0x0a, 0x05, 0x63, 0x69, 0x64, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x05, 0x63, 0x69, 0x64, 0x72, + 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x69, 0x70, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x50, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x42, + 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x05, 0x52, 0x08, 0x69, 0x70, 0x46, 0x61, 0x6d, 0x69, 0x6c, + 0x79, 0x12, 0x3f, 0x0a, 0x17, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x16, 0x69, 0x6d, 0x70, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x22, 0xdd, 0x01, 0x0a, 0x12, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x88, + 0x01, 0x01, 0x12, 0x10, 0x0a, 0x03, 0x68, 0x75, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x68, 0x75, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6c, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2a, 0x4d, 0x0a, 0x08, 0x49, 0x50, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x12, 0x19, + 0x0a, 0x15, 0x49, 0x50, 0x5f, 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x50, 0x5f, + 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x5f, 0x49, 0x50, 0x56, 0x34, 0x10, 0x01, 0x12, 0x12, 0x0a, + 0x0e, 0x49, 0x50, 0x5f, 0x46, 0x41, 0x4d, 0x49, 0x4c, 0x59, 0x5f, 0x49, 0x50, 0x56, 0x36, 0x10, + 0x02, 0x2a, 0xe7, 0x01, 0x0a, 0x11, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x50, 0x55, 0x42, 0x4c, 0x49, + 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x20, 0x0a, + 0x1c, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, + 0x1e, 0x0a, 0x1a, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, + 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, + 0x1f, 0x0a, 0x1b, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4f, + 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, + 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, 0x5f, 0x50, 0x4f, + 0x4f, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x49, 0x4e, + 0x47, 0x10, 0x04, 0x12, 0x26, 0x0a, 0x22, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x5f, 0x49, 0x50, + 0x5f, 0x50, 0x4f, 0x4f, 0x4c, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, + 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x42, 0xe0, 0x01, 0x0a, 0x13, + 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x42, 0x15, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x70, 0x50, 0x6f, 0x6f, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x52, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2d, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, + 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x4f, 0x50, 0x58, 0xaa, 0x02, 0x0f, 0x4f, 0x73, 0x61, 0x63, 0x2e, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x4f, 0x73, 0x61, 0x63, 0x5c, + 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4f, 0x73, + 0x61, 0x63, 0x5c, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4f, 0x73, 0x61, + 0x63, 0x3a, 0x3a, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) + +var file_osac_private_v1_public_ip_pool_type_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_osac_private_v1_public_ip_pool_type_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_osac_private_v1_public_ip_pool_type_proto_goTypes = []any{ + (IPFamily)(0), // 0: osac.private.v1.IPFamily + (PublicIPPoolState)(0), // 1: osac.private.v1.PublicIPPoolState + (*PublicIPPool)(nil), // 2: osac.private.v1.PublicIPPool + (*PublicIPPoolSpec)(nil), // 3: osac.private.v1.PublicIPPoolSpec + (*PublicIPPoolStatus)(nil), // 4: osac.private.v1.PublicIPPoolStatus + (*Metadata)(nil), // 5: osac.private.v1.Metadata +} +var file_osac_private_v1_public_ip_pool_type_proto_depIdxs = []int32{ + 5, // 0: osac.private.v1.PublicIPPool.metadata:type_name -> osac.private.v1.Metadata + 3, // 1: osac.private.v1.PublicIPPool.spec:type_name -> osac.private.v1.PublicIPPoolSpec + 4, // 2: osac.private.v1.PublicIPPool.status:type_name -> osac.private.v1.PublicIPPoolStatus + 0, // 3: osac.private.v1.PublicIPPoolSpec.ip_family:type_name -> osac.private.v1.IPFamily + 1, // 4: osac.private.v1.PublicIPPoolStatus.state:type_name -> osac.private.v1.PublicIPPoolState + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_osac_private_v1_public_ip_pool_type_proto_init() } +func file_osac_private_v1_public_ip_pool_type_proto_init() { + if File_osac_private_v1_public_ip_pool_type_proto != nil { + return + } + file_osac_private_v1_metadata_type_proto_init() + file_osac_private_v1_public_ip_pool_type_proto_msgTypes[2].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_osac_private_v1_public_ip_pool_type_proto_rawDesc), len(file_osac_private_v1_public_ip_pool_type_proto_rawDesc)), + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_osac_private_v1_public_ip_pool_type_proto_goTypes, + DependencyIndexes: file_osac_private_v1_public_ip_pool_type_proto_depIdxs, + EnumInfos: file_osac_private_v1_public_ip_pool_type_proto_enumTypes, + MessageInfos: file_osac_private_v1_public_ip_pool_type_proto_msgTypes, + }.Build() + File_osac_private_v1_public_ip_pool_type_proto = out.File + file_osac_private_v1_public_ip_pool_type_proto_goTypes = nil + file_osac_private_v1_public_ip_pool_type_proto_depIdxs = nil +} diff --git a/internal/api/osac/private/v1/public_ip_pools_service.pb.go b/internal/api/osac/private/v1/public_ip_pools_service.pb.go new file mode 100644 index 000000000..43345c186 --- /dev/null +++ b/internal/api/osac/private/v1/public_ip_pools_service.pb.go @@ -0,0 +1,1189 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: osac/private/v1/public_ip_pools_service.proto + +//go:build !protoopaque + +package privatev1 + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + reflect "reflect" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type PublicIPPoolsListRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Index of the first result. If not specified the default value will be zero. + Offset *int32 `protobuf:"varint,1,opt,name=offset,proto3,oneof" json:"offset,omitempty"` + // Maximum number of results to be returned by the server. When not specified all the results will be returned. Note + // that there may not be enough results to return, and that the server may decide, for performance reasons, to return + // less results than requested. + Limit *int32 `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"` + // Filter criteria. + // + // The value of this parameter is a [CEL](https://cel.dev) expression used to select which objects to return. The + // built-in `this` variable refers to the object being tested and `now` refers to the current date and time. If the + // expression evaluates to `true` the object is included in the results. For example, to retrieve all IPv4 public + // IP pools: + // + // this.spec.ip_family == IP_FAMILY_IPV4 + // + // If this isn't provided, or if the value is empty, then all the public IP pools that the user has permission to see + // will be returned. Not all CEL constructs are currently supported for implementation reasons; see the filter + // documentation (docs/FILTER.md) for the full details. + Filter *string `protobuf:"bytes,3,opt,name=filter,proto3,oneof" json:"filter,omitempty"` + // Order criteria. + // + // The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the + // names of the attributes of the public IP pool instead of the names of the columns of a table. For example, in + // order to sort the pools descending by creation time the value should be: + // + // metadata.created_at desc + // + // If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + Order *string `protobuf:"bytes,4,opt,name=order,proto3,oneof" json:"order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsListRequest) Reset() { + *x = PublicIPPoolsListRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsListRequest) ProtoMessage() {} + +func (x *PublicIPPoolsListRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsListRequest) GetOffset() int32 { + if x != nil && x.Offset != nil { + return *x.Offset + } + return 0 +} + +func (x *PublicIPPoolsListRequest) GetLimit() int32 { + if x != nil && x.Limit != nil { + return *x.Limit + } + return 0 +} + +func (x *PublicIPPoolsListRequest) GetFilter() string { + if x != nil && x.Filter != nil { + return *x.Filter + } + return "" +} + +func (x *PublicIPPoolsListRequest) GetOrder() string { + if x != nil && x.Order != nil { + return *x.Order + } + return "" +} + +func (x *PublicIPPoolsListRequest) SetOffset(v int32) { + x.Offset = &v +} + +func (x *PublicIPPoolsListRequest) SetLimit(v int32) { + x.Limit = &v +} + +func (x *PublicIPPoolsListRequest) SetFilter(v string) { + x.Filter = &v +} + +func (x *PublicIPPoolsListRequest) SetOrder(v string) { + x.Order = &v +} + +func (x *PublicIPPoolsListRequest) HasOffset() bool { + if x == nil { + return false + } + return x.Offset != nil +} + +func (x *PublicIPPoolsListRequest) HasLimit() bool { + if x == nil { + return false + } + return x.Limit != nil +} + +func (x *PublicIPPoolsListRequest) HasFilter() bool { + if x == nil { + return false + } + return x.Filter != nil +} + +func (x *PublicIPPoolsListRequest) HasOrder() bool { + if x == nil { + return false + } + return x.Order != nil +} + +func (x *PublicIPPoolsListRequest) ClearOffset() { + x.Offset = nil +} + +func (x *PublicIPPoolsListRequest) ClearLimit() { + x.Limit = nil +} + +func (x *PublicIPPoolsListRequest) ClearFilter() { + x.Filter = nil +} + +func (x *PublicIPPoolsListRequest) ClearOrder() { + x.Order = nil +} + +type PublicIPPoolsListRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Index of the first result. If not specified the default value will be zero. + Offset *int32 + // Maximum number of results to be returned by the server. When not specified all the results will be returned. Note + // that there may not be enough results to return, and that the server may decide, for performance reasons, to return + // less results than requested. + Limit *int32 + // Filter criteria. + // + // The value of this parameter is a [CEL](https://cel.dev) expression used to select which objects to return. The + // built-in `this` variable refers to the object being tested and `now` refers to the current date and time. If the + // expression evaluates to `true` the object is included in the results. For example, to retrieve all IPv4 public + // IP pools: + // + // this.spec.ip_family == IP_FAMILY_IPV4 + // + // If this isn't provided, or if the value is empty, then all the public IP pools that the user has permission to see + // will be returned. Not all CEL constructs are currently supported for implementation reasons; see the filter + // documentation (docs/FILTER.md) for the full details. + Filter *string + // Order criteria. + // + // The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the + // names of the attributes of the public IP pool instead of the names of the columns of a table. For example, in + // order to sort the pools descending by creation time the value should be: + // + // metadata.created_at desc + // + // If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + Order *string +} + +func (b0 PublicIPPoolsListRequest_builder) Build() *PublicIPPoolsListRequest { + m0 := &PublicIPPoolsListRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Offset = b.Offset + x.Limit = b.Limit + x.Filter = b.Filter + x.Order = b.Order + return m0 +} + +type PublicIPPoolsListResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Actual number of items returned. Note that this may be smaller than the value requested in the `limit` parameter + // of the request if there are not enough items, or if the system decides that returning that number of items isn't + // feasible or convenient for performance reasons. + Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + // Total number of items of the collection that match the search criteria, regardless of the number of results + // requested with the `limit` parameter. + Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` + // List of results. + Items []*PublicIPPool `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsListResponse) Reset() { + *x = PublicIPPoolsListResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsListResponse) ProtoMessage() {} + +func (x *PublicIPPoolsListResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsListResponse) GetSize() int32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *PublicIPPoolsListResponse) GetTotal() int32 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *PublicIPPoolsListResponse) GetItems() []*PublicIPPool { + if x != nil { + return x.Items + } + return nil +} + +func (x *PublicIPPoolsListResponse) SetSize(v int32) { + x.Size = v +} + +func (x *PublicIPPoolsListResponse) SetTotal(v int32) { + x.Total = v +} + +func (x *PublicIPPoolsListResponse) SetItems(v []*PublicIPPool) { + x.Items = v +} + +type PublicIPPoolsListResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Actual number of items returned. Note that this may be smaller than the value requested in the `limit` parameter + // of the request if there are not enough items, or if the system decides that returning that number of items isn't + // feasible or convenient for performance reasons. + Size int32 + // Total number of items of the collection that match the search criteria, regardless of the number of results + // requested with the `limit` parameter. + Total int32 + // List of results. + Items []*PublicIPPool +} + +func (b0 PublicIPPoolsListResponse_builder) Build() *PublicIPPoolsListResponse { + m0 := &PublicIPPoolsListResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Size = b.Size + x.Total = b.Total + x.Items = b.Items + return m0 +} + +type PublicIPPoolsGetRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsGetRequest) Reset() { + *x = PublicIPPoolsGetRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsGetRequest) ProtoMessage() {} + +func (x *PublicIPPoolsGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_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) +} + +func (x *PublicIPPoolsGetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PublicIPPoolsGetRequest) SetId(v string) { + x.Id = v +} + +type PublicIPPoolsGetRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 PublicIPPoolsGetRequest_builder) Build() *PublicIPPoolsGetRequest { + m0 := &PublicIPPoolsGetRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + +type PublicIPPoolsGetResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsGetResponse) Reset() { + *x = PublicIPPoolsGetResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsGetResponse) ProtoMessage() {} + +func (x *PublicIPPoolsGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsGetResponse) GetObject() *PublicIPPool { + if x != nil { + return x.Object + } + return nil +} + +func (x *PublicIPPoolsGetResponse) SetObject(v *PublicIPPool) { + x.Object = v +} + +func (x *PublicIPPoolsGetResponse) HasObject() bool { + if x == nil { + return false + } + return x.Object != nil +} + +func (x *PublicIPPoolsGetResponse) ClearObject() { + x.Object = nil +} + +type PublicIPPoolsGetResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsGetResponse_builder) Build() *PublicIPPoolsGetResponse { + m0 := &PublicIPPoolsGetResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Object = b.Object + return m0 +} + +type PublicIPPoolsCreateRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsCreateRequest) Reset() { + *x = PublicIPPoolsCreateRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsCreateRequest) ProtoMessage() {} + +func (x *PublicIPPoolsCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsCreateRequest) GetObject() *PublicIPPool { + if x != nil { + return x.Object + } + return nil +} + +func (x *PublicIPPoolsCreateRequest) SetObject(v *PublicIPPool) { + x.Object = v +} + +func (x *PublicIPPoolsCreateRequest) HasObject() bool { + if x == nil { + return false + } + return x.Object != nil +} + +func (x *PublicIPPoolsCreateRequest) ClearObject() { + x.Object = nil +} + +type PublicIPPoolsCreateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsCreateRequest_builder) Build() *PublicIPPoolsCreateRequest { + m0 := &PublicIPPoolsCreateRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Object = b.Object + return m0 +} + +type PublicIPPoolsCreateResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsCreateResponse) Reset() { + *x = PublicIPPoolsCreateResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsCreateResponse) ProtoMessage() {} + +func (x *PublicIPPoolsCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsCreateResponse) GetObject() *PublicIPPool { + if x != nil { + return x.Object + } + return nil +} + +func (x *PublicIPPoolsCreateResponse) SetObject(v *PublicIPPool) { + x.Object = v +} + +func (x *PublicIPPoolsCreateResponse) HasObject() bool { + if x == nil { + return false + } + return x.Object != nil +} + +func (x *PublicIPPoolsCreateResponse) ClearObject() { + x.Object = nil +} + +type PublicIPPoolsCreateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsCreateResponse_builder) Build() *PublicIPPoolsCreateResponse { + m0 := &PublicIPPoolsCreateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Object = b.Object + return m0 +} + +type PublicIPPoolsUpdateRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` + // Lock enables optimistic locking. When set to true, the server verifies that the current version of the object + // matches the value of the metadata.version field of the submitted object. If they differ the update will be + // rejected. This is useful to prevent lost updates when multiple clients are modifying the same object concurrently. + Lock bool `protobuf:"varint,3,opt,name=lock,proto3" json:"lock,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsUpdateRequest) Reset() { + *x = PublicIPPoolsUpdateRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsUpdateRequest) ProtoMessage() {} + +func (x *PublicIPPoolsUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsUpdateRequest) GetObject() *PublicIPPool { + if x != nil { + return x.Object + } + return nil +} + +func (x *PublicIPPoolsUpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.UpdateMask + } + return nil +} + +func (x *PublicIPPoolsUpdateRequest) GetLock() bool { + if x != nil { + return x.Lock + } + return false +} + +func (x *PublicIPPoolsUpdateRequest) SetObject(v *PublicIPPool) { + x.Object = v +} + +func (x *PublicIPPoolsUpdateRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.UpdateMask = v +} + +func (x *PublicIPPoolsUpdateRequest) SetLock(v bool) { + x.Lock = v +} + +func (x *PublicIPPoolsUpdateRequest) HasObject() bool { + if x == nil { + return false + } + return x.Object != nil +} + +func (x *PublicIPPoolsUpdateRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.UpdateMask != nil +} + +func (x *PublicIPPoolsUpdateRequest) ClearObject() { + x.Object = nil +} + +func (x *PublicIPPoolsUpdateRequest) ClearUpdateMask() { + x.UpdateMask = nil +} + +type PublicIPPoolsUpdateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool + UpdateMask *fieldmaskpb.FieldMask + // Lock enables optimistic locking. When set to true, the server verifies that the current version of the object + // matches the value of the metadata.version field of the submitted object. If they differ the update will be + // rejected. This is useful to prevent lost updates when multiple clients are modifying the same object concurrently. + Lock bool +} + +func (b0 PublicIPPoolsUpdateRequest_builder) Build() *PublicIPPoolsUpdateRequest { + m0 := &PublicIPPoolsUpdateRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Object = b.Object + x.UpdateMask = b.UpdateMask + x.Lock = b.Lock + return m0 +} + +type PublicIPPoolsUpdateResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsUpdateResponse) Reset() { + *x = PublicIPPoolsUpdateResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsUpdateResponse) ProtoMessage() {} + +func (x *PublicIPPoolsUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsUpdateResponse) GetObject() *PublicIPPool { + if x != nil { + return x.Object + } + return nil +} + +func (x *PublicIPPoolsUpdateResponse) SetObject(v *PublicIPPool) { + x.Object = v +} + +func (x *PublicIPPoolsUpdateResponse) HasObject() bool { + if x == nil { + return false + } + return x.Object != nil +} + +func (x *PublicIPPoolsUpdateResponse) ClearObject() { + x.Object = nil +} + +type PublicIPPoolsUpdateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsUpdateResponse_builder) Build() *PublicIPPoolsUpdateResponse { + m0 := &PublicIPPoolsUpdateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Object = b.Object + return m0 +} + +type PublicIPPoolsDeleteRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsDeleteRequest) Reset() { + *x = PublicIPPoolsDeleteRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsDeleteRequest) ProtoMessage() {} + +func (x *PublicIPPoolsDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsDeleteRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PublicIPPoolsDeleteRequest) SetId(v string) { + x.Id = v +} + +type PublicIPPoolsDeleteRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 PublicIPPoolsDeleteRequest_builder) Build() *PublicIPPoolsDeleteRequest { + m0 := &PublicIPPoolsDeleteRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + +type PublicIPPoolsDeleteResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsDeleteResponse) Reset() { + *x = PublicIPPoolsDeleteResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsDeleteResponse) ProtoMessage() {} + +func (x *PublicIPPoolsDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PublicIPPoolsDeleteResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PublicIPPoolsDeleteResponse_builder) Build() *PublicIPPoolsDeleteResponse { + m0 := &PublicIPPoolsDeleteResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PublicIPPoolsSignalRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsSignalRequest) Reset() { + *x = PublicIPPoolsSignalRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsSignalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsSignalRequest) ProtoMessage() {} + +func (x *PublicIPPoolsSignalRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsSignalRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PublicIPPoolsSignalRequest) SetId(v string) { + x.Id = v +} + +type PublicIPPoolsSignalRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 PublicIPPoolsSignalRequest_builder) Build() *PublicIPPoolsSignalRequest { + m0 := &PublicIPPoolsSignalRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + +type PublicIPPoolsSignalResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsSignalResponse) Reset() { + *x = PublicIPPoolsSignalResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsSignalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsSignalResponse) ProtoMessage() {} + +func (x *PublicIPPoolsSignalResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PublicIPPoolsSignalResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PublicIPPoolsSignalResponse_builder) Build() *PublicIPPoolsSignalResponse { + m0 := &PublicIPPoolsSignalResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_osac_private_v1_public_ip_pools_service_proto protoreflect.FileDescriptor + +var file_osac_private_v1_public_ip_pools_service_proto_rawDesc = string([]byte{ + 0x0a, 0x2d, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0f, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x29, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x18, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, + 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x02, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, + 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x05, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x66, 0x66, + 0x73, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x22, 0x7a, 0x0a, 0x19, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x33, 0x0a, 0x05, 0x69, 0x74, 0x65, + 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x29, + 0x0a, 0x17, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x18, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, + 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x53, 0x0a, 0x1a, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, + 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x22, 0x54, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, + 0x6c, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, + 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0xa4, 0x01, 0x0a, 0x1a, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, + 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3b, 0x0a, + 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, + 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x54, + 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, + 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0x0a, 0x1a, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, + 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2c, 0x0a, 0x1a, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, + 0x6c, 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x1d, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf0, + 0x06, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, + 0x12, 0x86, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x6f, 0x73, 0x61, 0x63, + 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x90, 0x01, 0x0a, 0x03, 0x47, 0x65, + 0x74, 0x12, 0x28, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6f, 0x73, + 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x62, 0x06, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, + 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x9c, 0x01, 0x0a, + 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x06, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x62, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x06, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, + 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x62, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x7b, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x69, 0x64, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x26, 0x2a, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, + 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x65, 0x0a, 0x06, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x42, 0xe4, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x19, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x70, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, + 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, + 0x3b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4f, 0x50, 0x58, + 0xaa, 0x02, 0x0f, 0x4f, 0x73, 0x61, 0x63, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x10, 0x4f, 0x73, 0x61, 0x63, 0x5c, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x5f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4f, 0x73, 0x61, 0x63, 0x5c, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4f, 0x73, 0x61, 0x63, 0x3a, 0x3a, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) + +var file_osac_private_v1_public_ip_pools_service_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_osac_private_v1_public_ip_pools_service_proto_goTypes = []any{ + (*PublicIPPoolsListRequest)(nil), // 0: osac.private.v1.PublicIPPoolsListRequest + (*PublicIPPoolsListResponse)(nil), // 1: osac.private.v1.PublicIPPoolsListResponse + (*PublicIPPoolsGetRequest)(nil), // 2: osac.private.v1.PublicIPPoolsGetRequest + (*PublicIPPoolsGetResponse)(nil), // 3: osac.private.v1.PublicIPPoolsGetResponse + (*PublicIPPoolsCreateRequest)(nil), // 4: osac.private.v1.PublicIPPoolsCreateRequest + (*PublicIPPoolsCreateResponse)(nil), // 5: osac.private.v1.PublicIPPoolsCreateResponse + (*PublicIPPoolsUpdateRequest)(nil), // 6: osac.private.v1.PublicIPPoolsUpdateRequest + (*PublicIPPoolsUpdateResponse)(nil), // 7: osac.private.v1.PublicIPPoolsUpdateResponse + (*PublicIPPoolsDeleteRequest)(nil), // 8: osac.private.v1.PublicIPPoolsDeleteRequest + (*PublicIPPoolsDeleteResponse)(nil), // 9: osac.private.v1.PublicIPPoolsDeleteResponse + (*PublicIPPoolsSignalRequest)(nil), // 10: osac.private.v1.PublicIPPoolsSignalRequest + (*PublicIPPoolsSignalResponse)(nil), // 11: osac.private.v1.PublicIPPoolsSignalResponse + (*PublicIPPool)(nil), // 12: osac.private.v1.PublicIPPool + (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask +} +var file_osac_private_v1_public_ip_pools_service_proto_depIdxs = []int32{ + 12, // 0: osac.private.v1.PublicIPPoolsListResponse.items:type_name -> osac.private.v1.PublicIPPool + 12, // 1: osac.private.v1.PublicIPPoolsGetResponse.object:type_name -> osac.private.v1.PublicIPPool + 12, // 2: osac.private.v1.PublicIPPoolsCreateRequest.object:type_name -> osac.private.v1.PublicIPPool + 12, // 3: osac.private.v1.PublicIPPoolsCreateResponse.object:type_name -> osac.private.v1.PublicIPPool + 12, // 4: osac.private.v1.PublicIPPoolsUpdateRequest.object:type_name -> osac.private.v1.PublicIPPool + 13, // 5: osac.private.v1.PublicIPPoolsUpdateRequest.update_mask:type_name -> google.protobuf.FieldMask + 12, // 6: osac.private.v1.PublicIPPoolsUpdateResponse.object:type_name -> osac.private.v1.PublicIPPool + 0, // 7: osac.private.v1.PublicIPPools.List:input_type -> osac.private.v1.PublicIPPoolsListRequest + 2, // 8: osac.private.v1.PublicIPPools.Get:input_type -> osac.private.v1.PublicIPPoolsGetRequest + 4, // 9: osac.private.v1.PublicIPPools.Create:input_type -> osac.private.v1.PublicIPPoolsCreateRequest + 6, // 10: osac.private.v1.PublicIPPools.Update:input_type -> osac.private.v1.PublicIPPoolsUpdateRequest + 8, // 11: osac.private.v1.PublicIPPools.Delete:input_type -> osac.private.v1.PublicIPPoolsDeleteRequest + 10, // 12: osac.private.v1.PublicIPPools.Signal:input_type -> osac.private.v1.PublicIPPoolsSignalRequest + 1, // 13: osac.private.v1.PublicIPPools.List:output_type -> osac.private.v1.PublicIPPoolsListResponse + 3, // 14: osac.private.v1.PublicIPPools.Get:output_type -> osac.private.v1.PublicIPPoolsGetResponse + 5, // 15: osac.private.v1.PublicIPPools.Create:output_type -> osac.private.v1.PublicIPPoolsCreateResponse + 7, // 16: osac.private.v1.PublicIPPools.Update:output_type -> osac.private.v1.PublicIPPoolsUpdateResponse + 9, // 17: osac.private.v1.PublicIPPools.Delete:output_type -> osac.private.v1.PublicIPPoolsDeleteResponse + 11, // 18: osac.private.v1.PublicIPPools.Signal:output_type -> osac.private.v1.PublicIPPoolsSignalResponse + 13, // [13:19] is the sub-list for method output_type + 7, // [7:13] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_osac_private_v1_public_ip_pools_service_proto_init() } +func file_osac_private_v1_public_ip_pools_service_proto_init() { + if File_osac_private_v1_public_ip_pools_service_proto != nil { + return + } + file_osac_private_v1_public_ip_pool_type_proto_init() + file_osac_private_v1_public_ip_pools_service_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_osac_private_v1_public_ip_pools_service_proto_rawDesc), len(file_osac_private_v1_public_ip_pools_service_proto_rawDesc)), + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_osac_private_v1_public_ip_pools_service_proto_goTypes, + DependencyIndexes: file_osac_private_v1_public_ip_pools_service_proto_depIdxs, + MessageInfos: file_osac_private_v1_public_ip_pools_service_proto_msgTypes, + }.Build() + File_osac_private_v1_public_ip_pools_service_proto = out.File + file_osac_private_v1_public_ip_pools_service_proto_goTypes = nil + file_osac_private_v1_public_ip_pools_service_proto_depIdxs = nil +} diff --git a/internal/api/osac/private/v1/public_ip_pools_service.pb.gw.go b/internal/api/osac/private/v1/public_ip_pools_service.pb.gw.go new file mode 100644 index 000000000..1e3517684 --- /dev/null +++ b/internal/api/osac/private/v1/public_ip_pools_service.pb.gw.go @@ -0,0 +1,516 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: osac/private/v1/public_ip_pools_service.proto + +/* +Package privatev1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package privatev1 + +import ( + "context" + "errors" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var ( + _ codes.Code + _ io.Reader + _ status.Status + _ = errors.New + _ = runtime.String + _ = utilities.NewDoubleArray + _ = metadata.Join +) + +var filter_PublicIPPools_List_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} + +func request_PublicIPPools_List_0(ctx context.Context, marshaler runtime.Marshaler, client PublicIPPoolsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsListRequest + metadata runtime.ServerMetadata + ) + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PublicIPPools_List_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_PublicIPPools_List_0(ctx context.Context, marshaler runtime.Marshaler, server PublicIPPoolsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsListRequest + metadata runtime.ServerMetadata + ) + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PublicIPPools_List_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.List(ctx, &protoReq) + return msg, metadata, err +} + +func request_PublicIPPools_Get_0(ctx context.Context, marshaler runtime.Marshaler, client PublicIPPoolsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsGetRequest + metadata runtime.ServerMetadata + err error + ) + val, ok := pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_PublicIPPools_Get_0(ctx context.Context, marshaler runtime.Marshaler, server PublicIPPoolsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsGetRequest + metadata runtime.ServerMetadata + err error + ) + val, ok := pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + msg, err := server.Get(ctx, &protoReq) + return msg, metadata, err +} + +func request_PublicIPPools_Create_0(ctx context.Context, marshaler runtime.Marshaler, client PublicIPPoolsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsCreateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Object); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_PublicIPPools_Create_0(ctx context.Context, marshaler runtime.Marshaler, server PublicIPPoolsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsCreateRequest + metadata runtime.ServerMetadata + ) + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Object); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.Create(ctx, &protoReq) + return msg, metadata, err +} + +var filter_PublicIPPools_Update_0 = &utilities.DoubleArray{Encoding: map[string]int{"object": 0, "id": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}} + +func request_PublicIPPools_Update_0(ctx context.Context, marshaler runtime.Marshaler, client PublicIPPoolsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsUpdateRequest + metadata runtime.ServerMetadata + err error + ) + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Object); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Object); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + val, ok := pathParams["object.id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "object.id") + } + err = runtime.PopulateFieldFromPath(&protoReq, "object.id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "object.id", err) + } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PublicIPPools_Update_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_PublicIPPools_Update_0(ctx context.Context, marshaler runtime.Marshaler, server PublicIPPoolsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsUpdateRequest + metadata runtime.ServerMetadata + err error + ) + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Object); err != nil && !errors.Is(err, io.EOF) { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 { + if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Object); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } else { + protoReq.UpdateMask = fieldMask + } + } + val, ok := pathParams["object.id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "object.id") + } + err = runtime.PopulateFieldFromPath(&protoReq, "object.id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "object.id", err) + } + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_PublicIPPools_Update_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + msg, err := server.Update(ctx, &protoReq) + return msg, metadata, err +} + +func request_PublicIPPools_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client PublicIPPoolsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsDeleteRequest + metadata runtime.ServerMetadata + err error + ) + val, ok := pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err +} + +func local_request_PublicIPPools_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server PublicIPPoolsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var ( + protoReq PublicIPPoolsDeleteRequest + metadata runtime.ServerMetadata + err error + ) + val, ok := pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + msg, err := server.Delete(ctx, &protoReq) + return msg, metadata, err +} + +// RegisterPublicIPPoolsHandlerServer registers the http handlers for service PublicIPPools to "mux". +// UnaryRPC :call PublicIPPoolsServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicIPPoolsHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. +func RegisterPublicIPPoolsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicIPPoolsServer) error { + mux.Handle(http.MethodGet, pattern_PublicIPPools_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/List", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicIPPools_List_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodGet, pattern_PublicIPPools_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Get", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicIPPools_Get_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Get_0(annotatedContext, mux, outboundMarshaler, w, req, response_PublicIPPools_Get_0{resp.(*PublicIPPoolsGetResponse)}, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_PublicIPPools_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Create", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicIPPools_Create_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Create_0(annotatedContext, mux, outboundMarshaler, w, req, response_PublicIPPools_Create_0{resp.(*PublicIPPoolsCreateResponse)}, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPatch, pattern_PublicIPPools_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Update", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools/{object.id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicIPPools_Update_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Update_0(annotatedContext, mux, outboundMarshaler, w, req, response_PublicIPPools_Update_0{resp.(*PublicIPPoolsUpdateResponse)}, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodDelete, pattern_PublicIPPools_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Delete", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_PublicIPPools_Delete_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + + return nil +} + +// RegisterPublicIPPoolsHandlerFromEndpoint is same as RegisterPublicIPPoolsHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterPublicIPPoolsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.NewClient(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + return RegisterPublicIPPoolsHandler(ctx, mux, conn) +} + +// RegisterPublicIPPoolsHandler registers the http handlers for service PublicIPPools to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterPublicIPPoolsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterPublicIPPoolsHandlerClient(ctx, mux, NewPublicIPPoolsClient(conn)) +} + +// RegisterPublicIPPoolsHandlerClient registers the http handlers for service PublicIPPools +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicIPPoolsClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicIPPoolsClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "PublicIPPoolsClient" to call the correct interceptors. This client ignores the HTTP middlewares. +func RegisterPublicIPPoolsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicIPPoolsClient) error { + mux.Handle(http.MethodGet, pattern_PublicIPPools_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/List", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicIPPools_List_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodGet, pattern_PublicIPPools_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Get", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicIPPools_Get_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Get_0(annotatedContext, mux, outboundMarshaler, w, req, response_PublicIPPools_Get_0{resp.(*PublicIPPoolsGetResponse)}, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPost, pattern_PublicIPPools_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Create", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicIPPools_Create_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Create_0(annotatedContext, mux, outboundMarshaler, w, req, response_PublicIPPools_Create_0{resp.(*PublicIPPoolsCreateResponse)}, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodPatch, pattern_PublicIPPools_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Update", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools/{object.id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicIPPools_Update_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Update_0(annotatedContext, mux, outboundMarshaler, w, req, response_PublicIPPools_Update_0{resp.(*PublicIPPoolsUpdateResponse)}, mux.GetForwardResponseOptions()...) + }) + mux.Handle(http.MethodDelete, pattern_PublicIPPools_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/osac.private.v1.PublicIPPools/Delete", runtime.WithHTTPPathPattern("/api/private/v1/public_ip_pools/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PublicIPPools_Delete_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + forward_PublicIPPools_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + }) + return nil +} + +type response_PublicIPPools_Get_0 struct { + *PublicIPPoolsGetResponse +} + +func (m response_PublicIPPools_Get_0) XXX_ResponseBody() interface{} { + return m.Object +} + +type response_PublicIPPools_Create_0 struct { + *PublicIPPoolsCreateResponse +} + +func (m response_PublicIPPools_Create_0) XXX_ResponseBody() interface{} { + return m.Object +} + +type response_PublicIPPools_Update_0 struct { + *PublicIPPoolsUpdateResponse +} + +func (m response_PublicIPPools_Update_0) XXX_ResponseBody() interface{} { + return m.Object +} + +var ( + pattern_PublicIPPools_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "private", "v1", "public_ip_pools"}, "")) + pattern_PublicIPPools_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "private", "v1", "public_ip_pools", "id"}, "")) + pattern_PublicIPPools_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "private", "v1", "public_ip_pools"}, "")) + pattern_PublicIPPools_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "private", "v1", "public_ip_pools", "object.id"}, "")) + pattern_PublicIPPools_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "private", "v1", "public_ip_pools", "id"}, "")) +) + +var ( + forward_PublicIPPools_List_0 = runtime.ForwardResponseMessage + forward_PublicIPPools_Get_0 = runtime.ForwardResponseMessage + forward_PublicIPPools_Create_0 = runtime.ForwardResponseMessage + forward_PublicIPPools_Update_0 = runtime.ForwardResponseMessage + forward_PublicIPPools_Delete_0 = runtime.ForwardResponseMessage +) diff --git a/internal/api/osac/private/v1/public_ip_pools_service_grpc.pb.go b/internal/api/osac/private/v1/public_ip_pools_service_grpc.pb.go new file mode 100644 index 000000000..008f4c22d --- /dev/null +++ b/internal/api/osac/private/v1/public_ip_pools_service_grpc.pb.go @@ -0,0 +1,338 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: osac/private/v1/public_ip_pools_service.proto + +package privatev1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + PublicIPPools_List_FullMethodName = "/osac.private.v1.PublicIPPools/List" + PublicIPPools_Get_FullMethodName = "/osac.private.v1.PublicIPPools/Get" + PublicIPPools_Create_FullMethodName = "/osac.private.v1.PublicIPPools/Create" + PublicIPPools_Update_FullMethodName = "/osac.private.v1.PublicIPPools/Update" + PublicIPPools_Delete_FullMethodName = "/osac.private.v1.PublicIPPools/Delete" + PublicIPPools_Signal_FullMethodName = "/osac.private.v1.PublicIPPools/Signal" +) + +// PublicIPPoolsClient is the client API for PublicIPPools service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PublicIPPoolsClient interface { + // Retrieves the list of public IP pools. + List(ctx context.Context, in *PublicIPPoolsListRequest, opts ...grpc.CallOption) (*PublicIPPoolsListResponse, error) + // Retrieves the details of one specific public IP pool. + Get(ctx context.Context, in *PublicIPPoolsGetRequest, opts ...grpc.CallOption) (*PublicIPPoolsGetResponse, error) + // Creates a new public IP pool. + Create(ctx context.Context, in *PublicIPPoolsCreateRequest, opts ...grpc.CallOption) (*PublicIPPoolsCreateResponse, error) + // Updates an existing public IP pool. Only metadata fields (name, labels, annotations) are mutable. + // All spec fields (cidrs, ip_family, implementation_strategy) are immutable after creation. + Update(ctx context.Context, in *PublicIPPoolsUpdateRequest, opts ...grpc.CallOption) (*PublicIPPoolsUpdateResponse, error) + // Deletes a public IP pool. Rejected if allocated PublicIPs still reference this pool. + Delete(ctx context.Context, in *PublicIPPoolsDeleteRequest, opts ...grpc.CallOption) (*PublicIPPoolsDeleteResponse, error) + // Indicates that something changed in the object or the system that may require reconciling the object. + Signal(ctx context.Context, in *PublicIPPoolsSignalRequest, opts ...grpc.CallOption) (*PublicIPPoolsSignalResponse, error) +} + +type publicIPPoolsClient struct { + cc grpc.ClientConnInterface +} + +func NewPublicIPPoolsClient(cc grpc.ClientConnInterface) PublicIPPoolsClient { + return &publicIPPoolsClient{cc} +} + +func (c *publicIPPoolsClient) List(ctx context.Context, in *PublicIPPoolsListRequest, opts ...grpc.CallOption) (*PublicIPPoolsListResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PublicIPPoolsListResponse) + err := c.cc.Invoke(ctx, PublicIPPools_List_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicIPPoolsClient) Get(ctx context.Context, in *PublicIPPoolsGetRequest, opts ...grpc.CallOption) (*PublicIPPoolsGetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PublicIPPoolsGetResponse) + err := c.cc.Invoke(ctx, PublicIPPools_Get_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicIPPoolsClient) Create(ctx context.Context, in *PublicIPPoolsCreateRequest, opts ...grpc.CallOption) (*PublicIPPoolsCreateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PublicIPPoolsCreateResponse) + err := c.cc.Invoke(ctx, PublicIPPools_Create_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicIPPoolsClient) Update(ctx context.Context, in *PublicIPPoolsUpdateRequest, opts ...grpc.CallOption) (*PublicIPPoolsUpdateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PublicIPPoolsUpdateResponse) + err := c.cc.Invoke(ctx, PublicIPPools_Update_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicIPPoolsClient) Delete(ctx context.Context, in *PublicIPPoolsDeleteRequest, opts ...grpc.CallOption) (*PublicIPPoolsDeleteResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PublicIPPoolsDeleteResponse) + err := c.cc.Invoke(ctx, PublicIPPools_Delete_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *publicIPPoolsClient) Signal(ctx context.Context, in *PublicIPPoolsSignalRequest, opts ...grpc.CallOption) (*PublicIPPoolsSignalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(PublicIPPoolsSignalResponse) + err := c.cc.Invoke(ctx, PublicIPPools_Signal_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PublicIPPoolsServer is the server API for PublicIPPools service. +// All implementations must embed UnimplementedPublicIPPoolsServer +// for forward compatibility. +type PublicIPPoolsServer interface { + // Retrieves the list of public IP pools. + List(context.Context, *PublicIPPoolsListRequest) (*PublicIPPoolsListResponse, error) + // Retrieves the details of one specific public IP pool. + Get(context.Context, *PublicIPPoolsGetRequest) (*PublicIPPoolsGetResponse, error) + // Creates a new public IP pool. + Create(context.Context, *PublicIPPoolsCreateRequest) (*PublicIPPoolsCreateResponse, error) + // Updates an existing public IP pool. Only metadata fields (name, labels, annotations) are mutable. + // All spec fields (cidrs, ip_family, implementation_strategy) are immutable after creation. + Update(context.Context, *PublicIPPoolsUpdateRequest) (*PublicIPPoolsUpdateResponse, error) + // Deletes a public IP pool. Rejected if allocated PublicIPs still reference this pool. + Delete(context.Context, *PublicIPPoolsDeleteRequest) (*PublicIPPoolsDeleteResponse, error) + // Indicates that something changed in the object or the system that may require reconciling the object. + Signal(context.Context, *PublicIPPoolsSignalRequest) (*PublicIPPoolsSignalResponse, error) + mustEmbedUnimplementedPublicIPPoolsServer() +} + +// UnimplementedPublicIPPoolsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPublicIPPoolsServer struct{} + +func (UnimplementedPublicIPPoolsServer) List(context.Context, *PublicIPPoolsListRequest) (*PublicIPPoolsListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedPublicIPPoolsServer) Get(context.Context, *PublicIPPoolsGetRequest) (*PublicIPPoolsGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedPublicIPPoolsServer) Create(context.Context, *PublicIPPoolsCreateRequest) (*PublicIPPoolsCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedPublicIPPoolsServer) Update(context.Context, *PublicIPPoolsUpdateRequest) (*PublicIPPoolsUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedPublicIPPoolsServer) Delete(context.Context, *PublicIPPoolsDeleteRequest) (*PublicIPPoolsDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedPublicIPPoolsServer) Signal(context.Context, *PublicIPPoolsSignalRequest) (*PublicIPPoolsSignalResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Signal not implemented") +} +func (UnimplementedPublicIPPoolsServer) mustEmbedUnimplementedPublicIPPoolsServer() {} +func (UnimplementedPublicIPPoolsServer) testEmbeddedByValue() {} + +// UnsafePublicIPPoolsServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PublicIPPoolsServer will +// result in compilation errors. +type UnsafePublicIPPoolsServer interface { + mustEmbedUnimplementedPublicIPPoolsServer() +} + +func RegisterPublicIPPoolsServer(s grpc.ServiceRegistrar, srv PublicIPPoolsServer) { + // If the following call pancis, it indicates UnimplementedPublicIPPoolsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PublicIPPools_ServiceDesc, srv) +} + +func _PublicIPPools_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicIPPoolsListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicIPPoolsServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PublicIPPools_List_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicIPPoolsServer).List(ctx, req.(*PublicIPPoolsListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicIPPools_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicIPPoolsGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicIPPoolsServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PublicIPPools_Get_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicIPPoolsServer).Get(ctx, req.(*PublicIPPoolsGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicIPPools_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicIPPoolsCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicIPPoolsServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PublicIPPools_Create_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicIPPoolsServer).Create(ctx, req.(*PublicIPPoolsCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicIPPools_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicIPPoolsUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicIPPoolsServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PublicIPPools_Update_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicIPPoolsServer).Update(ctx, req.(*PublicIPPoolsUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicIPPools_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicIPPoolsDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicIPPoolsServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PublicIPPools_Delete_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicIPPoolsServer).Delete(ctx, req.(*PublicIPPoolsDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _PublicIPPools_Signal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicIPPoolsSignalRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PublicIPPoolsServer).Signal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PublicIPPools_Signal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PublicIPPoolsServer).Signal(ctx, req.(*PublicIPPoolsSignalRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PublicIPPools_ServiceDesc is the grpc.ServiceDesc for PublicIPPools service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PublicIPPools_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "osac.private.v1.PublicIPPools", + HandlerType: (*PublicIPPoolsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "List", + Handler: _PublicIPPools_List_Handler, + }, + { + MethodName: "Get", + Handler: _PublicIPPools_Get_Handler, + }, + { + MethodName: "Create", + Handler: _PublicIPPools_Create_Handler, + }, + { + MethodName: "Update", + Handler: _PublicIPPools_Update_Handler, + }, + { + MethodName: "Delete", + Handler: _PublicIPPools_Delete_Handler, + }, + { + MethodName: "Signal", + Handler: _PublicIPPools_Signal_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "osac/private/v1/public_ip_pools_service.proto", +} diff --git a/internal/api/osac/private/v1/public_ip_pools_service_protoopaque.pb.go b/internal/api/osac/private/v1/public_ip_pools_service_protoopaque.pb.go new file mode 100644 index 000000000..f91033851 --- /dev/null +++ b/internal/api/osac/private/v1/public_ip_pools_service_protoopaque.pb.go @@ -0,0 +1,1185 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.5 +// protoc (unknown) +// source: osac/private/v1/public_ip_pools_service.proto + +//go:build protoopaque + +package privatev1 + +import ( + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + reflect "reflect" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type PublicIPPoolsListRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Offset int32 `protobuf:"varint,1,opt,name=offset,proto3,oneof"` + xxx_hidden_Limit int32 `protobuf:"varint,2,opt,name=limit,proto3,oneof"` + xxx_hidden_Filter *string `protobuf:"bytes,3,opt,name=filter,proto3,oneof"` + xxx_hidden_Order *string `protobuf:"bytes,4,opt,name=order,proto3,oneof"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsListRequest) Reset() { + *x = PublicIPPoolsListRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsListRequest) ProtoMessage() {} + +func (x *PublicIPPoolsListRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsListRequest) GetOffset() int32 { + if x != nil { + return x.xxx_hidden_Offset + } + return 0 +} + +func (x *PublicIPPoolsListRequest) GetLimit() int32 { + if x != nil { + return x.xxx_hidden_Limit + } + return 0 +} + +func (x *PublicIPPoolsListRequest) GetFilter() string { + if x != nil { + if x.xxx_hidden_Filter != nil { + return *x.xxx_hidden_Filter + } + return "" + } + return "" +} + +func (x *PublicIPPoolsListRequest) GetOrder() string { + if x != nil { + if x.xxx_hidden_Order != nil { + return *x.xxx_hidden_Order + } + return "" + } + return "" +} + +func (x *PublicIPPoolsListRequest) SetOffset(v int32) { + x.xxx_hidden_Offset = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 4) +} + +func (x *PublicIPPoolsListRequest) SetLimit(v int32) { + x.xxx_hidden_Limit = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 4) +} + +func (x *PublicIPPoolsListRequest) SetFilter(v string) { + x.xxx_hidden_Filter = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 4) +} + +func (x *PublicIPPoolsListRequest) SetOrder(v string) { + x.xxx_hidden_Order = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 4) +} + +func (x *PublicIPPoolsListRequest) HasOffset() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *PublicIPPoolsListRequest) HasLimit() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *PublicIPPoolsListRequest) HasFilter() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *PublicIPPoolsListRequest) HasOrder() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 3) +} + +func (x *PublicIPPoolsListRequest) ClearOffset() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Offset = 0 +} + +func (x *PublicIPPoolsListRequest) ClearLimit() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Limit = 0 +} + +func (x *PublicIPPoolsListRequest) ClearFilter() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_Filter = nil +} + +func (x *PublicIPPoolsListRequest) ClearOrder() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3) + x.xxx_hidden_Order = nil +} + +type PublicIPPoolsListRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Index of the first result. If not specified the default value will be zero. + Offset *int32 + // Maximum number of results to be returned by the server. When not specified all the results will be returned. Note + // that there may not be enough results to return, and that the server may decide, for performance reasons, to return + // less results than requested. + Limit *int32 + // Filter criteria. + // + // The value of this parameter is a [CEL](https://cel.dev) expression used to select which objects to return. The + // built-in `this` variable refers to the object being tested and `now` refers to the current date and time. If the + // expression evaluates to `true` the object is included in the results. For example, to retrieve all IPv4 public + // IP pools: + // + // this.spec.ip_family == IP_FAMILY_IPV4 + // + // If this isn't provided, or if the value is empty, then all the public IP pools that the user has permission to see + // will be returned. Not all CEL constructs are currently supported for implementation reasons; see the filter + // documentation (docs/FILTER.md) for the full details. + Filter *string + // Order criteria. + // + // The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the + // names of the attributes of the public IP pool instead of the names of the columns of a table. For example, in + // order to sort the pools descending by creation time the value should be: + // + // metadata.created_at desc + // + // If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + Order *string +} + +func (b0 PublicIPPoolsListRequest_builder) Build() *PublicIPPoolsListRequest { + m0 := &PublicIPPoolsListRequest{} + b, x := &b0, m0 + _, _ = b, x + if b.Offset != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 4) + x.xxx_hidden_Offset = *b.Offset + } + if b.Limit != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 4) + x.xxx_hidden_Limit = *b.Limit + } + if b.Filter != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 4) + x.xxx_hidden_Filter = b.Filter + } + if b.Order != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 4) + x.xxx_hidden_Order = b.Order + } + return m0 +} + +type PublicIPPoolsListResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Size int32 `protobuf:"varint,3,opt,name=size,proto3"` + xxx_hidden_Total int32 `protobuf:"varint,4,opt,name=total,proto3"` + xxx_hidden_Items *[]*PublicIPPool `protobuf:"bytes,5,rep,name=items,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsListResponse) Reset() { + *x = PublicIPPoolsListResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsListResponse) ProtoMessage() {} + +func (x *PublicIPPoolsListResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsListResponse) GetSize() int32 { + if x != nil { + return x.xxx_hidden_Size + } + return 0 +} + +func (x *PublicIPPoolsListResponse) GetTotal() int32 { + if x != nil { + return x.xxx_hidden_Total + } + return 0 +} + +func (x *PublicIPPoolsListResponse) GetItems() []*PublicIPPool { + if x != nil { + if x.xxx_hidden_Items != nil { + return *x.xxx_hidden_Items + } + } + return nil +} + +func (x *PublicIPPoolsListResponse) SetSize(v int32) { + x.xxx_hidden_Size = v +} + +func (x *PublicIPPoolsListResponse) SetTotal(v int32) { + x.xxx_hidden_Total = v +} + +func (x *PublicIPPoolsListResponse) SetItems(v []*PublicIPPool) { + x.xxx_hidden_Items = &v +} + +type PublicIPPoolsListResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Actual number of items returned. Note that this may be smaller than the value requested in the `limit` parameter + // of the request if there are not enough items, or if the system decides that returning that number of items isn't + // feasible or convenient for performance reasons. + Size int32 + // Total number of items of the collection that match the search criteria, regardless of the number of results + // requested with the `limit` parameter. + Total int32 + // List of results. + Items []*PublicIPPool +} + +func (b0 PublicIPPoolsListResponse_builder) Build() *PublicIPPoolsListResponse { + m0 := &PublicIPPoolsListResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Size = b.Size + x.xxx_hidden_Total = b.Total + x.xxx_hidden_Items = &b.Items + return m0 +} + +type PublicIPPoolsGetRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsGetRequest) Reset() { + *x = PublicIPPoolsGetRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsGetRequest) ProtoMessage() {} + +func (x *PublicIPPoolsGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_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) +} + +func (x *PublicIPPoolsGetRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *PublicIPPoolsGetRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type PublicIPPoolsGetRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 PublicIPPoolsGetRequest_builder) Build() *PublicIPPoolsGetRequest { + m0 := &PublicIPPoolsGetRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type PublicIPPoolsGetResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsGetResponse) Reset() { + *x = PublicIPPoolsGetResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsGetResponse) ProtoMessage() {} + +func (x *PublicIPPoolsGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsGetResponse) GetObject() *PublicIPPool { + if x != nil { + return x.xxx_hidden_Object + } + return nil +} + +func (x *PublicIPPoolsGetResponse) SetObject(v *PublicIPPool) { + x.xxx_hidden_Object = v +} + +func (x *PublicIPPoolsGetResponse) HasObject() bool { + if x == nil { + return false + } + return x.xxx_hidden_Object != nil +} + +func (x *PublicIPPoolsGetResponse) ClearObject() { + x.xxx_hidden_Object = nil +} + +type PublicIPPoolsGetResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsGetResponse_builder) Build() *PublicIPPoolsGetResponse { + m0 := &PublicIPPoolsGetResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Object = b.Object + return m0 +} + +type PublicIPPoolsCreateRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsCreateRequest) Reset() { + *x = PublicIPPoolsCreateRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsCreateRequest) ProtoMessage() {} + +func (x *PublicIPPoolsCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsCreateRequest) GetObject() *PublicIPPool { + if x != nil { + return x.xxx_hidden_Object + } + return nil +} + +func (x *PublicIPPoolsCreateRequest) SetObject(v *PublicIPPool) { + x.xxx_hidden_Object = v +} + +func (x *PublicIPPoolsCreateRequest) HasObject() bool { + if x == nil { + return false + } + return x.xxx_hidden_Object != nil +} + +func (x *PublicIPPoolsCreateRequest) ClearObject() { + x.xxx_hidden_Object = nil +} + +type PublicIPPoolsCreateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsCreateRequest_builder) Build() *PublicIPPoolsCreateRequest { + m0 := &PublicIPPoolsCreateRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Object = b.Object + return m0 +} + +type PublicIPPoolsCreateResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsCreateResponse) Reset() { + *x = PublicIPPoolsCreateResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsCreateResponse) ProtoMessage() {} + +func (x *PublicIPPoolsCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsCreateResponse) GetObject() *PublicIPPool { + if x != nil { + return x.xxx_hidden_Object + } + return nil +} + +func (x *PublicIPPoolsCreateResponse) SetObject(v *PublicIPPool) { + x.xxx_hidden_Object = v +} + +func (x *PublicIPPoolsCreateResponse) HasObject() bool { + if x == nil { + return false + } + return x.xxx_hidden_Object != nil +} + +func (x *PublicIPPoolsCreateResponse) ClearObject() { + x.xxx_hidden_Object = nil +} + +type PublicIPPoolsCreateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsCreateResponse_builder) Build() *PublicIPPoolsCreateResponse { + m0 := &PublicIPPoolsCreateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Object = b.Object + return m0 +} + +type PublicIPPoolsUpdateRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3"` + xxx_hidden_UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3"` + xxx_hidden_Lock bool `protobuf:"varint,3,opt,name=lock,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsUpdateRequest) Reset() { + *x = PublicIPPoolsUpdateRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsUpdateRequest) ProtoMessage() {} + +func (x *PublicIPPoolsUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsUpdateRequest) GetObject() *PublicIPPool { + if x != nil { + return x.xxx_hidden_Object + } + return nil +} + +func (x *PublicIPPoolsUpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { + if x != nil { + return x.xxx_hidden_UpdateMask + } + return nil +} + +func (x *PublicIPPoolsUpdateRequest) GetLock() bool { + if x != nil { + return x.xxx_hidden_Lock + } + return false +} + +func (x *PublicIPPoolsUpdateRequest) SetObject(v *PublicIPPool) { + x.xxx_hidden_Object = v +} + +func (x *PublicIPPoolsUpdateRequest) SetUpdateMask(v *fieldmaskpb.FieldMask) { + x.xxx_hidden_UpdateMask = v +} + +func (x *PublicIPPoolsUpdateRequest) SetLock(v bool) { + x.xxx_hidden_Lock = v +} + +func (x *PublicIPPoolsUpdateRequest) HasObject() bool { + if x == nil { + return false + } + return x.xxx_hidden_Object != nil +} + +func (x *PublicIPPoolsUpdateRequest) HasUpdateMask() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdateMask != nil +} + +func (x *PublicIPPoolsUpdateRequest) ClearObject() { + x.xxx_hidden_Object = nil +} + +func (x *PublicIPPoolsUpdateRequest) ClearUpdateMask() { + x.xxx_hidden_UpdateMask = nil +} + +type PublicIPPoolsUpdateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool + UpdateMask *fieldmaskpb.FieldMask + // Lock enables optimistic locking. When set to true, the server verifies that the current version of the object + // matches the value of the metadata.version field of the submitted object. If they differ the update will be + // rejected. This is useful to prevent lost updates when multiple clients are modifying the same object concurrently. + Lock bool +} + +func (b0 PublicIPPoolsUpdateRequest_builder) Build() *PublicIPPoolsUpdateRequest { + m0 := &PublicIPPoolsUpdateRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Object = b.Object + x.xxx_hidden_UpdateMask = b.UpdateMask + x.xxx_hidden_Lock = b.Lock + return m0 +} + +type PublicIPPoolsUpdateResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Object *PublicIPPool `protobuf:"bytes,1,opt,name=object,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsUpdateResponse) Reset() { + *x = PublicIPPoolsUpdateResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsUpdateResponse) ProtoMessage() {} + +func (x *PublicIPPoolsUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsUpdateResponse) GetObject() *PublicIPPool { + if x != nil { + return x.xxx_hidden_Object + } + return nil +} + +func (x *PublicIPPoolsUpdateResponse) SetObject(v *PublicIPPool) { + x.xxx_hidden_Object = v +} + +func (x *PublicIPPoolsUpdateResponse) HasObject() bool { + if x == nil { + return false + } + return x.xxx_hidden_Object != nil +} + +func (x *PublicIPPoolsUpdateResponse) ClearObject() { + x.xxx_hidden_Object = nil +} + +type PublicIPPoolsUpdateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Object *PublicIPPool +} + +func (b0 PublicIPPoolsUpdateResponse_builder) Build() *PublicIPPoolsUpdateResponse { + m0 := &PublicIPPoolsUpdateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Object = b.Object + return m0 +} + +type PublicIPPoolsDeleteRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsDeleteRequest) Reset() { + *x = PublicIPPoolsDeleteRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsDeleteRequest) ProtoMessage() {} + +func (x *PublicIPPoolsDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsDeleteRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *PublicIPPoolsDeleteRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type PublicIPPoolsDeleteRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 PublicIPPoolsDeleteRequest_builder) Build() *PublicIPPoolsDeleteRequest { + m0 := &PublicIPPoolsDeleteRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type PublicIPPoolsDeleteResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsDeleteResponse) Reset() { + *x = PublicIPPoolsDeleteResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsDeleteResponse) ProtoMessage() {} + +func (x *PublicIPPoolsDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PublicIPPoolsDeleteResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PublicIPPoolsDeleteResponse_builder) Build() *PublicIPPoolsDeleteResponse { + m0 := &PublicIPPoolsDeleteResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type PublicIPPoolsSignalRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsSignalRequest) Reset() { + *x = PublicIPPoolsSignalRequest{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsSignalRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsSignalRequest) ProtoMessage() {} + +func (x *PublicIPPoolsSignalRequest) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *PublicIPPoolsSignalRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *PublicIPPoolsSignalRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +type PublicIPPoolsSignalRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 PublicIPPoolsSignalRequest_builder) Build() *PublicIPPoolsSignalRequest { + m0 := &PublicIPPoolsSignalRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type PublicIPPoolsSignalResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PublicIPPoolsSignalResponse) Reset() { + *x = PublicIPPoolsSignalResponse{} + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PublicIPPoolsSignalResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicIPPoolsSignalResponse) ProtoMessage() {} + +func (x *PublicIPPoolsSignalResponse) ProtoReflect() protoreflect.Message { + mi := &file_osac_private_v1_public_ip_pools_service_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type PublicIPPoolsSignalResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 PublicIPPoolsSignalResponse_builder) Build() *PublicIPPoolsSignalResponse { + m0 := &PublicIPPoolsSignalResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_osac_private_v1_public_ip_pools_service_proto protoreflect.FileDescriptor + +var file_osac_private_v1_public_ip_pools_service_proto_rawDesc = string([]byte{ + 0x0a, 0x2d, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0f, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x29, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, + 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x01, 0x0a, 0x18, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01, + 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x02, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, + 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x05, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x66, 0x66, + 0x73, 0x65, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x22, 0x7a, 0x0a, 0x19, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x33, 0x0a, 0x05, 0x69, 0x74, 0x65, + 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x29, + 0x0a, 0x17, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x18, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, + 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x53, 0x0a, 0x1a, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, + 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x22, 0x54, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, + 0x6c, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, + 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0xa4, 0x01, 0x0a, 0x1a, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, + 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x3b, 0x0a, + 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, + 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x54, + 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, + 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x06, 0x6f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x22, 0x2c, 0x0a, 0x1a, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, + 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x22, 0x1d, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x2c, 0x0a, 0x1a, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, + 0x6c, 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, + 0x1d, 0x0a, 0x1b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xf0, + 0x06, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, + 0x12, 0x86, 0x01, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x6f, 0x73, 0x61, 0x63, + 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0x90, 0x01, 0x0a, 0x03, 0x47, 0x65, + 0x74, 0x12, 0x28, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x6f, 0x73, + 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x62, 0x06, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, + 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x9c, 0x01, 0x0a, + 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x06, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x62, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x12, 0xa8, 0x01, 0x0a, 0x06, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, + 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, + 0x6f, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x62, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x5f, 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x7b, 0x6f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x2e, 0x69, 0x64, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x26, 0x2a, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, + 0x74, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x69, 0x70, 0x5f, + 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x65, 0x0a, 0x06, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x2b, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, + 0x6f, 0x6f, 0x6c, 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2c, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x49, 0x50, 0x50, 0x6f, 0x6f, 0x6c, + 0x73, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x42, 0xe4, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6f, 0x73, 0x61, 0x63, 0x2e, 0x70, + 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x19, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x49, 0x70, 0x50, 0x6f, 0x6f, 0x6c, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x52, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, + 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x2d, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x6f, 0x73, 0x61, 0x63, 0x2f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, + 0x3b, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4f, 0x50, 0x58, + 0xaa, 0x02, 0x0f, 0x4f, 0x73, 0x61, 0x63, 0x2e, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x2e, + 0x56, 0x31, 0xca, 0x02, 0x10, 0x4f, 0x73, 0x61, 0x63, 0x5c, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x5f, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x4f, 0x73, 0x61, 0x63, 0x5c, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x5f, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x4f, 0x73, 0x61, 0x63, 0x3a, 0x3a, 0x50, 0x72, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +}) + +var file_osac_private_v1_public_ip_pools_service_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_osac_private_v1_public_ip_pools_service_proto_goTypes = []any{ + (*PublicIPPoolsListRequest)(nil), // 0: osac.private.v1.PublicIPPoolsListRequest + (*PublicIPPoolsListResponse)(nil), // 1: osac.private.v1.PublicIPPoolsListResponse + (*PublicIPPoolsGetRequest)(nil), // 2: osac.private.v1.PublicIPPoolsGetRequest + (*PublicIPPoolsGetResponse)(nil), // 3: osac.private.v1.PublicIPPoolsGetResponse + (*PublicIPPoolsCreateRequest)(nil), // 4: osac.private.v1.PublicIPPoolsCreateRequest + (*PublicIPPoolsCreateResponse)(nil), // 5: osac.private.v1.PublicIPPoolsCreateResponse + (*PublicIPPoolsUpdateRequest)(nil), // 6: osac.private.v1.PublicIPPoolsUpdateRequest + (*PublicIPPoolsUpdateResponse)(nil), // 7: osac.private.v1.PublicIPPoolsUpdateResponse + (*PublicIPPoolsDeleteRequest)(nil), // 8: osac.private.v1.PublicIPPoolsDeleteRequest + (*PublicIPPoolsDeleteResponse)(nil), // 9: osac.private.v1.PublicIPPoolsDeleteResponse + (*PublicIPPoolsSignalRequest)(nil), // 10: osac.private.v1.PublicIPPoolsSignalRequest + (*PublicIPPoolsSignalResponse)(nil), // 11: osac.private.v1.PublicIPPoolsSignalResponse + (*PublicIPPool)(nil), // 12: osac.private.v1.PublicIPPool + (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask +} +var file_osac_private_v1_public_ip_pools_service_proto_depIdxs = []int32{ + 12, // 0: osac.private.v1.PublicIPPoolsListResponse.items:type_name -> osac.private.v1.PublicIPPool + 12, // 1: osac.private.v1.PublicIPPoolsGetResponse.object:type_name -> osac.private.v1.PublicIPPool + 12, // 2: osac.private.v1.PublicIPPoolsCreateRequest.object:type_name -> osac.private.v1.PublicIPPool + 12, // 3: osac.private.v1.PublicIPPoolsCreateResponse.object:type_name -> osac.private.v1.PublicIPPool + 12, // 4: osac.private.v1.PublicIPPoolsUpdateRequest.object:type_name -> osac.private.v1.PublicIPPool + 13, // 5: osac.private.v1.PublicIPPoolsUpdateRequest.update_mask:type_name -> google.protobuf.FieldMask + 12, // 6: osac.private.v1.PublicIPPoolsUpdateResponse.object:type_name -> osac.private.v1.PublicIPPool + 0, // 7: osac.private.v1.PublicIPPools.List:input_type -> osac.private.v1.PublicIPPoolsListRequest + 2, // 8: osac.private.v1.PublicIPPools.Get:input_type -> osac.private.v1.PublicIPPoolsGetRequest + 4, // 9: osac.private.v1.PublicIPPools.Create:input_type -> osac.private.v1.PublicIPPoolsCreateRequest + 6, // 10: osac.private.v1.PublicIPPools.Update:input_type -> osac.private.v1.PublicIPPoolsUpdateRequest + 8, // 11: osac.private.v1.PublicIPPools.Delete:input_type -> osac.private.v1.PublicIPPoolsDeleteRequest + 10, // 12: osac.private.v1.PublicIPPools.Signal:input_type -> osac.private.v1.PublicIPPoolsSignalRequest + 1, // 13: osac.private.v1.PublicIPPools.List:output_type -> osac.private.v1.PublicIPPoolsListResponse + 3, // 14: osac.private.v1.PublicIPPools.Get:output_type -> osac.private.v1.PublicIPPoolsGetResponse + 5, // 15: osac.private.v1.PublicIPPools.Create:output_type -> osac.private.v1.PublicIPPoolsCreateResponse + 7, // 16: osac.private.v1.PublicIPPools.Update:output_type -> osac.private.v1.PublicIPPoolsUpdateResponse + 9, // 17: osac.private.v1.PublicIPPools.Delete:output_type -> osac.private.v1.PublicIPPoolsDeleteResponse + 11, // 18: osac.private.v1.PublicIPPools.Signal:output_type -> osac.private.v1.PublicIPPoolsSignalResponse + 13, // [13:19] is the sub-list for method output_type + 7, // [7:13] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_osac_private_v1_public_ip_pools_service_proto_init() } +func file_osac_private_v1_public_ip_pools_service_proto_init() { + if File_osac_private_v1_public_ip_pools_service_proto != nil { + return + } + file_osac_private_v1_public_ip_pool_type_proto_init() + file_osac_private_v1_public_ip_pools_service_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_osac_private_v1_public_ip_pools_service_proto_rawDesc), len(file_osac_private_v1_public_ip_pools_service_proto_rawDesc)), + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_osac_private_v1_public_ip_pools_service_proto_goTypes, + DependencyIndexes: file_osac_private_v1_public_ip_pools_service_proto_depIdxs, + MessageInfos: file_osac_private_v1_public_ip_pools_service_proto_msgTypes, + }.Build() + File_osac_private_v1_public_ip_pools_service_proto = out.File + file_osac_private_v1_public_ip_pools_service_proto_goTypes = nil + file_osac_private_v1_public_ip_pools_service_proto_depIdxs = nil +} diff --git a/proto/private/osac/private/v1/public_ip_pool_type.proto b/proto/private/osac/private/v1/public_ip_pool_type.proto new file mode 100644 index 000000000..134c0d66f --- /dev/null +++ b/proto/private/osac/private/v1/public_ip_pool_type.proto @@ -0,0 +1,174 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +syntax = "proto3"; + +package osac.private.v1; + +import "google/api/field_behavior.proto"; +import "osac/private/v1/metadata_type.proto"; + +// Represents a pool of public IP addresses available for allocation to compute instances. +// +// Each PublicIPPool supports a single IP family (IPv4 or IPv6). The pool contains one or more CIDR +// ranges from which individual PublicIP addresses are allocated. Pools are provider-managed +// resources created by administrators through the private API. +// +// The implementation_strategy field determines how IPs from this pool are advertised on the target +// cluster (e.g., MetalLB L2 mode). This field is set by the system and is not user-configurable. +// +// Capacity tracking fields in the status (total, allocated, available) reflect the current utilization +// of the pool across all its CIDR ranges. +message PublicIPPool { + // Unique identifier of the public IP pool. + string id = 1; + + // Metadata of the public IP pool, including name, labels, and timestamps. + Metadata metadata = 2; + + // Desired configuration of the public IP pool (admin-specified). + PublicIPPoolSpec spec = 3; + + // Current state of the public IP pool (system-provided, read-only). + PublicIPPoolStatus status = 4; +} + +// Defines the desired configuration for a PublicIPPool. +// +// All spec fields are immutable after creation. To change CIDRs, delete the pool and create a +// new one. The Update RPC only allows metadata changes (name, labels, annotations). +message PublicIPPoolSpec { + // CIDR ranges for this pool. Required and immutable after creation. + // + // Each entry must be valid CIDR notation matching the declared ip_family. All CIDRs must be + // the same IP family. CIDRs must not overlap with CIDRs in other pools. + // + // Example (IPv4): ["192.168.1.0/24", "10.0.5.0/28"] + // Example (IPv6): ["2001:db8::/64"] + repeated string cidrs = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // IP address family for this pool. Required and immutable after creation. + // + // Determines whether the CIDRs in this pool are IPv4 or IPv6. All CIDRs must match this + // family. A single pool cannot mix IPv4 and IPv6 ranges. + IPFamily ip_family = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Backend strategy used to advertise IPs from this pool on the target cluster. + // + // Set by the system based on cluster configuration. Not user-configurable. Currently the + // only supported strategy is "metallb-l2" (MetalLB Layer 2 advertisement mode). + string implementation_strategy = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE + ]; +} + +// Represents the current operational state of a PublicIPPool. +// +// Status is system-provided and read-only. Users cannot modify status fields directly; the system +// updates them based on reconciliation of the spec and feedback from the cluster controller. +message PublicIPPoolStatus { + // Current lifecycle state of the public IP pool. + PublicIPPoolState state = 1; + + // Human-readable message providing additional details about the current state. + // + // For PENDING state, may contain progress information like "Waiting for MetalLB configuration". + // For FAILED state, contains error details. For READY state, typically empty. + optional string message = 2; + + // Identifier of the hub cluster that this pool is deployed to. + // + // Set by the fulfillment-service controller when reconciling the pool to a Kubernetes CR on + // the target hub cluster. Used for tracking which cluster the pool resources reside on. + string hub = 3; + + // Total number of usable IP addresses across all CIDRs in this pool. + // + // Calculated from the CIDR ranges (e.g., a /24 IPv4 CIDR yields 254 usable addresses, + // excluding network and broadcast addresses). Uses int64 to accommodate large IPv6 CIDR + // ranges whose address counts exceed int32 capacity. + int64 total = 4; + + // Number of IP addresses currently allocated to PublicIP resources from this pool. + int64 allocated = 5; + + // Number of IP addresses available for new allocations from this pool. + // + // Equal to total minus allocated. + int64 available = 6; +} + +// IP address family for a PublicIPPool. +enum IPFamily { + // IP family is unknown or has not been specified. + IP_FAMILY_UNSPECIFIED = 0; + + // IPv4 address family. CIDRs must be valid IPv4 CIDR notation. + IP_FAMILY_IPV4 = 1; + + // IPv6 address family. CIDRs must be valid IPv6 CIDR notation. + IP_FAMILY_IPV6 = 2; +} + +// Lifecycle states for PublicIPPool resources. +// +// State transitions typically follow: UNSPECIFIED -> PENDING -> READY, with FAILED as a terminal +// error state that may require user intervention or resource recreation. +// +// The CRD phase "Progressing" maps to PENDING at the proto level. This is consistent with all +// networking resources in the fulfillment-service (VirtualNetwork, Subnet, SecurityGroup, +// NetworkClass, HostClass). PENDING describes user-facing readiness ("not usable yet"), while +// the CRD phase describes controller activity ("reconciliation in progress"). +enum PublicIPPoolState { + // State is unknown or has not been determined yet. Default state before initialization. + PUBLIC_IP_POOL_STATE_UNSPECIFIED = 0; + + // The pool is being provisioned and is not ready for IP allocation yet. + // + // During this state, the system is creating the MetalLB IPAddressPool on the target cluster + // and configuring L2 advertisement. Maps from CRD phase "Progressing". + PUBLIC_IP_POOL_STATE_PENDING = 1; + + // The pool is fully operational and ready for PublicIP allocation. + // + // MetalLB IPAddressPool is configured and L2 advertisement is active. PublicIPs can be + // allocated from this pool's CIDR ranges. Maps from CRD phase "Ready". + PUBLIC_IP_POOL_STATE_READY = 2; + + // The pool provisioning has failed. + // + // The status.message field contains error details. Common causes include MetalLB configuration + // errors or cluster connectivity issues. Maps from CRD phase "Failed". + PUBLIC_IP_POOL_STATE_FAILED = 3; + + // The pool is being deleted. + // + // During this state, the system is removing the MetalLB IPAddressPool and cleaning up + // cluster resources. Deletion is rejected if allocated PublicIPs still reference this pool. + // Maps from CRD phase "Deleting". + PUBLIC_IP_POOL_STATE_DELETING = 4; + + // The pool deletion has failed. + // + // The deprovision operation encountered an error and could not complete. The status.message + // field contains error details. Manual intervention may be required before retrying deletion. + // No CRD phase equivalent (follows the Subnet pattern for proto-level tracking). + PUBLIC_IP_POOL_STATE_DELETE_FAILED = 5; +} diff --git a/proto/private/osac/private/v1/public_ip_pools_service.proto b/proto/private/osac/private/v1/public_ip_pools_service.proto new file mode 100644 index 000000000..f632b454e --- /dev/null +++ b/proto/private/osac/private/v1/public_ip_pools_service.proto @@ -0,0 +1,154 @@ +// +// Copyright (c) 2026 Red Hat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +// an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +// specific language governing permissions and limitations under the License. +// + +syntax = "proto3"; + +package osac.private.v1; + +import "google/api/annotations.proto"; +import "google/protobuf/field_mask.proto"; +import "osac/private/v1/public_ip_pool_type.proto"; + +message PublicIPPoolsListRequest { + // Index of the first result. If not specified the default value will be zero. + optional int32 offset = 1; + + // Maximum number of results to be returned by the server. When not specified all the results will be returned. Note + // that there may not be enough results to return, and that the server may decide, for performance reasons, to return + // less results than requested. + optional int32 limit = 2; + + // Filter criteria. + // + // The value of this parameter is a [CEL](https://cel.dev) expression used to select which objects to return. The + // built-in `this` variable refers to the object being tested and `now` refers to the current date and time. If the + // expression evaluates to `true` the object is included in the results. For example, to retrieve all IPv4 public + // IP pools: + // + // this.spec.ip_family == IP_FAMILY_IPV4 + // + // If this isn't provided, or if the value is empty, then all the public IP pools that the user has permission to see + // will be returned. Not all CEL constructs are currently supported for implementation reasons; see the filter + // documentation (docs/FILTER.md) for the full details. + optional string filter = 3; + + // Order criteria. + // + // The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the + // names of the attributes of the public IP pool instead of the names of the columns of a table. For example, in + // order to sort the pools descending by creation time the value should be: + // + // metadata.created_at desc + // + // If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + optional string order = 4; +} + +message PublicIPPoolsListResponse { + // Actual number of items returned. Note that this may be smaller than the value requested in the `limit` parameter + // of the request if there are not enough items, or if the system decides that returning that number of items isn't + // feasible or convenient for performance reasons. + int32 size = 3; + + // Total number of items of the collection that match the search criteria, regardless of the number of results + // requested with the `limit` parameter. + int32 total = 4; + + // List of results. + repeated PublicIPPool items = 5; +} + +message PublicIPPoolsGetRequest { + string id = 1; +} + +message PublicIPPoolsGetResponse { + PublicIPPool object = 1; +} + +message PublicIPPoolsCreateRequest { + PublicIPPool object = 1; +} + +message PublicIPPoolsCreateResponse { + PublicIPPool object = 1; +} + +message PublicIPPoolsUpdateRequest { + PublicIPPool object = 1; + google.protobuf.FieldMask update_mask = 2; + + // Lock enables optimistic locking. When set to true, the server verifies that the current version of the object + // matches the value of the metadata.version field of the submitted object. If they differ the update will be + // rejected. This is useful to prevent lost updates when multiple clients are modifying the same object concurrently. + bool lock = 3; +} + +message PublicIPPoolsUpdateResponse { + PublicIPPool object = 1; +} + +message PublicIPPoolsDeleteRequest { + string id = 1; +} + +message PublicIPPoolsDeleteResponse {} + +message PublicIPPoolsSignalRequest { + string id = 1; +} + +message PublicIPPoolsSignalResponse {} + +service PublicIPPools { + // Retrieves the list of public IP pools. + rpc List(PublicIPPoolsListRequest) returns (PublicIPPoolsListResponse) { + option (google.api.http) = {get: "/api/private/v1/public_ip_pools"}; + } + + // Retrieves the details of one specific public IP pool. + rpc Get(PublicIPPoolsGetRequest) returns (PublicIPPoolsGetResponse) { + option (google.api.http) = { + get: "/api/private/v1/public_ip_pools/{id}" + response_body: "object" + }; + } + + // Creates a new public IP pool. + rpc Create(PublicIPPoolsCreateRequest) returns (PublicIPPoolsCreateResponse) { + option (google.api.http) = { + post: "/api/private/v1/public_ip_pools" + body: "object" + response_body: "object" + }; + } + + // Updates an existing public IP pool. Only metadata fields (name, labels, annotations) are mutable. + // All spec fields (cidrs, ip_family, implementation_strategy) are immutable after creation. + rpc Update(PublicIPPoolsUpdateRequest) returns (PublicIPPoolsUpdateResponse) { + option (google.api.http) = { + patch: "/api/private/v1/public_ip_pools/{object.id}" + body: "object" + response_body: "object" + }; + } + + // Deletes a public IP pool. Rejected if allocated PublicIPs still reference this pool. + rpc Delete(PublicIPPoolsDeleteRequest) returns (PublicIPPoolsDeleteResponse) { + option (google.api.http) = {delete: "/api/private/v1/public_ip_pools/{id}"}; + } + + // Indicates that something changed in the object or the system that may require reconciling the object. + rpc Signal(PublicIPPoolsSignalRequest) returns (PublicIPPoolsSignalResponse) { + } +}