v1alpha1

package
v0.0.0-...-7c54378 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "nsxtnetworkdhcpbinding.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 (
	NetworkDHCPBinding_Kind             = "NetworkDHCPBinding"
	NetworkDHCPBinding_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: NetworkDHCPBinding_Kind}.String()
	NetworkDHCPBinding_KindAPIVersion   = NetworkDHCPBinding_Kind + "." + CRDGroupVersion.String()
	NetworkDHCPBinding_GroupVersionKind = CRDGroupVersion.WithKind(NetworkDHCPBinding_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type DHCPV4ConfigObservation

type DHCPV4ConfigObservation struct {

	// Gateway IP address to use for the client
	// IPv4 gateway address
	GatewayIPAddress *string `json:"gatewayIpAddress,omitempty" tf:"gateway_ip_address,omitempty"`

	// Hostname to be set for client
	// Hostname for the DHCP client
	Hostname *string `json:"hostname,omitempty" tf:"hostname,omitempty"`
}

func (*DHCPV4ConfigObservation) DeepCopy

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

func (*DHCPV4ConfigObservation) DeepCopyInto

func (in *DHCPV4ConfigObservation) DeepCopyInto(out *DHCPV4ConfigObservation)

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

type DHCPV4ConfigParameters

type DHCPV4ConfigParameters struct {

	// Gateway IP address to use for the client
	// IPv4 gateway address
	// +kubebuilder:validation:Optional
	GatewayIPAddress *string `json:"gatewayIpAddress,omitempty" tf:"gateway_ip_address,omitempty"`

	// Hostname to be set for client
	// Hostname for the DHCP client
	// +crossplane:generate:reference:type=github.com/kirillinda/provider-vcd/apis/vm/v1alpha1.VM
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("computer_name", true)
	// +kubebuilder:validation:Optional
	Hostname *string `json:"hostname,omitempty" tf:"hostname,omitempty"`

	// Reference to a VM in vm to populate hostname.
	// +kubebuilder:validation:Optional
	HostnameRef *v1.Reference `json:"hostnameRef,omitempty" tf:"-"`

	// Selector for a VM in vm to populate hostname.
	// +kubebuilder:validation:Optional
	HostnameSelector *v1.Selector `json:"hostnameSelector,omitempty" tf:"-"`
}

func (*DHCPV4ConfigParameters) DeepCopy

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

func (*DHCPV4ConfigParameters) DeepCopyInto

func (in *DHCPV4ConfigParameters) DeepCopyInto(out *DHCPV4ConfigParameters)

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

type DHCPV6ConfigObservation

type DHCPV6ConfigObservation struct {

	// A set of domain names
	// Set of domain names
	DomainNames []*string `json:"domainNames,omitempty" tf:"domain_names,omitempty"`

	// A set of SNTP servers
	// Set of SNTP servers
	SntpServers []*string `json:"sntpServers,omitempty" tf:"sntp_servers,omitempty"`
}

func (*DHCPV6ConfigObservation) DeepCopy

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

func (*DHCPV6ConfigObservation) DeepCopyInto

func (in *DHCPV6ConfigObservation) DeepCopyInto(out *DHCPV6ConfigObservation)

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

type DHCPV6ConfigParameters

type DHCPV6ConfigParameters struct {

	// A set of domain names
	// Set of domain names
	// +kubebuilder:validation:Optional
	DomainNames []*string `json:"domainNames,omitempty" tf:"domain_names,omitempty"`

	// A set of SNTP servers
	// Set of SNTP servers
	// +kubebuilder:validation:Optional
	SntpServers []*string `json:"sntpServers,omitempty" tf:"sntp_servers,omitempty"`
}

func (*DHCPV6ConfigParameters) DeepCopy

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

func (*DHCPV6ConfigParameters) DeepCopyInto

func (in *DHCPV6ConfigParameters) DeepCopyInto(out *DHCPV6ConfigParameters)

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

type NetworkDHCPBinding

type NetworkDHCPBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.bindingType)",message="bindingType is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.ipAddress)",message="ipAddress is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.leaseTime)",message="leaseTime is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.name)",message="name is a required parameter"
	Spec   NetworkDHCPBindingSpec   `json:"spec"`
	Status NetworkDHCPBindingStatus `json:"status,omitempty"`
}

NetworkDHCPBinding is the Schema for the NetworkDHCPBindings API. Provides a resource to manage NSX-T Org VDC network DHCP bindings. +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,vcd}

func (*NetworkDHCPBinding) DeepCopy

func (in *NetworkDHCPBinding) DeepCopy() *NetworkDHCPBinding

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

func (*NetworkDHCPBinding) DeepCopyInto

func (in *NetworkDHCPBinding) DeepCopyInto(out *NetworkDHCPBinding)

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

func (*NetworkDHCPBinding) DeepCopyObject

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

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

func (*NetworkDHCPBinding) GetCondition

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

GetCondition of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this NetworkDHCPBinding

