{-# 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.DiscoveryV1alpha1 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
createNamespacedEndpointSlice
:: (Consumes CreateNamespacedEndpointSlice contentType, MimeRender contentType V1alpha1EndpointSlice)
=> ContentType contentType
-> Accept accept
-> V1alpha1EndpointSlice
-> Namespace
-> KubernetesRequest CreateNamespacedEndpointSlice contentType V1alpha1EndpointSlice accept
createNamespacedEndpointSlice :: ContentType contentType
-> Accept accept
-> V1alpha1EndpointSlice
-> Namespace
-> KubernetesRequest
CreateNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
createNamespacedEndpointSlice ContentType contentType
_ Accept accept
_ V1alpha1EndpointSlice
body (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
CreateNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"POST" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices"]
KubernetesRequest
CreateNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
CreateNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
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
CreateNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
-> V1alpha1EndpointSlice
-> KubernetesRequest
CreateNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
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` V1alpha1EndpointSlice
body
data CreateNamespacedEndpointSlice
instance HasBodyParam CreateNamespacedEndpointSlice V1alpha1EndpointSlice
instance HasOptionalParam CreateNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
req KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
CreateNamespacedEndpointSlice 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 CreateNamespacedEndpointSlice DryRun where
applyOptionalParam :: KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
-> DryRun
-> KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
req KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
CreateNamespacedEndpointSlice 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 CreateNamespacedEndpointSlice FieldManager where
applyOptionalParam :: KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
-> FieldManager
-> KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
req KubernetesRequest
CreateNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
CreateNamespacedEndpointSlice 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 CreateNamespacedEndpointSlice mtype
instance Produces CreateNamespacedEndpointSlice MimeJSON
instance Produces CreateNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces CreateNamespacedEndpointSlice MimeYaml
deleteCollectionNamespacedEndpointSlice
:: (Consumes DeleteCollectionNamespacedEndpointSlice contentType)
=> ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest DeleteCollectionNamespacedEndpointSlice contentType V1Status accept
deleteCollectionNamespacedEndpointSlice :: ContentType contentType
-> Accept accept
-> Namespace
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType V1Status accept
deleteCollectionNamespacedEndpointSlice ContentType contentType
_ Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices"]
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice
instance HasBodyParam DeleteCollectionNamespacedEndpointSlice V1DeleteOptions
instance HasOptionalParam DeleteCollectionNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice Continue where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> Continue
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (Continue Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice DryRun where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> DryRun
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice FieldSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> FieldSelector
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice LabelSelector where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> LabelSelector
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice Limit where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> Limit
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (Limit Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice ResourceVersion where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> ResourceVersion
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteCollectionNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteCollectionNamespacedEndpointSlice 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 DeleteCollectionNamespacedEndpointSlice mtype
instance Produces DeleteCollectionNamespacedEndpointSlice MimeJSON
instance Produces DeleteCollectionNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces DeleteCollectionNamespacedEndpointSlice MimeYaml
deleteNamespacedEndpointSlice
:: (Consumes DeleteNamespacedEndpointSlice contentType)
=> ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest DeleteNamespacedEndpointSlice contentType V1Status accept
deleteNamespacedEndpointSlice :: ContentType contentType
-> Accept accept
-> Name
-> Namespace
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType V1Status accept
deleteNamespacedEndpointSlice ContentType contentType
_ Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType V1Status accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"DELETE" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
DeleteNamespacedEndpointSlice contentType V1Status accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
DeleteNamespacedEndpointSlice 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 DeleteNamespacedEndpointSlice
instance HasBodyParam DeleteNamespacedEndpointSlice V1DeleteOptions
instance HasOptionalParam DeleteNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedEndpointSlice 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 DeleteNamespacedEndpointSlice DryRun where
applyOptionalParam :: KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> DryRun
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedEndpointSlice 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 DeleteNamespacedEndpointSlice GracePeriodSeconds where
applyOptionalParam :: KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> GracePeriodSeconds
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req (GracePeriodSeconds Int
xs) =
KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedEndpointSlice 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 DeleteNamespacedEndpointSlice OrphanDependents where
applyOptionalParam :: KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> OrphanDependents
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req (OrphanDependents Bool
xs) =
KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedEndpointSlice 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 DeleteNamespacedEndpointSlice PropagationPolicy where
applyOptionalParam :: KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> PropagationPolicy
-> KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req (PropagationPolicy Text
xs) =
KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
req KubernetesRequest
DeleteNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
DeleteNamespacedEndpointSlice 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 DeleteNamespacedEndpointSlice mtype
instance Produces DeleteNamespacedEndpointSlice MimeJSON
instance Produces DeleteNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces DeleteNamespacedEndpointSlice 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/discovery.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
listEndpointSliceForAllNamespaces
:: Accept accept
-> KubernetesRequest ListEndpointSliceForAllNamespaces MimeNoContent V1alpha1EndpointSliceList accept
listEndpointSliceForAllNamespaces :: Accept accept
-> KubernetesRequest
ListEndpointSliceForAllNamespaces
MimeNoContent
V1alpha1EndpointSliceList
accept
listEndpointSliceForAllNamespaces Accept accept
_ =
Method
-> [ByteString]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces
MimeNoContent
V1alpha1EndpointSliceList
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/discovery.k8s.io/v1alpha1/endpointslices"]
KubernetesRequest
ListEndpointSliceForAllNamespaces
MimeNoContent
V1alpha1EndpointSliceList
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListEndpointSliceForAllNamespaces
MimeNoContent
V1alpha1EndpointSliceList
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 ListEndpointSliceForAllNamespaces
instance HasOptionalParam ListEndpointSliceForAllNamespaces AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces Continue where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> Continue
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (Continue Text
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces FieldSelector where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> FieldSelector
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces LabelSelector where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> LabelSelector
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces Limit where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> Limit
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (Limit Int
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces Pretty where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> Pretty
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces ResourceVersion where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> ResourceVersion
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces Watch where
applyOptionalParam :: KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> Watch
-> KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
applyOptionalParam KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req (Watch Bool
xs) =
KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
req KubernetesRequest
ListEndpointSliceForAllNamespaces contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListEndpointSliceForAllNamespaces 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 ListEndpointSliceForAllNamespaces MimeJSON
instance Produces ListEndpointSliceForAllNamespaces MimeJsonstreamwatch
instance Produces ListEndpointSliceForAllNamespaces MimeVndKubernetesProtobuf
instance Produces ListEndpointSliceForAllNamespaces MimeVndKubernetesProtobufstreamwatch
instance Produces ListEndpointSliceForAllNamespaces MimeYaml
listNamespacedEndpointSlice
:: Accept accept
-> Namespace
-> KubernetesRequest ListNamespacedEndpointSlice MimeNoContent V1alpha1EndpointSliceList accept
listNamespacedEndpointSlice :: Accept accept
-> Namespace
-> KubernetesRequest
ListNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSliceList
accept
listNamespacedEndpointSlice Accept accept
_ (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ListNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSliceList
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices"]
KubernetesRequest
ListNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSliceList
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ListNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSliceList
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 ListNamespacedEndpointSlice
instance HasOptionalParam ListNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice AllowWatchBookmarks where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> AllowWatchBookmarks
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (AllowWatchBookmarks Bool
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice Continue where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> Continue
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (Continue Text
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice FieldSelector where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> FieldSelector
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (FieldSelector Text
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice LabelSelector where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> LabelSelector
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (LabelSelector Text
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice Limit where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> Limit
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (Limit Int
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice ResourceVersion where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> ResourceVersion
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (ResourceVersion Text
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice TimeoutSeconds where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> TimeoutSeconds
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (TimeoutSeconds Int
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice Watch where
applyOptionalParam :: KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> Watch
-> KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req (Watch Bool
xs) =
KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ListNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ListNamespacedEndpointSlice 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 ListNamespacedEndpointSlice MimeJSON
instance Produces ListNamespacedEndpointSlice MimeJsonstreamwatch
instance Produces ListNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces ListNamespacedEndpointSlice MimeVndKubernetesProtobufstreamwatch
instance Produces ListNamespacedEndpointSlice MimeYaml
patchNamespacedEndpointSlice
:: (Consumes PatchNamespacedEndpointSlice contentType, MimeRender contentType Body)
=> ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest PatchNamespacedEndpointSlice contentType V1alpha1EndpointSlice accept
patchNamespacedEndpointSlice :: ContentType contentType
-> Accept accept
-> Body
-> Name
-> Namespace
-> KubernetesRequest
PatchNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
patchNamespacedEndpointSlice ContentType contentType
_ Accept accept
_ Body
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
PatchNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PATCH" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
PatchNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
PatchNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
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
PatchNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
-> Body
-> KubernetesRequest
PatchNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
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 PatchNamespacedEndpointSlice
instance HasBodyParam PatchNamespacedEndpointSlice Body
instance HasOptionalParam PatchNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedEndpointSlice 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 PatchNamespacedEndpointSlice DryRun where
applyOptionalParam :: KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> DryRun
-> KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedEndpointSlice 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 PatchNamespacedEndpointSlice FieldManager where
applyOptionalParam :: KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> FieldManager
-> KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedEndpointSlice 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 PatchNamespacedEndpointSlice Force where
applyOptionalParam :: KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> Force
-> KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req (Force Bool
xs) =
KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
req KubernetesRequest
PatchNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
PatchNamespacedEndpointSlice 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 PatchNamespacedEndpointSlice MimeApplyPatchyaml
instance Consumes PatchNamespacedEndpointSlice MimeJsonPatchjson
instance Consumes PatchNamespacedEndpointSlice MimeMergePatchjson
instance Consumes PatchNamespacedEndpointSlice MimeStrategicMergePatchjson
instance Produces PatchNamespacedEndpointSlice MimeJSON
instance Produces PatchNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces PatchNamespacedEndpointSlice MimeYaml
readNamespacedEndpointSlice
:: Accept accept
-> Name
-> Namespace
-> KubernetesRequest ReadNamespacedEndpointSlice MimeNoContent V1alpha1EndpointSlice accept
readNamespacedEndpointSlice :: Accept accept
-> Name
-> Namespace
-> KubernetesRequest
ReadNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSlice
accept
readNamespacedEndpointSlice Accept accept
_ (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReadNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSlice
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReadNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSlice
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReadNamespacedEndpointSlice
MimeNoContent
V1alpha1EndpointSlice
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 ReadNamespacedEndpointSlice
instance HasOptionalParam ReadNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReadNamespacedEndpointSlice 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 ReadNamespacedEndpointSlice Exact where
applyOptionalParam :: KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
-> Exact
-> KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
req (Exact Bool
xs) =
KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReadNamespacedEndpointSlice 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 ReadNamespacedEndpointSlice Export where
applyOptionalParam :: KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
-> Export
-> KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
req (Export Bool
xs) =
KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ReadNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReadNamespacedEndpointSlice 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 ReadNamespacedEndpointSlice MimeJSON
instance Produces ReadNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces ReadNamespacedEndpointSlice MimeYaml
replaceNamespacedEndpointSlice
:: (Consumes ReplaceNamespacedEndpointSlice contentType, MimeRender contentType V1alpha1EndpointSlice)
=> ContentType contentType
-> Accept accept
-> V1alpha1EndpointSlice
-> Name
-> Namespace
-> KubernetesRequest ReplaceNamespacedEndpointSlice contentType V1alpha1EndpointSlice accept
replaceNamespacedEndpointSlice :: ContentType contentType
-> Accept accept
-> V1alpha1EndpointSlice
-> Name
-> Namespace
-> KubernetesRequest
ReplaceNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
replaceNamespacedEndpointSlice ContentType contentType
_ Accept accept
_ V1alpha1EndpointSlice
body (Name Text
name) (Namespace Text
namespace) =
Method
-> [ByteString]
-> KubernetesRequest
ReplaceNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"PUT" [ByteString
"/apis/discovery.k8s.io/v1alpha1/namespaces/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
namespace,ByteString
"/endpointslices/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
name]
KubernetesRequest
ReplaceNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
ReplaceNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
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
ReplaceNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
accept
-> V1alpha1EndpointSlice
-> KubernetesRequest
ReplaceNamespacedEndpointSlice
contentType
V1alpha1EndpointSlice
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` V1alpha1EndpointSlice
body
data ReplaceNamespacedEndpointSlice
instance HasBodyParam ReplaceNamespacedEndpointSlice V1alpha1EndpointSlice
instance HasOptionalParam ReplaceNamespacedEndpointSlice Pretty where
applyOptionalParam :: KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
-> Pretty
-> KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
req (Pretty Text
xs) =
KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedEndpointSlice 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 ReplaceNamespacedEndpointSlice DryRun where
applyOptionalParam :: KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
-> DryRun
-> KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
req (DryRun Text
xs) =
KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedEndpointSlice 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 ReplaceNamespacedEndpointSlice FieldManager where
applyOptionalParam :: KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
-> FieldManager
-> KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
applyOptionalParam KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
req (FieldManager Text
xs) =
KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
req KubernetesRequest
ReplaceNamespacedEndpointSlice contentType res accept
-> [QueryItem]
-> KubernetesRequest
ReplaceNamespacedEndpointSlice 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 ReplaceNamespacedEndpointSlice mtype
instance Produces ReplaceNamespacedEndpointSlice MimeJSON
instance Produces ReplaceNamespacedEndpointSlice MimeVndKubernetesProtobuf
instance Produces ReplaceNamespacedEndpointSlice MimeYaml