{-
   Kubernetes

   No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

   OpenAPI Version: 3.0.1
   Kubernetes API version: release-1.32
   Generated by OpenAPI Generator (https://openapi-generator.tech)
-}

{-|
Module : Kubernetes.OpenAPI.API.AuthorizationV1
-}

{-# 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

-- * Operations


-- ** AuthorizationV1

-- *** createNamespacedLocalSubjectAccessReview

-- | @POST \/apis\/authorization.k8s.io\/v1\/namespaces\/{namespace}\/localsubjectaccessreviews@
-- 
-- create a LocalSubjectAccessReview
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createNamespacedLocalSubjectAccessReview
  :: (Consumes CreateNamespacedLocalSubjectAccessReview contentType, MimeRender contentType V1LocalSubjectAccessReview)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1LocalSubjectAccessReview -- ^ "body"
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest CreateNamespacedLocalSubjectAccessReview contentType V1LocalSubjectAccessReview accept
createNamespacedLocalSubjectAccessReview :: forall contentType accept.
(Consumes CreateNamespacedLocalSubjectAccessReview contentType,
 MimeRender contentType V1LocalSubjectAccessReview) =>
ContentType contentType
-> Accept accept
-> V1LocalSubjectAccessReview
-> Namespace
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview
     contentType
     V1LocalSubjectAccessReview
     accept
createNamespacedLocalSubjectAccessReview ContentType contentType
_  Accept accept
_ V1LocalSubjectAccessReview
body (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview
     contentType
     V1LocalSubjectAccessReview
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/authorization.k8s.io/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/localsubjectaccessreviews"]
    KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview
  contentType
  V1LocalSubjectAccessReview
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview
     contentType
     V1LocalSubjectAccessReview
     accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall {k} (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
    KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview
  contentType
  V1LocalSubjectAccessReview
  accept
-> V1LocalSubjectAccessReview
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview
     contentType
     V1LocalSubjectAccessReview
     accept
forall req param contentType res accept.
(HasBodyParam req param, Consumes req contentType,
 MimeRender contentType param) =>
KubernetesRequest req contentType res accept
-> param -> KubernetesRequest req contentType res accept
forall contentType res accept.
(Consumes CreateNamespacedLocalSubjectAccessReview contentType,
 MimeRender contentType V1LocalSubjectAccessReview) =>
KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> V1LocalSubjectAccessReview
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
`setBodyParam` V1LocalSubjectAccessReview
body

data CreateNamespacedLocalSubjectAccessReview 
instance HasBodyParam CreateNamespacedLocalSubjectAccessReview V1LocalSubjectAccessReview 

-- | /Optional Param/ "dryRun" - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview DryRun where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> DryRun
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"dryRun", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldManager" - fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview FieldManager where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> FieldManager
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldManager", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldValidation" - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview FieldValidation where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> FieldValidation
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req (FieldValidation Text
xs) =
    KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldValidation", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
instance HasOptionalParam CreateNamespacedLocalSubjectAccessReview Pretty where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> Pretty
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateNamespacedLocalSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedLocalSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | @*/*@
instance MimeType mtype => Consumes CreateNamespacedLocalSubjectAccessReview mtype

-- | @application/json@
instance Produces CreateNamespacedLocalSubjectAccessReview MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces CreateNamespacedLocalSubjectAccessReview MimeVndKubernetesProtobuf
-- | @application/cbor@
instance Produces CreateNamespacedLocalSubjectAccessReview MimeCbor
-- | @application/yaml@
instance Produces CreateNamespacedLocalSubjectAccessReview MimeYaml


-- *** createSelfSubjectAccessReview

-- | @POST \/apis\/authorization.k8s.io\/v1\/selfsubjectaccessreviews@
-- 
-- create a SelfSubjectAccessReview
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createSelfSubjectAccessReview
  :: (Consumes CreateSelfSubjectAccessReview contentType, MimeRender contentType V1SelfSubjectAccessReview)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1SelfSubjectAccessReview -- ^ "body"
  -> KubernetesRequest CreateSelfSubjectAccessReview contentType V1SelfSubjectAccessReview accept
createSelfSubjectAccessReview :: forall contentType accept.
(Consumes CreateSelfSubjectAccessReview contentType,
 MimeRender contentType V1SelfSubjectAccessReview) =>
ContentType contentType
-> Accept accept
-> V1SelfSubjectAccessReview
-> KubernetesRequest
     CreateSelfSubjectAccessReview
     contentType
     V1SelfSubjectAccessReview
     accept
createSelfSubjectAccessReview ContentType contentType
_  Accept accept
_ V1SelfSubjectAccessReview
body =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateSelfSubjectAccessReview
     contentType
     V1SelfSubjectAccessReview
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/authorization.k8s.io/v1/selfsubjectaccessreviews"]
    KubernetesRequest
  CreateSelfSubjectAccessReview
  contentType
  V1SelfSubjectAccessReview
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateSelfSubjectAccessReview
     contentType
     V1SelfSubjectAccessReview
     accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall {k} (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
    KubernetesRequest
  CreateSelfSubjectAccessReview
  contentType
  V1SelfSubjectAccessReview
  accept
-> V1SelfSubjectAccessReview
-> KubernetesRequest
     CreateSelfSubjectAccessReview
     contentType
     V1SelfSubjectAccessReview
     accept
forall req param contentType res accept.
(HasBodyParam req param, Consumes req contentType,
 MimeRender contentType param) =>
KubernetesRequest req contentType res accept
-> param -> KubernetesRequest req contentType res accept
forall contentType res accept.
(Consumes CreateSelfSubjectAccessReview contentType,
 MimeRender contentType V1SelfSubjectAccessReview) =>
KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> V1SelfSubjectAccessReview
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
`setBodyParam` V1SelfSubjectAccessReview
body

data CreateSelfSubjectAccessReview 
instance HasBodyParam CreateSelfSubjectAccessReview V1SelfSubjectAccessReview 

-- | /Optional Param/ "dryRun" - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
instance HasOptionalParam CreateSelfSubjectAccessReview DryRun where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> DryRun
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"dryRun", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldManager" - fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
instance HasOptionalParam CreateSelfSubjectAccessReview FieldManager where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> FieldManager
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldManager", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldValidation" - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
instance HasOptionalParam CreateSelfSubjectAccessReview FieldValidation where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> FieldValidation
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req (FieldValidation Text
xs) =
    KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldValidation", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
instance HasOptionalParam CreateSelfSubjectAccessReview Pretty where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> Pretty
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | @*/*@
instance MimeType mtype => Consumes CreateSelfSubjectAccessReview mtype

-- | @application/json@
instance Produces CreateSelfSubjectAccessReview MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces CreateSelfSubjectAccessReview MimeVndKubernetesProtobuf
-- | @application/cbor@
instance Produces CreateSelfSubjectAccessReview MimeCbor
-- | @application/yaml@
instance Produces CreateSelfSubjectAccessReview MimeYaml


-- *** createSelfSubjectRulesReview

-- | @POST \/apis\/authorization.k8s.io\/v1\/selfsubjectrulesreviews@
-- 
-- create a SelfSubjectRulesReview
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createSelfSubjectRulesReview
  :: (Consumes CreateSelfSubjectRulesReview contentType, MimeRender contentType V1SelfSubjectRulesReview)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1SelfSubjectRulesReview -- ^ "body"
  -> KubernetesRequest CreateSelfSubjectRulesReview contentType V1SelfSubjectRulesReview accept
createSelfSubjectRulesReview :: forall contentType accept.
(Consumes CreateSelfSubjectRulesReview contentType,
 MimeRender contentType V1SelfSubjectRulesReview) =>
ContentType contentType
-> Accept accept
-> V1SelfSubjectRulesReview
-> KubernetesRequest
     CreateSelfSubjectRulesReview
     contentType
     V1SelfSubjectRulesReview
     accept
createSelfSubjectRulesReview ContentType contentType
_  Accept accept
_ V1SelfSubjectRulesReview
body =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateSelfSubjectRulesReview
     contentType
     V1SelfSubjectRulesReview
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/authorization.k8s.io/v1/selfsubjectrulesreviews"]
    KubernetesRequest
  CreateSelfSubjectRulesReview
  contentType
  V1SelfSubjectRulesReview
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateSelfSubjectRulesReview
     contentType
     V1SelfSubjectRulesReview
     accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall {k} (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
    KubernetesRequest
  CreateSelfSubjectRulesReview
  contentType
  V1SelfSubjectRulesReview
  accept
-> V1SelfSubjectRulesReview
-> KubernetesRequest
     CreateSelfSubjectRulesReview
     contentType
     V1SelfSubjectRulesReview
     accept
forall req param contentType res accept.
(HasBodyParam req param, Consumes req contentType,
 MimeRender contentType param) =>
KubernetesRequest req contentType res accept
-> param -> KubernetesRequest req contentType res accept
forall contentType res accept.
(Consumes CreateSelfSubjectRulesReview contentType,
 MimeRender contentType V1SelfSubjectRulesReview) =>
KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> V1SelfSubjectRulesReview
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
`setBodyParam` V1SelfSubjectRulesReview
body

data CreateSelfSubjectRulesReview 
instance HasBodyParam CreateSelfSubjectRulesReview V1SelfSubjectRulesReview 

-- | /Optional Param/ "dryRun" - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
instance HasOptionalParam CreateSelfSubjectRulesReview DryRun where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> DryRun
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"dryRun", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldManager" - fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
instance HasOptionalParam CreateSelfSubjectRulesReview FieldManager where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> FieldManager
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldManager", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldValidation" - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
instance HasOptionalParam CreateSelfSubjectRulesReview FieldValidation where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> FieldValidation
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req (FieldValidation Text
xs) =
    KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldValidation", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
instance HasOptionalParam CreateSelfSubjectRulesReview Pretty where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> Pretty
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
applyOptionalParam KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
req KubernetesRequest
  CreateSelfSubjectRulesReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSelfSubjectRulesReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | @*/*@
instance MimeType mtype => Consumes CreateSelfSubjectRulesReview mtype

-- | @application/json@
instance Produces CreateSelfSubjectRulesReview MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces CreateSelfSubjectRulesReview MimeVndKubernetesProtobuf
-- | @application/cbor@
instance Produces CreateSelfSubjectRulesReview MimeCbor
-- | @application/yaml@
instance Produces CreateSelfSubjectRulesReview MimeYaml


-- *** createSubjectAccessReview

-- | @POST \/apis\/authorization.k8s.io\/v1\/subjectaccessreviews@
-- 
-- create a SubjectAccessReview
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createSubjectAccessReview
  :: (Consumes CreateSubjectAccessReview contentType, MimeRender contentType V1SubjectAccessReview)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1SubjectAccessReview -- ^ "body"
  -> KubernetesRequest CreateSubjectAccessReview contentType V1SubjectAccessReview accept
createSubjectAccessReview :: forall contentType accept.
(Consumes CreateSubjectAccessReview contentType,
 MimeRender contentType V1SubjectAccessReview) =>
ContentType contentType
-> Accept accept
-> V1SubjectAccessReview
-> KubernetesRequest
     CreateSubjectAccessReview contentType V1SubjectAccessReview accept
createSubjectAccessReview ContentType contentType
_  Accept accept
_ V1SubjectAccessReview
body =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateSubjectAccessReview contentType V1SubjectAccessReview accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/authorization.k8s.io/v1/subjectaccessreviews"]
    KubernetesRequest
  CreateSubjectAccessReview contentType V1SubjectAccessReview accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateSubjectAccessReview contentType V1SubjectAccessReview accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall {k} (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
    KubernetesRequest
  CreateSubjectAccessReview contentType V1SubjectAccessReview accept
-> V1SubjectAccessReview
-> KubernetesRequest
     CreateSubjectAccessReview contentType V1SubjectAccessReview accept
forall req param contentType res accept.
(HasBodyParam req param, Consumes req contentType,
 MimeRender contentType param) =>
KubernetesRequest req contentType res accept
-> param -> KubernetesRequest req contentType res accept
forall contentType res accept.
(Consumes CreateSubjectAccessReview contentType,
 MimeRender contentType V1SubjectAccessReview) =>
KubernetesRequest CreateSubjectAccessReview contentType res accept
-> V1SubjectAccessReview
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
`setBodyParam` V1SubjectAccessReview
body

data CreateSubjectAccessReview 
instance HasBodyParam CreateSubjectAccessReview V1SubjectAccessReview 

-- | /Optional Param/ "dryRun" - When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
instance HasOptionalParam CreateSubjectAccessReview DryRun where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest CreateSubjectAccessReview contentType res accept
-> DryRun
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest CreateSubjectAccessReview contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest CreateSubjectAccessReview contentType res accept
req KubernetesRequest CreateSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"dryRun", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldManager" - fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
instance HasOptionalParam CreateSubjectAccessReview FieldManager where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest CreateSubjectAccessReview contentType res accept
-> FieldManager
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest CreateSubjectAccessReview contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest CreateSubjectAccessReview contentType res accept
req KubernetesRequest CreateSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldManager", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldValidation" - fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
instance HasOptionalParam CreateSubjectAccessReview FieldValidation where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest CreateSubjectAccessReview contentType res accept
-> FieldValidation
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest CreateSubjectAccessReview contentType res accept
req (FieldValidation Text
xs) =
    KubernetesRequest CreateSubjectAccessReview contentType res accept
req KubernetesRequest CreateSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"fieldValidation", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
instance HasOptionalParam CreateSubjectAccessReview Pretty where
  applyOptionalParam :: forall contentType res accept.
KubernetesRequest CreateSubjectAccessReview contentType res accept
-> Pretty
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
applyOptionalParam KubernetesRequest CreateSubjectAccessReview contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest CreateSubjectAccessReview contentType res accept
req KubernetesRequest CreateSubjectAccessReview contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateSubjectAccessReview contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | @*/*@
instance MimeType mtype => Consumes CreateSubjectAccessReview mtype

-- | @application/json@
instance Produces CreateSubjectAccessReview MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces CreateSubjectAccessReview MimeVndKubernetesProtobuf
-- | @application/cbor@
instance Produces CreateSubjectAccessReview MimeCbor
-- | @application/yaml@
instance Produces CreateSubjectAccessReview MimeYaml


-- *** getAPIResources

-- | @GET \/apis\/authorization.k8s.io\/v1\/@
-- 
-- get available resources
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
getAPIResources
  :: Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest GetAPIResources MimeNoContent V1APIResourceList accept
getAPIResources :: forall accept.
Accept accept
-> KubernetesRequest
     GetAPIResources MimeNoContent V1APIResourceList accept
getAPIResources  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     GetAPIResources MimeNoContent V1APIResourceList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/authorization.k8s.io/v1/"]
    KubernetesRequest
  GetAPIResources MimeNoContent V1APIResourceList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     GetAPIResources MimeNoContent V1APIResourceList accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall {k} (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)

data GetAPIResources  
-- | @application/json@
instance Produces GetAPIResources MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces GetAPIResources MimeVndKubernetesProtobuf
-- | @application/cbor@
instance Produces GetAPIResources MimeCbor
-- | @application/yaml@
instance Produces GetAPIResources MimeYaml