{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-unused-binds -fno-warn-unused-imports #-}
module Kubernetes.OpenAPI.API.AuthorizationV1 where
import Kubernetes.OpenAPI.Core
import Kubernetes.OpenAPI.MimeTypes
import Kubernetes.OpenAPI.Model as M
import qualified Data.Aeson as A
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
import qualified Data.Data as P (Typeable, TypeRep, typeOf, typeRep)
import qualified Data.Foldable as P
import qualified Data.Map as Map
import qualified Data.Maybe as P
import qualified Data.Proxy as P (Proxy(..))
import qualified Data.Set as Set
import qualified Data.String as P
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import qualified Data.Text.Lazy as TL
import qualified Data.Text.Lazy.Encoding as TL
import qualified Data.Time as TI
import qualified Network.HTTP.Client.MultipartFormData as NH
import qualified Network.HTTP.Media as ME
import qualified Network.HTTP.Types as NH
import qualified Web.FormUrlEncoded as WH
import qualified Web.HttpApiData as WH
import Data.Text (Text)
import GHC.Base ((<|>))
import Prelude ((==),(/=),($), (.),(<$>),(<*>),(>>=),Maybe(..),Bool(..),Char,Double,FilePath,Float,Int,Integer,String,fmap,undefined,mempty,maybe,pure,Monad,Applicative,Functor)
import qualified Prelude as P
createNamespacedLocalSubjectAccessReview
:: (Consumes CreateNamespacedLocalSubjectAccessReview contentType, MimeRender contentType V1LocalSubjectAccessReview)
=> ContentType contentType
-> Accept accept
-> V1LocalSubjectAccessReview
-> Namespace
-> KubernetesRequest CreateNamespacedLocalSubjectAccessReview contentType V1LocalSubjectAccessReview accept
createNamespacedLocalSubjectAccessReview _ _ body (Namespace namespace) =
_mkRequest "POST" ["/apis/authorization.k8s.io/v1/namespaces/",toPath namespace,"/localsubjectaccessreviews"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyBearerToken)
`setBodyParam` body
data CreateNamespacedLocalSubjectAccessReview
instance HasBodyParam CreateNamespacedLocalSubjectAccessReview V1LocalSubjectAccessReview
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview DryRun where
applyOptionalParam req (DryRun xs) =
req `setQuery` toQuery ("dryRun", Just xs)
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview FieldManager where
applyOptionalParam req (FieldManager xs) =
req `setQuery` toQuery ("fieldManager", Just xs)
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview Pretty where
applyOptionalParam req (Pretty xs) =
req `setQuery` toQuery ("pretty", Just xs)
instance MimeType mtype => Consumes CreateNamespacedLocalSubjectAccessReview mtype
instance Produces CreateNamespacedLocalSubjectAccessReview MimeJSON
instance Produces CreateNamespacedLocalSubjectAccessReview MimeVndKubernetesProtobuf
instance Produces CreateNamespacedLocalSubjectAccessReview MimeYaml
createSelfSubjectAccessReview
:: (Consumes CreateSelfSubjectAccessReview contentType, MimeRender contentType V1SelfSubjectAccessReview)
=> ContentType contentType
-> Accept accept
-> V1SelfSubjectAccessReview
-> KubernetesRequest CreateSelfSubjectAccessReview contentType V1SelfSubjectAccessReview accept
createSelfSubjectAccessReview _ _ body =
_mkRequest "POST" ["/apis/authorization.k8s.io/v1/selfsubjectaccessreviews"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyBearerToken)
`setBodyParam` body
data CreateSelfSubjectAccessReview
instance HasBodyParam CreateSelfSubjectAccessReview V1SelfSubjectAccessReview
instance HasOptionalParam CreateSelfSubjectAccessReview DryRun where
applyOptionalParam req (DryRun xs) =
req `setQuery` toQuery ("dryRun", Just xs)
instance HasOptionalParam CreateSelfSubjectAccessReview FieldManager where
applyOptionalParam req (FieldManager xs) =
req `setQuery` toQuery ("fieldManager", Just xs)
instance HasOptionalParam CreateSelfSubjectAccessReview Pretty where
applyOptionalParam req (Pretty xs) =
req `setQuery` toQuery ("pretty", Just xs)
instance MimeType mtype => Consumes CreateSelfSubjectAccessReview mtype
instance Produces CreateSelfSubjectAccessReview MimeJSON
instance Produces CreateSelfSubjectAccessReview MimeVndKubernetesProtobuf
instance Produces CreateSelfSubjectAccessReview MimeYaml
createSelfSubjectRulesReview
:: (Consumes CreateSelfSubjectRulesReview contentType, MimeRender contentType V1SelfSubjectRulesReview)
=> ContentType contentType
-> Accept accept
-> V1SelfSubjectRulesReview
-> KubernetesRequest CreateSelfSubjectRulesReview contentType V1SelfSubjectRulesReview accept
createSelfSubjectRulesReview _ _ body =
_mkRequest "POST" ["/apis/authorization.k8s.io/v1/selfsubjectrulesreviews"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyBearerToken)
`setBodyParam` body
data CreateSelfSubjectRulesReview
instance HasBodyParam CreateSelfSubjectRulesReview V1SelfSubjectRulesReview
instance HasOptionalParam CreateSelfSubjectRulesReview DryRun where
applyOptionalParam req (DryRun xs) =
req `setQuery` toQuery ("dryRun", Just xs)
instance HasOptionalParam CreateSelfSubjectRulesReview FieldManager where
applyOptionalParam req (FieldManager xs) =
req `setQuery` toQuery ("fieldManager", Just xs)
instance HasOptionalParam CreateSelfSubjectRulesReview Pretty where
applyOptionalParam req (Pretty xs) =
req `setQuery` toQuery ("pretty", Just xs)
instance MimeType mtype => Consumes CreateSelfSubjectRulesReview mtype
instance Produces CreateSelfSubjectRulesReview MimeJSON
instance Produces CreateSelfSubjectRulesReview MimeVndKubernetesProtobuf
instance Produces CreateSelfSubjectRulesReview MimeYaml
createSubjectAccessReview
:: (Consumes CreateSubjectAccessReview contentType, MimeRender contentType V1SubjectAccessReview)
=> ContentType contentType
-> Accept accept
-> V1SubjectAccessReview
-> KubernetesRequest CreateSubjectAccessReview contentType V1SubjectAccessReview accept
createSubjectAccessReview _ _ body =
_mkRequest "POST" ["/apis/authorization.k8s.io/v1/subjectaccessreviews"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyBearerToken)
`setBodyParam` body
data CreateSubjectAccessReview
instance HasBodyParam CreateSubjectAccessReview V1SubjectAccessReview
instance HasOptionalParam CreateSubjectAccessReview DryRun where
applyOptionalParam req (DryRun xs) =
req `setQuery` toQuery ("dryRun", Just xs)
instance HasOptionalParam CreateSubjectAccessReview FieldManager where
applyOptionalParam req (FieldManager xs) =
req `setQuery` toQuery ("fieldManager", Just xs)
instance HasOptionalParam CreateSubjectAccessReview Pretty where
applyOptionalParam req (Pretty xs) =
req `setQuery` toQuery ("pretty", Just xs)
instance MimeType mtype => Consumes CreateSubjectAccessReview mtype
instance Produces CreateSubjectAccessReview MimeJSON
instance Produces CreateSubjectAccessReview MimeVndKubernetesProtobuf
instance Produces CreateSubjectAccessReview MimeYaml
getAPIResources
:: Accept accept
-> KubernetesRequest GetAPIResources MimeNoContent V1APIResourceList accept
getAPIResources _ =
_mkRequest "GET" ["/apis/authorization.k8s.io/v1/"]
`_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyBearerToken)
data GetAPIResources
instance Produces GetAPIResources MimeJSON
instance Produces GetAPIResources MimeVndKubernetesProtobuf
instance Produces GetAPIResources MimeYaml