v1alpha1

package
v0.0.0-...-ca042ce Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "nsxtnatrule.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 (
	NatRule_Kind             = "NatRule"
	NatRule_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: NatRule_Kind}.String()
	NatRule_KindAPIVersion   = NatRule_Kind + "." + CRDGroupVersion.String()
	NatRule_GroupVersionKind = CRDGroupVersion.WithKind(NatRule_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type NatRule

type NatRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.action)",message="action is a required parameter"
	// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.logicalRouterId)",message="logicalRouterId is a required parameter"
	Spec   NatRuleSpec   `json:"spec"`
	Status NatRuleStatus `json:"status,omitempty"`
}

NatRule is the Schema for the NatRules API. <no value> +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,nsxt}

func (*NatRule) DeepCopy

func (in *NatRule) DeepCopy() *NatRule

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

func (*NatRule) DeepCopyInto

func (in *NatRule) DeepCopyInto(out *NatRule)

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

func (*NatRule) DeepCopyObject

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

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

func (*NatRule) GetCondition

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

GetCondition of this NatRule.

func (*NatRule) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this NatRule

func (*NatRule) GetDeletionPolicy

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

GetDeletionPolicy of this NatRule.

func (*NatRule) GetID

func (tr *NatRule) GetID() string

GetID returns ID of underlying Terraform resource of this NatRule

func (*NatRule) GetManagementPolicy

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

GetManagementPolicy of this NatRule.

func (*NatRule) GetObservation

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

GetObservation of this NatRule

func (*NatRule) GetParameters

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

GetParameters of this NatRule

func (*NatRule) GetProviderConfigReference

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

GetProviderConfigReference of this NatRule.

func (*NatRule) GetProviderReference

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

GetProviderReference of this NatRule. Deprecated: Use GetProviderConfigReference.

func (*NatRule) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this NatRule.

func (*NatRule) GetTerraformResourceType

func (mg *NatRule) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this NatRule

func (*NatRule) GetTerraformSchemaVersion

func (tr *NatRule) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*NatRule) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this NatRule.

func (*NatRule) LateInitialize

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

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

func (*NatRule) SetConditions

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

SetConditions of this NatRule.

func (*NatRule) SetDeletionPolicy

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

SetDeletionPolicy of this NatRule.

func (*NatRule) SetManagementPolicy

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

SetManagementPolicy of this NatRule.

func (*NatRule) SetObservation

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

SetObservation for this NatRule

func (*NatRule) SetParameters

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

SetParameters for this NatRule

func (*NatRule) SetProviderConfigReference

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

SetProviderConfigReference of this NatRule.

func (*NatRule) SetProviderReference

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

SetProviderReference of this NatRule. Deprecated: Use SetProviderConfigReference.

func (*NatRule) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this NatRule.

func (*NatRule) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this NatRule.

type NatRuleList

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

NatRuleList contains a list of NatRules

func (*NatRuleList) DeepCopy

func (in *NatRuleList) DeepCopy() *NatRuleList

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

func (*NatRuleList) DeepCopyInto

func (in *NatRuleList) DeepCopyInto(out *NatRuleList)

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

func (*NatRuleList) DeepCopyObject

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

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

func (*NatRuleList) GetItems

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

GetItems of this NatRuleList.

type NatRuleObservation

type NatRuleObservation struct {

	// The action for the NAT Rule
	Action *string `json:"action,omitempty" tf:"action,omitempty"`

	// Description of this resource
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// The display name of this resource. Defaults to ID if not set
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// enable/disable the rule
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

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

	// enable/disable the logging of rule
	Logging *bool `json:"logging,omitempty" tf:"logging,omitempty"`

	// Logical router id
	LogicalRouterID *string `json:"logicalRouterId,omitempty" tf:"logical_router_id,omitempty"`

	// IP Address | CIDR
	MatchDestinationNetwork *string `json:"matchDestinationNetwork,omitempty" tf:"match_destination_network,omitempty"`

	// IP Address | CIDR
	MatchSourceNetwork *string `json:"matchSourceNetwork,omitempty" tf:"match_source_network,omitempty"`

	// A boolean flag which reflects whether the following firewall stage will be skipped
	NATPass *bool `json:"natPass,omitempty" tf:"nat_pass,omitempty"`

	// The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected
	Revision *float64 `json:"revision,omitempty" tf:"revision,omitempty"`

	// The priority of the rule (ascending). Valid range [0-2147483647]
	RulePriority *float64 `json:"rulePriority,omitempty" tf:"rule_priority,omitempty"`

	// Set of opaque identifiers meaningful to the user
	Tag []TagObservation `json:"tag,omitempty" tf:"tag,omitempty"`

	// IP Address | IP Range | CIDR
	TranslatedNetwork *string `json:"translatedNetwork,omitempty" tf:"translated_network,omitempty"`

	// port number or port range. DNAT only
	TranslatedPorts *string `json:"translatedPorts,omitempty" tf:"translated_ports,omitempty"`
}

