{-
   Kubernetes

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

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

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

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


-- ** RbacAuthorizationV1alpha1

-- *** createClusterRole

-- | @POST \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles@
-- 
-- create a ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createClusterRole 
  :: (Consumes CreateClusterRole contentType, MimeRender contentType V1alpha1ClusterRole)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1ClusterRole -- ^ "body"
  -> KubernetesRequest CreateClusterRole contentType V1alpha1ClusterRole accept
createClusterRole :: ContentType contentType
-> Accept accept
-> V1alpha1ClusterRole
-> KubernetesRequest
     CreateClusterRole contentType V1alpha1ClusterRole accept
createClusterRole ContentType contentType
_  Accept accept
_ V1alpha1ClusterRole
body =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateClusterRole contentType V1alpha1ClusterRole accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles"]
    KubernetesRequest
  CreateClusterRole contentType V1alpha1ClusterRole accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateClusterRole contentType V1alpha1ClusterRole 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
  CreateClusterRole contentType V1alpha1ClusterRole accept
-> V1alpha1ClusterRole
-> KubernetesRequest
     CreateClusterRole contentType V1alpha1ClusterRole 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
`setBodyParam` V1alpha1ClusterRole
body

data CreateClusterRole 
instance HasBodyParam CreateClusterRole V1alpha1ClusterRole 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam CreateClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest CreateClusterRole contentType res accept
-> Pretty
-> KubernetesRequest CreateClusterRole contentType res accept
applyOptionalParam KubernetesRequest CreateClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest CreateClusterRole contentType res accept
req KubernetesRequest CreateClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateClusterRole 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)

-- | /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 CreateClusterRole DryRun where
  applyOptionalParam :: KubernetesRequest CreateClusterRole contentType res accept
-> DryRun
-> KubernetesRequest CreateClusterRole contentType res accept
applyOptionalParam KubernetesRequest CreateClusterRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest CreateClusterRole contentType res accept
req KubernetesRequest CreateClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateClusterRole 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 CreateClusterRole FieldManager where
  applyOptionalParam :: KubernetesRequest CreateClusterRole contentType res accept
-> FieldManager
-> KubernetesRequest CreateClusterRole contentType res accept
applyOptionalParam KubernetesRequest CreateClusterRole contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest CreateClusterRole contentType res accept
req KubernetesRequest CreateClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateClusterRole 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)
    
-- | @*/*@
instance MimeType mtype => Consumes CreateClusterRole mtype

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


-- *** createClusterRoleBinding

-- | @POST \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings@
-- 
-- create a ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createClusterRoleBinding 
  :: (Consumes CreateClusterRoleBinding contentType, MimeRender contentType V1alpha1ClusterRoleBinding)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1ClusterRoleBinding -- ^ "body"
  -> KubernetesRequest CreateClusterRoleBinding contentType V1alpha1ClusterRoleBinding accept
createClusterRoleBinding :: ContentType contentType
-> Accept accept
-> V1alpha1ClusterRoleBinding
-> KubernetesRequest
     CreateClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     accept
createClusterRoleBinding ContentType contentType
_  Accept accept
_ V1alpha1ClusterRoleBinding
body =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings"]
    KubernetesRequest
  CreateClusterRoleBinding
  contentType
  V1alpha1ClusterRoleBinding
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     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
  CreateClusterRoleBinding
  contentType
  V1alpha1ClusterRoleBinding
  accept
-> V1alpha1ClusterRoleBinding
-> KubernetesRequest
     CreateClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     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
`setBodyParam` V1alpha1ClusterRoleBinding
body

data CreateClusterRoleBinding 
instance HasBodyParam CreateClusterRoleBinding V1alpha1ClusterRoleBinding 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam CreateClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest CreateClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     CreateClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest CreateClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest CreateClusterRoleBinding contentType res accept
req KubernetesRequest CreateClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateClusterRoleBinding 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)

-- | /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 CreateClusterRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest CreateClusterRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     CreateClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest CreateClusterRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest CreateClusterRoleBinding contentType res accept
req KubernetesRequest CreateClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateClusterRoleBinding 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 CreateClusterRoleBinding FieldManager where
  applyOptionalParam :: KubernetesRequest CreateClusterRoleBinding contentType res accept
-> FieldManager
-> KubernetesRequest
     CreateClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest CreateClusterRoleBinding contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest CreateClusterRoleBinding contentType res accept
req KubernetesRequest CreateClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateClusterRoleBinding 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)
    
-- | @*/*@
instance MimeType mtype => Consumes CreateClusterRoleBinding mtype

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


-- *** createNamespacedRole

-- | @POST \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles@
-- 
-- create a Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createNamespacedRole 
  :: (Consumes CreateNamespacedRole contentType, MimeRender contentType V1alpha1Role)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1Role -- ^ "body"
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest CreateNamespacedRole contentType V1alpha1Role accept
createNamespacedRole :: ContentType contentType
-> Accept accept
-> V1alpha1Role
-> Namespace
-> KubernetesRequest
     CreateNamespacedRole contentType V1alpha1Role accept
createNamespacedRole ContentType contentType
_  Accept accept
_ V1alpha1Role
body (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateNamespacedRole contentType V1alpha1Role accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles"]
    KubernetesRequest
  CreateNamespacedRole contentType V1alpha1Role accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateNamespacedRole contentType V1alpha1Role 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
  CreateNamespacedRole contentType V1alpha1Role accept
-> V1alpha1Role
-> KubernetesRequest
     CreateNamespacedRole contentType V1alpha1Role 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
`setBodyParam` V1alpha1Role
body

data CreateNamespacedRole 
instance HasBodyParam CreateNamespacedRole V1alpha1Role 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam CreateNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest CreateNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest CreateNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest CreateNamespacedRole contentType res accept
req KubernetesRequest CreateNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedRole 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)

-- | /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 CreateNamespacedRole DryRun where
  applyOptionalParam :: KubernetesRequest CreateNamespacedRole contentType res accept
-> DryRun
-> KubernetesRequest CreateNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest CreateNamespacedRole contentType res accept
req KubernetesRequest CreateNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedRole 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 CreateNamespacedRole FieldManager where
  applyOptionalParam :: KubernetesRequest CreateNamespacedRole contentType res accept
-> FieldManager
-> KubernetesRequest CreateNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedRole contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest CreateNamespacedRole contentType res accept
req KubernetesRequest CreateNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedRole 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)
    
-- | @*/*@
instance MimeType mtype => Consumes CreateNamespacedRole mtype

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


-- *** createNamespacedRoleBinding

-- | @POST \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings@
-- 
-- create a RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
createNamespacedRoleBinding 
  :: (Consumes CreateNamespacedRoleBinding contentType, MimeRender contentType V1alpha1RoleBinding)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1RoleBinding -- ^ "body"
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest CreateNamespacedRoleBinding contentType V1alpha1RoleBinding accept
createNamespacedRoleBinding :: ContentType contentType
-> Accept accept
-> V1alpha1RoleBinding
-> Namespace
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType V1alpha1RoleBinding accept
createNamespacedRoleBinding ContentType contentType
_  Accept accept
_ V1alpha1RoleBinding
body (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType V1alpha1RoleBinding accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings"]
    KubernetesRequest
  CreateNamespacedRoleBinding contentType V1alpha1RoleBinding accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType V1alpha1RoleBinding 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
  CreateNamespacedRoleBinding contentType V1alpha1RoleBinding accept
-> V1alpha1RoleBinding
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType V1alpha1RoleBinding 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
`setBodyParam` V1alpha1RoleBinding
body

data CreateNamespacedRoleBinding 
instance HasBodyParam CreateNamespacedRoleBinding V1alpha1RoleBinding 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam CreateNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
req KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedRoleBinding 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)

-- | /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 CreateNamespacedRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
req KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedRoleBinding 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 CreateNamespacedRoleBinding FieldManager where
  applyOptionalParam :: KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
-> FieldManager
-> KubernetesRequest
     CreateNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
req KubernetesRequest
  CreateNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     CreateNamespacedRoleBinding 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)
    
-- | @*/*@
instance MimeType mtype => Consumes CreateNamespacedRoleBinding mtype

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


