{-# 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.EventsV1beta1 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
createNamespacedEvent
:: (Consumes CreateNamespacedEvent contentType, MimeRender contentType V1beta1Event)
=> ContentType contentType
-> Accept accept
-> V1beta1Event
-> Namespace
-> KubernetesRequest CreateNamespacedEvent contentType V1beta1Event accept
createNamespacedEvent :: ContentType contentType
-> Accept accept
-> V1beta1Event
-> Namespace
-> KubernetesRequest
CreateNamespacedEvent contentType V1beta1Event accept
createNamespacedEvent ContentType contentType
_ Accept accept
_ V1beta1Event
body (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
CreateNamespacedEvent contentType V1beta1Event accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events"]
KubernetesRequest
CreateNamespacedEvent contentType V1beta1Event accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
CreateNamespacedEvent contentType V1beta1Event 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
CreateNamespacedEvent contentType V1beta1Event accept
-> V1beta1Event
-> KubernetesRequest
CreateNamespacedEvent contentType V1beta1Event 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` V1beta1Event
body
data CreateNamespacedEvent
instance HasBodyParam CreateNamespacedEvent V1beta1Event
instance HasOptionalParam CreateNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest CreateNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest CreateNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest CreateNamespacedEvent contentType res accept
req KubernetesRequest CreateNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam CreateNamespacedEvent DryRun where
applyOptionalParam :: KubernetesRequest CreateNamespacedEvent contentType res accept
-> DryRun
-> KubernetesRequest CreateNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedEvent contentType res accept
req (DryRun Text
xs) =
KubernetesRequest CreateNamespacedEvent contentType res accept
req KubernetesRequest CreateNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedEvent 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)
instance HasOptionalParam CreateNamespacedEvent FieldManager where
applyOptionalParam :: KubernetesRequest CreateNamespacedEvent contentType res accept
-> FieldManager
-> KubernetesRequest CreateNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedEvent contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest CreateNamespacedEvent contentType res accept
req KubernetesRequest CreateNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedEvent 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 CreateNamespacedEvent mtype
instance Produces CreateNamespacedEvent MimeJSON
instance Produces CreateNamespacedEvent MimeVndKubernetesProtobuf
instance Produces CreateNamespacedEvent MimeYaml
deleteCollectionNamespacedEvent
:: (Consumes DeleteCollectionNamespacedEvent contentType)
=> ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest DeleteCollectionNamespacedEvent contentType V1Status accept
deleteCollectionNamespacedEvent :: ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType V1Status accept
deleteCollectionNamespacedEvent ContentType contentType
_ Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events"]
KubernetesRequest
DeleteCollectionNamespacedEvent contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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 DeleteCollectionNamespacedEvent
instance HasBodyParam DeleteCollectionNamespacedEvent V1DeleteOptions
instance HasOptionalParam DeleteCollectionNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam DeleteCollectionNamespacedEvent Continue where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (Continue Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent DryRun where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent FieldSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent LabelSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent Limit where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (Limit Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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 HasOptionalParam DeleteCollectionNamespacedEvent ResourceVersion where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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)
instance HasOptionalParam DeleteCollectionNamespacedEvent TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEvent 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 DeleteCollectionNamespacedEvent mtype
instance Produces DeleteCollectionNamespacedEvent MimeJSON
instance Produces DeleteCollectionNamespacedEvent MimeVndKubernetesProtobuf
instance Produces DeleteCollectionNamespacedEvent MimeYaml
deleteNamespacedEvent
:: (Consumes DeleteNamespacedEvent contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest DeleteNamespacedEvent contentType V1Status accept
deleteNamespacedEvent :: ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest
DeleteNamespacedEvent contentType V1Status accept
deleteNamespacedEvent ContentType contentType
_ Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteNamespacedEvent contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest DeleteNamespacedEvent contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteNamespacedEvent 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 DeleteNamespacedEvent
instance HasBodyParam DeleteNamespacedEvent V1DeleteOptions
instance HasOptionalParam DeleteNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest DeleteNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest DeleteNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteNamespacedEvent contentType res accept
req KubernetesRequest DeleteNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam DeleteNamespacedEvent DryRun where
applyOptionalParam :: KubernetesRequest DeleteNamespacedEvent contentType res accept
-> DryRun
-> KubernetesRequest DeleteNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedEvent contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteNamespacedEvent contentType res accept
req KubernetesRequest DeleteNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedEvent 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)
instance HasOptionalParam DeleteNamespacedEvent GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteNamespacedEvent contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedEvent contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteNamespacedEvent contentType res accept
req KubernetesRequest DeleteNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedEvent 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)
instance HasOptionalParam DeleteNamespacedEvent OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteNamespacedEvent contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedEvent contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteNamespacedEvent contentType res accept
req KubernetesRequest DeleteNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedEvent 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)
instance HasOptionalParam DeleteNamespacedEvent PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteNamespacedEvent contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedEvent contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteNamespacedEvent contentType res accept
req KubernetesRequest DeleteNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedEvent 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 DeleteNamespacedEvent mtype
instance Produces DeleteNamespacedEvent MimeJSON
instance Produces DeleteNamespacedEvent MimeVndKubernetesProtobuf
instance Produces DeleteNamespacedEvent MimeYaml
getAPIResources
:: Accept accept
-> 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/events.k8s.io/v1beta1/"]
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
instance Produces GetAPIResources MimeJSON
instance Produces GetAPIResources MimeVndKubernetesProtobuf
instance Produces GetAPIResources MimeYaml
listEventForAllNamespaces
:: Accept accept
-> KubernetesRequest ListEventForAllNamespaces MimeNoContent V1beta1EventList accept
listEventForAllNamespaces :: Accept accept
-> KubernetesRequest
ListEventForAllNamespaces MimeNoContent V1beta1EventList accept
listEventForAllNamespaces Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListEventForAllNamespaces MimeNoContent V1beta1EventList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/events.k8s.io/v1beta1/events"]
KubernetesRequest
ListEventForAllNamespaces MimeNoContent V1beta1EventList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListEventForAllNamespaces MimeNoContent V1beta1EventList 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 ListEventForAllNamespaces
instance HasOptionalParam ListEventForAllNamespaces AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance HasOptionalParam ListEventForAllNamespaces Continue where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> Continue
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance HasOptionalParam ListEventForAllNamespaces FieldSelector where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> FieldSelector
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance HasOptionalParam ListEventForAllNamespaces LabelSelector where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> LabelSelector
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance HasOptionalParam ListEventForAllNamespaces Limit where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> Limit
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance HasOptionalParam ListEventForAllNamespaces Pretty where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> Pretty
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam ListEventForAllNamespaces ResourceVersion where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> ResourceVersion
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance HasOptionalParam ListEventForAllNamespaces TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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 HasOptionalParam ListEventForAllNamespaces Watch where
applyOptionalParam :: KubernetesRequest ListEventForAllNamespaces contentType res accept
-> Watch
-> KubernetesRequest
ListEventForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListEventForAllNamespaces contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListEventForAllNamespaces contentType res accept
req KubernetesRequest ListEventForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEventForAllNamespaces 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)
instance Produces ListEventForAllNamespaces MimeJSON
instance Produces ListEventForAllNamespaces MimeJsonstreamwatch
instance Produces ListEventForAllNamespaces MimeVndKubernetesProtobuf
instance Produces ListEventForAllNamespaces MimeVndKubernetesProtobufstreamwatch
instance Produces ListEventForAllNamespaces MimeYaml
listNamespacedEvent
:: Accept accept
-> Namespace
-> KubernetesRequest ListNamespacedEvent MimeNoContent V1beta1EventList accept
listNamespacedEvent :: Accept accept
-> Namespace
-> KubernetesRequest
ListNamespacedEvent MimeNoContent V1beta1EventList accept
listNamespacedEvent Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ListNamespacedEvent MimeNoContent V1beta1EventList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events"]
KubernetesRequest
ListNamespacedEvent MimeNoContent V1beta1EventList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListNamespacedEvent MimeNoContent V1beta1EventList 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 ListNamespacedEvent
instance HasOptionalParam ListNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam ListNamespacedEvent AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance HasOptionalParam ListNamespacedEvent Continue where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> Continue
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance HasOptionalParam ListNamespacedEvent FieldSelector where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> FieldSelector
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance HasOptionalParam ListNamespacedEvent LabelSelector where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> LabelSelector
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance HasOptionalParam ListNamespacedEvent Limit where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> Limit
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance HasOptionalParam ListNamespacedEvent ResourceVersion where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> ResourceVersion
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance HasOptionalParam ListNamespacedEvent TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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 HasOptionalParam ListNamespacedEvent Watch where
applyOptionalParam :: KubernetesRequest ListNamespacedEvent contentType res accept
-> Watch
-> KubernetesRequest ListNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedEvent contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListNamespacedEvent contentType res accept
req KubernetesRequest ListNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedEvent 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)
instance Produces ListNamespacedEvent MimeJSON
instance Produces ListNamespacedEvent MimeJsonstreamwatch
instance Produces ListNamespacedEvent MimeVndKubernetesProtobuf
instance Produces ListNamespacedEvent MimeVndKubernetesProtobufstreamwatch
instance Produces ListNamespacedEvent MimeYaml
patchNamespacedEvent
:: (Consumes PatchNamespacedEvent contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest PatchNamespacedEvent contentType V1beta1Event accept
patchNamespacedEvent :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest
PatchNamespacedEvent contentType V1beta1Event accept
patchNamespacedEvent ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
PatchNamespacedEvent contentType V1beta1Event accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
PatchNamespacedEvent contentType V1beta1Event accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchNamespacedEvent contentType V1beta1Event 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
PatchNamespacedEvent contentType V1beta1Event accept
-> Body
-> KubernetesRequest
PatchNamespacedEvent contentType V1beta1Event 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 PatchNamespacedEvent
instance HasBodyParam PatchNamespacedEvent Body
instance HasOptionalParam PatchNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest PatchNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest PatchNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchNamespacedEvent contentType res accept
req KubernetesRequest PatchNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam PatchNamespacedEvent DryRun where
applyOptionalParam :: KubernetesRequest PatchNamespacedEvent contentType res accept
-> DryRun
-> KubernetesRequest PatchNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedEvent contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchNamespacedEvent contentType res accept
req KubernetesRequest PatchNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedEvent 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)
instance HasOptionalParam PatchNamespacedEvent FieldManager where
applyOptionalParam :: KubernetesRequest PatchNamespacedEvent contentType res accept
-> FieldManager
-> KubernetesRequest PatchNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedEvent contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchNamespacedEvent contentType res accept
req KubernetesRequest PatchNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedEvent 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 HasOptionalParam PatchNamespacedEvent Force where
applyOptionalParam :: KubernetesRequest PatchNamespacedEvent contentType res accept
-> Force
-> KubernetesRequest PatchNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedEvent contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchNamespacedEvent contentType res accept
req KubernetesRequest PatchNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedEvent 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)
instance Consumes PatchNamespacedEvent MimeApplyPatchyaml
instance Consumes PatchNamespacedEvent MimeJsonPatchjson
instance Consumes PatchNamespacedEvent MimeMergePatchjson
instance Consumes PatchNamespacedEvent MimeStrategicMergePatchjson
instance Produces PatchNamespacedEvent MimeJSON
instance Produces PatchNamespacedEvent MimeVndKubernetesProtobuf
instance Produces PatchNamespacedEvent MimeYaml
readNamespacedEvent
:: Accept accept
-> Name
-> Namespace
-> KubernetesRequest ReadNamespacedEvent MimeNoContent V1beta1Event accept
readNamespacedEvent :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest
ReadNamespacedEvent MimeNoContent V1beta1Event accept
readNamespacedEvent Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReadNamespacedEvent MimeNoContent V1beta1Event accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReadNamespacedEvent MimeNoContent V1beta1Event accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadNamespacedEvent MimeNoContent V1beta1Event 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 ReadNamespacedEvent
instance HasOptionalParam ReadNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest ReadNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest ReadNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadNamespacedEvent contentType res accept
req KubernetesRequest ReadNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam ReadNamespacedEvent Exact where
applyOptionalParam :: KubernetesRequest ReadNamespacedEvent contentType res accept
-> Exact
-> KubernetesRequest ReadNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedEvent contentType res accept
req (Exact Bool
xs) =
KubernetesRequest ReadNamespacedEvent contentType res accept
req KubernetesRequest ReadNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedEvent 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
"exact", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
instance HasOptionalParam ReadNamespacedEvent Export where
applyOptionalParam :: KubernetesRequest ReadNamespacedEvent contentType res accept
-> Export
-> KubernetesRequest ReadNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedEvent contentType res accept
req (Export Bool
xs) =
KubernetesRequest ReadNamespacedEvent contentType res accept
req KubernetesRequest ReadNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedEvent 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
"export", Bool -> Maybe Bool
forall a. a -> Maybe a
Just Bool
xs)
instance Produces ReadNamespacedEvent MimeJSON
instance Produces ReadNamespacedEvent MimeVndKubernetesProtobuf
instance Produces ReadNamespacedEvent MimeYaml
replaceNamespacedEvent
:: (Consumes ReplaceNamespacedEvent contentType, MimeRender contentType V1beta1Event)
=> ContentType contentType
-> Accept accept
-> V1beta1Event
-> Name
-> Namespace
-> KubernetesRequest ReplaceNamespacedEvent contentType V1beta1Event accept
replaceNamespacedEvent :: ContentType contentType
-> Accept accept
-> V1beta1Event
-> Name
-> Namespace
-> KubernetesRequest
ReplaceNamespacedEvent contentType V1beta1Event accept
replaceNamespacedEvent ContentType contentType
_ Accept accept
_ V1beta1Event
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceNamespacedEvent contentType V1beta1Event accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/events.k8s.io/v1beta1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/events/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReplaceNamespacedEvent contentType V1beta1Event accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceNamespacedEvent contentType V1beta1Event 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
ReplaceNamespacedEvent contentType V1beta1Event accept
-> V1beta1Event
-> KubernetesRequest
ReplaceNamespacedEvent contentType V1beta1Event 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` V1beta1Event
body
data ReplaceNamespacedEvent
instance HasBodyParam ReplaceNamespacedEvent V1beta1Event
instance HasOptionalParam ReplaceNamespacedEvent Pretty where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedEvent contentType res accept
-> Pretty
-> KubernetesRequest ReplaceNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedEvent contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceNamespacedEvent contentType res accept
req KubernetesRequest ReplaceNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedEvent contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance HasOptionalParam ReplaceNamespacedEvent DryRun where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedEvent contentType res accept
-> DryRun
-> KubernetesRequest ReplaceNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedEvent contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceNamespacedEvent contentType res accept
req KubernetesRequest ReplaceNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedEvent 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)
instance HasOptionalParam ReplaceNamespacedEvent FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedEvent contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceNamespacedEvent contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedEvent contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceNamespacedEvent contentType res accept
req KubernetesRequest ReplaceNamespacedEvent contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedEvent 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 ReplaceNamespacedEvent mtype
instance Produces ReplaceNamespacedEvent MimeJSON
instance Produces ReplaceNamespacedEvent MimeVndKubernetesProtobuf
instance Produces ReplaceNamespacedEvent MimeYaml