v1alpha1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=vpc.digitalocean.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	CRDGroup   = "vpc.digitalocean.crossplane.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 (
	VPC_Kind             = "VPC"
	VPC_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: VPC_Kind}.String()
	VPC_KindAPIVersion   = VPC_Kind + "." + CRDGroupVersion.String()
	VPC_GroupVersionKind = CRDGroupVersion.WithKind(VPC_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type VPC

type VPC 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.name) || (has(self.initProvider) && has(self.initProvider.name))",message="spec.forProvider.name is a required parameter"
	// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.region) || (has(self.initProvider) && has(self.initProvider.region))",message="spec.forProvider.region is a required parameter"
	Spec   VPCSpec   `json:"spec"`
	Status VPCStatus `json:"status,omitempty"`
}

VPC is the Schema for the VPCs API. +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].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:resource:scope=Cluster,categories={crossplane,managed,do}

func (*VPC) DeepCopy

func (in *VPC) DeepCopy() *VPC

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

func (*VPC) DeepCopyInto

func (in *VPC) DeepCopyInto(out *VPC)

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

func (*VPC) DeepCopyObject

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

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

func (*VPC) GetCondition

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

GetCondition of this VPC.

func (*VPC) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this VPC

func (*VPC) GetDeletionPolicy

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

GetDeletionPolicy of this VPC.

func (*VPC) GetID

func (tr *VPC) GetID() string

GetID returns ID of underlying Terraform resource of this VPC

func (*VPC) GetInitParameters

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

GetInitParameters of this VPC

func (*VPC) GetManagementPolicies

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

GetManagementPolicies of this VPC.

func (*VPC) GetMergedParameters added in v0.2.0

func (tr *VPC) GetMergedParameters(shouldMergeInitProvider bool) (map[string]any, error)

GetInitParameters of this VPC

func (*VPC) GetObservation

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

GetObservation of this VPC

func (*VPC) GetParameters

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

GetParameters of this VPC

func (*VPC) GetProviderConfigReference

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

GetProviderConfigReference of this VPC.

func (*VPC) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this VPC.

func (*VPC) GetTerraformResourceType

func (mg *VPC) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this VPC

func (*VPC) GetTerraformSchemaVersion

func (tr *VPC) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*VPC) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this VPC.

func (*VPC) Hub added in v0.2.0

func (tr *VPC) Hub()

Hub marks this type as a conversion hub.

func (*VPC) LateInitialize

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

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

func (*VPC) SetConditions

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

SetConditions of this VPC.

func (*VPC) SetDeletionPolicy

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

SetDeletionPolicy of this VPC.

func (*VPC) SetManagementPolicies

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

SetManagementPolicies of this VPC.

func (*VPC) SetObservation

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

SetObservation for this VPC

func (*VPC) SetParameters

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

SetParameters for this VPC

func (*VPC) SetProviderConfigReference

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

SetProviderConfigReference of this VPC.

func (*VPC) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this VPC.

func (*VPC) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this VPC.

type VPCInitParameters

type VPCInitParameters struct {

	// A free-form text field up to a limit of 255 characters to describe the VPC.
	// A free-form description for the VPC
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The range of IP addresses for the VPC in CIDR notation. Network ranges cannot overlap with other networks in the same account and must be in range of private addresses as defined in RFC1918. It may not be larger than /16 or smaller than /24.
	// The range of IP addresses for the VPC in CIDR notation
	IPRange *string `json:"ipRange,omitempty" tf:"ip_range,omitempty"`

	// A name for the VPC. Must be unique and contain alphanumeric characters, dashes, and periods only.
	// The name of the VPC
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The DigitalOcean region slug for the VPC's location.
	// DigitalOcean region slug for the VPC's location
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*VPCInitParameters) DeepCopy

func (in *VPCInitParameters) DeepCopy() *VPCInitParameters

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

func (*VPCInitParameters) DeepCopyInto

func (in *VPCInitParameters) DeepCopyInto(out *VPCInitParameters)

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

type VPCList

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

VPCList contains a list of VPCs

func (*VPCList) DeepCopy

func (in *VPCList) DeepCopy() *VPCList

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

func (*VPCList) DeepCopyInto

func (in *VPCList) DeepCopyInto(out *VPCList)

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

func (*VPCList) DeepCopyObject

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

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

func (*VPCList) GetItems

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

GetItems of this VPCList.

type VPCObservation

type VPCObservation struct {

	// The date and time of when the VPC was created.
	// The date and time of when the VPC was created
	CreatedAt *string `json:"createdAt,omitempty" tf:"created_at,omitempty"`

	// A boolean indicating whether or not the VPC is the default one for the region.
	// Whether or not the VPC is the default one for the region
	Default *bool `json:"default,omitempty" tf:"default,omitempty"`

	// A free-form text field up to a limit of 255 characters to describe the VPC.
	// A free-form description for the VPC
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The unique identifier for the VPC.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// The range of IP addresses for the VPC in CIDR notation. Network ranges cannot overlap with other networks in the same account and must be in range of private addresses as defined in RFC1918. It may not be larger than /16 or smaller than /24.
	// The range of IP addresses for the VPC in CIDR notation
	IPRange *string `json:"ipRange,omitempty" tf:"ip_range,omitempty"`

	// A name for the VPC. Must be unique and contain alphanumeric characters, dashes, and periods only.
	// The name of the VPC
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The DigitalOcean region slug for the VPC's location.
	// DigitalOcean region slug for the VPC's location
	Region *string `json:"region,omitempty" tf:"region,omitempty"`

	// The uniform resource name (URN) for the VPC.
	// The uniform resource name (URN) for the VPC
	Urn *string `json:"urn,omitempty" tf:"urn,omitempty"`
}

func (*VPCObservation) DeepCopy

func (in *VPCObservation) DeepCopy() *VPCObservation

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

func (*VPCObservation) DeepCopyInto

func (in *VPCObservation) DeepCopyInto(out *VPCObservation)

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

type VPCParameters

type VPCParameters struct {

	// A free-form text field up to a limit of 255 characters to describe the VPC.
	// A free-form description for the VPC
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The range of IP addresses for the VPC in CIDR notation. Network ranges cannot overlap with other networks in the same account and must be in range of private addresses as defined in RFC1918. It may not be larger than /16 or smaller than /24.
	// The range of IP addresses for the VPC in CIDR notation
	// +kubebuilder:validation:Optional
	IPRange *string `json:"ipRange,omitempty" tf:"ip_range,omitempty"`

	// A name for the VPC. Must be unique and contain alphanumeric characters, dashes, and periods only.
	// The name of the VPC
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The DigitalOcean region slug for the VPC's location.
	// DigitalOcean region slug for the VPC's location
	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*VPCParameters) DeepCopy

func (in *VPCParameters) DeepCopy() *VPCParameters

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

func (*VPCParameters) DeepCopyInto

func (in *VPCParameters) DeepCopyInto(out *VPCParameters)

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

type VPCSpec

type VPCSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     VPCParameters `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 VPCInitParameters `json:"initProvider,omitempty"`
}

VPCSpec defines the desired state of VPC

func (*VPCSpec) DeepCopy

func (in *VPCSpec) DeepCopy() *VPCSpec

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

func (*VPCSpec) DeepCopyInto

func (in *VPCSpec) DeepCopyInto(out *VPCSpec)

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

type VPCStatus

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

VPCStatus defines the observed state of VPC.

func (*VPCStatus) DeepCopy

func (in *VPCStatus) DeepCopy() *VPCStatus

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

func (*VPCStatus) DeepCopyInto

func (in *VPCStatus) DeepCopyInto(out *VPCStatus)

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