{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Projects.PatchProject where

import Hercules.API.Prelude

-- | Changes to a Project. 'Nothing' represents no change in a field.
data PatchProject = PatchProject
  { PatchProject -> Maybe Bool
enabled :: Maybe Bool
  }
  deriving ((forall x. PatchProject -> Rep PatchProject x)
-> (forall x. Rep PatchProject x -> PatchProject)
-> Generic PatchProject
forall x. Rep PatchProject x -> PatchProject
forall x. PatchProject -> Rep PatchProject x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PatchProject x -> PatchProject
$cfrom :: forall x. PatchProject -> Rep PatchProject x
Generic, Int -> PatchProject -> ShowS
[PatchProject] -> ShowS
PatchProject -> String
(Int -> PatchProject -> ShowS)
-> (PatchProject -> String)
-> ([PatchProject] -> ShowS)
-> Show PatchProject
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PatchProject] -> ShowS
$cshowList :: [PatchProject] -> ShowS
show :: PatchProject -> String
$cshow :: PatchProject -> String
showsPrec :: Int -> PatchProject -> ShowS
$cshowsPrec :: Int -> PatchProject -> ShowS
Show, PatchProject -> PatchProject -> Bool
(PatchProject -> PatchProject -> Bool)
-> (PatchProject -> PatchProject -> Bool) -> Eq PatchProject
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PatchProject -> PatchProject -> Bool
$c/= :: PatchProject -> PatchProject -> Bool
== :: PatchProject -> PatchProject -> Bool
$c== :: PatchProject -> PatchProject -> Bool
Eq, PatchProject -> ()
(PatchProject -> ()) -> NFData PatchProject
forall a. (a -> ()) -> NFData a
rnf :: PatchProject -> ()
$crnf :: PatchProject -> ()
NFData, [PatchProject] -> Encoding
[PatchProject] -> Value
PatchProject -> Encoding
PatchProject -> Value
(PatchProject -> Value)
-> (PatchProject -> Encoding)
-> ([PatchProject] -> Value)
-> ([PatchProject] -> Encoding)
-> ToJSON PatchProject
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PatchProject] -> Encoding
$ctoEncodingList :: [PatchProject] -> Encoding
toJSONList :: [PatchProject] -> Value
$ctoJSONList :: [PatchProject] -> Value
toEncoding :: PatchProject -> Encoding
$ctoEncoding :: PatchProject -> Encoding
toJSON :: PatchProject -> Value
$ctoJSON :: PatchProject -> Value
ToJSON, Value -> Parser [PatchProject]
Value -> Parser PatchProject
(Value -> Parser PatchProject)
-> (Value -> Parser [PatchProject]) -> FromJSON PatchProject
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PatchProject]
$cparseJSONList :: Value -> Parser [PatchProject]
parseJSON :: Value -> Parser PatchProject
$cparseJSON :: Value -> Parser PatchProject
FromJSON, Proxy PatchProject -> Declare (Definitions Schema) NamedSchema
(Proxy PatchProject -> Declare (Definitions Schema) NamedSchema)
-> ToSchema PatchProject
forall a.
(Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a
declareNamedSchema :: Proxy PatchProject -> Declare (Definitions Schema) NamedSchema
$cdeclareNamedSchema :: Proxy PatchProject -> Declare (Definitions Schema) NamedSchema
ToSchema)