v1alpha1

package
v0.0.0-...-86d0a0d Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	CRDGroup   = "awxinventory.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 (
	Inventory_Kind             = "Inventory"
	Inventory_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: Inventory_Kind}.String()
	Inventory_KindAPIVersion   = Inventory_Kind + "." + CRDGroupVersion.String()
	Inventory_GroupVersionKind = CRDGroupVersion.WithKind(Inventory_Kind)
)

Repository type metadata.

Functions

This section is empty.

Types

type Inventory

type Inventory 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.organization) || (has(self.initProvider) && has(self.initProvider.organization))",message="spec.forProvider.organization is a required parameter"
	Spec   InventorySpec   `json:"spec"`
	Status InventoryStatus `json:"status,omitempty"`
}

Inventory is the Schema for the Inventorys API. <no value> +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,awx-ilijamt}

func (*Inventory) DeepCopy

func (in *Inventory) DeepCopy() *Inventory

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

func (*Inventory) DeepCopyInto

func (in *Inventory) DeepCopyInto(out *Inventory)

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

func (*Inventory) DeepCopyObject

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

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

func (*Inventory) GetCondition

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

GetCondition of this Inventory.

func (*Inventory) GetConnectionDetailsMapping

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

GetConnectionDetailsMapping for this Inventory

func (*Inventory) GetDeletionPolicy

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

GetDeletionPolicy of this Inventory.

func (*Inventory) GetID

func (tr *Inventory) GetID() string

GetID returns ID of underlying Terraform resource of this Inventory

func (*Inventory) GetInitParameters

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

GetInitParameters of this Inventory

func (*Inventory) GetManagementPolicies

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

GetManagementPolicies of this Inventory.

func (*Inventory) GetMergedParameters

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

GetInitParameters of this Inventory

func (*Inventory) GetObservation

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

GetObservation of this Inventory

func (*Inventory) GetParameters

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

GetParameters of this Inventory

func (*Inventory) GetProviderConfigReference

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

GetProviderConfigReference of this Inventory.

func (*Inventory) GetPublishConnectionDetailsTo

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

GetPublishConnectionDetailsTo of this Inventory.

func (*Inventory) GetTerraformResourceType

func (mg *Inventory) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this Inventory

func (*Inventory) GetTerraformSchemaVersion

func (tr *Inventory) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*Inventory) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this Inventory.

func (*Inventory) Hub

func (tr *Inventory) Hub()

Hub marks this type as a conversion hub.

func (*Inventory) LateInitialize

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

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

func (*Inventory) SetConditions

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

SetConditions of this Inventory.

func (*Inventory) SetDeletionPolicy

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

SetDeletionPolicy of this Inventory.

func (*Inventory) SetManagementPolicies

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

SetManagementPolicies of this Inventory.

func (*Inventory) SetObservation

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

SetObservation for this Inventory

func (*Inventory) SetParameters

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

SetParameters for this Inventory

func (*Inventory) SetProviderConfigReference

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

SetProviderConfigReference of this Inventory.

func (*Inventory) SetPublishConnectionDetailsTo

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

SetPublishConnectionDetailsTo of this Inventory.

func (*Inventory) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this Inventory.

type InventoryInitParameters