-- *** deleteClusterRole

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles\/{name}@
-- 
-- delete a ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteClusterRole 
  :: (Consumes DeleteClusterRole contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the ClusterRole
  -> KubernetesRequest DeleteClusterRole contentType V1Status accept
deleteClusterRole :: ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest DeleteClusterRole contentType V1Status accept
deleteClusterRole ContentType contentType
_  Accept accept
_ (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest DeleteClusterRole contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest DeleteClusterRole contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest DeleteClusterRole contentType V1Status 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 DeleteClusterRole 
instance HasBodyParam DeleteClusterRole V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest DeleteClusterRole contentType res accept
-> Pretty
-> KubernetesRequest DeleteClusterRole contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest DeleteClusterRole contentType res accept
req KubernetesRequest DeleteClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteClusterRole 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)

-- | /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 DeleteClusterRole DryRun where
  applyOptionalParam :: KubernetesRequest DeleteClusterRole contentType res accept
-> DryRun
-> KubernetesRequest DeleteClusterRole contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest DeleteClusterRole contentType res accept
req KubernetesRequest DeleteClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteClusterRole 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/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteClusterRole GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest DeleteClusterRole contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteClusterRole contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRole contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest DeleteClusterRole contentType res accept
req KubernetesRequest DeleteClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteClusterRole OrphanDependents where
  applyOptionalParam :: KubernetesRequest DeleteClusterRole contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteClusterRole contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRole contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest DeleteClusterRole contentType res accept
req KubernetesRequest DeleteClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteClusterRole PropagationPolicy where
  applyOptionalParam :: KubernetesRequest DeleteClusterRole contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteClusterRole contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRole contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest DeleteClusterRole contentType res accept
req KubernetesRequest DeleteClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteClusterRole 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteClusterRole mtype

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


-- *** deleteClusterRoleBinding

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings\/{name}@
-- 
-- delete a ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteClusterRoleBinding 
  :: (Consumes DeleteClusterRoleBinding contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the ClusterRoleBinding
  -> KubernetesRequest DeleteClusterRoleBinding contentType V1Status accept
deleteClusterRoleBinding :: ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest
     DeleteClusterRoleBinding contentType V1Status accept
deleteClusterRoleBinding ContentType contentType
_  Accept accept
_ (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteClusterRoleBinding contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  DeleteClusterRoleBinding contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteClusterRoleBinding contentType V1Status 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 DeleteClusterRoleBinding 
instance HasBodyParam DeleteClusterRoleBinding V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest DeleteClusterRoleBinding contentType res accept
req KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteClusterRoleBinding 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)

-- | /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 DeleteClusterRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest DeleteClusterRoleBinding contentType res accept
req KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteClusterRoleBinding 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/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteClusterRoleBinding GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRoleBinding contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest DeleteClusterRoleBinding contentType res accept
req KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteClusterRoleBinding OrphanDependents where
  applyOptionalParam :: KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> OrphanDependents
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRoleBinding contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest DeleteClusterRoleBinding contentType res accept
req KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteClusterRoleBinding PropagationPolicy where
  applyOptionalParam :: KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> PropagationPolicy
-> KubernetesRequest
     DeleteClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest DeleteClusterRoleBinding contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest DeleteClusterRoleBinding contentType res accept
req KubernetesRequest DeleteClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteClusterRoleBinding 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteClusterRoleBinding mtype

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


-- *** deleteCollectionClusterRole

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles@
-- 
-- delete collection of ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteCollectionClusterRole 
  :: (Consumes DeleteCollectionClusterRole contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest DeleteCollectionClusterRole contentType V1Status accept
deleteCollectionClusterRole :: ContentType contentType
-> Accept accept
-> KubernetesRequest
     DeleteCollectionClusterRole contentType V1Status accept
deleteCollectionClusterRole ContentType contentType
_  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteCollectionClusterRole contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles"]
    KubernetesRequest
  DeleteCollectionClusterRole contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteCollectionClusterRole contentType V1Status 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 DeleteCollectionClusterRole 
instance HasBodyParam DeleteCollectionClusterRole V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteCollectionClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> Pretty
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam DeleteCollectionClusterRole Continue where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> Continue
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (Continue Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /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 DeleteCollectionClusterRole DryRun where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> DryRun
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam DeleteCollectionClusterRole FieldSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> FieldSelector
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteCollectionClusterRole GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam DeleteCollectionClusterRole LabelSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> LabelSelector
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam DeleteCollectionClusterRole Limit where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> Limit
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (Limit Int
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteCollectionClusterRole OrphanDependents where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> OrphanDependents
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteCollectionClusterRole PropagationPolicy where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> PropagationPolicy
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam DeleteCollectionClusterRole ResourceVersion where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> ResourceVersion
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam DeleteCollectionClusterRole TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteCollectionClusterRole mtype

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


-- *** deleteCollectionClusterRoleBinding

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings@
-- 
-- delete collection of ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteCollectionClusterRoleBinding 
  :: (Consumes DeleteCollectionClusterRoleBinding contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest DeleteCollectionClusterRoleBinding contentType V1Status accept
deleteCollectionClusterRoleBinding :: ContentType contentType
-> Accept accept
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType V1Status accept
deleteCollectionClusterRoleBinding ContentType contentType
_  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings"]
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType V1Status 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 DeleteCollectionClusterRoleBinding 
instance HasBodyParam DeleteCollectionClusterRoleBinding V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteCollectionClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam DeleteCollectionClusterRoleBinding Continue where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> Continue
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (Continue Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /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 DeleteCollectionClusterRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam DeleteCollectionClusterRoleBinding FieldSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> FieldSelector
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteCollectionClusterRoleBinding GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam DeleteCollectionClusterRoleBinding LabelSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> LabelSelector
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam DeleteCollectionClusterRoleBinding Limit where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> Limit
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (Limit Int
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteCollectionClusterRoleBinding OrphanDependents where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> OrphanDependents
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteCollectionClusterRoleBinding PropagationPolicy where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> PropagationPolicy
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam DeleteCollectionClusterRoleBinding ResourceVersion where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> ResourceVersion
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam DeleteCollectionClusterRoleBinding TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteCollectionClusterRoleBinding mtype

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


-- *** deleteCollectionNamespacedRole

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles@
-- 
-- delete collection of Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteCollectionNamespacedRole 
  :: (Consumes DeleteCollectionNamespacedRole contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest DeleteCollectionNamespacedRole contentType V1Status accept
deleteCollectionNamespacedRole :: ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType V1Status accept
deleteCollectionNamespacedRole ContentType contentType
_  Accept accept
_ (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles"]
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType V1Status 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 DeleteCollectionNamespacedRole 
instance HasBodyParam DeleteCollectionNamespacedRole V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteCollectionNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam DeleteCollectionNamespacedRole Continue where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> Continue
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (Continue Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /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 DeleteCollectionNamespacedRole DryRun where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> DryRun
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam DeleteCollectionNamespacedRole FieldSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> FieldSelector
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteCollectionNamespacedRole GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam DeleteCollectionNamespacedRole LabelSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> LabelSelector
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam DeleteCollectionNamespacedRole Limit where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> Limit
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (Limit Int
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteCollectionNamespacedRole OrphanDependents where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> OrphanDependents
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteCollectionNamespacedRole PropagationPolicy where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> PropagationPolicy
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam DeleteCollectionNamespacedRole ResourceVersion where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> ResourceVersion
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam DeleteCollectionNamespacedRole TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteCollectionNamespacedRole mtype

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


-- *** deleteCollectionNamespacedRoleBinding

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings@
-- 
-- delete collection of RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteCollectionNamespacedRoleBinding 
  :: (Consumes DeleteCollectionNamespacedRoleBinding contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest DeleteCollectionNamespacedRoleBinding contentType V1Status accept
deleteCollectionNamespacedRoleBinding :: ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType V1Status accept
deleteCollectionNamespacedRoleBinding ContentType contentType
_  Accept accept
_ (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings"]
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType V1Status 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 DeleteCollectionNamespacedRoleBinding 
instance HasBodyParam DeleteCollectionNamespacedRoleBinding V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding Continue where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> Continue
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (Continue Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /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 DeleteCollectionNamespacedRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding FieldSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> FieldSelector
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding LabelSelector where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> LabelSelector
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding Limit where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> Limit
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (Limit Int
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding OrphanDependents where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> OrphanDependents
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding PropagationPolicy where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> PropagationPolicy
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding ResourceVersion where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> ResourceVersion
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam DeleteCollectionNamespacedRoleBinding TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteCollectionNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteCollectionNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteCollectionNamespacedRoleBinding mtype

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


-- *** deleteNamespacedRole

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles\/{name}@
-- 
-- delete a Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteNamespacedRole 
  :: (Consumes DeleteNamespacedRole contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the Role
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest DeleteNamespacedRole contentType V1Status accept
deleteNamespacedRole :: ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest
     DeleteNamespacedRole contentType V1Status accept
deleteNamespacedRole ContentType contentType
_  Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteNamespacedRole contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest DeleteNamespacedRole contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteNamespacedRole contentType V1Status 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 DeleteNamespacedRole 
instance HasBodyParam DeleteNamespacedRole V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest DeleteNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest DeleteNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest DeleteNamespacedRole contentType res accept
req KubernetesRequest DeleteNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedRole 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)

-- | /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 DeleteNamespacedRole DryRun where
  applyOptionalParam :: KubernetesRequest DeleteNamespacedRole contentType res accept
-> DryRun
-> KubernetesRequest DeleteNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest DeleteNamespacedRole contentType res accept
req KubernetesRequest DeleteNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedRole 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/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteNamespacedRole GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest DeleteNamespacedRole contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedRole contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest DeleteNamespacedRole contentType res accept
req KubernetesRequest DeleteNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteNamespacedRole OrphanDependents where
  applyOptionalParam :: KubernetesRequest DeleteNamespacedRole contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedRole contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest DeleteNamespacedRole contentType res accept
req KubernetesRequest DeleteNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteNamespacedRole PropagationPolicy where
  applyOptionalParam :: KubernetesRequest DeleteNamespacedRole contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedRole contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest DeleteNamespacedRole contentType res accept
req KubernetesRequest DeleteNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedRole 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteNamespacedRole mtype

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


-- *** deleteNamespacedRoleBinding

-- | @DELETE \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings\/{name}@
-- 
-- delete a RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
deleteNamespacedRoleBinding 
  :: (Consumes DeleteNamespacedRoleBinding contentType)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the RoleBinding
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest DeleteNamespacedRoleBinding contentType V1Status accept
deleteNamespacedRoleBinding :: ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType V1Status accept
deleteNamespacedRoleBinding ContentType contentType
_  Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  DeleteNamespacedRoleBinding contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType V1Status 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 DeleteNamespacedRoleBinding 
instance HasBodyParam DeleteNamespacedRoleBinding V1DeleteOptions 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam DeleteNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteNamespacedRoleBinding 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)

-- | /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 DeleteNamespacedRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteNamespacedRoleBinding 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/ "gracePeriodSeconds" - The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
instance HasOptionalParam DeleteNamespacedRoleBinding GracePeriodSeconds where
  applyOptionalParam :: KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req (GracePeriodSeconds Int
xs) =
    KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"gracePeriodSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "orphanDependents" - Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
instance HasOptionalParam DeleteNamespacedRoleBinding OrphanDependents where
  applyOptionalParam :: KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> OrphanDependents
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req (OrphanDependents Bool
xs) =
    KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"orphanDependents", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "propagationPolicy" - Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
instance HasOptionalParam DeleteNamespacedRoleBinding PropagationPolicy where
  applyOptionalParam :: KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> PropagationPolicy
-> KubernetesRequest
     DeleteNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req (PropagationPolicy Text
xs) =
    KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
req KubernetesRequest
  DeleteNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     DeleteNamespacedRoleBinding 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
"propagationPolicy", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
    
-- | @*/*@
instance MimeType mtype => Consumes DeleteNamespacedRoleBinding mtype

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


-- *** getAPIResources

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/@
-- 
-- get available resources
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
getAPIResources 
  :: Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest GetAPIResources MimeNoContent V1APIResourceList accept
getAPIResources :: 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/rbac.authorization.k8s.io/v1alpha1/"]
    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/yaml@
instance Produces GetAPIResources MimeYaml


-- *** listClusterRole

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles@
-- 
-- list or watch objects of kind ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
listClusterRole 
  :: Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest ListClusterRole MimeNoContent V1alpha1ClusterRoleList accept
listClusterRole :: Accept accept
-> KubernetesRequest
     ListClusterRole MimeNoContent V1alpha1ClusterRoleList accept
listClusterRole  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     ListClusterRole MimeNoContent V1alpha1ClusterRoleList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles"]
    KubernetesRequest
  ListClusterRole MimeNoContent V1alpha1ClusterRoleList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ListClusterRole MimeNoContent V1alpha1ClusterRoleList 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 ListClusterRole  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ListClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> Pretty
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole 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)

-- | /Optional Param/ "allowWatchBookmarks" - allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is beta.
instance HasOptionalParam ListClusterRole AllowWatchBookmarks where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (AllowWatchBookmarks Bool
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"allowWatchBookmarks", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam ListClusterRole Continue where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> Continue
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (Continue Text
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam ListClusterRole FieldSelector where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> FieldSelector
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam ListClusterRole LabelSelector where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> LabelSelector
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam ListClusterRole Limit where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> Limit
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (Limit Int
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam ListClusterRole ResourceVersion where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> ResourceVersion
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam ListClusterRole TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "watch" - Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
instance HasOptionalParam ListClusterRole Watch where
  applyOptionalParam :: KubernetesRequest ListClusterRole contentType res accept
-> Watch
-> KubernetesRequest ListClusterRole contentType res accept
applyOptionalParam KubernetesRequest ListClusterRole contentType res accept
req (Watch Bool
xs) =
    KubernetesRequest ListClusterRole contentType res accept
req KubernetesRequest ListClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"watch", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
-- | @application/json@
instance Produces ListClusterRole MimeJSON
-- | @application/json;stream=watch@
instance Produces ListClusterRole MimeJsonstreamwatch
-- | @application/vnd.kubernetes.protobuf@
instance Produces ListClusterRole MimeVndKubernetesProtobuf
-- | @application/vnd.kubernetes.protobuf;stream=watch@
instance Produces ListClusterRole MimeVndKubernetesProtobufstreamwatch
-- | @application/yaml@
instance Produces ListClusterRole MimeYaml


-- *** listClusterRoleBinding

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings@
-- 
-- list or watch objects of kind ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
listClusterRoleBinding 
  :: Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest ListClusterRoleBinding MimeNoContent V1alpha1ClusterRoleBindingList accept
listClusterRoleBinding :: Accept accept
-> KubernetesRequest
     ListClusterRoleBinding
     MimeNoContent
     V1alpha1ClusterRoleBindingList
     accept
listClusterRoleBinding  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     ListClusterRoleBinding
     MimeNoContent
     V1alpha1ClusterRoleBindingList
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings"]
    KubernetesRequest
  ListClusterRoleBinding
  MimeNoContent
  V1alpha1ClusterRoleBindingList
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ListClusterRoleBinding
     MimeNoContent
     V1alpha1ClusterRoleBindingList
     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 ListClusterRoleBinding  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ListClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding 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)

-- | /Optional Param/ "allowWatchBookmarks" - allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is beta.
instance HasOptionalParam ListClusterRoleBinding AllowWatchBookmarks where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (AllowWatchBookmarks Bool
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"allowWatchBookmarks", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam ListClusterRoleBinding Continue where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> Continue
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (Continue Text
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam ListClusterRoleBinding FieldSelector where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> FieldSelector
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam ListClusterRoleBinding LabelSelector where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> LabelSelector
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam ListClusterRoleBinding Limit where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> Limit
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (Limit Int
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam ListClusterRoleBinding ResourceVersion where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> ResourceVersion
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam ListClusterRoleBinding TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "watch" - Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
instance HasOptionalParam ListClusterRoleBinding Watch where
  applyOptionalParam :: KubernetesRequest ListClusterRoleBinding contentType res accept
-> Watch
-> KubernetesRequest ListClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListClusterRoleBinding contentType res accept
req (Watch Bool
xs) =
    KubernetesRequest ListClusterRoleBinding contentType res accept
req KubernetesRequest ListClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ListClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"watch", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
-- | @application/json@
instance Produces ListClusterRoleBinding MimeJSON
-- | @application/json;stream=watch@
instance Produces ListClusterRoleBinding MimeJsonstreamwatch
-- | @application/vnd.kubernetes.protobuf@
instance Produces ListClusterRoleBinding MimeVndKubernetesProtobuf
-- | @application/vnd.kubernetes.protobuf;stream=watch@
instance Produces ListClusterRoleBinding MimeVndKubernetesProtobufstreamwatch
-- | @application/yaml@
instance Produces ListClusterRoleBinding MimeYaml


-- *** listNamespacedRole

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles@
-- 
-- list or watch objects of kind Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
listNamespacedRole 
  :: Accept accept -- ^ request accept ('MimeType')
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest ListNamespacedRole MimeNoContent V1alpha1RoleList accept
listNamespacedRole :: Accept accept
-> Namespace
-> KubernetesRequest
     ListNamespacedRole MimeNoContent V1alpha1RoleList accept
listNamespacedRole  Accept accept
_ (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     ListNamespacedRole MimeNoContent V1alpha1RoleList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles"]
    KubernetesRequest
  ListNamespacedRole MimeNoContent V1alpha1RoleList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ListNamespacedRole MimeNoContent V1alpha1RoleList 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 ListNamespacedRole  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ListNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole 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)

-- | /Optional Param/ "allowWatchBookmarks" - allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is beta.
instance HasOptionalParam ListNamespacedRole AllowWatchBookmarks where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (AllowWatchBookmarks Bool
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"allowWatchBookmarks", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam ListNamespacedRole Continue where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> Continue
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (Continue Text
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam ListNamespacedRole FieldSelector where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> FieldSelector
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam ListNamespacedRole LabelSelector where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> LabelSelector
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam ListNamespacedRole Limit where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> Limit
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (Limit Int
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam ListNamespacedRole ResourceVersion where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> ResourceVersion
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam ListNamespacedRole TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "watch" - Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
instance HasOptionalParam ListNamespacedRole Watch where
  applyOptionalParam :: KubernetesRequest ListNamespacedRole contentType res accept
-> Watch
-> KubernetesRequest ListNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRole contentType res accept
req (Watch Bool
xs) =
    KubernetesRequest ListNamespacedRole contentType res accept
req KubernetesRequest ListNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"watch", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
-- | @application/json@
instance Produces ListNamespacedRole MimeJSON
-- | @application/json;stream=watch@
instance Produces ListNamespacedRole MimeJsonstreamwatch
-- | @application/vnd.kubernetes.protobuf@
instance Produces ListNamespacedRole MimeVndKubernetesProtobuf
-- | @application/vnd.kubernetes.protobuf;stream=watch@
instance Produces ListNamespacedRole MimeVndKubernetesProtobufstreamwatch
-- | @application/yaml@
instance Produces ListNamespacedRole MimeYaml


-- *** listNamespacedRoleBinding

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings@
-- 
-- list or watch objects of kind RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
listNamespacedRoleBinding 
  :: Accept accept -- ^ request accept ('MimeType')
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest ListNamespacedRoleBinding MimeNoContent V1alpha1RoleBindingList accept
listNamespacedRoleBinding :: Accept accept
-> Namespace
-> KubernetesRequest
     ListNamespacedRoleBinding
     MimeNoContent
     V1alpha1RoleBindingList
     accept
listNamespacedRoleBinding  Accept accept
_ (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     ListNamespacedRoleBinding
     MimeNoContent
     V1alpha1RoleBindingList
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings"]
    KubernetesRequest
  ListNamespacedRoleBinding
  MimeNoContent
  V1alpha1RoleBindingList
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ListNamespacedRoleBinding
     MimeNoContent
     V1alpha1RoleBindingList
     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 ListNamespacedRoleBinding  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ListNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding 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)

-- | /Optional Param/ "allowWatchBookmarks" - allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is beta.
instance HasOptionalParam ListNamespacedRoleBinding AllowWatchBookmarks where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (AllowWatchBookmarks Bool
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"allowWatchBookmarks", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam ListNamespacedRoleBinding Continue where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> Continue
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (Continue Text
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam ListNamespacedRoleBinding FieldSelector where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> FieldSelector
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam ListNamespacedRoleBinding LabelSelector where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> LabelSelector
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam ListNamespacedRoleBinding Limit where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> Limit
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (Limit Int
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam ListNamespacedRoleBinding ResourceVersion where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> ResourceVersion
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam ListNamespacedRoleBinding TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "watch" - Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
instance HasOptionalParam ListNamespacedRoleBinding Watch where
  applyOptionalParam :: KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> Watch
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedRoleBinding contentType res accept
req (Watch Bool
xs) =
    KubernetesRequest ListNamespacedRoleBinding contentType res accept
req KubernetesRequest ListNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"watch", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
-- | @application/json@
instance Produces ListNamespacedRoleBinding MimeJSON
-- | @application/json;stream=watch@
instance Produces ListNamespacedRoleBinding MimeJsonstreamwatch
-- | @application/vnd.kubernetes.protobuf@
instance Produces ListNamespacedRoleBinding MimeVndKubernetesProtobuf
-- | @application/vnd.kubernetes.protobuf;stream=watch@
instance Produces ListNamespacedRoleBinding MimeVndKubernetesProtobufstreamwatch
-- | @application/yaml@
instance Produces ListNamespacedRoleBinding MimeYaml


-- *** listRoleBindingForAllNamespaces

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/rolebindings@
-- 
-- list or watch objects of kind RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
listRoleBindingForAllNamespaces 
  :: Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest ListRoleBindingForAllNamespaces MimeNoContent V1alpha1RoleBindingList accept
listRoleBindingForAllNamespaces :: Accept accept
-> KubernetesRequest
     ListRoleBindingForAllNamespaces
     MimeNoContent
     V1alpha1RoleBindingList
     accept
listRoleBindingForAllNamespaces  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces
     MimeNoContent
     V1alpha1RoleBindingList
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings"]
    KubernetesRequest
  ListRoleBindingForAllNamespaces
  MimeNoContent
  V1alpha1RoleBindingList
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ListRoleBindingForAllNamespaces
     MimeNoContent
     V1alpha1RoleBindingList
     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 ListRoleBindingForAllNamespaces  

-- | /Optional Param/ "allowWatchBookmarks" - allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is beta.
instance HasOptionalParam ListRoleBindingForAllNamespaces AllowWatchBookmarks where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (AllowWatchBookmarks Bool
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"allowWatchBookmarks", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam ListRoleBindingForAllNamespaces Continue where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> Continue
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (Continue Text
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam ListRoleBindingForAllNamespaces FieldSelector where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> FieldSelector
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam ListRoleBindingForAllNamespaces LabelSelector where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> LabelSelector
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam ListRoleBindingForAllNamespaces Limit where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> Limit
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (Limit Int
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ListRoleBindingForAllNamespaces Pretty where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> Pretty
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces 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)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam ListRoleBindingForAllNamespaces ResourceVersion where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> ResourceVersion
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam ListRoleBindingForAllNamespaces TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "watch" - Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
instance HasOptionalParam ListRoleBindingForAllNamespaces Watch where
  applyOptionalParam :: KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> Watch
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req (Watch Bool
xs) =
    KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
req KubernetesRequest
  ListRoleBindingForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleBindingForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"watch", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
-- | @application/json@
instance Produces ListRoleBindingForAllNamespaces MimeJSON
-- | @application/json;stream=watch@
instance Produces ListRoleBindingForAllNamespaces MimeJsonstreamwatch
-- | @application/vnd.kubernetes.protobuf@
instance Produces ListRoleBindingForAllNamespaces MimeVndKubernetesProtobuf
-- | @application/vnd.kubernetes.protobuf;stream=watch@
instance Produces ListRoleBindingForAllNamespaces MimeVndKubernetesProtobufstreamwatch
-- | @application/yaml@
instance Produces ListRoleBindingForAllNamespaces MimeYaml


-- *** listRoleForAllNamespaces

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/roles@
-- 
-- list or watch objects of kind Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
listRoleForAllNamespaces 
  :: Accept accept -- ^ request accept ('MimeType')
  -> KubernetesRequest ListRoleForAllNamespaces MimeNoContent V1alpha1RoleList accept
listRoleForAllNamespaces :: Accept accept
-> KubernetesRequest
     ListRoleForAllNamespaces MimeNoContent V1alpha1RoleList accept
listRoleForAllNamespaces  Accept accept
_ =
  Method
-> [ByteString]
-> KubernetesRequest
     ListRoleForAllNamespaces MimeNoContent V1alpha1RoleList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/roles"]
    KubernetesRequest
  ListRoleForAllNamespaces MimeNoContent V1alpha1RoleList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ListRoleForAllNamespaces MimeNoContent V1alpha1RoleList 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 ListRoleForAllNamespaces  

-- | /Optional Param/ "allowWatchBookmarks" - allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.  This field is beta.
instance HasOptionalParam ListRoleForAllNamespaces AllowWatchBookmarks where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (AllowWatchBookmarks Bool
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"allowWatchBookmarks", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | /Optional Param/ "continue" - The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".  This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
instance HasOptionalParam ListRoleForAllNamespaces Continue where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> Continue
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (Continue Text
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces 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
"continue", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "fieldSelector" - A selector to restrict the list of returned objects by their fields. Defaults to everything.
instance HasOptionalParam ListRoleForAllNamespaces FieldSelector where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> FieldSelector
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (FieldSelector Text
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces 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
"fieldSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "labelSelector" - A selector to restrict the list of returned objects by their labels. Defaults to everything.
instance HasOptionalParam ListRoleForAllNamespaces LabelSelector where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> LabelSelector
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (LabelSelector Text
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces 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
"labelSelector", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "limit" - limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.  The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
instance HasOptionalParam ListRoleForAllNamespaces Limit where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> Limit
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (Limit Int
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"limit", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ListRoleForAllNamespaces Pretty where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> Pretty
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces 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)

-- | /Optional Param/ "resourceVersion" - When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
instance HasOptionalParam ListRoleForAllNamespaces ResourceVersion where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> ResourceVersion
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (ResourceVersion Text
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces 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
"resourceVersion", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)

-- | /Optional Param/ "timeoutSeconds" - Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
instance HasOptionalParam ListRoleForAllNamespaces TimeoutSeconds where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (TimeoutSeconds Int
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Int) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"timeoutSeconds", Int -> Maybe Int
forall a. a -> Maybe a
Just Int
xs)

-- | /Optional Param/ "watch" - Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
instance HasOptionalParam ListRoleForAllNamespaces Watch where
  applyOptionalParam :: KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> Watch
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListRoleForAllNamespaces contentType res accept
req (Watch Bool
xs) =
    KubernetesRequest ListRoleForAllNamespaces contentType res accept
req KubernetesRequest ListRoleForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ListRoleForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"watch", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
-- | @application/json@
instance Produces ListRoleForAllNamespaces MimeJSON
-- | @application/json;stream=watch@
instance Produces ListRoleForAllNamespaces MimeJsonstreamwatch
-- | @application/vnd.kubernetes.protobuf@
instance Produces ListRoleForAllNamespaces MimeVndKubernetesProtobuf
-- | @application/vnd.kubernetes.protobuf;stream=watch@
instance Produces ListRoleForAllNamespaces MimeVndKubernetesProtobufstreamwatch
-- | @application/yaml@
instance Produces ListRoleForAllNamespaces MimeYaml


-- *** patchClusterRole

-- | @PATCH \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles\/{name}@
-- 
-- partially update the specified ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
patchClusterRole 
  :: (Consumes PatchClusterRole contentType, MimeRender contentType Body)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Body -- ^ "body"
  -> Name -- ^ "name" -  name of the ClusterRole
  -> KubernetesRequest PatchClusterRole contentType V1alpha1ClusterRole accept
patchClusterRole :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest
     PatchClusterRole contentType V1alpha1ClusterRole accept
patchClusterRole ContentType contentType
_  Accept accept
_ Body
body (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     PatchClusterRole contentType V1alpha1ClusterRole accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  PatchClusterRole contentType V1alpha1ClusterRole accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     PatchClusterRole contentType V1alpha1ClusterRole 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
  PatchClusterRole contentType V1alpha1ClusterRole accept
-> Body
-> KubernetesRequest
     PatchClusterRole contentType V1alpha1ClusterRole 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
`setBodyParam` Body
body

data PatchClusterRole 
instance HasBodyParam PatchClusterRole Body 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam PatchClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest PatchClusterRole contentType res accept
-> Pretty
-> KubernetesRequest PatchClusterRole contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest PatchClusterRole contentType res accept
req KubernetesRequest PatchClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRole 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)

-- | /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 PatchClusterRole DryRun where
  applyOptionalParam :: KubernetesRequest PatchClusterRole contentType res accept
-> DryRun
-> KubernetesRequest PatchClusterRole contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest PatchClusterRole contentType res accept
req KubernetesRequest PatchClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRole 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
instance HasOptionalParam PatchClusterRole FieldManager where
  applyOptionalParam :: KubernetesRequest PatchClusterRole contentType res accept
-> FieldManager
-> KubernetesRequest PatchClusterRole contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRole contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest PatchClusterRole contentType res accept
req KubernetesRequest PatchClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRole 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/ "force" - Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
instance HasOptionalParam PatchClusterRole Force where
  applyOptionalParam :: KubernetesRequest PatchClusterRole contentType res accept
-> Force
-> KubernetesRequest PatchClusterRole contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRole contentType res accept
req (Force Bool
xs) =
    KubernetesRequest PatchClusterRole contentType res accept
req KubernetesRequest PatchClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"force", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | @application/apply-patch+yaml@
instance Consumes PatchClusterRole MimeApplyPatchyaml
-- | @application/json-patch+json@
instance Consumes PatchClusterRole MimeJsonPatchjson
-- | @application/merge-patch+json@
instance Consumes PatchClusterRole MimeMergePatchjson
-- | @application/strategic-merge-patch+json@
instance Consumes PatchClusterRole MimeStrategicMergePatchjson

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


-- *** patchClusterRoleBinding

-- | @PATCH \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings\/{name}@
-- 
-- partially update the specified ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
patchClusterRoleBinding 
  :: (Consumes PatchClusterRoleBinding contentType, MimeRender contentType Body)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Body -- ^ "body"
  -> Name -- ^ "name" -  name of the ClusterRoleBinding
  -> KubernetesRequest PatchClusterRoleBinding contentType V1alpha1ClusterRoleBinding accept
patchClusterRoleBinding :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest
     PatchClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     accept
patchClusterRoleBinding ContentType contentType
_  Accept accept
_ Body
body (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     PatchClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  PatchClusterRoleBinding
  contentType
  V1alpha1ClusterRoleBinding
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     PatchClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     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
  PatchClusterRoleBinding
  contentType
  V1alpha1ClusterRoleBinding
  accept
-> Body
-> KubernetesRequest
     PatchClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     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
`setBodyParam` Body
body

data PatchClusterRoleBinding 
instance HasBodyParam PatchClusterRoleBinding Body 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam PatchClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest PatchClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest PatchClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest PatchClusterRoleBinding contentType res accept
req KubernetesRequest PatchClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRoleBinding 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)

-- | /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 PatchClusterRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest PatchClusterRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest PatchClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest PatchClusterRoleBinding contentType res accept
req KubernetesRequest PatchClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRoleBinding 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
instance HasOptionalParam PatchClusterRoleBinding FieldManager where
  applyOptionalParam :: KubernetesRequest PatchClusterRoleBinding contentType res accept
-> FieldManager
-> KubernetesRequest PatchClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRoleBinding contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest PatchClusterRoleBinding contentType res accept
req KubernetesRequest PatchClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRoleBinding 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/ "force" - Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
instance HasOptionalParam PatchClusterRoleBinding Force where
  applyOptionalParam :: KubernetesRequest PatchClusterRoleBinding contentType res accept
-> Force
-> KubernetesRequest PatchClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchClusterRoleBinding contentType res accept
req (Force Bool
xs) =
    KubernetesRequest PatchClusterRoleBinding contentType res accept
req KubernetesRequest PatchClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchClusterRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"force", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | @application/apply-patch+yaml@
instance Consumes PatchClusterRoleBinding MimeApplyPatchyaml
-- | @application/json-patch+json@
instance Consumes PatchClusterRoleBinding MimeJsonPatchjson
-- | @application/merge-patch+json@
instance Consumes PatchClusterRoleBinding MimeMergePatchjson
-- | @application/strategic-merge-patch+json@
instance Consumes PatchClusterRoleBinding MimeStrategicMergePatchjson

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


-- *** patchNamespacedRole

-- | @PATCH \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles\/{name}@
-- 
-- partially update the specified Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
patchNamespacedRole 
  :: (Consumes PatchNamespacedRole contentType, MimeRender contentType Body)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Body -- ^ "body"
  -> Name -- ^ "name" -  name of the Role
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest PatchNamespacedRole contentType V1alpha1Role accept
patchNamespacedRole :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest
     PatchNamespacedRole contentType V1alpha1Role accept
patchNamespacedRole ContentType contentType
_  Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     PatchNamespacedRole contentType V1alpha1Role accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  PatchNamespacedRole contentType V1alpha1Role accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     PatchNamespacedRole contentType V1alpha1Role 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
  PatchNamespacedRole contentType V1alpha1Role accept
-> Body
-> KubernetesRequest
     PatchNamespacedRole contentType V1alpha1Role 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
`setBodyParam` Body
body

data PatchNamespacedRole 
instance HasBodyParam PatchNamespacedRole Body 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam PatchNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest PatchNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest PatchNamespacedRole contentType res accept
req KubernetesRequest PatchNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedRole 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)

-- | /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 PatchNamespacedRole DryRun where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRole contentType res accept
-> DryRun
-> KubernetesRequest PatchNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest PatchNamespacedRole contentType res accept
req KubernetesRequest PatchNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedRole 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
instance HasOptionalParam PatchNamespacedRole FieldManager where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRole contentType res accept
-> FieldManager
-> KubernetesRequest PatchNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRole contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest PatchNamespacedRole contentType res accept
req KubernetesRequest PatchNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedRole 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/ "force" - Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
instance HasOptionalParam PatchNamespacedRole Force where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRole contentType res accept
-> Force
-> KubernetesRequest PatchNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRole contentType res accept
req (Force Bool
xs) =
    KubernetesRequest PatchNamespacedRole contentType res accept
req KubernetesRequest PatchNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedRole contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"force", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | @application/apply-patch+yaml@
instance Consumes PatchNamespacedRole MimeApplyPatchyaml
-- | @application/json-patch+json@
instance Consumes PatchNamespacedRole MimeJsonPatchjson
-- | @application/merge-patch+json@
instance Consumes PatchNamespacedRole MimeMergePatchjson
-- | @application/strategic-merge-patch+json@
instance Consumes PatchNamespacedRole MimeStrategicMergePatchjson

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


-- *** patchNamespacedRoleBinding

-- | @PATCH \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings\/{name}@
-- 
-- partially update the specified RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
patchNamespacedRoleBinding 
  :: (Consumes PatchNamespacedRoleBinding contentType, MimeRender contentType Body)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> Body -- ^ "body"
  -> Name -- ^ "name" -  name of the RoleBinding
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest PatchNamespacedRoleBinding contentType V1alpha1RoleBinding accept
patchNamespacedRoleBinding :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType V1alpha1RoleBinding accept
patchNamespacedRoleBinding ContentType contentType
_  Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType V1alpha1RoleBinding accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  PatchNamespacedRoleBinding contentType V1alpha1RoleBinding accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType V1alpha1RoleBinding 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
  PatchNamespacedRoleBinding contentType V1alpha1RoleBinding accept
-> Body
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType V1alpha1RoleBinding 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
`setBodyParam` Body
body

data PatchNamespacedRoleBinding 
instance HasBodyParam PatchNamespacedRoleBinding Body 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam PatchNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     PatchNamespacedRoleBinding 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)

-- | /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 PatchNamespacedRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     PatchNamespacedRoleBinding 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. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
instance HasOptionalParam PatchNamespacedRoleBinding FieldManager where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> FieldManager
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     PatchNamespacedRoleBinding 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/ "force" - Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
instance HasOptionalParam PatchNamespacedRoleBinding Force where
  applyOptionalParam :: KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> Force
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req (Force Bool
xs) =
    KubernetesRequest PatchNamespacedRoleBinding contentType res accept
req KubernetesRequest PatchNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     PatchNamespacedRoleBinding contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Bool) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"force", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)

-- | @application/apply-patch+yaml@
instance Consumes PatchNamespacedRoleBinding MimeApplyPatchyaml
-- | @application/json-patch+json@
instance Consumes PatchNamespacedRoleBinding MimeJsonPatchjson
-- | @application/merge-patch+json@
instance Consumes PatchNamespacedRoleBinding MimeMergePatchjson
-- | @application/strategic-merge-patch+json@
instance Consumes PatchNamespacedRoleBinding MimeStrategicMergePatchjson

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


-- *** readClusterRole

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles\/{name}@
-- 
-- read the specified ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
readClusterRole 
  :: Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the ClusterRole
  -> KubernetesRequest ReadClusterRole MimeNoContent V1alpha1ClusterRole accept
readClusterRole :: Accept accept
-> Name
-> KubernetesRequest
     ReadClusterRole MimeNoContent V1alpha1ClusterRole accept
readClusterRole  Accept accept
_ (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReadClusterRole MimeNoContent V1alpha1ClusterRole accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReadClusterRole MimeNoContent V1alpha1ClusterRole accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReadClusterRole MimeNoContent V1alpha1ClusterRole 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 ReadClusterRole  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReadClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest ReadClusterRole contentType res accept
-> Pretty
-> KubernetesRequest ReadClusterRole contentType res accept
applyOptionalParam KubernetesRequest ReadClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReadClusterRole contentType res accept
req KubernetesRequest ReadClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadClusterRole 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)
-- | @application/json@
instance Produces ReadClusterRole MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces ReadClusterRole MimeVndKubernetesProtobuf
-- | @application/yaml@
instance Produces ReadClusterRole MimeYaml


-- *** readClusterRoleBinding

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings\/{name}@
-- 
-- read the specified ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
readClusterRoleBinding 
  :: Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the ClusterRoleBinding
  -> KubernetesRequest ReadClusterRoleBinding MimeNoContent V1alpha1ClusterRoleBinding accept
readClusterRoleBinding :: Accept accept
-> Name
-> KubernetesRequest
     ReadClusterRoleBinding
     MimeNoContent
     V1alpha1ClusterRoleBinding
     accept
readClusterRoleBinding  Accept accept
_ (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReadClusterRoleBinding
     MimeNoContent
     V1alpha1ClusterRoleBinding
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReadClusterRoleBinding
  MimeNoContent
  V1alpha1ClusterRoleBinding
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReadClusterRoleBinding
     MimeNoContent
     V1alpha1ClusterRoleBinding
     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 ReadClusterRoleBinding  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReadClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest ReadClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest ReadClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ReadClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReadClusterRoleBinding contentType res accept
req KubernetesRequest ReadClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadClusterRoleBinding 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)
-- | @application/json@
instance Produces ReadClusterRoleBinding MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces ReadClusterRoleBinding MimeVndKubernetesProtobuf
-- | @application/yaml@
instance Produces ReadClusterRoleBinding MimeYaml


-- *** readNamespacedRole

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles\/{name}@
-- 
-- read the specified Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
readNamespacedRole 
  :: Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the Role
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest ReadNamespacedRole MimeNoContent V1alpha1Role accept
readNamespacedRole :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest
     ReadNamespacedRole MimeNoContent V1alpha1Role accept
readNamespacedRole  Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReadNamespacedRole MimeNoContent V1alpha1Role accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReadNamespacedRole MimeNoContent V1alpha1Role accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReadNamespacedRole MimeNoContent V1alpha1Role 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 ReadNamespacedRole  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReadNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest ReadNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest ReadNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReadNamespacedRole contentType res accept
req KubernetesRequest ReadNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedRole 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)
-- | @application/json@
instance Produces ReadNamespacedRole MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces ReadNamespacedRole MimeVndKubernetesProtobuf
-- | @application/yaml@
instance Produces ReadNamespacedRole MimeYaml


-- *** readNamespacedRoleBinding

-- | @GET \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings\/{name}@
-- 
-- read the specified RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
readNamespacedRoleBinding 
  :: Accept accept -- ^ request accept ('MimeType')
  -> Name -- ^ "name" -  name of the RoleBinding
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest ReadNamespacedRoleBinding MimeNoContent V1alpha1RoleBinding accept
readNamespacedRoleBinding :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest
     ReadNamespacedRoleBinding MimeNoContent V1alpha1RoleBinding accept
readNamespacedRoleBinding  Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReadNamespacedRoleBinding MimeNoContent V1alpha1RoleBinding accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReadNamespacedRoleBinding MimeNoContent V1alpha1RoleBinding accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReadNamespacedRoleBinding MimeNoContent V1alpha1RoleBinding 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 ReadNamespacedRoleBinding  

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReadNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest ReadNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     ReadNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReadNamespacedRoleBinding contentType res accept
req KubernetesRequest ReadNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReadNamespacedRoleBinding 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)
-- | @application/json@
instance Produces ReadNamespacedRoleBinding MimeJSON
-- | @application/vnd.kubernetes.protobuf@
instance Produces ReadNamespacedRoleBinding MimeVndKubernetesProtobuf
-- | @application/yaml@
instance Produces ReadNamespacedRoleBinding MimeYaml


-- *** replaceClusterRole

-- | @PUT \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterroles\/{name}@
-- 
-- replace the specified ClusterRole
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
replaceClusterRole 
  :: (Consumes ReplaceClusterRole contentType, MimeRender contentType V1alpha1ClusterRole)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1ClusterRole -- ^ "body"
  -> Name -- ^ "name" -  name of the ClusterRole
  -> KubernetesRequest ReplaceClusterRole contentType V1alpha1ClusterRole accept
replaceClusterRole :: ContentType contentType
-> Accept accept
-> V1alpha1ClusterRole
-> Name
-> KubernetesRequest
     ReplaceClusterRole contentType V1alpha1ClusterRole accept
replaceClusterRole ContentType contentType
_  Accept accept
_ V1alpha1ClusterRole
body (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReplaceClusterRole contentType V1alpha1ClusterRole accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReplaceClusterRole contentType V1alpha1ClusterRole accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReplaceClusterRole contentType V1alpha1ClusterRole 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
  ReplaceClusterRole contentType V1alpha1ClusterRole accept
-> V1alpha1ClusterRole
-> KubernetesRequest
     ReplaceClusterRole contentType V1alpha1ClusterRole 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
`setBodyParam` V1alpha1ClusterRole
body

data ReplaceClusterRole 
instance HasBodyParam ReplaceClusterRole V1alpha1ClusterRole 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReplaceClusterRole Pretty where
  applyOptionalParam :: KubernetesRequest ReplaceClusterRole contentType res accept
-> Pretty
-> KubernetesRequest ReplaceClusterRole contentType res accept
applyOptionalParam KubernetesRequest ReplaceClusterRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReplaceClusterRole contentType res accept
req KubernetesRequest ReplaceClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceClusterRole 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)

-- | /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 ReplaceClusterRole DryRun where
  applyOptionalParam :: KubernetesRequest ReplaceClusterRole contentType res accept
-> DryRun
-> KubernetesRequest ReplaceClusterRole contentType res accept
applyOptionalParam KubernetesRequest ReplaceClusterRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest ReplaceClusterRole contentType res accept
req KubernetesRequest ReplaceClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceClusterRole 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 ReplaceClusterRole FieldManager where
  applyOptionalParam :: KubernetesRequest ReplaceClusterRole contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceClusterRole contentType res accept
applyOptionalParam KubernetesRequest ReplaceClusterRole contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest ReplaceClusterRole contentType res accept
req KubernetesRequest ReplaceClusterRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceClusterRole 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)
    
-- | @*/*@
instance MimeType mtype => Consumes ReplaceClusterRole mtype

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


-- *** replaceClusterRoleBinding

-- | @PUT \/apis\/rbac.authorization.k8s.io\/v1alpha1\/clusterrolebindings\/{name}@
-- 
-- replace the specified ClusterRoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
replaceClusterRoleBinding 
  :: (Consumes ReplaceClusterRoleBinding contentType, MimeRender contentType V1alpha1ClusterRoleBinding)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1ClusterRoleBinding -- ^ "body"
  -> Name -- ^ "name" -  name of the ClusterRoleBinding
  -> KubernetesRequest ReplaceClusterRoleBinding contentType V1alpha1ClusterRoleBinding accept
replaceClusterRoleBinding :: ContentType contentType
-> Accept accept
-> V1alpha1ClusterRoleBinding
-> Name
-> KubernetesRequest
     ReplaceClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     accept
replaceClusterRoleBinding ContentType contentType
_  Accept accept
_ V1alpha1ClusterRoleBinding
body (Name Text
name) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReplaceClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReplaceClusterRoleBinding
  contentType
  V1alpha1ClusterRoleBinding
  accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReplaceClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     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
  ReplaceClusterRoleBinding
  contentType
  V1alpha1ClusterRoleBinding
  accept
-> V1alpha1ClusterRoleBinding
-> KubernetesRequest
     ReplaceClusterRoleBinding
     contentType
     V1alpha1ClusterRoleBinding
     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
`setBodyParam` V1alpha1ClusterRoleBinding
body

data ReplaceClusterRoleBinding 
instance HasBodyParam ReplaceClusterRoleBinding V1alpha1ClusterRoleBinding 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReplaceClusterRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest ReplaceClusterRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     ReplaceClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ReplaceClusterRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReplaceClusterRoleBinding contentType res accept
req KubernetesRequest ReplaceClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReplaceClusterRoleBinding 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)

-- | /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 ReplaceClusterRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest ReplaceClusterRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     ReplaceClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ReplaceClusterRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest ReplaceClusterRoleBinding contentType res accept
req KubernetesRequest ReplaceClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReplaceClusterRoleBinding 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 ReplaceClusterRoleBinding FieldManager where
  applyOptionalParam :: KubernetesRequest ReplaceClusterRoleBinding contentType res accept
-> FieldManager
-> KubernetesRequest
     ReplaceClusterRoleBinding contentType res accept
applyOptionalParam KubernetesRequest ReplaceClusterRoleBinding contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest ReplaceClusterRoleBinding contentType res accept
req KubernetesRequest ReplaceClusterRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReplaceClusterRoleBinding 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)
    
-- | @*/*@
instance MimeType mtype => Consumes ReplaceClusterRoleBinding mtype

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


-- *** replaceNamespacedRole

-- | @PUT \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/roles\/{name}@
-- 
-- replace the specified Role
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
replaceNamespacedRole 
  :: (Consumes ReplaceNamespacedRole contentType, MimeRender contentType V1alpha1Role)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1Role -- ^ "body"
  -> Name -- ^ "name" -  name of the Role
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest ReplaceNamespacedRole contentType V1alpha1Role accept
replaceNamespacedRole :: ContentType contentType
-> Accept accept
-> V1alpha1Role
-> Name
-> Namespace
-> KubernetesRequest
     ReplaceNamespacedRole contentType V1alpha1Role accept
replaceNamespacedRole ContentType contentType
_  Accept accept
_ V1alpha1Role
body (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReplaceNamespacedRole contentType V1alpha1Role accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/roles/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReplaceNamespacedRole contentType V1alpha1Role accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReplaceNamespacedRole contentType V1alpha1Role 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
  ReplaceNamespacedRole contentType V1alpha1Role accept
-> V1alpha1Role
-> KubernetesRequest
     ReplaceNamespacedRole contentType V1alpha1Role 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
`setBodyParam` V1alpha1Role
body

data ReplaceNamespacedRole 
instance HasBodyParam ReplaceNamespacedRole V1alpha1Role 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReplaceNamespacedRole Pretty where
  applyOptionalParam :: KubernetesRequest ReplaceNamespacedRole contentType res accept
-> Pretty
-> KubernetesRequest ReplaceNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedRole contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest ReplaceNamespacedRole contentType res accept
req KubernetesRequest ReplaceNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedRole 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)

-- | /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 ReplaceNamespacedRole DryRun where
  applyOptionalParam :: KubernetesRequest ReplaceNamespacedRole contentType res accept
-> DryRun
-> KubernetesRequest ReplaceNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedRole contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest ReplaceNamespacedRole contentType res accept
req KubernetesRequest ReplaceNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedRole 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 ReplaceNamespacedRole FieldManager where
  applyOptionalParam :: KubernetesRequest ReplaceNamespacedRole contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceNamespacedRole contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedRole contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest ReplaceNamespacedRole contentType res accept
req KubernetesRequest ReplaceNamespacedRole contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedRole 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)
    
-- | @*/*@
instance MimeType mtype => Consumes ReplaceNamespacedRole mtype

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


-- *** replaceNamespacedRoleBinding

-- | @PUT \/apis\/rbac.authorization.k8s.io\/v1alpha1\/namespaces\/{namespace}\/rolebindings\/{name}@
-- 
-- replace the specified RoleBinding
-- 
-- AuthMethod: 'AuthApiKeyBearerToken'
-- 
replaceNamespacedRoleBinding 
  :: (Consumes ReplaceNamespacedRoleBinding contentType, MimeRender contentType V1alpha1RoleBinding)
  => ContentType contentType -- ^ request content-type ('MimeType')
  -> Accept accept -- ^ request accept ('MimeType')
  -> V1alpha1RoleBinding -- ^ "body"
  -> Name -- ^ "name" -  name of the RoleBinding
  -> Namespace -- ^ "namespace" -  object name and auth scope, such as for teams and projects
  -> KubernetesRequest ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding accept
replaceNamespacedRoleBinding :: ContentType contentType
-> Accept accept
-> V1alpha1RoleBinding
-> Name
-> Namespace
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding accept
replaceNamespacedRoleBinding ContentType contentType
_  Accept accept
_ V1alpha1RoleBinding
body (Name Text
name) (Namespace Text
namespace) =
  Method
-> [ByteString]
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/rolebindings/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
    KubernetesRequest
  ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding 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
  ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding accept
-> V1alpha1RoleBinding
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType V1alpha1RoleBinding 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
`setBodyParam` V1alpha1RoleBinding
body

data ReplaceNamespacedRoleBinding 
instance HasBodyParam ReplaceNamespacedRoleBinding V1alpha1RoleBinding 

-- | /Optional Param/ "pretty" - If 'true', then the output is pretty printed.
instance HasOptionalParam ReplaceNamespacedRoleBinding Pretty where
  applyOptionalParam :: KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
-> Pretty
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
req (Pretty Text
xs) =
    KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
req KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReplaceNamespacedRoleBinding 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)

-- | /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 ReplaceNamespacedRoleBinding DryRun where
  applyOptionalParam :: KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
-> DryRun
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
req (DryRun Text
xs) =
    KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
req KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReplaceNamespacedRoleBinding 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 ReplaceNamespacedRoleBinding FieldManager where
  applyOptionalParam :: KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
-> FieldManager
-> KubernetesRequest
     ReplaceNamespacedRoleBinding contentType res accept
applyOptionalParam KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
req (FieldManager Text
xs) =
    KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
req KubernetesRequest
  ReplaceNamespacedRoleBinding contentType res accept
-> [QueryItem]
-> KubernetesRequest
     ReplaceNamespacedRoleBinding 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)
    
-- | @*/*@
instance MimeType mtype => Consumes ReplaceNamespacedRoleBinding mtype

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