{-# 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.SettingsV1alpha1 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
createNamespacedPodPreset
:: (Consumes CreateNamespacedPodPreset contentType, MimeRender contentType V1alpha1PodPreset)
=> ContentType contentType
-> Accept accept
-> V1alpha1PodPreset
-> Namespace
-> KubernetesRequest CreateNamespacedPodPreset contentType V1alpha1PodPreset accept
createNamespacedPodPreset :: ContentType contentType
-> Accept accept
-> V1alpha1PodPreset
-> Namespace
-> KubernetesRequest
CreateNamespacedPodPreset contentType V1alpha1PodPreset accept
createNamespacedPodPreset ContentType contentType
_ Accept accept
_ V1alpha1PodPreset
body (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
CreateNamespacedPodPreset contentType V1alpha1PodPreset accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets"]
KubernetesRequest
CreateNamespacedPodPreset contentType V1alpha1PodPreset accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
CreateNamespacedPodPreset contentType V1alpha1PodPreset 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
CreateNamespacedPodPreset contentType V1alpha1PodPreset accept
-> V1alpha1PodPreset
-> KubernetesRequest
CreateNamespacedPodPreset contentType V1alpha1PodPreset 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` V1alpha1PodPreset
body
data CreateNamespacedPodPreset
instance HasBodyParam CreateNamespacedPodPreset V1alpha1PodPreset
instance HasOptionalParam CreateNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest CreateNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest
CreateNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest CreateNamespacedPodPreset contentType res accept
req KubernetesRequest CreateNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
CreateNamespacedPodPreset 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 CreateNamespacedPodPreset DryRun where
applyOptionalParam :: KubernetesRequest CreateNamespacedPodPreset contentType res accept
-> DryRun
-> KubernetesRequest
CreateNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedPodPreset contentType res accept
req (DryRun Text
xs) =
KubernetesRequest CreateNamespacedPodPreset contentType res accept
req KubernetesRequest CreateNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
CreateNamespacedPodPreset 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 CreateNamespacedPodPreset FieldManager where
applyOptionalParam :: KubernetesRequest CreateNamespacedPodPreset contentType res accept
-> FieldManager
-> KubernetesRequest
CreateNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest CreateNamespacedPodPreset contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest CreateNamespacedPodPreset contentType res accept
req KubernetesRequest CreateNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
CreateNamespacedPodPreset 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 CreateNamespacedPodPreset mtype
instance Produces CreateNamespacedPodPreset MimeJSON
instance Produces CreateNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces CreateNamespacedPodPreset MimeYaml
deleteCollectionNamespacedPodPreset
:: (Consumes DeleteCollectionNamespacedPodPreset contentType)
=> ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest DeleteCollectionNamespacedPodPreset contentType V1Status accept
deleteCollectionNamespacedPodPreset :: ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType V1Status accept
deleteCollectionNamespacedPodPreset ContentType contentType
_ Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets"]
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset
instance HasBodyParam DeleteCollectionNamespacedPodPreset V1DeleteOptions
instance HasOptionalParam DeleteCollectionNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset Continue where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (Continue Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset DryRun where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset FieldSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset LabelSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset Limit where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (Limit Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset ResourceVersion where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedPodPreset 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 DeleteCollectionNamespacedPodPreset mtype
instance Produces DeleteCollectionNamespacedPodPreset MimeJSON
instance Produces DeleteCollectionNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces DeleteCollectionNamespacedPodPreset MimeYaml
deleteNamespacedPodPreset
:: (Consumes DeleteNamespacedPodPreset contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest DeleteNamespacedPodPreset contentType V1Status accept
deleteNamespacedPodPreset :: ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest
DeleteNamespacedPodPreset contentType V1Status accept
deleteNamespacedPodPreset ContentType contentType
_ Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteNamespacedPodPreset contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
DeleteNamespacedPodPreset contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteNamespacedPodPreset 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 DeleteNamespacedPodPreset
instance HasBodyParam DeleteNamespacedPodPreset V1DeleteOptions
instance HasOptionalParam DeleteNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest
DeleteNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedPodPreset 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 DeleteNamespacedPodPreset DryRun where
applyOptionalParam :: KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> DryRun
-> KubernetesRequest
DeleteNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedPodPreset 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 DeleteNamespacedPodPreset GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedPodPreset 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 DeleteNamespacedPodPreset OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedPodPreset 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 DeleteNamespacedPodPreset PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteNamespacedPodPreset contentType res accept
req KubernetesRequest DeleteNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedPodPreset 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 DeleteNamespacedPodPreset mtype
instance Produces DeleteNamespacedPodPreset MimeJSON
instance Produces DeleteNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces DeleteNamespacedPodPreset 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/settings.k8s.io/v1alpha1/"]
KubernetesRequest
GetAPIResources MimeNoContent V1APIResourceList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
GetAPIResources MimeNoContent V1APIResourceList accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall k (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
data GetAPIResources
instance Produces GetAPIResources MimeJSON
instance Produces GetAPIResources MimeVndKubernetesProtobuf
instance Produces GetAPIResources MimeYaml
listNamespacedPodPreset
:: Accept accept
-> Namespace
-> KubernetesRequest ListNamespacedPodPreset MimeNoContent V1alpha1PodPresetList accept
listNamespacedPodPreset :: Accept accept
-> Namespace
-> KubernetesRequest
ListNamespacedPodPreset MimeNoContent V1alpha1PodPresetList accept
listNamespacedPodPreset Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ListNamespacedPodPreset MimeNoContent V1alpha1PodPresetList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets"]
KubernetesRequest
ListNamespacedPodPreset MimeNoContent V1alpha1PodPresetList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListNamespacedPodPreset MimeNoContent V1alpha1PodPresetList 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 ListNamespacedPodPreset
instance HasOptionalParam ListNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset Continue where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> Continue
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset FieldSelector where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> FieldSelector
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset LabelSelector where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> LabelSelector
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset Limit where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> Limit
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset ResourceVersion where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> ResourceVersion
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset Watch where
applyOptionalParam :: KubernetesRequest ListNamespacedPodPreset contentType res accept
-> Watch
-> KubernetesRequest ListNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ListNamespacedPodPreset contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListNamespacedPodPreset contentType res accept
req KubernetesRequest ListNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ListNamespacedPodPreset 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 ListNamespacedPodPreset MimeJSON
instance Produces ListNamespacedPodPreset MimeJsonstreamwatch
instance Produces ListNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces ListNamespacedPodPreset MimeVndKubernetesProtobufstreamwatch
instance Produces ListNamespacedPodPreset MimeYaml
listPodPresetForAllNamespaces
:: Accept accept
-> KubernetesRequest ListPodPresetForAllNamespaces MimeNoContent V1alpha1PodPresetList accept
listPodPresetForAllNamespaces :: Accept accept
-> KubernetesRequest
ListPodPresetForAllNamespaces
MimeNoContent
V1alpha1PodPresetList
accept
listPodPresetForAllNamespaces Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListPodPresetForAllNamespaces
MimeNoContent
V1alpha1PodPresetList
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/settings.k8s.io/v1alpha1/podpresets"]
KubernetesRequest
ListPodPresetForAllNamespaces
MimeNoContent
V1alpha1PodPresetList
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListPodPresetForAllNamespaces
MimeNoContent
V1alpha1PodPresetList
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 ListPodPresetForAllNamespaces
instance HasOptionalParam ListPodPresetForAllNamespaces AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces Continue where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> Continue
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (Continue Text
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces FieldSelector where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> FieldSelector
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces LabelSelector where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> LabelSelector
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces Limit where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> Limit
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (Limit Int
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces Pretty where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> Pretty
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces ResourceVersion where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> ResourceVersion
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces Watch where
applyOptionalParam :: KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> Watch
-> KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req (Watch Bool
xs) =
KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
req KubernetesRequest
ListPodPresetForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListPodPresetForAllNamespaces 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 ListPodPresetForAllNamespaces MimeJSON
instance Produces ListPodPresetForAllNamespaces MimeJsonstreamwatch
instance Produces ListPodPresetForAllNamespaces MimeVndKubernetesProtobuf
instance Produces ListPodPresetForAllNamespaces MimeVndKubernetesProtobufstreamwatch
instance Produces ListPodPresetForAllNamespaces MimeYaml
patchNamespacedPodPreset
:: (Consumes PatchNamespacedPodPreset contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest PatchNamespacedPodPreset contentType V1alpha1PodPreset accept
patchNamespacedPodPreset :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest
PatchNamespacedPodPreset contentType V1alpha1PodPreset accept
patchNamespacedPodPreset ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
PatchNamespacedPodPreset contentType V1alpha1PodPreset accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
PatchNamespacedPodPreset contentType V1alpha1PodPreset accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchNamespacedPodPreset contentType V1alpha1PodPreset 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
PatchNamespacedPodPreset contentType V1alpha1PodPreset accept
-> Body
-> KubernetesRequest
PatchNamespacedPodPreset contentType V1alpha1PodPreset 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 PatchNamespacedPodPreset
instance HasBodyParam PatchNamespacedPodPreset Body
instance HasOptionalParam PatchNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest
PatchNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchNamespacedPodPreset contentType res accept
req KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedPodPreset 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 PatchNamespacedPodPreset DryRun where
applyOptionalParam :: KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> DryRun
-> KubernetesRequest
PatchNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedPodPreset contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchNamespacedPodPreset contentType res accept
req KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedPodPreset 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 PatchNamespacedPodPreset FieldManager where
applyOptionalParam :: KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> FieldManager
-> KubernetesRequest
PatchNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedPodPreset contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchNamespacedPodPreset contentType res accept
req KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedPodPreset 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 PatchNamespacedPodPreset Force where
applyOptionalParam :: KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> Force
-> KubernetesRequest
PatchNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest PatchNamespacedPodPreset contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchNamespacedPodPreset contentType res accept
req KubernetesRequest PatchNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedPodPreset 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 PatchNamespacedPodPreset MimeApplyPatchyaml
instance Consumes PatchNamespacedPodPreset MimeJsonPatchjson
instance Consumes PatchNamespacedPodPreset MimeMergePatchjson
instance Consumes PatchNamespacedPodPreset MimeStrategicMergePatchjson
instance Produces PatchNamespacedPodPreset MimeJSON
instance Produces PatchNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces PatchNamespacedPodPreset MimeYaml
readNamespacedPodPreset
:: Accept accept
-> Name
-> Namespace
-> KubernetesRequest ReadNamespacedPodPreset MimeNoContent V1alpha1PodPreset accept
readNamespacedPodPreset :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest
ReadNamespacedPodPreset MimeNoContent V1alpha1PodPreset accept
readNamespacedPodPreset Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReadNamespacedPodPreset MimeNoContent V1alpha1PodPreset accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReadNamespacedPodPreset MimeNoContent V1alpha1PodPreset accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadNamespacedPodPreset MimeNoContent V1alpha1PodPreset 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 ReadNamespacedPodPreset
instance HasOptionalParam ReadNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest ReadNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest ReadNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadNamespacedPodPreset contentType res accept
req KubernetesRequest ReadNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedPodPreset 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 ReadNamespacedPodPreset Exact where
applyOptionalParam :: KubernetesRequest ReadNamespacedPodPreset contentType res accept
-> Exact
-> KubernetesRequest ReadNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedPodPreset contentType res accept
req (Exact Bool
xs) =
KubernetesRequest ReadNamespacedPodPreset contentType res accept
req KubernetesRequest ReadNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedPodPreset 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 ReadNamespacedPodPreset Export where
applyOptionalParam :: KubernetesRequest ReadNamespacedPodPreset contentType res accept
-> Export
-> KubernetesRequest ReadNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ReadNamespacedPodPreset contentType res accept
req (Export Bool
xs) =
KubernetesRequest ReadNamespacedPodPreset contentType res accept
req KubernetesRequest ReadNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadNamespacedPodPreset 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 ReadNamespacedPodPreset MimeJSON
instance Produces ReadNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces ReadNamespacedPodPreset MimeYaml
replaceNamespacedPodPreset
:: (Consumes ReplaceNamespacedPodPreset contentType, MimeRender contentType V1alpha1PodPreset)
=> ContentType contentType
-> Accept accept
-> V1alpha1PodPreset
-> Name
-> Namespace
-> KubernetesRequest ReplaceNamespacedPodPreset contentType V1alpha1PodPreset accept
replaceNamespacedPodPreset :: ContentType contentType
-> Accept accept
-> V1alpha1PodPreset
-> Name
-> Namespace
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType V1alpha1PodPreset accept
replaceNamespacedPodPreset ContentType contentType
_ Accept accept
_ V1alpha1PodPreset
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType V1alpha1PodPreset accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/settings.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/podpresets/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReplaceNamespacedPodPreset contentType V1alpha1PodPreset accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType V1alpha1PodPreset 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
ReplaceNamespacedPodPreset contentType V1alpha1PodPreset accept
-> V1alpha1PodPreset
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType V1alpha1PodPreset 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` V1alpha1PodPreset
body
data ReplaceNamespacedPodPreset
instance HasBodyParam ReplaceNamespacedPodPreset V1alpha1PodPreset
instance HasOptionalParam ReplaceNamespacedPodPreset Pretty where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
-> Pretty
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
req KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedPodPreset 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 ReplaceNamespacedPodPreset DryRun where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
-> DryRun
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
req KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedPodPreset 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 ReplaceNamespacedPodPreset FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
-> FieldManager
-> KubernetesRequest
ReplaceNamespacedPodPreset contentType res accept
applyOptionalParam KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
req KubernetesRequest ReplaceNamespacedPodPreset contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedPodPreset 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 ReplaceNamespacedPodPreset mtype
instance Produces ReplaceNamespacedPodPreset MimeJSON
instance Produces ReplaceNamespacedPodPreset MimeVndKubernetesProtobuf
instance Produces ReplaceNamespacedPodPreset MimeYaml