type InventoryInitParameters struct {

	// Optional description of this inventory.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Filter that will be applied to the hosts of this inventory.
	HostFilter *string `json:"hostFilter,omitempty" tf:"host_filter,omitempty"`

	// Kind of inventory being represented.
	Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`

	// Name of this inventory.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Organization containing this inventory.
	Organization *float64 `json:"organization,omitempty" tf:"organization,omitempty"`

	// If enabled, the inventory will prevent adding any organization instance groups to the list of preferred instances groups to run associated job templates on.If this setting is enabled and you provided an empty list, the global instance groups will be applied.
	PreventInstanceGroupFallback *bool `json:"preventInstanceGroupFallback,omitempty" tf:"prevent_instance_group_fallback,omitempty"`

	// Inventory variables in JSON format
	Variables *string `json:"variables,omitempty" tf:"variables,omitempty"`
}

func (*InventoryInitParameters) DeepCopy

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

func (*InventoryInitParameters) DeepCopyInto

func (in *InventoryInitParameters) DeepCopyInto(out *InventoryInitParameters)

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

type InventoryList

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

InventoryList contains a list of Inventorys

func (*InventoryList) DeepCopy

func (in *InventoryList) DeepCopy() *InventoryList

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

func (*InventoryList) DeepCopyInto

func (in *InventoryList) DeepCopyInto(out *InventoryList)

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

func (*InventoryList) DeepCopyObject

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

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

func (*InventoryList) GetItems

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

GetItems of this InventoryList.

type InventoryObservation

type InventoryObservation struct {

	// Optional description of this inventory.
	Description *string `json:"description,omitempty" tf:"description,omitempty"`

	// Flag indicating whether any hosts in this inventory have failed.
	HasActiveFailures *bool `json:"hasActiveFailures,omitempty" tf:"has_active_failures,omitempty"`

	// Flag indicating whether this inventory has any external inventory sources.
	HasInventorySources *bool `json:"hasInventorySources,omitempty" tf:"has_inventory_sources,omitempty"`

	// Filter that will be applied to the hosts of this inventory.
	HostFilter *string `json:"hostFilter,omitempty" tf:"host_filter,omitempty"`

	// Number of hosts in this inventory with active failures.
	HostsWithActiveFailures *float64 `json:"hostsWithActiveFailures,omitempty" tf:"hosts_with_active_failures,omitempty"`

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

	// Number of external inventory sources in this inventory with failures.
	InventorySourcesWithFailures *float64 `json:"inventorySourcesWithFailures,omitempty" tf:"inventory_sources_with_failures,omitempty"`

	// Kind of inventory being represented.
	Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`

	// Name of this inventory.
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Organization containing this inventory.
	Organization *float64 `json:"organization,omitempty" tf:"organization,omitempty"`

	// Flag indicating the inventory is being deleted.
	PendingDeletion *bool `json:"pendingDeletion,omitempty" tf:"pending_deletion,omitempty"`

	// If enabled, the inventory will prevent adding any organization instance groups to the list of preferred instances groups to run associated job templates on.If this setting is enabled and you provided an empty list, the global instance groups will be applied.
	PreventInstanceGroupFallback *bool `json:"preventInstanceGroupFallback,omitempty" tf:"prevent_instance_group_fallback,omitempty"`

	// Total number of groups in this inventory.
	TotalGroups *float64 `json:"totalGroups,omitempty" tf:"total_groups,omitempty"`

	// Total number of hosts in this inventory.
	TotalHosts *float64 `json:"totalHosts,omitempty" tf:"total_hosts,omitempty"`

	// Total number of external inventory sources configured within this inventory.
	TotalInventorySources *float64 `json:"totalInventorySources,omitempty" tf:"total_inventory_sources,omitempty"`

	// Inventory variables in JSON format
	Variables *string `json:"variables,omitempty" tf:"variables,omitempty"`
}

func (*InventoryObservation) DeepCopy

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

func (*InventoryObservation) DeepCopyInto

func (in *InventoryObservation) DeepCopyInto(out *InventoryObservation)

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

type InventoryParameters

type InventoryParameters struct {

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

	// Filter that will be applied to the hosts of this inventory.
	// +kubebuilder:validation:Optional
	HostFilter *string `json:"hostFilter,omitempty" tf:"host_filter,omitempty"`

	// Kind of inventory being represented.
	// +kubebuilder:validation:Optional
	Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`

	// Name of this inventory.
	// +kubebuilder:validation:Optional
	Name *string `json:"name,omitempty" tf:"name,omitempty"`

	// Organization containing this inventory.
	// +kubebuilder:validation:Optional
	Organization *float64 `json:"organization,omitempty" tf:"organization,omitempty"`

	// If enabled, the inventory will prevent adding any organization instance groups to the list of preferred instances groups to run associated job templates on.If this setting is enabled and you provided an empty list, the global instance groups will be applied.
	// +kubebuilder:validation:Optional
	PreventInstanceGroupFallback *bool `json:"preventInstanceGroupFallback,omitempty" tf:"prevent_instance_group_fallback,omitempty"`

	// Inventory variables in JSON format
	// +kubebuilder:validation:Optional
	Variables *string `json:"variables,omitempty" tf:"variables,omitempty"`
}

func (*InventoryParameters) DeepCopy

func (in *InventoryParameters) DeepCopy() *InventoryParameters

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

func (*InventoryParameters) DeepCopyInto

func (in *InventoryParameters) DeepCopyInto(out *InventoryParameters)

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

type InventorySpec

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

InventorySpec defines the desired state of Inventory

func (*InventorySpec) DeepCopy

func (in *InventorySpec) DeepCopy() *InventorySpec

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

func (*InventorySpec) DeepCopyInto

func (in *InventorySpec) DeepCopyInto(out *InventorySpec)

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

type InventoryStatus

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

InventoryStatus defines the observed state of Inventory.

func (*InventoryStatus) DeepCopy

func (in *InventoryStatus) DeepCopy() *InventoryStatus

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

func (*InventoryStatus) DeepCopyInto

func (in *InventoryStatus) DeepCopyInto(out *InventoryStatus)

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