v1alpha1

package
v0.0.0-...-b890ebe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=byoip.upbound.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "byoip.upbound.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	IPPrefix_Kind             = "IPPrefix"
	IPPrefix_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: IPPrefix_Kind}.String()
	IPPrefix_KindAPIVersion   = IPPrefix_Kind + "." + CRDGroupVersion.String()
	IPPrefix_GroupVersionKind = CRDGroupVersion.WithKind(IPPrefix_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type IPPrefix

type IPPrefix struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.prefixId) || (has(self.initProvider) && has(self.initProvider.prefixId))",message="spec.forProvider.prefixId is a required parameter"
	Spec   IPPrefixSpec   `json:"spec"`
	Status IPPrefixStatus `json:"status,omitempty"`
}

IPPrefix is the Schema for the IPPrefixs API. Provides the ability to manage Bring-Your-Own-IP prefixes (BYOIP) which are used with or without Magic Transit. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,cloudflare}

func (*IPPrefix) DeepCopy

func (in *IPPrefix) DeepCopy() *IPPrefix

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefix.

func (*IPPrefix) DeepCopyInto

func (in *IPPrefix) DeepCopyInto(out *IPPrefix)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IPPrefix) DeepCopyObject

func (in *IPPrefix) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*IPPrefix) GetCondition

func (mg *IPPrefix) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this IPPrefix.

func (*IPPrefix) GetConnectionDetailsMapping

func (tr *IPPrefix) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this IPPrefix

func (*IPPrefix) GetDeletionPolicy

func (mg *IPPrefix) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this IPPrefix.

func (*IPPrefix) GetID

func (tr *IPPrefix) GetID() string

GetID returns ID of underlying Terraform resource of this IPPrefix

func (*IPPrefix) GetInitParameters

func (tr *IPPrefix) GetInitParameters() (map[string]any, error)

GetInitParameters of this IPPrefix

func (*IPPrefix) GetManagementPolicies

func (mg *IPPrefix) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this IPPrefix.

func (*IPPrefix) GetObservation

func (tr *IPPrefix) GetObservation() (map[string]any, error)

GetObservation of this IPPrefix

func (*IPPrefix) GetParameters

func (tr *IPPrefix) GetParameters() (map[string]any, error)

GetParameters of this IPPrefix

func (*IPPrefix) GetProviderConfigReference

func (mg *IPPrefix) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this IPPrefix.

func (*IPPrefix) GetPublishConnectionDetailsTo

func (mg *IPPrefix) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this IPPrefix.

func (*IPPrefix) GetTerraformResourceType

func (mg *IPPrefix) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this IPPrefix

func (*IPPrefix) GetTerraformSchemaVersion

func (tr *IPPrefix) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*IPPrefix) GetWriteConnectionSecretToReference

func (mg *IPPrefix) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this IPPrefix.

func (*IPPrefix) LateInitialize

func (tr *IPPrefix) LateInitialize(attrs []byte) (bool, error)

LateInitialize this IPPrefix using its observed tfState. returns True if there are any spec changes for the resource.

func (*IPPrefix) ResolveReferences

func (mg *IPPrefix) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this IPPrefix.

func (*IPPrefix) SetConditions

func (mg *IPPrefix) SetConditions(c ...xpv1.Condition)

SetConditions of this IPPrefix.

func (*IPPrefix) SetDeletionPolicy

func (mg *IPPrefix) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this IPPrefix.

func (*IPPrefix) SetManagementPolicies

func (mg *IPPrefix) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this IPPrefix.

func (*IPPrefix) SetObservation

func (tr *IPPrefix) SetObservation(obs map[string]any) error

SetObservation for this IPPrefix

func (*IPPrefix) SetParameters

func (tr *IPPrefix) SetParameters(params map[string]any) error

SetParameters for this IPPrefix

func (*IPPrefix) SetProviderConfigReference

func (mg *IPPrefix) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this IPPrefix.

func (*IPPrefix) SetPublishConnectionDetailsTo

func (mg *IPPrefix) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this IPPrefix.

func (*IPPrefix) SetWriteConnectionSecretToReference

func (mg *IPPrefix) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this IPPrefix.

type IPPrefixInitParameters

type IPPrefixInitParameters struct {

	// (String) Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: on, off.
	// Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
	Advertisement *string `json:"advertisement,omitempty" tf:"advertisement,omitempty"`

	// (String) Description of the BYO IP prefix.
	// Description of the BYO IP prefix.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Your-Own-IP prefix ID. Modifying this attribute will force creation of a new resource.
	// The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
	PrefixID *string `json:"prefixId,omitempty" tf:"prefix_id,omitempty"`
}

