{-# 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.StorageV1alpha1 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
createVolumeAttachment
:: (Consumes CreateVolumeAttachment contentType, MimeRender contentType V1alpha1VolumeAttachment)
=> ContentType contentType
-> Accept accept
-> V1alpha1VolumeAttachment
-> KubernetesRequest CreateVolumeAttachment contentType V1alpha1VolumeAttachment accept
createVolumeAttachment :: ContentType contentType
-> Accept accept
-> V1alpha1VolumeAttachment
-> KubernetesRequest
CreateVolumeAttachment contentType V1alpha1VolumeAttachment accept
createVolumeAttachment ContentType contentType
_ Accept accept
_ V1alpha1VolumeAttachment
body =
Method
-> [ByteString]
-> KubernetesRequest
CreateVolumeAttachment contentType V1alpha1VolumeAttachment accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments"]
KubernetesRequest
CreateVolumeAttachment contentType V1alpha1VolumeAttachment accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
CreateVolumeAttachment contentType V1alpha1VolumeAttachment 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
CreateVolumeAttachment contentType V1alpha1VolumeAttachment accept
-> V1alpha1VolumeAttachment
-> KubernetesRequest
CreateVolumeAttachment contentType V1alpha1VolumeAttachment 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` V1alpha1VolumeAttachment
body
data CreateVolumeAttachment
instance HasBodyParam CreateVolumeAttachment V1alpha1VolumeAttachment
instance HasOptionalParam CreateVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest CreateVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest CreateVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest CreateVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest CreateVolumeAttachment contentType res accept
req KubernetesRequest CreateVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateVolumeAttachment 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 CreateVolumeAttachment DryRun where
applyOptionalParam :: KubernetesRequest CreateVolumeAttachment contentType res accept
-> DryRun
-> KubernetesRequest CreateVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest CreateVolumeAttachment contentType res accept
req (DryRun Text
xs) =
KubernetesRequest CreateVolumeAttachment contentType res accept
req KubernetesRequest CreateVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateVolumeAttachment 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 CreateVolumeAttachment FieldManager where
applyOptionalParam :: KubernetesRequest CreateVolumeAttachment contentType res accept
-> FieldManager
-> KubernetesRequest CreateVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest CreateVolumeAttachment contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest CreateVolumeAttachment contentType res accept
req KubernetesRequest CreateVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateVolumeAttachment 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 CreateVolumeAttachment mtype
instance Produces CreateVolumeAttachment MimeJSON
instance Produces CreateVolumeAttachment MimeVndKubernetesProtobuf
instance Produces CreateVolumeAttachment MimeYaml
deleteCollectionVolumeAttachment
:: (Consumes DeleteCollectionVolumeAttachment contentType)
=> ContentType contentType
-> Accept accept
-> KubernetesRequest DeleteCollectionVolumeAttachment contentType V1Status accept
deleteCollectionVolumeAttachment :: ContentType contentType
-> Accept accept
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType V1Status accept
deleteCollectionVolumeAttachment ContentType contentType
_ Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments"]
KubernetesRequest
DeleteCollectionVolumeAttachment contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment
instance HasBodyParam DeleteCollectionVolumeAttachment V1DeleteOptions
instance HasOptionalParam DeleteCollectionVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment Continue where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (Continue Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment DryRun where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment FieldSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment LabelSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment Limit where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (Limit Int
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment ResourceVersion where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
req KubernetesRequest
DeleteCollectionVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionVolumeAttachment 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 DeleteCollectionVolumeAttachment mtype
instance Produces DeleteCollectionVolumeAttachment MimeJSON
instance Produces DeleteCollectionVolumeAttachment MimeVndKubernetesProtobuf
instance Produces DeleteCollectionVolumeAttachment MimeYaml
deleteVolumeAttachment
:: (Consumes DeleteVolumeAttachment contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest DeleteVolumeAttachment contentType V1Status accept
deleteVolumeAttachment :: ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest
DeleteVolumeAttachment contentType V1Status accept
deleteVolumeAttachment ContentType contentType
_ Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteVolumeAttachment contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
DeleteVolumeAttachment contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteVolumeAttachment 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 DeleteVolumeAttachment
instance HasBodyParam DeleteVolumeAttachment V1DeleteOptions
instance HasOptionalParam DeleteVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest DeleteVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest DeleteVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest DeleteVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteVolumeAttachment contentType res accept
req KubernetesRequest DeleteVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteVolumeAttachment 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 DeleteVolumeAttachment DryRun where
applyOptionalParam :: KubernetesRequest DeleteVolumeAttachment contentType res accept
-> DryRun
-> KubernetesRequest DeleteVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest DeleteVolumeAttachment contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteVolumeAttachment contentType res accept
req KubernetesRequest DeleteVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteVolumeAttachment 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 DeleteVolumeAttachment GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteVolumeAttachment contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest DeleteVolumeAttachment contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteVolumeAttachment contentType res accept
req KubernetesRequest DeleteVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteVolumeAttachment 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 DeleteVolumeAttachment OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteVolumeAttachment contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest DeleteVolumeAttachment contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteVolumeAttachment contentType res accept
req KubernetesRequest DeleteVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteVolumeAttachment 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 DeleteVolumeAttachment PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteVolumeAttachment contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest DeleteVolumeAttachment contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteVolumeAttachment contentType res accept
req KubernetesRequest DeleteVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteVolumeAttachment 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 DeleteVolumeAttachment mtype
instance Produces DeleteVolumeAttachment MimeJSON
instance Produces DeleteVolumeAttachment MimeVndKubernetesProtobuf
instance Produces DeleteVolumeAttachment 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/storage.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
listVolumeAttachment
:: Accept accept
-> KubernetesRequest ListVolumeAttachment MimeNoContent V1alpha1VolumeAttachmentList accept
listVolumeAttachment :: Accept accept
-> KubernetesRequest
ListVolumeAttachment
MimeNoContent
V1alpha1VolumeAttachmentList
accept
listVolumeAttachment Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListVolumeAttachment
MimeNoContent
V1alpha1VolumeAttachmentList
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments"]
KubernetesRequest
ListVolumeAttachment
MimeNoContent
V1alpha1VolumeAttachmentList
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListVolumeAttachment
MimeNoContent
V1alpha1VolumeAttachmentList
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 ListVolumeAttachment
instance HasOptionalParam ListVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment Continue where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> Continue
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment FieldSelector where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> FieldSelector
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment LabelSelector where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> LabelSelector
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment Limit where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> Limit
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment ResourceVersion where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> ResourceVersion
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment Watch where
applyOptionalParam :: KubernetesRequest ListVolumeAttachment contentType res accept
-> Watch
-> KubernetesRequest ListVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ListVolumeAttachment contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListVolumeAttachment contentType res accept
req KubernetesRequest ListVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ListVolumeAttachment 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 ListVolumeAttachment MimeJSON
instance Produces ListVolumeAttachment MimeJsonstreamwatch
instance Produces ListVolumeAttachment MimeVndKubernetesProtobuf
instance Produces ListVolumeAttachment MimeVndKubernetesProtobufstreamwatch
instance Produces ListVolumeAttachment MimeYaml
patchVolumeAttachment
:: (Consumes PatchVolumeAttachment contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest PatchVolumeAttachment contentType V1alpha1VolumeAttachment accept
patchVolumeAttachment :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest
PatchVolumeAttachment contentType V1alpha1VolumeAttachment accept
patchVolumeAttachment ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
PatchVolumeAttachment contentType V1alpha1VolumeAttachment accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
PatchVolumeAttachment contentType V1alpha1VolumeAttachment accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchVolumeAttachment contentType V1alpha1VolumeAttachment 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
PatchVolumeAttachment contentType V1alpha1VolumeAttachment accept
-> Body
-> KubernetesRequest
PatchVolumeAttachment contentType V1alpha1VolumeAttachment 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 PatchVolumeAttachment
instance HasBodyParam PatchVolumeAttachment Body
instance HasOptionalParam PatchVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest PatchVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest PatchVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest PatchVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchVolumeAttachment contentType res accept
req KubernetesRequest PatchVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchVolumeAttachment 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 PatchVolumeAttachment DryRun where
applyOptionalParam :: KubernetesRequest PatchVolumeAttachment contentType res accept
-> DryRun
-> KubernetesRequest PatchVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest PatchVolumeAttachment contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchVolumeAttachment contentType res accept
req KubernetesRequest PatchVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchVolumeAttachment 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 PatchVolumeAttachment FieldManager where
applyOptionalParam :: KubernetesRequest PatchVolumeAttachment contentType res accept
-> FieldManager
-> KubernetesRequest PatchVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest PatchVolumeAttachment contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchVolumeAttachment contentType res accept
req KubernetesRequest PatchVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchVolumeAttachment 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 PatchVolumeAttachment Force where
applyOptionalParam :: KubernetesRequest PatchVolumeAttachment contentType res accept
-> Force
-> KubernetesRequest PatchVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest PatchVolumeAttachment contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchVolumeAttachment contentType res accept
req KubernetesRequest PatchVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchVolumeAttachment 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 PatchVolumeAttachment MimeApplyPatchyaml
instance Consumes PatchVolumeAttachment MimeJsonPatchjson
instance Consumes PatchVolumeAttachment MimeMergePatchjson
instance Consumes PatchVolumeAttachment MimeStrategicMergePatchjson
instance Produces PatchVolumeAttachment MimeJSON
instance Produces PatchVolumeAttachment MimeVndKubernetesProtobuf
instance Produces PatchVolumeAttachment MimeYaml
readVolumeAttachment
:: Accept accept
-> Name
-> KubernetesRequest ReadVolumeAttachment MimeNoContent V1alpha1VolumeAttachment accept
readVolumeAttachment :: Accept accept
-> Name
-> KubernetesRequest
ReadVolumeAttachment MimeNoContent V1alpha1VolumeAttachment accept
readVolumeAttachment Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReadVolumeAttachment MimeNoContent V1alpha1VolumeAttachment accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReadVolumeAttachment MimeNoContent V1alpha1VolumeAttachment accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadVolumeAttachment MimeNoContent V1alpha1VolumeAttachment 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 ReadVolumeAttachment
instance HasOptionalParam ReadVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest ReadVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest ReadVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ReadVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadVolumeAttachment contentType res accept
req KubernetesRequest ReadVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadVolumeAttachment 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 ReadVolumeAttachment Exact where
applyOptionalParam :: KubernetesRequest ReadVolumeAttachment contentType res accept
-> Exact
-> KubernetesRequest ReadVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ReadVolumeAttachment contentType res accept
req (Exact Bool
xs) =
KubernetesRequest ReadVolumeAttachment contentType res accept
req KubernetesRequest ReadVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadVolumeAttachment 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 ReadVolumeAttachment Export where
applyOptionalParam :: KubernetesRequest ReadVolumeAttachment contentType res accept
-> Export
-> KubernetesRequest ReadVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ReadVolumeAttachment contentType res accept
req (Export Bool
xs) =
KubernetesRequest ReadVolumeAttachment contentType res accept
req KubernetesRequest ReadVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadVolumeAttachment 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 ReadVolumeAttachment MimeJSON
instance Produces ReadVolumeAttachment MimeVndKubernetesProtobuf
instance Produces ReadVolumeAttachment MimeYaml
replaceVolumeAttachment
:: (Consumes ReplaceVolumeAttachment contentType, MimeRender contentType V1alpha1VolumeAttachment)
=> ContentType contentType
-> Accept accept
-> V1alpha1VolumeAttachment
-> Name
-> KubernetesRequest ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment accept
replaceVolumeAttachment :: ContentType contentType
-> Accept accept
-> V1alpha1VolumeAttachment
-> Name
-> KubernetesRequest
ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment accept
replaceVolumeAttachment ContentType contentType
_ Accept accept
_ V1alpha1VolumeAttachment
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/storage.k8s.io/v1alpha1/volumeattachments/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment 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
ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment accept
-> V1alpha1VolumeAttachment
-> KubernetesRequest
ReplaceVolumeAttachment contentType V1alpha1VolumeAttachment 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` V1alpha1VolumeAttachment
body
data ReplaceVolumeAttachment
instance HasBodyParam ReplaceVolumeAttachment V1alpha1VolumeAttachment
instance HasOptionalParam ReplaceVolumeAttachment Pretty where
applyOptionalParam :: KubernetesRequest ReplaceVolumeAttachment contentType res accept
-> Pretty
-> KubernetesRequest ReplaceVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ReplaceVolumeAttachment contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceVolumeAttachment contentType res accept
req KubernetesRequest ReplaceVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceVolumeAttachment 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 ReplaceVolumeAttachment DryRun where
applyOptionalParam :: KubernetesRequest ReplaceVolumeAttachment contentType res accept
-> DryRun
-> KubernetesRequest ReplaceVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ReplaceVolumeAttachment contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceVolumeAttachment contentType res accept
req KubernetesRequest ReplaceVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceVolumeAttachment 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 ReplaceVolumeAttachment FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceVolumeAttachment contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceVolumeAttachment contentType res accept
applyOptionalParam KubernetesRequest ReplaceVolumeAttachment contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceVolumeAttachment contentType res accept
req KubernetesRequest ReplaceVolumeAttachment contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceVolumeAttachment 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 ReplaceVolumeAttachment mtype
instance Produces ReplaceVolumeAttachment MimeJSON
instance Produces ReplaceVolumeAttachment MimeVndKubernetesProtobuf
instance Produces ReplaceVolumeAttachment MimeYaml