{-# 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.ApiregistrationV1beta1 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
createAPIService
:: (Consumes CreateAPIService contentType, MimeRender contentType V1beta1APIService)
=> ContentType contentType
-> Accept accept
-> V1beta1APIService
-> KubernetesRequest CreateAPIService contentType V1beta1APIService accept
createAPIService :: ContentType contentType
-> Accept accept
-> V1beta1APIService
-> KubernetesRequest
CreateAPIService contentType V1beta1APIService accept
createAPIService ContentType contentType
_ Accept accept
_ V1beta1APIService
body =
Method
-> [ByteString]
-> KubernetesRequest
CreateAPIService contentType V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices"]
KubernetesRequest
CreateAPIService contentType V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
CreateAPIService contentType V1beta1APIService 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
CreateAPIService contentType V1beta1APIService accept
-> V1beta1APIService
-> KubernetesRequest
CreateAPIService contentType V1beta1APIService 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` V1beta1APIService
body
data CreateAPIService
instance HasBodyParam CreateAPIService V1beta1APIService
instance HasOptionalParam CreateAPIService Pretty where
applyOptionalParam :: KubernetesRequest CreateAPIService contentType res accept
-> Pretty
-> KubernetesRequest CreateAPIService contentType res accept
applyOptionalParam KubernetesRequest CreateAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest CreateAPIService contentType res accept
req KubernetesRequest CreateAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateAPIService 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 CreateAPIService DryRun where
applyOptionalParam :: KubernetesRequest CreateAPIService contentType res accept
-> DryRun
-> KubernetesRequest CreateAPIService contentType res accept
applyOptionalParam KubernetesRequest CreateAPIService contentType res accept
req (DryRun Text
xs) =
KubernetesRequest CreateAPIService contentType res accept
req KubernetesRequest CreateAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateAPIService 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 CreateAPIService FieldManager where
applyOptionalParam :: KubernetesRequest CreateAPIService contentType res accept
-> FieldManager
-> KubernetesRequest CreateAPIService contentType res accept
applyOptionalParam KubernetesRequest CreateAPIService contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest CreateAPIService contentType res accept
req KubernetesRequest CreateAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest CreateAPIService 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 CreateAPIService mtype
instance Produces CreateAPIService MimeJSON
instance Produces CreateAPIService MimeVndKubernetesProtobuf
instance Produces CreateAPIService MimeYaml
deleteAPIService
:: (Consumes DeleteAPIService contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest DeleteAPIService contentType V1Status accept
deleteAPIService :: ContentType contentType
-> Accept accept
-> Name
-> KubernetesRequest DeleteAPIService contentType V1Status accept
deleteAPIService ContentType contentType
_ Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest DeleteAPIService contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest DeleteAPIService contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest DeleteAPIService 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 DeleteAPIService
instance HasBodyParam DeleteAPIService V1DeleteOptions
instance HasOptionalParam DeleteAPIService Pretty where
applyOptionalParam :: KubernetesRequest DeleteAPIService contentType res accept
-> Pretty
-> KubernetesRequest DeleteAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteAPIService contentType res accept
req KubernetesRequest DeleteAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteAPIService 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 DeleteAPIService DryRun where
applyOptionalParam :: KubernetesRequest DeleteAPIService contentType res accept
-> DryRun
-> KubernetesRequest DeleteAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteAPIService contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteAPIService contentType res accept
req KubernetesRequest DeleteAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteAPIService 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 DeleteAPIService GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteAPIService contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest DeleteAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteAPIService contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteAPIService contentType res accept
req KubernetesRequest DeleteAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteAPIService 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 DeleteAPIService OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteAPIService contentType res accept
-> OrphanDependents
-> KubernetesRequest DeleteAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteAPIService contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteAPIService contentType res accept
req KubernetesRequest DeleteAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteAPIService 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 DeleteAPIService PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteAPIService contentType res accept
-> PropagationPolicy
-> KubernetesRequest DeleteAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteAPIService contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteAPIService contentType res accept
req KubernetesRequest DeleteAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest DeleteAPIService 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 DeleteAPIService mtype
instance Produces DeleteAPIService MimeJSON
instance Produces DeleteAPIService MimeVndKubernetesProtobuf
instance Produces DeleteAPIService MimeYaml
deleteCollectionAPIService
:: (Consumes DeleteCollectionAPIService contentType)
=> ContentType contentType
-> Accept accept
-> KubernetesRequest DeleteCollectionAPIService contentType V1Status accept
deleteCollectionAPIService :: ContentType contentType
-> Accept accept
-> KubernetesRequest
DeleteCollectionAPIService contentType V1Status accept
deleteCollectionAPIService ContentType contentType
_ Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionAPIService contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices"]
KubernetesRequest
DeleteCollectionAPIService contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService
instance HasBodyParam DeleteCollectionAPIService V1DeleteOptions
instance HasOptionalParam DeleteCollectionAPIService Pretty where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService Continue where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (Continue Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService DryRun where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (DryRun Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService FieldSelector where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService LabelSelector where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService Limit where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (Limit Int
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService OrphanDependents where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService PropagationPolicy where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService ResourceVersion where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService TimeoutSeconds where
applyOptionalParam :: KubernetesRequest DeleteCollectionAPIService contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionAPIService contentType res accept
applyOptionalParam KubernetesRequest DeleteCollectionAPIService contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest DeleteCollectionAPIService contentType res accept
req KubernetesRequest DeleteCollectionAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionAPIService 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 DeleteCollectionAPIService mtype
instance Produces DeleteCollectionAPIService MimeJSON
instance Produces DeleteCollectionAPIService MimeVndKubernetesProtobuf
instance Produces DeleteCollectionAPIService 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/apiregistration.k8s.io/v1beta1/"]
KubernetesRequest
GetAPIResources MimeNoContent V1APIResourceList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
GetAPIResources MimeNoContent V1APIResourceList accept
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall k (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
data GetAPIResources
instance Produces GetAPIResources MimeJSON
instance Produces GetAPIResources MimeVndKubernetesProtobuf
instance Produces GetAPIResources MimeYaml
listAPIService
:: Accept accept
-> KubernetesRequest ListAPIService MimeNoContent V1beta1APIServiceList accept
listAPIService :: Accept accept
-> KubernetesRequest
ListAPIService MimeNoContent V1beta1APIServiceList accept
listAPIService Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListAPIService MimeNoContent V1beta1APIServiceList accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices"]
KubernetesRequest
ListAPIService MimeNoContent V1beta1APIServiceList accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListAPIService MimeNoContent V1beta1APIServiceList 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 ListAPIService
instance HasOptionalParam ListAPIService Pretty where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> Pretty
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService Continue where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> Continue
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (Continue Text
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService FieldSelector where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> FieldSelector
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService LabelSelector where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> LabelSelector
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService Limit where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> Limit -> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (Limit Int
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService ResourceVersion where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> ResourceVersion
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService TimeoutSeconds where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> TimeoutSeconds
-> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService Watch where
applyOptionalParam :: KubernetesRequest ListAPIService contentType res accept
-> Watch -> KubernetesRequest ListAPIService contentType res accept
applyOptionalParam KubernetesRequest ListAPIService contentType res accept
req (Watch Bool
xs) =
KubernetesRequest ListAPIService contentType res accept
req KubernetesRequest ListAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ListAPIService 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 ListAPIService MimeJSON
instance Produces ListAPIService MimeJsonstreamwatch
instance Produces ListAPIService MimeVndKubernetesProtobuf
instance Produces ListAPIService MimeVndKubernetesProtobufstreamwatch
instance Produces ListAPIService MimeYaml
patchAPIService
:: (Consumes PatchAPIService contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest PatchAPIService contentType V1beta1APIService accept
patchAPIService :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest
PatchAPIService contentType V1beta1APIService accept
patchAPIService ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
PatchAPIService contentType V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
PatchAPIService contentType V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchAPIService contentType V1beta1APIService 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
PatchAPIService contentType V1beta1APIService accept
-> Body
-> KubernetesRequest
PatchAPIService contentType V1beta1APIService 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 PatchAPIService
instance HasBodyParam PatchAPIService Body
instance HasOptionalParam PatchAPIService Pretty where
applyOptionalParam :: KubernetesRequest PatchAPIService contentType res accept
-> Pretty
-> KubernetesRequest PatchAPIService contentType res accept
applyOptionalParam KubernetesRequest PatchAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchAPIService contentType res accept
req KubernetesRequest PatchAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIService 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 PatchAPIService DryRun where
applyOptionalParam :: KubernetesRequest PatchAPIService contentType res accept
-> DryRun
-> KubernetesRequest PatchAPIService contentType res accept
applyOptionalParam KubernetesRequest PatchAPIService contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchAPIService contentType res accept
req KubernetesRequest PatchAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIService 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 PatchAPIService FieldManager where
applyOptionalParam :: KubernetesRequest PatchAPIService contentType res accept
-> FieldManager
-> KubernetesRequest PatchAPIService contentType res accept
applyOptionalParam KubernetesRequest PatchAPIService contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchAPIService contentType res accept
req KubernetesRequest PatchAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIService 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 PatchAPIService Force where
applyOptionalParam :: KubernetesRequest PatchAPIService contentType res accept
-> Force
-> KubernetesRequest PatchAPIService contentType res accept
applyOptionalParam KubernetesRequest PatchAPIService contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchAPIService contentType res accept
req KubernetesRequest PatchAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIService 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 PatchAPIService MimeApplyPatchyaml
instance Consumes PatchAPIService MimeJsonPatchjson
instance Consumes PatchAPIService MimeMergePatchjson
instance Consumes PatchAPIService MimeStrategicMergePatchjson
instance Produces PatchAPIService MimeJSON
instance Produces PatchAPIService MimeVndKubernetesProtobuf
instance Produces PatchAPIService MimeYaml
patchAPIServiceStatus
:: (Consumes PatchAPIServiceStatus contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest PatchAPIServiceStatus contentType V1beta1APIService accept
patchAPIServiceStatus :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> KubernetesRequest
PatchAPIServiceStatus contentType V1beta1APIService accept
patchAPIServiceStatus ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
PatchAPIServiceStatus contentType V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name,ByteString
"/status"]
KubernetesRequest
PatchAPIServiceStatus contentType V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchAPIServiceStatus contentType V1beta1APIService 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
PatchAPIServiceStatus contentType V1beta1APIService accept
-> Body
-> KubernetesRequest
PatchAPIServiceStatus contentType V1beta1APIService 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 PatchAPIServiceStatus
instance HasBodyParam PatchAPIServiceStatus Body
instance HasOptionalParam PatchAPIServiceStatus Pretty where
applyOptionalParam :: KubernetesRequest PatchAPIServiceStatus contentType res accept
-> Pretty
-> KubernetesRequest PatchAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest PatchAPIServiceStatus contentType res accept
req (Pretty Text
xs) =
KubernetesRequest PatchAPIServiceStatus contentType res accept
req KubernetesRequest PatchAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIServiceStatus 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 PatchAPIServiceStatus DryRun where
applyOptionalParam :: KubernetesRequest PatchAPIServiceStatus contentType res accept
-> DryRun
-> KubernetesRequest PatchAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest PatchAPIServiceStatus contentType res accept
req (DryRun Text
xs) =
KubernetesRequest PatchAPIServiceStatus contentType res accept
req KubernetesRequest PatchAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIServiceStatus 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 PatchAPIServiceStatus FieldManager where
applyOptionalParam :: KubernetesRequest PatchAPIServiceStatus contentType res accept
-> FieldManager
-> KubernetesRequest PatchAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest PatchAPIServiceStatus contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest PatchAPIServiceStatus contentType res accept
req KubernetesRequest PatchAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIServiceStatus 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 PatchAPIServiceStatus Force where
applyOptionalParam :: KubernetesRequest PatchAPIServiceStatus contentType res accept
-> Force
-> KubernetesRequest PatchAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest PatchAPIServiceStatus contentType res accept
req (Force Bool
xs) =
KubernetesRequest PatchAPIServiceStatus contentType res accept
req KubernetesRequest PatchAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest PatchAPIServiceStatus 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 PatchAPIServiceStatus MimeApplyPatchyaml
instance Consumes PatchAPIServiceStatus MimeJsonPatchjson
instance Consumes PatchAPIServiceStatus MimeMergePatchjson
instance Consumes PatchAPIServiceStatus MimeStrategicMergePatchjson
instance Produces PatchAPIServiceStatus MimeJSON
instance Produces PatchAPIServiceStatus MimeVndKubernetesProtobuf
instance Produces PatchAPIServiceStatus MimeYaml
readAPIService
:: Accept accept
-> Name
-> KubernetesRequest ReadAPIService MimeNoContent V1beta1APIService accept
readAPIService :: Accept accept
-> Name
-> KubernetesRequest
ReadAPIService MimeNoContent V1beta1APIService accept
readAPIService Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReadAPIService MimeNoContent V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReadAPIService MimeNoContent V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadAPIService MimeNoContent V1beta1APIService 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 ReadAPIService
instance HasOptionalParam ReadAPIService Pretty where
applyOptionalParam :: KubernetesRequest ReadAPIService contentType res accept
-> Pretty
-> KubernetesRequest ReadAPIService contentType res accept
applyOptionalParam KubernetesRequest ReadAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadAPIService contentType res accept
req KubernetesRequest ReadAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadAPIService 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 ReadAPIService Exact where
applyOptionalParam :: KubernetesRequest ReadAPIService contentType res accept
-> Exact -> KubernetesRequest ReadAPIService contentType res accept
applyOptionalParam KubernetesRequest ReadAPIService contentType res accept
req (Exact Bool
xs) =
KubernetesRequest ReadAPIService contentType res accept
req KubernetesRequest ReadAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadAPIService 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 ReadAPIService Export where
applyOptionalParam :: KubernetesRequest ReadAPIService contentType res accept
-> Export
-> KubernetesRequest ReadAPIService contentType res accept
applyOptionalParam KubernetesRequest ReadAPIService contentType res accept
req (Export Bool
xs) =
KubernetesRequest ReadAPIService contentType res accept
req KubernetesRequest ReadAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadAPIService 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 ReadAPIService MimeJSON
instance Produces ReadAPIService MimeVndKubernetesProtobuf
instance Produces ReadAPIService MimeYaml
readAPIServiceStatus
:: Accept accept
-> Name
-> KubernetesRequest ReadAPIServiceStatus MimeNoContent V1beta1APIService accept
readAPIServiceStatus :: Accept accept
-> Name
-> KubernetesRequest
ReadAPIServiceStatus MimeNoContent V1beta1APIService accept
readAPIServiceStatus Accept accept
_ (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReadAPIServiceStatus MimeNoContent V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name,ByteString
"/status"]
KubernetesRequest
ReadAPIServiceStatus MimeNoContent V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadAPIServiceStatus MimeNoContent V1beta1APIService 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 ReadAPIServiceStatus
instance HasOptionalParam ReadAPIServiceStatus Pretty where
applyOptionalParam :: KubernetesRequest ReadAPIServiceStatus contentType res accept
-> Pretty
-> KubernetesRequest ReadAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest ReadAPIServiceStatus contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReadAPIServiceStatus contentType res accept
req KubernetesRequest ReadAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest ReadAPIServiceStatus contentType res accept
forall req contentType res accept.
KubernetesRequest req contentType res accept
-> [QueryItem] -> KubernetesRequest req contentType res accept
`addQuery` (Method, Maybe Text) -> [QueryItem]
forall a. ToHttpApiData a => (Method, Maybe a) -> [QueryItem]
toQuery (Method
"pretty", Text -> Maybe Text
forall a. a -> Maybe a
Just Text
xs)
instance Produces ReadAPIServiceStatus MimeJSON
instance Produces ReadAPIServiceStatus MimeVndKubernetesProtobuf
instance Produces ReadAPIServiceStatus MimeYaml
replaceAPIService
:: (Consumes ReplaceAPIService contentType, MimeRender contentType V1beta1APIService)
=> ContentType contentType
-> Accept accept
-> V1beta1APIService
-> Name
-> KubernetesRequest ReplaceAPIService contentType V1beta1APIService accept
replaceAPIService :: ContentType contentType
-> Accept accept
-> V1beta1APIService
-> Name
-> KubernetesRequest
ReplaceAPIService contentType V1beta1APIService accept
replaceAPIService ContentType contentType
_ Accept accept
_ V1beta1APIService
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceAPIService contentType V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReplaceAPIService contentType V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceAPIService contentType V1beta1APIService 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
ReplaceAPIService contentType V1beta1APIService accept
-> V1beta1APIService
-> KubernetesRequest
ReplaceAPIService contentType V1beta1APIService 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` V1beta1APIService
body
data ReplaceAPIService
instance HasBodyParam ReplaceAPIService V1beta1APIService
instance HasOptionalParam ReplaceAPIService Pretty where
applyOptionalParam :: KubernetesRequest ReplaceAPIService contentType res accept
-> Pretty
-> KubernetesRequest ReplaceAPIService contentType res accept
applyOptionalParam KubernetesRequest ReplaceAPIService contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceAPIService contentType res accept
req KubernetesRequest ReplaceAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceAPIService 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 ReplaceAPIService DryRun where
applyOptionalParam :: KubernetesRequest ReplaceAPIService contentType res accept
-> DryRun
-> KubernetesRequest ReplaceAPIService contentType res accept
applyOptionalParam KubernetesRequest ReplaceAPIService contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceAPIService contentType res accept
req KubernetesRequest ReplaceAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceAPIService 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 ReplaceAPIService FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceAPIService contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceAPIService contentType res accept
applyOptionalParam KubernetesRequest ReplaceAPIService contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceAPIService contentType res accept
req KubernetesRequest ReplaceAPIService contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceAPIService 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 ReplaceAPIService mtype
instance Produces ReplaceAPIService MimeJSON
instance Produces ReplaceAPIService MimeVndKubernetesProtobuf
instance Produces ReplaceAPIService MimeYaml
replaceAPIServiceStatus
:: (Consumes ReplaceAPIServiceStatus contentType, MimeRender contentType V1beta1APIService)
=> ContentType contentType
-> Accept accept
-> V1beta1APIService
-> Name
-> KubernetesRequest ReplaceAPIServiceStatus contentType V1beta1APIService accept
replaceAPIServiceStatus :: ContentType contentType
-> Accept accept
-> V1beta1APIService
-> Name
-> KubernetesRequest
ReplaceAPIServiceStatus contentType V1beta1APIService accept
replaceAPIServiceStatus ContentType contentType
_ Accept accept
_ V1beta1APIService
body (Name Text
name) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceAPIServiceStatus contentType V1beta1APIService accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/apiregistration.k8s.io/v1beta1/apiservices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name,ByteString
"/status"]
KubernetesRequest
ReplaceAPIServiceStatus contentType V1beta1APIService accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceAPIServiceStatus contentType V1beta1APIService 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
ReplaceAPIServiceStatus contentType V1beta1APIService accept
-> V1beta1APIService
-> KubernetesRequest
ReplaceAPIServiceStatus contentType V1beta1APIService 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` V1beta1APIService
body
data ReplaceAPIServiceStatus
instance HasBodyParam ReplaceAPIServiceStatus V1beta1APIService
instance HasOptionalParam ReplaceAPIServiceStatus Pretty where
applyOptionalParam :: KubernetesRequest ReplaceAPIServiceStatus contentType res accept
-> Pretty
-> KubernetesRequest ReplaceAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest ReplaceAPIServiceStatus contentType res accept
req (Pretty Text
xs) =
KubernetesRequest ReplaceAPIServiceStatus contentType res accept
req KubernetesRequest ReplaceAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceAPIServiceStatus 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 ReplaceAPIServiceStatus DryRun where
applyOptionalParam :: KubernetesRequest ReplaceAPIServiceStatus contentType res accept
-> DryRun
-> KubernetesRequest ReplaceAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest ReplaceAPIServiceStatus contentType res accept
req (DryRun Text
xs) =
KubernetesRequest ReplaceAPIServiceStatus contentType res accept
req KubernetesRequest ReplaceAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceAPIServiceStatus 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 ReplaceAPIServiceStatus FieldManager where
applyOptionalParam :: KubernetesRequest ReplaceAPIServiceStatus contentType res accept
-> FieldManager
-> KubernetesRequest ReplaceAPIServiceStatus contentType res accept
applyOptionalParam KubernetesRequest ReplaceAPIServiceStatus contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest ReplaceAPIServiceStatus contentType res accept
req KubernetesRequest ReplaceAPIServiceStatus contentType res accept
-> [QueryItem]
-> KubernetesRequest ReplaceAPIServiceStatus 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 ReplaceAPIServiceStatus mtype
instance Produces ReplaceAPIServiceStatus MimeJSON
instance Produces ReplaceAPIServiceStatus MimeVndKubernetesProtobuf
instance Produces ReplaceAPIServiceStatus MimeYaml