import{a7 as r,a4 as e}from"./index-BKr2rJhV.js";const o=r.injectEndpoints({endpoints:t=>({getAllKubeLabels:t.query({query:()=>({url:"/admin/kube/label"}),providesTags:[e.AdminTags.KubernetesLabels]}),setHopsworksLabels:t.mutation({query:({hopsworksLabels:s,defaultProjectLabels:a})=>({url:"/admin/kube/label",method:"post",data:{value:{hopsworks:s,defaultProject:{allowed:a}}}}),invalidatesTags:[{type:e.AdminTags.KubernetesLabels},{type:e.AdminTags.KubernetesProjectLabels},{type:e.ProjectTags.KubernetesClusterInfo}]}),getProjectKubeLabels:t.query({query:({id:s})=>({url:`/admin/projects/${s}/kube/label`}),providesTags:[e.AdminTags.KubernetesProjectLabels]}),setProjectKubeLabels:t.mutation({query:({id:s,labels:a})=>({url:`/admin/projects/${s}/kube/label`,method:"post",data:{value:{allowed:a}}}),invalidatesTags:[{type:e.AdminTags.KubernetesProjectLabels},{type:e.ProjectTags.KubernetesClusterInfo}]}),getAllKubePriorityClasses:t.query({query:()=>({url:"/admin/kube/priorityclass"}),providesTags:[e.AdminTags.KubernetesPriorityClasses]}),setHopsworksPriorityClasses:t.mutation({query:({hopsworksPriorityClasses:s,defaultProjectPriorityClasses:a})=>({url:"/admin/kube/priorityclass",method:"post",data:{value:{hopsworks:s,defaultProject:{allowed:a}}}}),invalidatesTags:[{type:e.AdminTags.KubernetesPriorityClasses},{type:e.AdminTags.KubernetesProjectPriorityClasses},{type:e.ProjectTags.KubernetesNamespaceInfo}]}),getProjectKubePriorityClasses:t.query({query:({id:s})=>({url:`/admin/projects/${s}/kube/priorityclass`}),providesTags:[e.AdminTags.KubernetesProjectPriorityClasses]}),setProjectKubePriorityClasses:t.mutation({query:({id:s,priorityClasses:a})=>({url:`/admin/projects/${s}/kube/priorityclass`,method:"post",data:{value:{allowed:a}}}),invalidatesTags:[{type:e.AdminTags.KubernetesProjectPriorityClasses},{type:e.ProjectTags.KubernetesNamespaceInfo}]})}),overrideExisting:!0}),{useGetAllKubeLabelsQuery:i,useSetHopsworksLabelsMutation:l,useGetProjectKubeLabelsQuery:n,useSetProjectKubeLabelsMutation:b,useGetAllKubePriorityClassesQuery:y,useSetHopsworksPriorityClassesMutation:p,useGetProjectKubePriorityClassesQuery:d,useSetProjectKubePriorityClassesMutation:c}=o;export{i as a,d as b,n as c,c as d,b as e,l as f,p as g,y as u};
