/*
Copyright The Volcano Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.

package applyconfiguration

import (
	runtime "k8s.io/apimachinery/pkg/runtime"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	managedfields "k8s.io/apimachinery/pkg/util/managedfields"
	v1alpha1 "volcano.sh/apis/pkg/apis/batch/v1alpha1"
	busv1alpha1 "volcano.sh/apis/pkg/apis/bus/v1alpha1"
	configv1alpha1 "volcano.sh/apis/pkg/apis/config/v1alpha1"
	datadependencyv1alpha1 "volcano.sh/apis/pkg/apis/datadependency/v1alpha1"
	flowv1alpha1 "volcano.sh/apis/pkg/apis/flow/v1alpha1"
	nodeinfov1alpha1 "volcano.sh/apis/pkg/apis/nodeinfo/v1alpha1"
	v1beta1 "volcano.sh/apis/pkg/apis/scheduling/v1beta1"
	shardv1alpha1 "volcano.sh/apis/pkg/apis/shard/v1alpha1"
	topologyv1alpha1 "volcano.sh/apis/pkg/apis/topology/v1alpha1"
	trainingv1alpha1 "volcano.sh/apis/pkg/apis/training/v1alpha1"
	batchv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/batch/v1alpha1"
	applyconfigurationbusv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/bus/v1alpha1"
	applyconfigurationconfigv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/config/v1alpha1"
	applyconfigurationdatadependencyv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/datadependency/v1alpha1"
	applyconfigurationflowv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/flow/v1alpha1"
	internal "volcano.sh/apis/pkg/client/applyconfiguration/internal"
	applyconfigurationnodeinfov1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/nodeinfo/v1alpha1"
	schedulingv1beta1 "volcano.sh/apis/pkg/client/applyconfiguration/scheduling/v1beta1"
	applyconfigurationshardv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/shard/v1alpha1"
	applyconfigurationtopologyv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/topology/v1alpha1"
	applyconfigurationtrainingv1alpha1 "volcano.sh/apis/pkg/client/applyconfiguration/training/v1alpha1"
)

// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
// apply configuration type exists for the given GroupVersionKind.
func ForKind(kind schema.GroupVersionKind) interface{} {
	switch kind {
	// Group=batch.volcano.sh, Version=v1alpha1
	case v1alpha1.SchemeGroupVersion.WithKind("CronJob"):
		return &batchv1alpha1.CronJobApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("CronJobSpec"):
		return &batchv1alpha1.CronJobSpecApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("CronJobStatus"):
		return &batchv1alpha1.CronJobStatusApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("DependsOn"):
		return &batchv1alpha1.DependsOnApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("Job"):
		return &batchv1alpha1.JobApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("JobCondition"):
		return &batchv1alpha1.JobConditionApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("JobSpec"):
		return &batchv1alpha1.JobSpecApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("JobState"):
		return &batchv1alpha1.JobStateApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("JobStatus"):
		return &batchv1alpha1.JobStatusApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("JobTemplateSpec"):
		return &batchv1alpha1.JobTemplateSpecApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("LifecyclePolicy"):
		return &batchv1alpha1.LifecyclePolicyApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("NetworkTopologySpec"):
		return &batchv1alpha1.NetworkTopologySpecApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("PartitionPolicySpec"):
		return &batchv1alpha1.PartitionPolicySpecApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("TaskSpec"):
		return &batchv1alpha1.TaskSpecApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("TaskState"):
		return &batchv1alpha1.TaskStateApplyConfiguration{}
	case v1alpha1.SchemeGroupVersion.WithKind("VolumeSpec"):
		return &batchv1alpha1.VolumeSpecApplyConfiguration{}

		// Group=bus.volcano.sh, Version=v1alpha1
	case busv1alpha1.SchemeGroupVersion.WithKind("Command"):
		return &applyconfigurationbusv1alpha1.CommandApplyConfiguration{}

		// Group=config.volcano.sh, Version=v1alpha1
	case configv1alpha1.SchemeGroupVersion.WithKind("ColocationConfiguration"):
		return &applyconfigurationconfigv1alpha1.ColocationConfigurationApplyConfiguration{}
	case configv1alpha1.SchemeGroupVersion.WithKind("ColocationConfigurationSpec"):
		return &applyconfigurationconfigv1alpha1.ColocationConfigurationSpecApplyConfiguration{}
	case configv1alpha1.SchemeGroupVersion.WithKind("ColocationConfigurationStatus"):
		return &applyconfigurationconfigv1alpha1.ColocationConfigurationStatusApplyConfiguration{}
	case configv1alpha1.SchemeGroupVersion.WithKind("Configuration"):
		return &applyconfigurationconfigv1alpha1.ConfigurationApplyConfiguration{}
	case configv1alpha1.SchemeGroupVersion.WithKind("MemoryQos"):
		return &applyconfigurationconfigv1alpha1.MemoryQosApplyConfiguration{}

		// Group=datadependency.volcano.sh, Version=v1alpha1
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSource"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSourceClaim"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceClaimApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSourceClaimSpec"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceClaimSpecApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSourceClaimStatus"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceClaimStatusApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSourceLocality"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceLocalityApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSourceSpec"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceSpecApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("DataSourceStatus"):
		return &applyconfigurationdatadependencyv1alpha1.DataSourceStatusApplyConfiguration{}
	case datadependencyv1alpha1.SchemeGroupVersion.WithKind("WorkloadRef"):
		return &applyconfigurationdatadependencyv1alpha1.WorkloadRefApplyConfiguration{}

		// Group=flow.volcano.sh, Version=v1alpha1
	case flowv1alpha1.SchemeGroupVersion.WithKind("Condition"):
		return &applyconfigurationflowv1alpha1.ConditionApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("DependsOn"):
		return &applyconfigurationflowv1alpha1.DependsOnApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("Flow"):
		return &applyconfigurationflowv1alpha1.FlowApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("HttpGet"):
		return &applyconfigurationflowv1alpha1.HttpGetApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobFlow"):
		return &applyconfigurationflowv1alpha1.JobFlowApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobFlowSpec"):
		return &applyconfigurationflowv1alpha1.JobFlowSpecApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobFlowStatus"):
		return &applyconfigurationflowv1alpha1.JobFlowStatusApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobRunningHistory"):
		return &applyconfigurationflowv1alpha1.JobRunningHistoryApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobStatus"):
		return &applyconfigurationflowv1alpha1.JobStatusApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobTemplate"):
		return &applyconfigurationflowv1alpha1.JobTemplateApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("JobTemplateStatus"):
		return &applyconfigurationflowv1alpha1.JobTemplateStatusApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("Patch"):
		return &applyconfigurationflowv1alpha1.PatchApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("Probe"):
		return &applyconfigurationflowv1alpha1.ProbeApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("State"):
		return &applyconfigurationflowv1alpha1.StateApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("TaskStatus"):
		return &applyconfigurationflowv1alpha1.TaskStatusApplyConfiguration{}
	case flowv1alpha1.SchemeGroupVersion.WithKind("TcpSocket"):
		return &applyconfigurationflowv1alpha1.TcpSocketApplyConfiguration{}

		// Group=nodeinfo.volcano.sh, Version=v1alpha1
	case nodeinfov1alpha1.SchemeGroupVersion.WithKind("ContainerAllocation"):
		return &applyconfigurationnodeinfov1alpha1.ContainerAllocationApplyConfiguration{}
	case nodeinfov1alpha1.SchemeGroupVersion.WithKind("CPUInfo"):
		return &applyconfigurationnodeinfov1alpha1.CPUInfoApplyConfiguration{}
	case nodeinfov1alpha1.SchemeGroupVersion.WithKind("Numatopology"):
		return &applyconfigurationnodeinfov1alpha1.NumatopologyApplyConfiguration{}
	case nodeinfov1alpha1.SchemeGroupVersion.WithKind("NumatopoSpec"):
		return &applyconfigurationnodeinfov1alpha1.NumatopoSpecApplyConfiguration{}
	case nodeinfov1alpha1.SchemeGroupVersion.WithKind("PodAllocation"):
		return &applyconfigurationnodeinfov1alpha1.PodAllocationApplyConfiguration{}
	case nodeinfov1alpha1.SchemeGroupVersion.WithKind("ResourceInfo"):
		return &applyconfigurationnodeinfov1alpha1.ResourceInfoApplyConfiguration{}

		// Group=scheduling.volcano.sh, Version=v1beta1
	case v1beta1.SchemeGroupVersion.WithKind("Affinity"):
		return &schedulingv1beta1.AffinityApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("Cluster"):
		return &schedulingv1beta1.ClusterApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("Guarantee"):
		return &schedulingv1beta1.GuaranteeApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("NetworkTopologySpec"):
		return &schedulingv1beta1.NetworkTopologySpecApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("NodeGroupAffinity"):
		return &schedulingv1beta1.NodeGroupAffinityApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("NodeGroupAntiAffinity"):
		return &schedulingv1beta1.NodeGroupAntiAffinityApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("PodGroup"):
		return &schedulingv1beta1.PodGroupApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("PodGroupCondition"):
		return &schedulingv1beta1.PodGroupConditionApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("PodGroupSpec"):
		return &schedulingv1beta1.PodGroupSpecApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("PodGroupStatus"):
		return &schedulingv1beta1.PodGroupStatusApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("Queue"):
		return &schedulingv1beta1.QueueApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("QueueSpec"):
		return &schedulingv1beta1.QueueSpecApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("QueueStatus"):
		return &schedulingv1beta1.QueueStatusApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("Reservation"):
		return &schedulingv1beta1.ReservationApplyConfiguration{}
	case v1beta1.SchemeGroupVersion.WithKind("SubGroupPolicySpec"):
		return &schedulingv1beta1.SubGroupPolicySpecApplyConfiguration{}

		// Group=shard.volcano.sh, Version=v1alpha1
	case shardv1alpha1.SchemeGroupVersion.WithKind("NodeShard"):
		return &applyconfigurationshardv1alpha1.NodeShardApplyConfiguration{}
	case shardv1alpha1.SchemeGroupVersion.WithKind("NodeShardSpec"):
		return &applyconfigurationshardv1alpha1.NodeShardSpecApplyConfiguration{}
	case shardv1alpha1.SchemeGroupVersion.WithKind("NodeShardStatus"):
		return &applyconfigurationshardv1alpha1.NodeShardStatusApplyConfiguration{}

		// Group=topology.volcano.sh, Version=v1alpha1
	case topologyv1alpha1.SchemeGroupVersion.WithKind("ExactMatch"):
		return &applyconfigurationtopologyv1alpha1.ExactMatchApplyConfiguration{}
	case topologyv1alpha1.SchemeGroupVersion.WithKind("HyperNode"):
		return &applyconfigurationtopologyv1alpha1.HyperNodeApplyConfiguration{}
	case topologyv1alpha1.SchemeGroupVersion.WithKind("HyperNodeSpec"):
		return &applyconfigurationtopologyv1alpha1.HyperNodeSpecApplyConfiguration{}
	case topologyv1alpha1.SchemeGroupVersion.WithKind("HyperNodeStatus"):
		return &applyconfigurationtopologyv1alpha1.HyperNodeStatusApplyConfiguration{}
	case topologyv1alpha1.SchemeGroupVersion.WithKind("MemberSelector"):
		return &applyconfigurationtopologyv1alpha1.MemberSelectorApplyConfiguration{}
	case topologyv1alpha1.SchemeGroupVersion.WithKind("MemberSpec"):
		return &applyconfigurationtopologyv1alpha1.MemberSpecApplyConfiguration{}
	case topologyv1alpha1.SchemeGroupVersion.WithKind("RegexMatch"):
		return &applyconfigurationtopologyv1alpha1.RegexMatchApplyConfiguration{}

		// Group=training.volcano.sh, Version=v1alpha1
	case trainingv1alpha1.SchemeGroupVersion.WithKind("HyperJob"):
		return &applyconfigurationtrainingv1alpha1.HyperJobApplyConfiguration{}
	case trainingv1alpha1.SchemeGroupVersion.WithKind("HyperJobSpec"):
		return &applyconfigurationtrainingv1alpha1.HyperJobSpecApplyConfiguration{}
	case trainingv1alpha1.SchemeGroupVersion.WithKind("HyperJobStatus"):
		return &applyconfigurationtrainingv1alpha1.HyperJobStatusApplyConfiguration{}
	case trainingv1alpha1.SchemeGroupVersion.WithKind("ReplicatedJob"):
		return &applyconfigurationtrainingv1alpha1.ReplicatedJobApplyConfiguration{}
	case trainingv1alpha1.SchemeGroupVersion.WithKind("ReplicatedJobStatus"):
		return &applyconfigurationtrainingv1alpha1.ReplicatedJobStatusApplyConfiguration{}
	case trainingv1alpha1.SchemeGroupVersion.WithKind("SplitPolicy"):
		return &applyconfigurationtrainingv1alpha1.SplitPolicyApplyConfiguration{}

	}
	return nil
}

func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
	return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
}
