2026-04-15 10:16:10 +02:00
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package v1alpha1
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
v1 "k8s.io/api/core/v1"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// ResourceReferenceApplyConfiguration represents a declarative configuration of the ResourceReference type for use
|
|
|
|
|
// with apply.
|
|
|
|
|
type ResourceReferenceApplyConfiguration struct {
|
2026-04-23 08:55:49 +02:00
|
|
|
// ID is the id of a resource in the Netbird API.
|
2026-04-15 10:16:10 +02:00
|
|
|
ID *string `json:"id,omitempty"`
|
2026-04-23 08:55:49 +02:00
|
|
|
// LocalReference is a reference to a object in the same namespace.
|
2026-04-15 10:16:10 +02:00
|
|
|
LocalRef *v1.LocalObjectReference `json:"localRef,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ResourceReferenceApplyConfiguration constructs a declarative configuration of the ResourceReference type for use with
|
|
|
|
|
// apply.
|
|
|
|
|
func ResourceReference() *ResourceReferenceApplyConfiguration {
|
|
|
|
|
return &ResourceReferenceApplyConfiguration{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithID sets the ID field in the declarative configuration to the given value
|
|
|
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
|
|
|
// If called multiple times, the ID field is set to the value of the last call.
|
|
|
|
|
func (b *ResourceReferenceApplyConfiguration) WithID(value string) *ResourceReferenceApplyConfiguration {
|
|
|
|
|
b.ID = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithLocalRef sets the LocalRef field in the declarative configuration to the given value
|
|
|
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
|
|
|
// If called multiple times, the LocalRef field is set to the value of the last call.
|
|
|
|
|
func (b *ResourceReferenceApplyConfiguration) WithLocalRef(value v1.LocalObjectReference) *ResourceReferenceApplyConfiguration {
|
|
|
|
|
b.LocalRef = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|