{-# 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.BatchV1 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
createNamespacedJob
:: (Consumes CreateNamespacedJob contentType, MimeRender contentType V1Job)
=> ContentType contentType
-> Accept accept
-> V1Job
-> Namespace
-> KubernetesRequest CreateNamespacedJob contentType V1Job accept
createNamespacedJob :: ContentType contentType
-> Accept accept
-> V1Job
-> Namespace
-> KubernetesRequest CreateNamespacedJob contentType V1Job accept
createNamespacedJob ContentType contentType
_ Accept accept
_ V1Job
body (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest CreateNamespacedJob contentType V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs"]
KubernetesRequest CreateNamespacedJob contentType V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest CreateNamespacedJob contentType V1Job 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 CreateNamespacedJob contentType V1Job accept
-> V1Job
-> KubernetesRequest CreateNamespacedJob contentType V1Job 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` V1Job
body
data CreateNamespacedJob
instance HasBodyParam CreateNamespacedJob V1Job
instance HasOptionalParam CreateNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest CreateNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest CreateNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest CreateNamespacedJob contentType res accept
req KubernetesRequest CreateNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedJob 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 CreateNamespacedJob DryRun where
applyOptionalParam :: KubernetesRequest CreateNamespacedJob contentType res accept
-> DryRun
-> KubernetesRequest CreateNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedJob contentType res accept
req (DryRun Text
xs) =
KubernetesRequest CreateNamespacedJob contentType res accept
req KubernetesRequest CreateNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedJob 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 CreateNamespacedJob FieldManager where
applyOptionalParam :: KubernetesRequest CreateNamespacedJob contentType res accept
-> FieldManager
-> KubernetesRequest CreateNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedJob contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest CreateNamespacedJob contentType res accept
req KubernetesRequest CreateNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateNamespacedJob 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 CreateNamespacedJob mtype
instance Produces CreateNamespacedJob MimeJSON
instance Produces CreateNamespacedJob MimeVndKubernetesProtobuf
instance Produces CreateNamespacedJob MimeYaml
deleteCollectionNamespacedJob
:: (Consumes DeleteCollectionNamespacedJob contentType)
=> ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest DeleteCollectionNamespacedJob contentType V1Status accept
deleteCollectionNamespacedJob :: ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType V1Status accept
deleteCollectionNamespacedJob ContentType contentType
_ Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs"]
KubernetesRequest
DeleteCollectionNamespacedJob contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob
instance HasBodyParam DeleteCollectionNamespacedJob V1DeleteOptions
instance HasOptionalParam DeleteCollectionNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob Continue where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (Continue Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob DryRun where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob FieldSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob LabelSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob Limit where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (Limit Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob ResourceVersion where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedJob 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 DeleteCollectionNamespacedJob mtype
instance Produces DeleteCollectionNamespacedJob MimeJSON
instance Produces DeleteCollectionNamespacedJob MimeVndKubernetesProtobuf
instance Produces DeleteCollectionNamespacedJob MimeYaml
deleteNamespacedJob
:: (Consumes DeleteNamespacedJob contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest DeleteNamespacedJob contentType V1Status accept
deleteNamespacedJob :: ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest
DeleteNamespacedJob contentType V1Status accept
deleteNamespacedJob ContentType contentType
_ Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteNamespacedJob contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest DeleteNamespacedJob contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteNamespacedJob 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 DeleteNamespacedJob
instance HasBodyParam DeleteNamespacedJob V1DeleteOptions
instance HasOptionalParam DeleteNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest DeleteNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest DeleteNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteNamespacedJob contentType res accept
req KubernetesRequest DeleteNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedJob 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 DeleteNamespacedJob DryRun where
applyOptionalParam :: KubernetesRequest DeleteNamespacedJob contentType res accept
-> DryRun
-> KubernetesRequest DeleteNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedJob contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteNamespacedJob contentType res accept
req KubernetesRequest DeleteNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedJob 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 DeleteNamespacedJob GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteNamespacedJob contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedJob contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteNamespacedJob contentType res accept
req KubernetesRequest DeleteNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedJob 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 DeleteNamespacedJob OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteNamespacedJob contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedJob contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteNamespacedJob contentType res accept
req KubernetesRequest DeleteNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedJob 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 DeleteNamespacedJob PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteNamespacedJob contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedJob contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteNamespacedJob contentType res accept
req KubernetesRequest DeleteNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteNamespacedJob 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 DeleteNamespacedJob mtype
instance Produces DeleteNamespacedJob MimeJSON
instance Produces DeleteNamespacedJob MimeVndKubernetesProtobuf
instance Produces DeleteNamespacedJob 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/batch/v1/"]
KubernetesRequest
GetAPIResources MimeNoContent V1APIResourceList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
GetAPIResources MimeNoContent V1APIResourceList accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall k (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
data GetAPIResources
instance Produces GetAPIResources MimeJSON
instance Produces GetAPIResources MimeVndKubernetesProtobuf
instance Produces GetAPIResources MimeYaml
listJobForAllNamespaces
:: Accept accept
-> KubernetesRequest ListJobForAllNamespaces MimeNoContent V1JobList accept
listJobForAllNamespaces :: Accept accept
-> KubernetesRequest
ListJobForAllNamespaces MimeNoContent V1JobList accept
listJobForAllNamespaces Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListJobForAllNamespaces MimeNoContent V1JobList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/batch/v1/jobs"]
KubernetesRequest
ListJobForAllNamespaces MimeNoContent V1JobList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListJobForAllNamespaces MimeNoContent V1JobList 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 ListJobForAllNamespaces
instance HasOptionalParam ListJobForAllNamespaces AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces Continue where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> Continue
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces FieldSelector where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> FieldSelector
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces LabelSelector where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> LabelSelector
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces Limit where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> Limit
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces Pretty where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> Pretty
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces ResourceVersion where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> ResourceVersion
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces Watch where
applyOptionalParam :: KubernetesRequest ListJobForAllNamespaces contentType res accept
-> Watch
-> KubernetesRequest ListJobForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest ListJobForAllNamespaces contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListJobForAllNamespaces contentType res accept
req KubernetesRequest ListJobForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest ListJobForAllNamespaces 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 ListJobForAllNamespaces MimeJSON
instance Produces ListJobForAllNamespaces MimeJsonstreamwatch
instance Produces ListJobForAllNamespaces MimeVndKubernetesProtobuf
instance Produces ListJobForAllNamespaces MimeVndKubernetesProtobufstreamwatch
instance Produces ListJobForAllNamespaces MimeYaml
listNamespacedJob
:: Accept accept
-> Namespace
-> KubernetesRequest ListNamespacedJob MimeNoContent V1JobList accept
listNamespacedJob :: Accept accept
-> Namespace
-> KubernetesRequest
ListNamespacedJob MimeNoContent V1JobList accept
listNamespacedJob Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ListNamespacedJob MimeNoContent V1JobList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs"]
KubernetesRequest ListNamespacedJob MimeNoContent V1JobList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListNamespacedJob MimeNoContent V1JobList 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 ListNamespacedJob
instance HasOptionalParam ListNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob Continue where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> Continue
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob FieldSelector where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> FieldSelector
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob LabelSelector where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> LabelSelector
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob Limit where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> Limit
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob ResourceVersion where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> ResourceVersion
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob Watch where
applyOptionalParam :: KubernetesRequest ListNamespacedJob contentType res accept
-> Watch
-> KubernetesRequest ListNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedJob contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListNamespacedJob contentType res accept
req KubernetesRequest ListNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedJob 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 ListNamespacedJob MimeJSON
instance Produces ListNamespacedJob MimeJsonstreamwatch
instance Produces ListNamespacedJob MimeVndKubernetesProtobuf
instance Produces ListNamespacedJob MimeVndKubernetesProtobufstreamwatch
instance Produces ListNamespacedJob MimeYaml
patchNamespacedJob
:: (Consumes PatchNamespacedJob contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest PatchNamespacedJob contentType V1Job accept
patchNamespacedJob :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest PatchNamespacedJob contentType V1Job accept
patchNamespacedJob ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest PatchNamespacedJob contentType V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest PatchNamespacedJob contentType V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest PatchNamespacedJob contentType V1Job 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 PatchNamespacedJob contentType V1Job accept
-> Body
-> KubernetesRequest PatchNamespacedJob contentType V1Job 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 PatchNamespacedJob
instance HasBodyParam PatchNamespacedJob Body
instance HasOptionalParam PatchNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest PatchNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest PatchNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchNamespacedJob contentType res accept
req KubernetesRequest PatchNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedJob 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 PatchNamespacedJob DryRun where
applyOptionalParam :: KubernetesRequest PatchNamespacedJob contentType res accept
-> DryRun
-> KubernetesRequest PatchNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJob contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchNamespacedJob contentType res accept
req KubernetesRequest PatchNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedJob 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 PatchNamespacedJob FieldManager where
applyOptionalParam :: KubernetesRequest PatchNamespacedJob contentType res accept
-> FieldManager
-> KubernetesRequest PatchNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJob contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchNamespacedJob contentType res accept
req KubernetesRequest PatchNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedJob 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 PatchNamespacedJob Force where
applyOptionalParam :: KubernetesRequest PatchNamespacedJob contentType res accept
-> Force
-> KubernetesRequest PatchNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJob contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchNamespacedJob contentType res accept
req KubernetesRequest PatchNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchNamespacedJob 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 PatchNamespacedJob MimeApplyPatchyaml
instance Consumes PatchNamespacedJob MimeJsonPatchjson
instance Consumes PatchNamespacedJob MimeMergePatchjson
instance Consumes PatchNamespacedJob MimeStrategicMergePatchjson
instance Produces PatchNamespacedJob MimeJSON
instance Produces PatchNamespacedJob MimeVndKubernetesProtobuf
instance Produces PatchNamespacedJob MimeYaml
patchNamespacedJobStatus
:: (Consumes PatchNamespacedJobStatus contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest PatchNamespacedJobStatus contentType V1Job accept
patchNamespacedJobStatus :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest
PatchNamespacedJobStatus contentType V1Job accept
patchNamespacedJobStatus ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
PatchNamespacedJobStatus contentType V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name,ByteString
"/status"]
KubernetesRequest PatchNamespacedJobStatus contentType V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchNamespacedJobStatus contentType V1Job 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 PatchNamespacedJobStatus contentType V1Job accept
-> Body
-> KubernetesRequest
PatchNamespacedJobStatus contentType V1Job 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 PatchNamespacedJobStatus
instance HasBodyParam PatchNamespacedJobStatus Body
instance HasOptionalParam PatchNamespacedJobStatus Pretty where
applyOptionalParam :: KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> Pretty
-> KubernetesRequest
PatchNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJobStatus contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchNamespacedJobStatus contentType res accept
req KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedJobStatus 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 PatchNamespacedJobStatus DryRun where
applyOptionalParam :: KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> DryRun
-> KubernetesRequest
PatchNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJobStatus contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchNamespacedJobStatus contentType res accept
req KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedJobStatus 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 PatchNamespacedJobStatus FieldManager where
applyOptionalParam :: KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> FieldManager
-> KubernetesRequest
PatchNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJobStatus contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchNamespacedJobStatus contentType res accept
req KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedJobStatus 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 PatchNamespacedJobStatus Force where
applyOptionalParam :: KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> Force
-> KubernetesRequest
PatchNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedJobStatus contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchNamespacedJobStatus contentType res accept
req KubernetesRequest PatchNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedJobStatus 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 PatchNamespacedJobStatus MimeApplyPatchyaml
instance Consumes PatchNamespacedJobStatus MimeJsonPatchjson
instance Consumes PatchNamespacedJobStatus MimeMergePatchjson
instance Consumes PatchNamespacedJobStatus MimeStrategicMergePatchjson
instance Produces PatchNamespacedJobStatus MimeJSON
instance Produces PatchNamespacedJobStatus MimeVndKubernetesProtobuf
instance Produces PatchNamespacedJobStatus MimeYaml
readNamespacedJob
:: Accept accept
-> Name
-> Namespace
-> KubernetesRequest ReadNamespacedJob MimeNoContent V1Job accept
readNamespacedJob :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest ReadNamespacedJob MimeNoContent V1Job accept
readNamespacedJob Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest ReadNamespacedJob MimeNoContent V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest ReadNamespacedJob MimeNoContent V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest ReadNamespacedJob MimeNoContent V1Job 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 ReadNamespacedJob
instance HasOptionalParam ReadNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest ReadNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest ReadNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadNamespacedJob contentType res accept
req KubernetesRequest ReadNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedJob 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 ReadNamespacedJob Exact where
applyOptionalParam :: KubernetesRequest ReadNamespacedJob contentType res accept
-> Exact
-> KubernetesRequest ReadNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedJob contentType res accept
req (Exact Bool
xs) =
KubernetesRequest ReadNamespacedJob contentType res accept
req KubernetesRequest ReadNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedJob 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 ReadNamespacedJob Export where
applyOptionalParam :: KubernetesRequest ReadNamespacedJob contentType res accept
-> Export
-> KubernetesRequest ReadNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedJob contentType res accept
req (Export Bool
xs) =
KubernetesRequest ReadNamespacedJob contentType res accept
req KubernetesRequest ReadNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedJob 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 ReadNamespacedJob MimeJSON
instance Produces ReadNamespacedJob MimeVndKubernetesProtobuf
instance Produces ReadNamespacedJob MimeYaml
readNamespacedJobStatus
:: Accept accept
-> Name
-> Namespace
-> KubernetesRequest ReadNamespacedJobStatus MimeNoContent V1Job accept
readNamespacedJobStatus :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest
ReadNamespacedJobStatus MimeNoContent V1Job accept
readNamespacedJobStatus Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReadNamespacedJobStatus MimeNoContent V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name,ByteString
"/status"]
KubernetesRequest
ReadNamespacedJobStatus MimeNoContent V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadNamespacedJobStatus MimeNoContent V1Job 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 ReadNamespacedJobStatus
instance HasOptionalParam ReadNamespacedJobStatus Pretty where
applyOptionalParam :: KubernetesRequest ReadNamespacedJobStatus contentType res accept
-> Pretty
-> KubernetesRequest ReadNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedJobStatus contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadNamespacedJobStatus contentType res accept
req KubernetesRequest ReadNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedJobStatus 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 Produces ReadNamespacedJobStatus MimeJSON
instance Produces ReadNamespacedJobStatus MimeVndKubernetesProtobuf
instance Produces ReadNamespacedJobStatus MimeYaml
replaceNamespacedJob
:: (Consumes ReplaceNamespacedJob contentType, MimeRender contentType V1Job)
=> ContentType contentType
-> Accept accept
-> V1Job
-> Name
-> Namespace
-> KubernetesRequest ReplaceNamespacedJob contentType V1Job accept
replaceNamespacedJob :: ContentType contentType
-> Accept accept
-> V1Job
-> Name
-> Namespace
-> KubernetesRequest ReplaceNamespacedJob contentType V1Job accept
replaceNamespacedJob ContentType contentType
_ Accept accept
_ V1Job
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest ReplaceNamespacedJob contentType V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest ReplaceNamespacedJob contentType V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest ReplaceNamespacedJob contentType V1Job 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 ReplaceNamespacedJob contentType V1Job accept
-> V1Job
-> KubernetesRequest ReplaceNamespacedJob contentType V1Job 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` V1Job
body
data ReplaceNamespacedJob
instance HasBodyParam ReplaceNamespacedJob V1Job
instance HasOptionalParam ReplaceNamespacedJob Pretty where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedJob contentType res accept
-> Pretty
-> KubernetesRequest ReplaceNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedJob contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceNamespacedJob contentType res accept
req KubernetesRequest ReplaceNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedJob 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 ReplaceNamespacedJob DryRun where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedJob contentType res accept
-> DryRun
-> KubernetesRequest ReplaceNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedJob contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceNamespacedJob contentType res accept
req KubernetesRequest ReplaceNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedJob 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 ReplaceNamespacedJob FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedJob contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceNamespacedJob contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedJob contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceNamespacedJob contentType res accept
req KubernetesRequest ReplaceNamespacedJob contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceNamespacedJob 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 ReplaceNamespacedJob mtype
instance Produces ReplaceNamespacedJob MimeJSON
instance Produces ReplaceNamespacedJob MimeVndKubernetesProtobuf
instance Produces ReplaceNamespacedJob MimeYaml
replaceNamespacedJobStatus
:: (Consumes ReplaceNamespacedJobStatus contentType, MimeRender contentType V1Job)
=> ContentType contentType
-> Accept accept
-> V1Job
-> Name
-> Namespace
-> KubernetesRequest ReplaceNamespacedJobStatus contentType V1Job accept
replaceNamespacedJobStatus :: ContentType contentType
-> Accept accept
-> V1Job
-> Name
-> Namespace
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType V1Job accept
replaceNamespacedJobStatus ContentType contentType
_ Accept accept
_ V1Job
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType V1Job accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/batch/v1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/jobs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name,ByteString
"/status"]
KubernetesRequest
ReplaceNamespacedJobStatus contentType V1Job accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType V1Job 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
ReplaceNamespacedJobStatus contentType V1Job accept
-> V1Job
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType V1Job 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` V1Job
body
data ReplaceNamespacedJobStatus
instance HasBodyParam ReplaceNamespacedJobStatus V1Job
instance HasOptionalParam ReplaceNamespacedJobStatus Pretty where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
-> Pretty
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
req KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedJobStatus 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 ReplaceNamespacedJobStatus DryRun where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
-> DryRun
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
req KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedJobStatus 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 ReplaceNamespacedJobStatus FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
-> FieldManager
-> KubernetesRequest
ReplaceNamespacedJobStatus contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
req KubernetesRequest ReplaceNamespacedJobStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedJobStatus 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 ReplaceNamespacedJobStatus mtype
instance Produces ReplaceNamespacedJobStatus MimeJSON
instance Produces ReplaceNamespacedJobStatus MimeVndKubernetesProtobuf
instance Produces ReplaceNamespacedJobStatus MimeYaml