v1alpha1

package
v0.0.0-...-4b4ec10 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "nsxt_firewall_section.crossplane.io"
	CRDVersion = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	FirewallSection_Kind             = "FirewallSection"
	FirewallSection_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: FirewallSection_Kind}.String()
	FirewallSection_KindAPIVersion   = FirewallSection_Kind + "." + CRDGroupVersion.String()
	FirewallSection_GroupVersionKind = CRDGroupVersion.WithKind(FirewallSection_Kind)
)

Repository type metadata.

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
)

Functions

This section is empty.

Types

type AppliedToObservation

type AppliedToObservation struct {

	// A boolean flag which will be set to false if the referenced NSX resource has been deleted
	IsValid *bool `json:"isValid,omitempty" tf:"is_valid,omitempty"`

	// Display name of the NSX resource
	TargetDisplayName *string `json:"targetDisplayName,omitempty" tf:"target_display_name,omitempty"`

	// Identifier of the NSX resource
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type AppliedToParameters

type AppliedToParameters struct {

	// Identifier of the NSX resource
	// +kubebuilder:validation:Optional
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	// +kubebuilder:validation:Optional
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type DestinationObservation

type DestinationObservation struct {

	// A boolean flag which will be set to false if the referenced NSX resource has been deleted
	IsValid *bool `json:"isValid,omitempty" tf:"is_valid,omitempty"`

	// Display name of the NSX resource
	TargetDisplayName *string `json:"targetDisplayName,omitempty" tf:"target_display_name,omitempty"`

	// Identifier of the NSX resource
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type DestinationParameters

type DestinationParameters struct {

	// Identifier of the NSX resource
	// +kubebuilder:validation:Optional
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	// +kubebuilder:validation:Optional
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type FirewallSection

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

FirewallSection is the Schema for the FirewallSections 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 (*FirewallSection) GetCondition

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

GetCondition of this FirewallSection.

func (*FirewallSection) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this FirewallSection

func (*FirewallSection) GetDeletionPolicy

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

GetDeletionPolicy of this FirewallSection.

func (*FirewallSection) GetID

func (tr *FirewallSection) GetID() string

GetID returns ID of underlying Terraform resource of this FirewallSection

func (*FirewallSection) GetManagementPolicy

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

GetManagementPolicy of this FirewallSection.

func (*FirewallSection) GetObservation

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

GetObservation of this FirewallSection

func (*FirewallSection) GetParameters

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

GetParameters of this FirewallSection

func (*FirewallSection) GetProviderConfigReference

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

GetProviderConfigReference of this FirewallSection.

func (*FirewallSection) GetProviderReference

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

GetProviderReference of this FirewallSection. Deprecated: Use GetProviderConfigReference.

func (*FirewallSection) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this FirewallSection.

func (*FirewallSection) GetTerraformResourceType

func (mg *FirewallSection) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this FirewallSection

func (*FirewallSection) GetTerraformSchemaVersion

func (tr *FirewallSection) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*FirewallSection) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this FirewallSection.

func (*FirewallSection) LateInitialize

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

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

func (*FirewallSection) SetConditions

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

SetConditions of this FirewallSection.

func (*FirewallSection) SetDeletionPolicy

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

SetDeletionPolicy of this FirewallSection.

func (*FirewallSection) SetManagementPolicy

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

SetManagementPolicy of this FirewallSection.

func (*FirewallSection) SetObservation

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

SetObservation for this FirewallSection

func (*FirewallSection) SetParameters

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

SetParameters for this FirewallSection

func (*FirewallSection) SetProviderConfigReference

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

SetProviderConfigReference of this FirewallSection.

func (*FirewallSection) SetProviderReference

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

SetProviderReference of this FirewallSection. Deprecated: Use SetProviderConfigReference.

func (*FirewallSection) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this FirewallSection.

func (*FirewallSection) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this FirewallSection.

type FirewallSectionList

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

FirewallSectionList contains a list of FirewallSections

func (*FirewallSectionList) GetItems

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

GetItems of this FirewallSectionList.

type FirewallSectionObservation

type FirewallSectionObservation struct {

	// List of objects where the rules in this section will be enforced. This will take precedence over rule level appliedTo
	AppliedTo []AppliedToObservation `json:"appliedTo,omitempty" tf:"applied_to,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"`

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

	// Id of section that should come after this one
	InsertBefore *string `json:"insertBefore,omitempty" tf:"insert_before,omitempty"`

	// A boolean flag which reflects whether a firewall section is default section or not
	IsDefault *bool `json:"isDefault,omitempty" tf:"is_default,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"`

	// List of firewall rules in the section. Only homogeneous rules are supported
	Rule []RuleObservation `json:"rule,omitempty" tf:"rule,omitempty"`

	// Type of the rules which a section can contain. Only homogeneous sections are supported
	SectionType *string `json:"sectionType,omitempty" tf:"section_type,omitempty"`

	// Stateful or Stateless nature of firewall section is enforced on all rules inside the section
	Stateful *bool `json:"stateful,omitempty" tf:"stateful,omitempty"`

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

type FirewallSectionParameters

type FirewallSectionParameters struct {

	// List of objects where the rules in this section will be enforced. This will take precedence over rule level appliedTo
	// +kubebuilder:validation:Optional
	AppliedTo []AppliedToParameters `json:"appliedTo,omitempty" tf:"applied_to,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"`

	// Id of section that should come after this one
	// +kubebuilder:validation:Optional
	InsertBefore *string `json:"insertBefore,omitempty" tf:"insert_before,omitempty"`

	// List of firewall rules in the section. Only homogeneous rules are supported
	// +kubebuilder:validation:Optional
	Rule []RuleParameters `json:"rule,omitempty" tf:"rule,omitempty"`

	// Type of the rules which a section can contain. Only homogeneous sections are supported
	// +kubebuilder:validation:Optional
	SectionType *string `json:"sectionType,omitempty" tf:"section_type,omitempty"`

	// Stateful or Stateless nature of firewall section is enforced on all rules inside the section
	// +kubebuilder:validation:Optional
	Stateful *bool `json:"stateful,omitempty" tf:"stateful,omitempty"`

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

type FirewallSectionSpec

type FirewallSectionSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     FirewallSectionParameters `json:"forProvider"`
}

FirewallSectionSpec defines the desired state of FirewallSection

type FirewallSectionStatus

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

FirewallSectionStatus defines the observed state of FirewallSection.

type RuleAppliedToObservation

type RuleAppliedToObservation struct {

	// A boolean flag which will be set to false if the referenced NSX resource has been deleted
	IsValid *bool `json:"isValid,omitempty" tf:"is_valid,omitempty"`

	// Display name of the NSX resource
	TargetDisplayName *string `json:"targetDisplayName,omitempty" tf:"target_display_name,omitempty"`

	// Identifier of the NSX resource
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type RuleAppliedToParameters

type RuleAppliedToParameters struct {

	// Identifier of the NSX resource
	// +kubebuilder:validation:Optional
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	// +kubebuilder:validation:Optional
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type RuleObservation

type RuleObservation struct {

	// Action enforced on the packets which matches the firewall rule
	Action *string `json:"action,omitempty" tf:"action,omitempty"`

	// List of objects where rule will be enforced. The section level field overrides this one. Null will be treated as any
	AppliedTo []RuleAppliedToObservation `json:"appliedTo,omitempty" tf:"applied_to,omitempty"`

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

	// List of the destinations. Null will be treated as any
	Destination []DestinationObservation `json:"destination,omitempty" tf:"destination,omitempty"`

	// When this boolean flag is set to true, the rule destinations will be negated
	DestinationsExcluded *bool `json:"destinationsExcluded,omitempty" tf:"destinations_excluded,omitempty"`

	// Rule direction in case of stateless firewall rules. This will only be considered if section level parameter is set to stateless. Default to IN_OUT if not specified
	Direction *string `json:"direction,omitempty" tf:"direction,omitempty"`

	// Flag to disable rule. Disabled will only be persisted but never provisioned/realized
	Disabled *bool `json:"disabled,omitempty" tf:"disabled,omitempty"`

	// Defaults to ID if not set
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// ID of this resource
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Type of IP packet that should be matched while enforcing the rule (IPV4, IPV6, IPV4_IPV6)
	IPProtocol *string `json:"ipProtocol,omitempty" tf:"ip_protocol,omitempty"`

	// Flag to enable packet logging. Default is disabled
	Logged *bool `json:"logged,omitempty" tf:"logged,omitempty"`

	// User notes specific to the rule
	Notes *string `json:"notes,omitempty" tf:"notes,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"`

	// User level field which will be printed in CLI and packet logs
	RuleTag *string `json:"ruleTag,omitempty" tf:"rule_tag,omitempty"`

	// List of the services. Null will be treated as any
	Service []ServiceObservation `json:"service,omitempty" tf:"service,omitempty"`

	// List of sources. Null will be treated as any
	Source []SourceObservation `json:"source,omitempty" tf:"source,omitempty"`

	// When this boolean flag is set to true, the rule sources will be negated
	SourcesExcluded *bool `json:"sourcesExcluded,omitempty" tf:"sources_excluded,omitempty"`
}

type RuleParameters

type RuleParameters struct {

	// Action enforced on the packets which matches the firewall rule
	// +kubebuilder:validation:Required
	Action *string `json:"action" tf:"action,omitempty"`

	// List of objects where rule will be enforced. The section level field overrides this one. Null will be treated as any
	// +kubebuilder:validation:Optional
	AppliedTo []RuleAppliedToParameters `json:"appliedTo,omitempty" tf:"applied_to,omitempty"`

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

	// List of the destinations. Null will be treated as any
	// +kubebuilder:validation:Optional
	Destination []DestinationParameters `json:"destination,omitempty" tf:"destination,omitempty"`

	// When this boolean flag is set to true, the rule destinations will be negated
	// +kubebuilder:validation:Optional
	DestinationsExcluded *bool `json:"destinationsExcluded,omitempty" tf:"destinations_excluded,omitempty"`

	// Rule direction in case of stateless firewall rules. This will only be considered if section level parameter is set to stateless. Default to IN_OUT if not specified
	// +kubebuilder:validation:Optional
	Direction *string `json:"direction,omitempty" tf:"direction,omitempty"`

	// Flag to disable rule. Disabled will only be persisted but never provisioned/realized
	// +kubebuilder:validation:Optional
	Disabled *bool `json:"disabled,omitempty" tf:"disabled,omitempty"`

	// Defaults to ID if not set
	// +kubebuilder:validation:Optional
	DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`

	// Type of IP packet that should be matched while enforcing the rule (IPV4, IPV6, IPV4_IPV6)
	// +kubebuilder:validation:Optional
	IPProtocol *string `json:"ipProtocol,omitempty" tf:"ip_protocol,omitempty"`

	// Flag to enable packet logging. Default is disabled
	// +kubebuilder:validation:Optional
	Logged *bool `json:"logged,omitempty" tf:"logged,omitempty"`

	// User notes specific to the rule
	// +kubebuilder:validation:Optional
	Notes *string `json:"notes,omitempty" tf:"notes,omitempty"`

	// User level field which will be printed in CLI and packet logs
	// +kubebuilder:validation:Optional
	RuleTag *string `json:"ruleTag,omitempty" tf:"rule_tag,omitempty"`

	// List of the services. Null will be treated as any
	// +kubebuilder:validation:Optional
	Service []ServiceParameters `json:"service,omitempty" tf:"service,omitempty"`

	// List of sources. Null will be treated as any
	// +kubebuilder:validation:Optional
	Source []SourceParameters `json:"source,omitempty" tf:"source,omitempty"`

	// When this boolean flag is set to true, the rule sources will be negated
	// +kubebuilder:validation:Optional
	SourcesExcluded *bool `json:"sourcesExcluded,omitempty" tf:"sources_excluded,omitempty"`
}

type ServiceObservation

type ServiceObservation struct {

	// A boolean flag which will be set to false if the referenced NSX resource has been deleted
	IsValid *bool `json:"isValid,omitempty" tf:"is_valid,omitempty"`

	// Display name of the NSX resource
	TargetDisplayName *string `json:"targetDisplayName,omitempty" tf:"target_display_name,omitempty"`

	// Identifier of the NSX resource
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type ServiceParameters

type ServiceParameters struct {

	// Identifier of the NSX resource
	// +kubebuilder:validation:Optional
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	// +kubebuilder:validation:Optional
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type SourceObservation

type SourceObservation struct {

	// A boolean flag which will be set to false if the referenced NSX resource has been deleted
	IsValid *bool `json:"isValid,omitempty" tf:"is_valid,omitempty"`

	// Display name of the NSX resource
	TargetDisplayName *string `json:"targetDisplayName,omitempty" tf:"target_display_name,omitempty"`

	// Identifier of the NSX resource
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type SourceParameters

type SourceParameters struct {

	// Identifier of the NSX resource
	// +kubebuilder:validation:Optional
	TargetID *string `json:"targetId,omitempty" tf:"target_id,omitempty"`

	// Type of the NSX resource
	// +kubebuilder:validation:Optional
	TargetType *string `json:"targetType,omitempty" tf:"target_type,omitempty"`
}

type TagObservation

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

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

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"`
}

Jump to

Keyboard shortcuts

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