func (*NetworkDHCPBinding) GetDeletionPolicy

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

GetDeletionPolicy of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) GetID

func (tr *NetworkDHCPBinding) GetID() string

GetID returns ID of underlying Terraform resource of this NetworkDHCPBinding

func (*NetworkDHCPBinding) GetManagementPolicy

func (mg *NetworkDHCPBinding) GetManagementPolicy() xpv1.ManagementPolicy

GetManagementPolicy of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) GetObservation

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

GetObservation of this NetworkDHCPBinding

func (*NetworkDHCPBinding) GetParameters

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

GetParameters of this NetworkDHCPBinding

func (*NetworkDHCPBinding) GetProviderConfigReference

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

GetProviderConfigReference of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) GetProviderReference

func (mg *NetworkDHCPBinding) GetProviderReference() *xpv1.Reference

GetProviderReference of this NetworkDHCPBinding. Deprecated: Use GetProviderConfigReference.

func (*NetworkDHCPBinding) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) GetTerraformResourceType

func (mg *NetworkDHCPBinding) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this NetworkDHCPBinding

func (*NetworkDHCPBinding) GetTerraformSchemaVersion

func (tr *NetworkDHCPBinding) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*NetworkDHCPBinding) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) LateInitialize

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

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

func (*NetworkDHCPBinding) ResolveReferences

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

ResolveReferences of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) SetConditions

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

SetConditions of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) SetDeletionPolicy

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

SetDeletionPolicy of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) SetManagementPolicy

func (mg *NetworkDHCPBinding) SetManagementPolicy(r xpv1.ManagementPolicy)

SetManagementPolicy of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) SetObservation

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

SetObservation for this NetworkDHCPBinding

func (*NetworkDHCPBinding) SetParameters

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

SetParameters for this NetworkDHCPBinding

func (*NetworkDHCPBinding) SetProviderConfigReference

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

SetProviderConfigReference of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) SetProviderReference

func (mg *NetworkDHCPBinding) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this NetworkDHCPBinding. Deprecated: Use SetProviderConfigReference.

func (*NetworkDHCPBinding) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this NetworkDHCPBinding.

func (*NetworkDHCPBinding) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this NetworkDHCPBinding.

type NetworkDHCPBindingList

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

NetworkDHCPBindingList contains a list of NetworkDHCPBindings

func (*NetworkDHCPBindingList) DeepCopy

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

func (*NetworkDHCPBindingList) DeepCopyInto

func (in *NetworkDHCPBindingList) DeepCopyInto(out *NetworkDHCPBindingList)

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

func (*NetworkDHCPBindingList) DeepCopyObject

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

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

func (*NetworkDHCPBindingList) GetItems

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

GetItems of this NetworkDHCPBindingList.

type NetworkDHCPBindingObservation

type NetworkDHCPBindingObservation struct {

	// One of IPV4 or IPV6
	// Binding type 'IPV4' or 'IPV6'
	BindingType *string `json:"bindingType,omitempty" tf:"binding_type,omitempty"`

	// Additional configuration for IPv4 specific options. See IPv4 block
	// IPv4 specific DHCP Binding configuration
	DHCPV4Config []DHCPV4ConfigObservation `json:"dhcpV4Config,omitempty" tf:"dhcp_v4_config,omitempty"`

	// Additional configuration for IPv6 specific options. See IPv6 block
	// IPv6 specific DHCP Binding configuration
	DHCPV6Config []DHCPV6ConfigObservation `json:"dhcpV6Config,omitempty" tf:"dhcp_v6_config,omitempty"`

	// A list of DNS servers. Maximum 2 can be specified
	// The DNS server IPs to be assigned . 2 values maximum.
	DNSServers []*string `json:"dnsServers,omitempty" tf:"dns_servers,omitempty"`

	// Description of DHCP binding
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// IP address used for binding
	// IP address of the DHCP binding
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// Lease time in seconds. Minimum 3600 seconds
	// Lease time in seconds. Minimum value is 60 seconds
	LeaseTime *float64 `json:"leaseTime,omitempty" tf:"lease_time,omitempty"`

	// MAC address used for binding
	// MAC address of the DHCP binding
	MacAddress *string `json:"macAddress,omitempty" tf:"mac_address,omitempty"`

	// Name of DHCP binding
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The name of organization. Optional if defined at provider level
	// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
	Org *string `json:"org,omitempty" tf:"org,omitempty"`

	// The ID of an Org VDC network. Note  (.id field) of
	// vcd_network_isolated_v2, vcd_network_routed_v2 or vcd_nsxt_network_dhcp can be referenced
	// here. It is more convenient to use reference to vcd_nsxt_network_dhcp ID because it makes sure
	// that DHCP is enabled before configuring pools
	// Parent Org VDC network ID
	OrgNetworkID *string `json:"orgNetworkId,omitempty" tf:"org_network_id,omitempty"`
}

func (*NetworkDHCPBindingObservation) DeepCopy

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

