{-# 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.NodeV1alpha1 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
createRuntimeClass
:: (Consumes CreateRuntimeClass contentType, MimeRender contentType V1alpha1RuntimeClass)
=> ContentType contentType
-> Accept accept
-> V1alpha1RuntimeClass
-> KubernetesRequest CreateRuntimeClass contentType V1alpha1RuntimeClass accept
createRuntimeClass :: ContentType contentType
-> Accept accept
-> V1alpha1RuntimeClass
-> KubernetesRequest
CreateRuntimeClass contentType V1alpha1RuntimeClass accept
createRuntimeClass ContentType contentType
_ Accept accept
_ V1alpha1RuntimeClass
body =
Method
-> [ByteString]
-> KubernetesRequest
CreateRuntimeClass contentType V1alpha1RuntimeClass accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses"]
KubernetesRequest
CreateRuntimeClass contentType V1alpha1RuntimeClass accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
CreateRuntimeClass contentType V1alpha1RuntimeClass 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
CreateRuntimeClass contentType V1alpha1RuntimeClass accept
-> V1alpha1RuntimeClass
-> KubernetesRequest
CreateRuntimeClass contentType V1alpha1RuntimeClass 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` V1alpha1RuntimeClass
body
data CreateRuntimeClass
instance HasBodyParam CreateRuntimeClass V1alpha1RuntimeClass
instance HasOptionalParam CreateRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest CreateRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest CreateRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest CreateRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest CreateRuntimeClass contentType res accept
req KubernetesRequest CreateRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateRuntimeClass 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 CreateRuntimeClass DryRun where
applyOptionalParam :: KubernetesRequest CreateRuntimeClass contentType res accept
-> DryRun
-> KubernetesRequest CreateRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest CreateRuntimeClass contentType res accept
req (DryRun Text
xs) =
KubernetesRequest CreateRuntimeClass contentType res accept
req KubernetesRequest CreateRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateRuntimeClass 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 CreateRuntimeClass FieldManager where
applyOptionalParam :: KubernetesRequest CreateRuntimeClass contentType res accept
-> FieldManager
-> KubernetesRequest CreateRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest CreateRuntimeClass contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest CreateRuntimeClass contentType res accept
req KubernetesRequest CreateRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateRuntimeClass 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 CreateRuntimeClass mtype
instance Produces CreateRuntimeClass MimeJSON
instance Produces CreateRuntimeClass MimeVndKubernetesProtobuf
instance Produces CreateRuntimeClass MimeYaml
deleteCollectionRuntimeClass
:: (Consumes DeleteCollectionRuntimeClass contentType)
=> ContentType contentType
-> Accept accept
-> KubernetesRequest DeleteCollectionRuntimeClass contentType V1Status accept
deleteCollectionRuntimeClass :: ContentType contentType
-> Accept accept
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType V1Status accept
deleteCollectionRuntimeClass ContentType contentType
_ Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses"]
KubernetesRequest
DeleteCollectionRuntimeClass contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass
instance HasBodyParam DeleteCollectionRuntimeClass V1DeleteOptions
instance HasOptionalParam DeleteCollectionRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass Continue where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (Continue Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass DryRun where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass FieldSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass LabelSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass Limit where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (Limit Int
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass ResourceVersion where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
req KubernetesRequest
DeleteCollectionRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionRuntimeClass 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 DeleteCollectionRuntimeClass mtype
instance Produces DeleteCollectionRuntimeClass MimeJSON
instance Produces DeleteCollectionRuntimeClass MimeVndKubernetesProtobuf
instance Produces DeleteCollectionRuntimeClass MimeYaml
deleteRuntimeClass
:: (Consumes DeleteRuntimeClass contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest DeleteRuntimeClass contentType V1Status accept
deleteRuntimeClass :: ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest DeleteRuntimeClass contentType V1Status accept
deleteRuntimeClass ContentType contentType
_ Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest DeleteRuntimeClass contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest DeleteRuntimeClass contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest DeleteRuntimeClass 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 DeleteRuntimeClass
instance HasBodyParam DeleteRuntimeClass V1DeleteOptions
instance HasOptionalParam DeleteRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest DeleteRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest DeleteRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest DeleteRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteRuntimeClass contentType res accept
req KubernetesRequest DeleteRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteRuntimeClass 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 DeleteRuntimeClass DryRun where
applyOptionalParam :: KubernetesRequest DeleteRuntimeClass contentType res accept
-> DryRun
-> KubernetesRequest DeleteRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest DeleteRuntimeClass contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteRuntimeClass contentType res accept
req KubernetesRequest DeleteRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteRuntimeClass 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 DeleteRuntimeClass GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteRuntimeClass contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest DeleteRuntimeClass contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteRuntimeClass contentType res accept
req KubernetesRequest DeleteRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteRuntimeClass 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 DeleteRuntimeClass OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteRuntimeClass contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest DeleteRuntimeClass contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteRuntimeClass contentType res accept
req KubernetesRequest DeleteRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteRuntimeClass 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 DeleteRuntimeClass PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteRuntimeClass contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest DeleteRuntimeClass contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteRuntimeClass contentType res accept
req KubernetesRequest DeleteRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteRuntimeClass 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 DeleteRuntimeClass mtype
instance Produces DeleteRuntimeClass MimeJSON
instance Produces DeleteRuntimeClass MimeVndKubernetesProtobuf
instance Produces DeleteRuntimeClass 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/node.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
listRuntimeClass
:: Accept accept
-> KubernetesRequest ListRuntimeClass MimeNoContent V1alpha1RuntimeClassList accept
listRuntimeClass :: Accept accept
-> KubernetesRequest
ListRuntimeClass MimeNoContent V1alpha1RuntimeClassList accept
listRuntimeClass Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListRuntimeClass MimeNoContent V1alpha1RuntimeClassList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses"]
KubernetesRequest
ListRuntimeClass MimeNoContent V1alpha1RuntimeClassList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListRuntimeClass MimeNoContent V1alpha1RuntimeClassList 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 ListRuntimeClass
instance HasOptionalParam ListRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass Continue where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> Continue
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass FieldSelector where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> FieldSelector
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass LabelSelector where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> LabelSelector
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass Limit where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> Limit
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass ResourceVersion where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> ResourceVersion
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass Watch where
applyOptionalParam :: KubernetesRequest ListRuntimeClass contentType res accept
-> Watch
-> KubernetesRequest ListRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ListRuntimeClass contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListRuntimeClass contentType res accept
req KubernetesRequest ListRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ListRuntimeClass 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 ListRuntimeClass MimeJSON
instance Produces ListRuntimeClass MimeJsonstreamwatch
instance Produces ListRuntimeClass MimeVndKubernetesProtobuf
instance Produces ListRuntimeClass MimeVndKubernetesProtobufstreamwatch
instance Produces ListRuntimeClass MimeYaml
patchRuntimeClass
:: (Consumes PatchRuntimeClass contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest PatchRuntimeClass contentType V1alpha1RuntimeClass accept
patchRuntimeClass :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest
PatchRuntimeClass contentType V1alpha1RuntimeClass accept
patchRuntimeClass ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
PatchRuntimeClass contentType V1alpha1RuntimeClass accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
PatchRuntimeClass contentType V1alpha1RuntimeClass accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchRuntimeClass contentType V1alpha1RuntimeClass 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
PatchRuntimeClass contentType V1alpha1RuntimeClass accept
-> Body
-> KubernetesRequest
PatchRuntimeClass contentType V1alpha1RuntimeClass 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 PatchRuntimeClass
instance HasBodyParam PatchRuntimeClass Body
instance HasOptionalParam PatchRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest PatchRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest PatchRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest PatchRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchRuntimeClass contentType res accept
req KubernetesRequest PatchRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchRuntimeClass 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 PatchRuntimeClass DryRun where
applyOptionalParam :: KubernetesRequest PatchRuntimeClass contentType res accept
-> DryRun
-> KubernetesRequest PatchRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest PatchRuntimeClass contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchRuntimeClass contentType res accept
req KubernetesRequest PatchRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchRuntimeClass 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 PatchRuntimeClass FieldManager where
applyOptionalParam :: KubernetesRequest PatchRuntimeClass contentType res accept
-> FieldManager
-> KubernetesRequest PatchRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest PatchRuntimeClass contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchRuntimeClass contentType res accept
req KubernetesRequest PatchRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchRuntimeClass 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 PatchRuntimeClass Force where
applyOptionalParam :: KubernetesRequest PatchRuntimeClass contentType res accept
-> Force
-> KubernetesRequest PatchRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest PatchRuntimeClass contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchRuntimeClass contentType res accept
req KubernetesRequest PatchRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchRuntimeClass 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 PatchRuntimeClass MimeApplyPatchyaml
instance Consumes PatchRuntimeClass MimeJsonPatchjson
instance Consumes PatchRuntimeClass MimeMergePatchjson
instance Consumes PatchRuntimeClass MimeStrategicMergePatchjson
instance Produces PatchRuntimeClass MimeJSON
instance Produces PatchRuntimeClass MimeVndKubernetesProtobuf
instance Produces PatchRuntimeClass MimeYaml
readRuntimeClass
:: Accept accept
-> Name
-> KubernetesRequest ReadRuntimeClass MimeNoContent V1alpha1RuntimeClass accept
readRuntimeClass :: Accept accept
-> Name
-> KubernetesRequest
ReadRuntimeClass MimeNoContent V1alpha1RuntimeClass accept
readRuntimeClass Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReadRuntimeClass MimeNoContent V1alpha1RuntimeClass accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReadRuntimeClass MimeNoContent V1alpha1RuntimeClass accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadRuntimeClass MimeNoContent V1alpha1RuntimeClass 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 ReadRuntimeClass
instance HasOptionalParam ReadRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest ReadRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest ReadRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ReadRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadRuntimeClass contentType res accept
req KubernetesRequest ReadRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadRuntimeClass 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 ReadRuntimeClass Exact where
applyOptionalParam :: KubernetesRequest ReadRuntimeClass contentType res accept
-> Exact
-> KubernetesRequest ReadRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ReadRuntimeClass contentType res accept
req (Exact Bool
xs) =
KubernetesRequest ReadRuntimeClass contentType res accept
req KubernetesRequest ReadRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadRuntimeClass 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 ReadRuntimeClass Export where
applyOptionalParam :: KubernetesRequest ReadRuntimeClass contentType res accept
-> Export
-> KubernetesRequest ReadRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ReadRuntimeClass contentType res accept
req (Export Bool
xs) =
KubernetesRequest ReadRuntimeClass contentType res accept
req KubernetesRequest ReadRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadRuntimeClass 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 ReadRuntimeClass MimeJSON
instance Produces ReadRuntimeClass MimeVndKubernetesProtobuf
instance Produces ReadRuntimeClass MimeYaml
replaceRuntimeClass
:: (Consumes ReplaceRuntimeClass contentType, MimeRender contentType V1alpha1RuntimeClass)
=> ContentType contentType
-> Accept accept
-> V1alpha1RuntimeClass
-> Name
-> KubernetesRequest ReplaceRuntimeClass contentType V1alpha1RuntimeClass accept
replaceRuntimeClass :: ContentType contentType
-> Accept accept
-> V1alpha1RuntimeClass
-> Name
-> KubernetesRequest
ReplaceRuntimeClass contentType V1alpha1RuntimeClass accept
replaceRuntimeClass ContentType contentType
_ Accept accept
_ V1alpha1RuntimeClass
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceRuntimeClass contentType V1alpha1RuntimeClass accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/node.k8s.io/v1alpha1/runtimeclasses/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReplaceRuntimeClass contentType V1alpha1RuntimeClass accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceRuntimeClass contentType V1alpha1RuntimeClass 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
ReplaceRuntimeClass contentType V1alpha1RuntimeClass accept
-> V1alpha1RuntimeClass
-> KubernetesRequest
ReplaceRuntimeClass contentType V1alpha1RuntimeClass 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` V1alpha1RuntimeClass
body
data ReplaceRuntimeClass
instance HasBodyParam ReplaceRuntimeClass V1alpha1RuntimeClass
instance HasOptionalParam ReplaceRuntimeClass Pretty where
applyOptionalParam :: KubernetesRequest ReplaceRuntimeClass contentType res accept
-> Pretty
-> KubernetesRequest ReplaceRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ReplaceRuntimeClass contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceRuntimeClass contentType res accept
req KubernetesRequest ReplaceRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceRuntimeClass 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 ReplaceRuntimeClass DryRun where
applyOptionalParam :: KubernetesRequest ReplaceRuntimeClass contentType res accept
-> DryRun
-> KubernetesRequest ReplaceRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ReplaceRuntimeClass contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceRuntimeClass contentType res accept
req KubernetesRequest ReplaceRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceRuntimeClass 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 ReplaceRuntimeClass FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceRuntimeClass contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceRuntimeClass contentType res accept
applyOptionalParam KubernetesRequest ReplaceRuntimeClass contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceRuntimeClass contentType res accept
req KubernetesRequest ReplaceRuntimeClass contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceRuntimeClass 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 ReplaceRuntimeClass mtype
instance Produces ReplaceRuntimeClass MimeJSON
instance Produces ReplaceRuntimeClass MimeVndKubernetesProtobuf
instance Produces ReplaceRuntimeClass MimeYaml