func (*IPPrefixInitParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefixInitParameters.

func (*IPPrefixInitParameters) DeepCopyInto

func (in *IPPrefixInitParameters) DeepCopyInto(out *IPPrefixInitParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPPrefixList

type IPPrefixList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []IPPrefix `json:"items"`
}

IPPrefixList contains a list of IPPrefixs

func (*IPPrefixList) DeepCopy

func (in *IPPrefixList) DeepCopy() *IPPrefixList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefixList.

func (*IPPrefixList) DeepCopyInto

func (in *IPPrefixList) DeepCopyInto(out *IPPrefixList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*IPPrefixList) DeepCopyObject

func (in *IPPrefixList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*IPPrefixList) GetItems

func (l *IPPrefixList) GetItems() []resource.Managed

GetItems of this IPPrefixList.

type IPPrefixObservation

type IPPrefixObservation struct {

	// (String) The account identifier to target for the resource.
	// The account identifier to target for the resource.
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// (String) Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: on, off.
	// Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
	Advertisement *string `json:"advertisement,omitempty" tf:"advertisement,omitempty"`

	// (String) Description of the BYO IP prefix.
	// Description of the BYO IP prefix.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// (String) The ID of this resource.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Your-Own-IP prefix ID. Modifying this attribute will force creation of a new resource.
	// The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
	PrefixID *string `json:"prefixId,omitempty" tf:"prefix_id,omitempty"`
}

func (*IPPrefixObservation) DeepCopy

func (in *IPPrefixObservation) DeepCopy() *IPPrefixObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefixObservation.

func (*IPPrefixObservation) DeepCopyInto

func (in *IPPrefixObservation) DeepCopyInto(out *IPPrefixObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPPrefixParameters

type IPPrefixParameters struct {

	// (String) The account identifier to target for the resource.
	// The account identifier to target for the resource.
	// +crossplane:generate:reference:type=github.com/milkpirate/provider-cloudflare/apis/account/v1alpha1.Account
	// +kubebuilder:validation:Optional
	AccountID *string `json:"accountId,omitempty" tf:"account_id,omitempty"`

	// Reference to a Account in account to populate accountId.
	// +kubebuilder:validation:Optional
	AccountIDRef *v1.Reference `json:"accountIdRef,omitempty" tf:"-"`

	// Selector for a Account in account to populate accountId.
	// +kubebuilder:validation:Optional
	AccountIDSelector *v1.Selector `json:"accountIdSelector,omitempty" tf:"-"`

	// (String) Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: on, off.
	// Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
	// +kubebuilder:validation:Optional
	Advertisement *string `json:"advertisement,omitempty" tf:"advertisement,omitempty"`

	// (String) Description of the BYO IP prefix.
	// Description of the BYO IP prefix.
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Your-Own-IP prefix ID. Modifying this attribute will force creation of a new resource.
	// The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
	// +kubebuilder:validation:Optional
	PrefixID *string `json:"prefixId,omitempty" tf:"prefix_id,omitempty"`
}

func (*IPPrefixParameters) DeepCopy

func (in *IPPrefixParameters) DeepCopy() *IPPrefixParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefixParameters.

func (*IPPrefixParameters) DeepCopyInto

func (in *IPPrefixParameters) DeepCopyInto(out *IPPrefixParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPPrefixSpec

type IPPrefixSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     IPPrefixParameters `json:"forProvider"`
	// THIS IS A BETA FIELD. It will be honored
	// unless the Management Policies feature flag is disabled.
	// InitProvider holds the same fields as ForProvider, with the exception
	// of Identifier and other resource reference fields. The fields that are
	// in InitProvider are merged into ForProvider when the resource is created.
	// The same fields are also added to the terraform ignore_changes hook, to
	// avoid updating them after creation. This is useful for fields that are
	// required on creation, but we do not desire to update them after creation,
	// for example because of an external controller is managing them, like an
	// autoscaler.
	InitProvider IPPrefixInitParameters `json:"initProvider,omitempty"`
}

IPPrefixSpec defines the desired state of IPPrefix

func (*IPPrefixSpec) DeepCopy

func (in *IPPrefixSpec) DeepCopy() *IPPrefixSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefixSpec.

func (*IPPrefixSpec) DeepCopyInto

func (in *IPPrefixSpec) DeepCopyInto(out *IPPrefixSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPPrefixStatus

type IPPrefixStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        IPPrefixObservation `json:"atProvider,omitempty"`
}

IPPrefixStatus defines the observed state of IPPrefix.

func (*IPPrefixStatus) DeepCopy

func (in *IPPrefixStatus) DeepCopy() *IPPrefixStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPrefixStatus.

func (*IPPrefixStatus) DeepCopyInto

func (in *IPPrefixStatus) DeepCopyInto(out *IPPrefixStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL