// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package storage

import (
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/configmaps"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/core"
	"github.com/Azure/azure-service-operator/v2/pkg/genruntime/secrets"
	"github.com/rotisserie/eris"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime/schema"
)

// +kubebuilder:rbac:groups=kubernetesconfiguration.azure.com,resources=fluxconfigurations,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=kubernetesconfiguration.azure.com,resources={fluxconfigurations/status,fluxconfigurations/finalizers},verbs=get;update;patch

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories={azure,kubernetesconfiguration}
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity"
// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason"
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message"
// Storage version of v1api20241101.FluxConfiguration
// Generator information:
// - Generated from: /kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/fluxConfigurations/stable/2024-11-01/fluxconfiguration.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}
type FluxConfiguration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              FluxConfiguration_Spec   `json:"spec,omitempty"`
	Status            FluxConfiguration_STATUS `json:"status,omitempty"`
}

var _ conditions.Conditioner = &FluxConfiguration{}

// GetConditions returns the conditions of the resource
func (configuration *FluxConfiguration) GetConditions() conditions.Conditions {
	return configuration.Status.Conditions
}

// SetConditions sets the conditions on the resource status
func (configuration *FluxConfiguration) SetConditions(conditions conditions.Conditions) {
	configuration.Status.Conditions = conditions
}

var _ configmaps.Exporter = &FluxConfiguration{}

// ConfigMapDestinationExpressions returns the Spec.OperatorSpec.ConfigMapExpressions property
func (configuration *FluxConfiguration) ConfigMapDestinationExpressions() []*core.DestinationExpression {
	if configuration.Spec.OperatorSpec == nil {
		return nil
	}
	return configuration.Spec.OperatorSpec.ConfigMapExpressions
}

var _ secrets.Exporter = &FluxConfiguration{}

// SecretDestinationExpressions returns the Spec.OperatorSpec.SecretExpressions property
func (configuration *FluxConfiguration) SecretDestinationExpressions() []*core.DestinationExpression {
	if configuration.Spec.OperatorSpec == nil {
		return nil
	}
	return configuration.Spec.OperatorSpec.SecretExpressions
}

var _ genruntime.KubernetesResource = &FluxConfiguration{}

// AzureName returns the Azure name of the resource
func (configuration *FluxConfiguration) AzureName() string {
	return configuration.Spec.AzureName
}

// GetAPIVersion returns the ARM API version of the resource. This is always "2024-11-01"
func (configuration FluxConfiguration) GetAPIVersion() string {
	return "2024-11-01"
}

// GetResourceScope returns the scope of the resource
func (configuration *FluxConfiguration) GetResourceScope() genruntime.ResourceScope {
	return genruntime.ResourceScopeExtension
}

// GetSpec returns the specification of this resource
func (configuration *FluxConfiguration) GetSpec() genruntime.ConvertibleSpec {
	return &configuration.Spec
}

// GetStatus returns the status of this resource
func (configuration *FluxConfiguration) GetStatus() genruntime.ConvertibleStatus {
	return &configuration.Status
}

// GetSupportedOperations returns the operations supported by the resource
func (configuration *FluxConfiguration) GetSupportedOperations() []genruntime.ResourceOperation {
	return []genruntime.ResourceOperation{
		genruntime.ResourceOperationDelete,
		genruntime.ResourceOperationGet,
		genruntime.ResourceOperationPut,
	}
}

// GetType returns the ARM Type of the resource. This is always "Microsoft.KubernetesConfiguration/fluxConfigurations"
func (configuration *FluxConfiguration) GetType() string {
	return "Microsoft.KubernetesConfiguration/fluxConfigurations"
}

// NewEmptyStatus returns a new empty (blank) status
func (configuration *FluxConfiguration) NewEmptyStatus() genruntime.ConvertibleStatus {
	return &FluxConfiguration_STATUS{}
}

// Owner returns the ResourceReference of the owner
func (configuration *FluxConfiguration) Owner() *genruntime.ResourceReference {
	if configuration.Spec.Owner == nil {
		return nil
	}

	return configuration.Spec.Owner.AsResourceReference()
}

// SetStatus sets the status of this resource
func (configuration *FluxConfiguration) SetStatus(status genruntime.ConvertibleStatus) error {
	// If we have exactly the right type of status, assign it
	if st, ok := status.(*FluxConfiguration_STATUS); ok {
		configuration.Status = *st
		return nil
	}

	// Convert status to required version
	var st FluxConfiguration_STATUS
	err := status.ConvertStatusTo(&st)
	if err != nil {
		return eris.Wrap(err, "failed to convert status")
	}

	configuration.Status = st
	return nil
}

// Hub marks that this FluxConfiguration is the hub type for conversion
func (configuration *FluxConfiguration) Hub() {}

// OriginalGVK returns a GroupValueKind for the original API version used to create the resource
func (configuration *FluxConfiguration) OriginalGVK() *schema.GroupVersionKind {
	return &schema.GroupVersionKind{
		Group:   GroupVersion.Group,
		Version: configuration.Spec.OriginalVersion,
		Kind:    "FluxConfiguration",
	}
}

// +kubebuilder:object:root=true
// Storage version of v1api20241101.FluxConfiguration
// Generator information:
// - Generated from: /kubernetesconfiguration/resource-manager/Microsoft.KubernetesConfiguration/fluxConfigurations/stable/2024-11-01/fluxconfiguration.json
// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{clusterRp}/{clusterResourceName}/{clusterName}/providers/Microsoft.KubernetesConfiguration/fluxConfigurations/{fluxConfigurationName}
type FluxConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []FluxConfiguration `json:"items"`
}

// Storage version of v1api20241101.FluxConfiguration_Spec
type FluxConfiguration_Spec struct {
	AzureBlob *AzureBlobDefinition `json:"azureBlob,omitempty"`

	// AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it
	// doesn't have to be.
	AzureName                      string                             `json:"azureName,omitempty"`
	Bucket                         *BucketDefinition                  `json:"bucket,omitempty"`
	ConfigurationProtectedSettings *genruntime.SecretMapReference     `json:"configurationProtectedSettings,omitempty"`
	GitRepository                  *GitRepositoryDefinition           `json:"gitRepository,omitempty"`
	Kustomizations                 map[string]KustomizationDefinition `json:"kustomizations,omitempty"`
	Namespace                      *string                            `json:"namespace,omitempty"`
	OciRepository                  *OCIRepositoryDefinition           `json:"ociRepository,omitempty"`
	OperatorSpec                   *FluxConfigurationOperatorSpec     `json:"operatorSpec,omitempty"`
	OriginalVersion                string                             `json:"originalVersion,omitempty"`

	// +kubebuilder:validation:Required
	// Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also
	// controls the resources lifecycle. When the owner is deleted the resource will also be deleted. This resource is an
	// extension resource, which means that any other Azure resource can be its owner.
	Owner                      *genruntime.ArbitraryOwnerReference `json:"owner,omitempty"`
	PropertyBag                genruntime.PropertyBag              `json:"$propertyBag,omitempty"`
	ReconciliationWaitDuration *string                             `json:"reconciliationWaitDuration,omitempty"`
	Scope                      *string                             `json:"scope,omitempty"`
	SourceKind                 *string                             `json:"sourceKind,omitempty"`
	Suspend                    *bool                               `json:"suspend,omitempty"`
	WaitForReconciliation      *bool                               `json:"waitForReconciliation,omitempty"`
}

var _ genruntime.ConvertibleSpec = &FluxConfiguration_Spec{}

// ConvertSpecFrom populates our FluxConfiguration_Spec from the provided source
func (configuration *FluxConfiguration_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error {
	if source == configuration {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleSpec")
	}

	return source.ConvertSpecTo(configuration)
}

// ConvertSpecTo populates the provided destination from our FluxConfiguration_Spec
func (configuration *FluxConfiguration_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error {
	if destination == configuration {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleSpec")
	}

	return destination.ConvertSpecFrom(configuration)
}

// Storage version of v1api20241101.FluxConfiguration_STATUS
// The Flux Configuration object returned in Get & Put response.
type FluxConfiguration_STATUS struct {
	AzureBlob                      *AzureBlobDefinition_STATUS               `json:"azureBlob,omitempty"`
	Bucket                         *BucketDefinition_STATUS                  `json:"bucket,omitempty"`
	ComplianceState                *string                                   `json:"complianceState,omitempty"`
	Conditions                     []conditions.Condition                    `json:"conditions,omitempty"`
	ConfigurationProtectedSettings map[string]string                         `json:"configurationProtectedSettings,omitempty"`
	ErrorMessage                   *string                                   `json:"errorMessage,omitempty"`
	GitRepository                  *GitRepositoryDefinition_STATUS           `json:"gitRepository,omitempty"`
	Id                             *string                                   `json:"id,omitempty"`
	Kustomizations                 map[string]KustomizationDefinition_STATUS `json:"kustomizations,omitempty"`
	Name                           *string                                   `json:"name,omitempty"`
	Namespace                      *string                                   `json:"namespace,omitempty"`
	OciRepository                  *OCIRepositoryDefinition_STATUS           `json:"ociRepository,omitempty"`
	PropertyBag                    genruntime.PropertyBag                    `json:"$propertyBag,omitempty"`
	ReconciliationWaitDuration     *string                                   `json:"reconciliationWaitDuration,omitempty"`
	RepositoryPublicKey            *string                                   `json:"repositoryPublicKey,omitempty"`
	Scope                          *string                                   `json:"scope,omitempty"`
	SourceKind                     *string                                   `json:"sourceKind,omitempty"`
	SourceSyncedCommitId           *string                                   `json:"sourceSyncedCommitId,omitempty"`
	SourceUpdatedAt                *string                                   `json:"sourceUpdatedAt,omitempty"`
	StatusUpdatedAt                *string                                   `json:"statusUpdatedAt,omitempty"`
	Statuses                       []ObjectStatusDefinition_STATUS           `json:"statuses,omitempty"`
	Suspend                        *bool                                     `json:"suspend,omitempty"`
	Type                           *string                                   `json:"type,omitempty"`
	WaitForReconciliation          *bool                                     `json:"waitForReconciliation,omitempty"`
}

var _ genruntime.ConvertibleStatus = &FluxConfiguration_STATUS{}

// ConvertStatusFrom populates our FluxConfiguration_STATUS from the provided source
func (configuration *FluxConfiguration_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error {
	if source == configuration {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleStatus")
	}

	return source.ConvertStatusTo(configuration)
}

// ConvertStatusTo populates the provided destination from our FluxConfiguration_STATUS
func (configuration *FluxConfiguration_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error {
	if destination == configuration {
		return eris.New("attempted conversion between unrelated implementations of github.com/Azure/azure-service-operator/v2/pkg/genruntime/ConvertibleStatus")
	}

	return destination.ConvertStatusFrom(configuration)
}

// Storage version of v1api20241101.AzureBlobDefinition
// Parameters to reconcile to the AzureBlob source kind type.
type AzureBlobDefinition struct {
	AccountKey            *genruntime.SecretReference `json:"accountKey,omitempty"`
	ContainerName         *string                     `json:"containerName,omitempty"`
	LocalAuthRef          *string                     `json:"localAuthRef,omitempty"`
	ManagedIdentity       *ManagedIdentityDefinition  `json:"managedIdentity,omitempty"`
	PropertyBag           genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	SasToken              *genruntime.SecretReference `json:"sasToken,omitempty"`
	ServicePrincipal      *ServicePrincipalDefinition `json:"servicePrincipal,omitempty"`
	SyncIntervalInSeconds *int                        `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                        `json:"timeoutInSeconds,omitempty"`
	Url                   *string                     `json:"url,omitempty"`
}

// Storage version of v1api20241101.AzureBlobDefinition_STATUS
// Parameters to reconcile to the AzureBlob source kind type.
type AzureBlobDefinition_STATUS struct {
	ContainerName         *string                            `json:"containerName,omitempty"`
	LocalAuthRef          *string                            `json:"localAuthRef,omitempty"`
	ManagedIdentity       *ManagedIdentityDefinition_STATUS  `json:"managedIdentity,omitempty"`
	PropertyBag           genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
	ServicePrincipal      *ServicePrincipalDefinition_STATUS `json:"servicePrincipal,omitempty"`
	SyncIntervalInSeconds *int                               `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                               `json:"timeoutInSeconds,omitempty"`
	Url                   *string                            `json:"url,omitempty"`
}

// Storage version of v1api20241101.BucketDefinition
// Parameters to reconcile to the Bucket source kind type.
type BucketDefinition struct {
	AccessKey             *genruntime.SecretReference `json:"accessKey,omitempty"`
	BucketName            *string                     `json:"bucketName,omitempty"`
	Insecure              *bool                       `json:"insecure,omitempty"`
	LocalAuthRef          *string                     `json:"localAuthRef,omitempty"`
	PropertyBag           genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	SyncIntervalInSeconds *int                        `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                        `json:"timeoutInSeconds,omitempty"`
	Url                   *string                     `json:"url,omitempty"`
}

// Storage version of v1api20241101.BucketDefinition_STATUS
// Parameters to reconcile to the Bucket source kind type.
type BucketDefinition_STATUS struct {
	BucketName            *string                `json:"bucketName,omitempty"`
	Insecure              *bool                  `json:"insecure,omitempty"`
	LocalAuthRef          *string                `json:"localAuthRef,omitempty"`
	PropertyBag           genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	SyncIntervalInSeconds *int                   `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                   `json:"timeoutInSeconds,omitempty"`
	Url                   *string                `json:"url,omitempty"`
}

// Storage version of v1api20241101.FluxConfigurationOperatorSpec
// Details for configuring operator behavior. Fields in this struct are interpreted by the operator directly rather than being passed to Azure
type FluxConfigurationOperatorSpec struct {
	ConfigMapExpressions []*core.DestinationExpression `json:"configMapExpressions,omitempty"`
	PropertyBag          genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
	SecretExpressions    []*core.DestinationExpression `json:"secretExpressions,omitempty"`
}

// Storage version of v1api20241101.GitRepositoryDefinition
// Parameters to reconcile to the GitRepository source kind type.
type GitRepositoryDefinition struct {
	HttpsCACert           *genruntime.SecretReference `json:"httpsCACert,omitempty"`
	HttpsUser             *string                     `json:"httpsUser,omitempty"`
	LocalAuthRef          *string                     `json:"localAuthRef,omitempty"`
	PropertyBag           genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Provider              *string                     `json:"provider,omitempty"`
	RepositoryRef         *RepositoryRefDefinition    `json:"repositoryRef,omitempty"`
	SshKnownHosts         *string                     `json:"sshKnownHosts,omitempty"`
	SyncIntervalInSeconds *int                        `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                        `json:"timeoutInSeconds,omitempty"`
	Url                   *string                     `json:"url,omitempty"`
}

// Storage version of v1api20241101.GitRepositoryDefinition_STATUS
// Parameters to reconcile to the GitRepository source kind type.
type GitRepositoryDefinition_STATUS struct {
	HttpsUser             *string                         `json:"httpsUser,omitempty"`
	LocalAuthRef          *string                         `json:"localAuthRef,omitempty"`
	PropertyBag           genruntime.PropertyBag          `json:"$propertyBag,omitempty"`
	Provider              *string                         `json:"provider,omitempty"`
	RepositoryRef         *RepositoryRefDefinition_STATUS `json:"repositoryRef,omitempty"`
	SshKnownHosts         *string                         `json:"sshKnownHosts,omitempty"`
	SyncIntervalInSeconds *int                            `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                            `json:"timeoutInSeconds,omitempty"`
	Url                   *string                         `json:"url,omitempty"`
}

// Storage version of v1api20241101.KustomizationDefinition
// The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.
type KustomizationDefinition struct {
	DependsOn              []string               `json:"dependsOn,omitempty"`
	Force                  *bool                  `json:"force,omitempty"`
	Path                   *string                `json:"path,omitempty"`
	PostBuild              *PostBuildDefinition   `json:"postBuild,omitempty"`
	PropertyBag            genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Prune                  *bool                  `json:"prune,omitempty"`
	RetryIntervalInSeconds *int                   `json:"retryIntervalInSeconds,omitempty"`
	SyncIntervalInSeconds  *int                   `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds       *int                   `json:"timeoutInSeconds,omitempty"`
	Wait                   *bool                  `json:"wait,omitempty"`
}

// Storage version of v1api20241101.KustomizationDefinition_STATUS
// The Kustomization defining how to reconcile the artifact pulled by the source type on the cluster.
type KustomizationDefinition_STATUS struct {
	DependsOn              []string                    `json:"dependsOn,omitempty"`
	Force                  *bool                       `json:"force,omitempty"`
	Name                   *string                     `json:"name,omitempty"`
	Path                   *string                     `json:"path,omitempty"`
	PostBuild              *PostBuildDefinition_STATUS `json:"postBuild,omitempty"`
	PropertyBag            genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	Prune                  *bool                       `json:"prune,omitempty"`
	RetryIntervalInSeconds *int                        `json:"retryIntervalInSeconds,omitempty"`
	SyncIntervalInSeconds  *int                        `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds       *int                        `json:"timeoutInSeconds,omitempty"`
	Wait                   *bool                       `json:"wait,omitempty"`
}

// Storage version of v1api20241101.ObjectStatusDefinition_STATUS
// Statuses of objects deployed by the user-specified kustomizations from the git repository.
type ObjectStatusDefinition_STATUS struct {
	AppliedBy             *ObjectReferenceDefinition_STATUS        `json:"appliedBy,omitempty"`
	ComplianceState       *string                                  `json:"complianceState,omitempty"`
	HelmReleaseProperties *HelmReleasePropertiesDefinition_STATUS  `json:"helmReleaseProperties,omitempty"`
	Kind                  *string                                  `json:"kind,omitempty"`
	Name                  *string                                  `json:"name,omitempty"`
	Namespace             *string                                  `json:"namespace,omitempty"`
	PropertyBag           genruntime.PropertyBag                   `json:"$propertyBag,omitempty"`
	StatusConditions      []ObjectStatusConditionDefinition_STATUS `json:"statusConditions,omitempty"`
}

// Storage version of v1api20241101.OCIRepositoryDefinition
// Parameters to reconcile to the OCIRepository source kind type.
type OCIRepositoryDefinition struct {
	Insecure              *bool                       `json:"insecure,omitempty"`
	LayerSelector         *LayerSelectorDefinition    `json:"layerSelector,omitempty"`
	LocalAuthRef          *string                     `json:"localAuthRef,omitempty"`
	PropertyBag           genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
	RepositoryRef         *OCIRepositoryRefDefinition `json:"repositoryRef,omitempty"`
	ServiceAccountName    *string                     `json:"serviceAccountName,omitempty"`
	SyncIntervalInSeconds *int                        `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                        `json:"timeoutInSeconds,omitempty"`
	TlsConfig             *TlsConfigDefinition        `json:"tlsConfig,omitempty"`
	Url                   *string                     `json:"url,omitempty"`
	UseWorkloadIdentity   *bool                       `json:"useWorkloadIdentity,omitempty"`
	Verify                *VerifyDefinition           `json:"verify,omitempty"`
}

// Storage version of v1api20241101.OCIRepositoryDefinition_STATUS
// Parameters to reconcile to the OCIRepository source kind type.
type OCIRepositoryDefinition_STATUS struct {
	Insecure              *bool                              `json:"insecure,omitempty"`
	LayerSelector         *LayerSelectorDefinition_STATUS    `json:"layerSelector,omitempty"`
	LocalAuthRef          *string                            `json:"localAuthRef,omitempty"`
	PropertyBag           genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
	RepositoryRef         *OCIRepositoryRefDefinition_STATUS `json:"repositoryRef,omitempty"`
	ServiceAccountName    *string                            `json:"serviceAccountName,omitempty"`
	SyncIntervalInSeconds *int                               `json:"syncIntervalInSeconds,omitempty"`
	TimeoutInSeconds      *int                               `json:"timeoutInSeconds,omitempty"`
	TlsConfig             *TlsConfigDefinition_STATUS        `json:"tlsConfig,omitempty"`
	Url                   *string                            `json:"url,omitempty"`
	UseWorkloadIdentity   *bool                              `json:"useWorkloadIdentity,omitempty"`
	Verify                *VerifyDefinition_STATUS           `json:"verify,omitempty"`
}

// Storage version of v1api20241101.HelmReleasePropertiesDefinition_STATUS
// Properties for HelmRelease objects
type HelmReleasePropertiesDefinition_STATUS struct {
	FailureCount        *int                              `json:"failureCount,omitempty"`
	HelmChartRef        *ObjectReferenceDefinition_STATUS `json:"helmChartRef,omitempty"`
	InstallFailureCount *int                              `json:"installFailureCount,omitempty"`
	LastRevisionApplied *int                              `json:"lastRevisionApplied,omitempty"`
	PropertyBag         genruntime.PropertyBag            `json:"$propertyBag,omitempty"`
	UpgradeFailureCount *int                              `json:"upgradeFailureCount,omitempty"`
}

// Storage version of v1api20241101.LayerSelectorDefinition
// Parameters to specify which layer to pull from the OCI artifact. By default, the first layer in the artifact is pulled.
type LayerSelectorDefinition struct {
	MediaType   *string                `json:"mediaType,omitempty"`
	Operation   *string                `json:"operation,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.LayerSelectorDefinition_STATUS
// Parameters to specify which layer to pull from the OCI artifact. By default, the first layer in the artifact is pulled.
type LayerSelectorDefinition_STATUS struct {
	MediaType   *string                `json:"mediaType,omitempty"`
	Operation   *string                `json:"operation,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.ManagedIdentityDefinition
// Parameters to authenticate using a Managed Identity.
type ManagedIdentityDefinition struct {
	ClientId    *string                `json:"clientId,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.ManagedIdentityDefinition_STATUS
// Parameters to authenticate using a Managed Identity.
type ManagedIdentityDefinition_STATUS struct {
	ClientId    *string                `json:"clientId,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.ObjectReferenceDefinition_STATUS
// Object reference to a Kubernetes object on a cluster
type ObjectReferenceDefinition_STATUS struct {
	Name        *string                `json:"name,omitempty"`
	Namespace   *string                `json:"namespace,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.ObjectStatusConditionDefinition_STATUS
// Status condition of Kubernetes object
type ObjectStatusConditionDefinition_STATUS struct {
	LastTransitionTime *string                `json:"lastTransitionTime,omitempty"`
	Message            *string                `json:"message,omitempty"`
	PropertyBag        genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Reason             *string                `json:"reason,omitempty"`
	Status             *string                `json:"status,omitempty"`
	Type               *string                `json:"type,omitempty"`
}

// Storage version of v1api20241101.OCIRepositoryRefDefinition
// The source reference for the OCIRepository object.
type OCIRepositoryRefDefinition struct {
	Digest      *string                `json:"digest,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Semver      *string                `json:"semver,omitempty"`
	Tag         *string                `json:"tag,omitempty"`
}

// Storage version of v1api20241101.OCIRepositoryRefDefinition_STATUS
// The source reference for the OCIRepository object.
type OCIRepositoryRefDefinition_STATUS struct {
	Digest      *string                `json:"digest,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Semver      *string                `json:"semver,omitempty"`
	Tag         *string                `json:"tag,omitempty"`
}

// Storage version of v1api20241101.PostBuildDefinition
// The postBuild definitions defining variable substitutions for this Kustomization after kustomize build.
type PostBuildDefinition struct {
	PropertyBag    genruntime.PropertyBag     `json:"$propertyBag,omitempty"`
	Substitute     map[string]string          `json:"substitute,omitempty"`
	SubstituteFrom []SubstituteFromDefinition `json:"substituteFrom,omitempty"`
}

// Storage version of v1api20241101.PostBuildDefinition_STATUS
// The postBuild definitions defining variable substitutions for this Kustomization after kustomize build.
type PostBuildDefinition_STATUS struct {
	PropertyBag    genruntime.PropertyBag            `json:"$propertyBag,omitempty"`
	Substitute     map[string]string                 `json:"substitute,omitempty"`
	SubstituteFrom []SubstituteFromDefinition_STATUS `json:"substituteFrom,omitempty"`
}

// Storage version of v1api20241101.RepositoryRefDefinition
// The source reference for the GitRepository object.
type RepositoryRefDefinition struct {
	Branch      *string                `json:"branch,omitempty"`
	Commit      *string                `json:"commit,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Semver      *string                `json:"semver,omitempty"`
	Tag         *string                `json:"tag,omitempty"`
}

// Storage version of v1api20241101.RepositoryRefDefinition_STATUS
// The source reference for the GitRepository object.
type RepositoryRefDefinition_STATUS struct {
	Branch      *string                `json:"branch,omitempty"`
	Commit      *string                `json:"commit,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Semver      *string                `json:"semver,omitempty"`
	Tag         *string                `json:"tag,omitempty"`
}

// Storage version of v1api20241101.ServicePrincipalDefinition
// Parameters to authenticate using Service Principal.
type ServicePrincipalDefinition struct {
	ClientCertificate          *genruntime.SecretReference    `json:"clientCertificate,omitempty"`
	ClientCertificatePassword  *genruntime.SecretReference    `json:"clientCertificatePassword,omitempty"`
	ClientCertificateSendChain *bool                          `json:"clientCertificateSendChain,omitempty"`
	ClientId                   *string                        `json:"clientId,omitempty" optionalConfigMapPair:"ClientId"`
	ClientIdFromConfig         *genruntime.ConfigMapReference `json:"clientIdFromConfig,omitempty" optionalConfigMapPair:"ClientId"`
	ClientSecret               *genruntime.SecretReference    `json:"clientSecret,omitempty"`
	PropertyBag                genruntime.PropertyBag         `json:"$propertyBag,omitempty"`
	TenantId                   *string                        `json:"tenantId,omitempty" optionalConfigMapPair:"TenantId"`
	TenantIdFromConfig         *genruntime.ConfigMapReference `json:"tenantIdFromConfig,omitempty" optionalConfigMapPair:"TenantId"`
}

// Storage version of v1api20241101.ServicePrincipalDefinition_STATUS
// Parameters to authenticate using Service Principal.
type ServicePrincipalDefinition_STATUS struct {
	ClientCertificateSendChain *bool                  `json:"clientCertificateSendChain,omitempty"`
	ClientId                   *string                `json:"clientId,omitempty"`
	PropertyBag                genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TenantId                   *string                `json:"tenantId,omitempty"`
}

// Storage version of v1api20241101.TlsConfigDefinition
// Parameters to authenticate using TLS config for OCI repository.
type TlsConfigDefinition struct {
	CaCertificate     *genruntime.SecretReference `json:"caCertificate,omitempty"`
	ClientCertificate *genruntime.SecretReference `json:"clientCertificate,omitempty"`
	PrivateKey        *genruntime.SecretReference `json:"privateKey,omitempty"`
	PropertyBag       genruntime.PropertyBag      `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.TlsConfigDefinition_STATUS
// Parameters to authenticate using TLS config for OCI repository.
type TlsConfigDefinition_STATUS struct {
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.VerifyDefinition
// Parameters to verify the authenticity of an OCI Artifact.
type VerifyDefinition struct {
	MatchOidcIdentity  []MatchOidcIdentityDefinition `json:"matchOidcIdentity,omitempty"`
	PropertyBag        genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
	Provider           *string                       `json:"provider,omitempty"`
	VerificationConfig map[string]string             `json:"verificationConfig,omitempty"`
}

// Storage version of v1api20241101.VerifyDefinition_STATUS
// Parameters to verify the authenticity of an OCI Artifact.
type VerifyDefinition_STATUS struct {
	MatchOidcIdentity  []MatchOidcIdentityDefinition_STATUS `json:"matchOidcIdentity,omitempty"`
	PropertyBag        genruntime.PropertyBag               `json:"$propertyBag,omitempty"`
	Provider           *string                              `json:"provider,omitempty"`
	VerificationConfig map[string]string                    `json:"verificationConfig,omitempty"`
}

// Storage version of v1api20241101.MatchOidcIdentityDefinition
// MatchOIDCIdentity defines the criteria for matching the identity while verifying an OCI artifact.
type MatchOidcIdentityDefinition struct {
	Issuer      *string                `json:"issuer,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Subject     *string                `json:"subject,omitempty"`
}

// Storage version of v1api20241101.MatchOidcIdentityDefinition_STATUS
// MatchOIDCIdentity defines the criteria for matching the identity while verifying an OCI artifact.
type MatchOidcIdentityDefinition_STATUS struct {
	Issuer      *string                `json:"issuer,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	Subject     *string                `json:"subject,omitempty"`
}

// Storage version of v1api20241101.SubstituteFromDefinition
// Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.
type SubstituteFromDefinition struct {
	Kind        *string                `json:"kind,omitempty"`
	Name        *string                `json:"name,omitempty"`
	Optional    *bool                  `json:"optional,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

// Storage version of v1api20241101.SubstituteFromDefinition_STATUS
// Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.
type SubstituteFromDefinition_STATUS struct {
	Kind        *string                `json:"kind,omitempty"`
	Name        *string                `json:"name,omitempty"`
	Optional    *bool                  `json:"optional,omitempty"`
	PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

func init() {
	SchemeBuilder.Register(&FluxConfiguration{}, &FluxConfigurationList{})
}
