/*
Copyright 2025 Rancher Labs, Inc.

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 main. DO NOT EDIT.

// +k8s:deepcopy-gen=package
// +groupName=management.cattle.io
package v3

import (
	management "github.com/rancher/rancher/pkg/apis/management.cattle.io"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime"
	"k8s.io/apimachinery/pkg/runtime/schema"
)

var (
	APIServiceResourceName                                = "apiservices"
	ActiveDirectoryProviderResourceName                   = "activedirectoryproviders"
	AuthConfigResourceName                                = "authconfigs"
	AuthProviderResourceName                              = "authproviders"
	AuthTokenResourceName                                 = "authtokens"
	AzureADProviderResourceName                           = "azureadproviders"
	CloudCredentialResourceName                           = "cloudcredentials"
	ClusterResourceName                                   = "clusters"
	ClusterProxyConfigResourceName                        = "clusterproxyconfigs"
	ClusterRegistrationTokenResourceName                  = "clusterregistrationtokens"
	ClusterRoleTemplateBindingResourceName                = "clusterroletemplatebindings"
	ClusterTemplateResourceName                           = "clustertemplates"
	ClusterTemplateRevisionResourceName                   = "clustertemplaterevisions"
	CognitoProviderResourceName                           = "cognitoproviders"
	ComposeConfigResourceName                             = "composeconfigs"
	DynamicSchemaResourceName                             = "dynamicschemas"
	EtcdBackupResourceName                                = "etcdbackups"
	FeatureResourceName                                   = "features"
	FleetWorkspaceResourceName                            = "fleetworkspaces"
	FreeIpaProviderResourceName                           = "freeipaproviders"
	GenericOIDCProviderResourceName                       = "genericoidcproviders"
	GithubAppProviderResourceName                         = "githubappproviders"
	GithubProviderResourceName                            = "githubproviders"
	GlobalRoleResourceName                                = "globalroles"
	GlobalRoleBindingResourceName                         = "globalrolebindings"
	GoogleOAuthProviderResourceName                       = "googleoauthproviders"
	GroupResourceName                                     = "groups"
	GroupMemberResourceName                               = "groupmembers"
	KontainerDriverResourceName                           = "kontainerdrivers"
	LocalProviderResourceName                             = "localproviders"
	ManagedChartResourceName                              = "managedcharts"
	NodeResourceName                                      = "nodes"
	NodeDriverResourceName                                = "nodedrivers"
	NodePoolResourceName                                  = "nodepools"
	NodeTemplateResourceName                              = "nodetemplates"
	OIDCClientResourceName                                = "oidcclients"
	OIDCProviderResourceName                              = "oidcproviders"
	OpenLdapProviderResourceName                          = "openldapproviders"
	PodSecurityAdmissionConfigurationTemplateResourceName = "podsecurityadmissionconfigurationtemplates"
	PreferenceResourceName                                = "preferences"
	PrincipalResourceName                                 = "principals"
	ProjectResourceName                                   = "projects"
	ProjectNetworkPolicyResourceName                      = "projectnetworkpolicies"
	ProjectRoleTemplateBindingResourceName                = "projectroletemplatebindings"
	RancherUserNotificationResourceName                   = "rancherusernotifications"
	RkeAddonResourceName                                  = "rkeaddons"
	RkeK8sServiceOptionResourceName                       = "rkek8sserviceoptions"
	RkeK8sSystemImageResourceName                         = "rkek8ssystemimages"
	RoleTemplateResourceName                              = "roletemplates"
	SamlProviderResourceName                              = "samlproviders"
	SamlTokenResourceName                                 = "samltokens"
	SettingResourceName                                   = "settings"
	TokenResourceName                                     = "tokens"
	UserResourceName                                      = "users"
	UserAttributeResourceName                             = "userattributes"
)

// SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: management.GroupName, Version: "v3"}

// Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Kind(kind string) schema.GroupKind {
	return SchemeGroupVersion.WithKind(kind).GroupKind()
}

// Resource takes an unqualified resource and returns a Group qualified GroupResource
func Resource(resource string) schema.GroupResource {
	return SchemeGroupVersion.WithResource(resource).GroupResource()
}

var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

// Adds the list of known types to Scheme.
func addKnownTypes(scheme *runtime.Scheme) error {
	scheme.AddKnownTypes(SchemeGroupVersion,
		&APIService{},
		&APIServiceList{},
		&ActiveDirectoryProvider{},
		&ActiveDirectoryProviderList{},
		&AuthConfig{},
		&AuthConfigList{},
		&AuthProvider{},
		&AuthProviderList{},
		&AuthToken{},
		&AuthTokenList{},
		&AzureADProvider{},
		&AzureADProviderList{},
		&CloudCredential{},
		&CloudCredentialList{},
		&Cluster{},
		&ClusterList{},
		&ClusterProxyConfig{},
		&ClusterProxyConfigList{},
		&ClusterRegistrationToken{},
		&ClusterRegistrationTokenList{},
		&ClusterRoleTemplateBinding{},
		&ClusterRoleTemplateBindingList{},
		&ClusterTemplate{},
		&ClusterTemplateList{},
		&ClusterTemplateRevision{},
		&ClusterTemplateRevisionList{},
		&CognitoProvider{},
		&CognitoProviderList{},
		&ComposeConfig{},
		&ComposeConfigList{},
		&DynamicSchema{},
		&DynamicSchemaList{},
		&EtcdBackup{},
		&EtcdBackupList{},
		&Feature{},
		&FeatureList{},
		&FleetWorkspace{},
		&FleetWorkspaceList{},
		&FreeIpaProvider{},
		&FreeIpaProviderList{},
		&GenericOIDCProvider{},
		&GenericOIDCProviderList{},
		&GithubAppProvider{},
		&GithubAppProviderList{},
		&GithubProvider{},
		&GithubProviderList{},
		&GlobalRole{},
		&GlobalRoleList{},
		&GlobalRoleBinding{},
		&GlobalRoleBindingList{},
		&GoogleOAuthProvider{},
		&GoogleOAuthProviderList{},
		&Group{},
		&GroupList{},
		&GroupMember{},
		&GroupMemberList{},
		&KontainerDriver{},
		&KontainerDriverList{},
		&LocalProvider{},
		&LocalProviderList{},
		&ManagedChart{},
		&ManagedChartList{},
		&Node{},
		&NodeList{},
		&NodeDriver{},
		&NodeDriverList{},
		&NodePool{},
		&NodePoolList{},
		&NodeTemplate{},
		&NodeTemplateList{},
		&OIDCClient{},
		&OIDCClientList{},
		&OIDCProvider{},
		&OIDCProviderList{},
		&OpenLdapProvider{},
		&OpenLdapProviderList{},
		&PodSecurityAdmissionConfigurationTemplate{},
		&PodSecurityAdmissionConfigurationTemplateList{},
		&Preference{},
		&PreferenceList{},
		&Principal{},
		&PrincipalList{},
		&Project{},
		&ProjectList{},
		&ProjectNetworkPolicy{},
		&ProjectNetworkPolicyList{},
		&ProjectRoleTemplateBinding{},
		&ProjectRoleTemplateBindingList{},
		&RancherUserNotification{},
		&RancherUserNotificationList{},
		&RkeAddon{},
		&RkeAddonList{},
		&RkeK8sServiceOption{},
		&RkeK8sServiceOptionList{},
		&RkeK8sSystemImage{},
		&RkeK8sSystemImageList{},
		&RoleTemplate{},
		&RoleTemplateList{},
		&SamlProvider{},
		&SamlProviderList{},
		&SamlToken{},
		&SamlTokenList{},
		&Setting{},
		&SettingList{},
		&Token{},
		&TokenList{},
		&User{},
		&UserList{},
		&UserAttribute{},
		&UserAttributeList{},
	)
	metav1.AddToGroupVersion(scheme, SchemeGroupVersion)
	return nil
}