func (*NatRuleObservation) DeepCopy

func (in *NatRuleObservation) DeepCopy() *NatRuleObservation

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

func (*NatRuleObservation) DeepCopyInto

func (in *NatRuleObservation) DeepCopyInto(out *NatRuleObservation)

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

type NatRuleParameters

type NatRuleParameters struct {

	// The action for the NAT Rule
	// +kubebuilder:validation:Optional
	Action *string `json:"action,omitempty" tf:"action,omitempty"`

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

	// The display name of this resource. Defaults to ID if not set
	// +kubebuilder:validation:Optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// enable/disable the rule
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`

	// enable/disable the logging of rule
	// +kubebuilder:validation:Optional
	Logging *bool `json:"logging,omitempty" tf:"logging,omitempty"`

	// Logical router id
	// +kubebuilder:validation:Optional
	LogicalRouterID *string `json:"logicalRouterId,omitempty" tf:"logical_router_id,omitempty"`

	// IP Address | CIDR
	// +kubebuilder:validation:Optional
	MatchDestinationNetwork *string `json:"matchDestinationNetwork,omitempty" tf:"match_destination_network,omitempty"`

	// IP Address | CIDR
	// +kubebuilder:validation:Optional
	MatchSourceNetwork *string `json:"matchSourceNetwork,omitempty" tf:"match_source_network,omitempty"`

	// A boolean flag which reflects whether the following firewall stage will be skipped
	// +kubebuilder:validation:Optional
	NATPass *bool `json:"natPass,omitempty" tf:"nat_pass,omitempty"`

	// The priority of the rule (ascending). Valid range [0-2147483647]
	// +kubebuilder:validation:Optional
	RulePriority *float64 `json:"rulePriority,omitempty" tf:"rule_priority,omitempty"`

	// Set of opaque identifiers meaningful to the user
	// +kubebuilder:validation:Optional
	Tag []TagParameters `json:"tag,omitempty" tf:"tag,omitempty"`

	// IP Address | IP Range | CIDR
	// +kubebuilder:validation:Optional
	TranslatedNetwork *string `json:"translatedNetwork,omitempty" tf:"translated_network,omitempty"`

	// port number or port range. DNAT only
	// +kubebuilder:validation:Optional
	TranslatedPorts *string `json:"translatedPorts,omitempty" tf:"translated_ports,omitempty"`
}

func (*NatRuleParameters) DeepCopy

func (in *NatRuleParameters) DeepCopy() *NatRuleParameters

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

func (*NatRuleParameters) DeepCopyInto

func (in *NatRuleParameters) DeepCopyInto(out *NatRuleParameters)

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

type NatRuleSpec

type NatRuleSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     NatRuleParameters `json:"forProvider"`
}

NatRuleSpec defines the desired state of NatRule

func (*NatRuleSpec) DeepCopy

func (in *NatRuleSpec) DeepCopy() *NatRuleSpec

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

func (*NatRuleSpec) DeepCopyInto

func (in *NatRuleSpec) DeepCopyInto(out *NatRuleSpec)

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

type NatRuleStatus

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

NatRuleStatus defines the observed state of NatRule.

func (*NatRuleStatus) DeepCopy

func (in *NatRuleStatus) DeepCopy() *NatRuleStatus

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

func (*NatRuleStatus) DeepCopyInto

func (in *NatRuleStatus) DeepCopyInto(out *NatRuleStatus)

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

type TagObservation

type TagObservation struct {
	Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`

	Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}

func (*TagObservation) DeepCopy

func (in *TagObservation) DeepCopy() *TagObservation

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

func (*TagObservation) DeepCopyInto

func (in *TagObservation) DeepCopyInto(out *TagObservation)

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

type TagParameters

type TagParameters struct {

	// +kubebuilder:validation:Optional
	Scope *string `json:"scope,omitempty" tf:"scope,omitempty"`

	// +kubebuilder:validation:Optional
	Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
}

func (*TagParameters) DeepCopy

func (in *TagParameters) DeepCopy() *TagParameters

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

func (*TagParameters) DeepCopyInto

func (in *TagParameters) DeepCopyInto(out *TagParameters)

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