func (*NetworkDHCPBindingObservation) DeepCopyInto

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

type NetworkDHCPBindingParameters

type NetworkDHCPBindingParameters struct {

	// One of IPV4 or IPV6
	// Binding type 'IPV4' or 'IPV6'
	// +kubebuilder:validation:Optional
	BindingType *string `json:"bindingType,omitempty" tf:"binding_type,omitempty"`

	// Additional configuration for IPv4 specific options. See IPv4 block
	// IPv4 specific DHCP Binding configuration
	// +kubebuilder:validation:Optional
	DHCPV4Config []DHCPV4ConfigParameters `json:"dhcpV4Config,omitempty" tf:"dhcp_v4_config,omitempty"`

	// Additional configuration for IPv6 specific options. See IPv6 block
	// IPv6 specific DHCP Binding configuration
	// +kubebuilder:validation:Optional
	DHCPV6Config []DHCPV6ConfigParameters `json:"dhcpV6Config,omitempty" tf:"dhcp_v6_config,omitempty"`

	// A list of DNS servers. Maximum 2 can be specified
	// The DNS server IPs to be assigned . 2 values maximum.
	// +kubebuilder:validation:Optional
	DNSServers []*string `json:"dnsServers,omitempty" tf:"dns_servers,omitempty"`

	// Description of DHCP binding
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// IP address used for binding
	// IP address of the DHCP binding
	// +kubebuilder:validation:Optional
	IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`

	// Lease time in seconds. Minimum 3600 seconds
	// Lease time in seconds. Minimum value is 60 seconds
	// +kubebuilder:validation:Optional
	LeaseTime *float64 `json:"leaseTime,omitempty" tf:"lease_time,omitempty"`

	// MAC address used for binding
	// MAC address of the DHCP binding
	// +crossplane:generate:reference:type=github.com/kirillinda/provider-vcd/apis/vm/v1alpha1.VM
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("network[0].mac", true)
	// +kubebuilder:validation:Optional
	MacAddress *string `json:"macAddress,omitempty" tf:"mac_address,omitempty"`

	// Reference to a VM in vm to populate macAddress.
	// +kubebuilder:validation:Optional
	MacAddressRef *v1.Reference `json:"macAddressRef,omitempty" tf:"-"`

	// Selector for a VM in vm to populate macAddress.
	// +kubebuilder:validation:Optional
	MacAddressSelector *v1.Selector `json:"macAddressSelector,omitempty" tf:"-"`

	// Name of DHCP binding
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// The name of organization. Optional if defined at provider level
	// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across different organizations
	// +kubebuilder:validation:Optional
	Org *string `json:"org,omitempty" tf:"org,omitempty"`

	// The ID of an Org VDC network. Note  (.id field) of
	// vcd_network_isolated_v2, vcd_network_routed_v2 or vcd_nsxt_network_dhcp can be referenced
	// here. It is more convenient to use reference to vcd_nsxt_network_dhcp ID because it makes sure
	// that DHCP is enabled before configuring pools
	// Parent Org VDC network ID
	// +crossplane:generate:reference:type=github.com/kirillinda/provider-vcd/apis/vcdnetworkroutedv2/v1alpha1.RoutedV2
	// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("id", true)
	// +kubebuilder:validation:Optional
	OrgNetworkID *string `json:"orgNetworkId,omitempty" tf:"org_network_id,omitempty"`

	// Reference to a RoutedV2 in vcdnetworkroutedv2 to populate orgNetworkId.
	// +kubebuilder:validation:Optional
	OrgNetworkIDRef *v1.Reference `json:"orgNetworkIdRef,omitempty" tf:"-"`

	// Selector for a RoutedV2 in vcdnetworkroutedv2 to populate orgNetworkId.
	// +kubebuilder:validation:Optional
	OrgNetworkIDSelector *v1.Selector `json:"orgNetworkIdSelector,omitempty" tf:"-"`
}

func (*NetworkDHCPBindingParameters) DeepCopy

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

func (*NetworkDHCPBindingParameters) DeepCopyInto

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

type NetworkDHCPBindingSpec

type NetworkDHCPBindingSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     NetworkDHCPBindingParameters `json:"forProvider"`
}

NetworkDHCPBindingSpec defines the desired state of NetworkDHCPBinding

func (*NetworkDHCPBindingSpec) DeepCopy

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

func (*NetworkDHCPBindingSpec) DeepCopyInto

func (in *NetworkDHCPBindingSpec) DeepCopyInto(out *NetworkDHCPBindingSpec)

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

type NetworkDHCPBindingStatus

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

NetworkDHCPBindingStatus defines the observed state of NetworkDHCPBinding.

func (*NetworkDHCPBindingStatus) DeepCopy

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

func (*NetworkDHCPBindingStatus) DeepCopyInto

func (in *NetworkDHCPBindingStatus) DeepCopyInto(out *NetworkDHCPBindingStatus)

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