{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Agent.Evaluate.EvaluateEvent.JobConfig where

import Hercules.API.Prelude

data JobConfig = JobConfig
  { JobConfig -> Maybe [Text]
sourceCaches :: Maybe [Text],
    JobConfig -> Maybe [Text]
binaryCaches :: Maybe [Text]
  }
  deriving (forall x. Rep JobConfig x -> JobConfig
forall x. JobConfig -> Rep JobConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobConfig x -> JobConfig
$cfrom :: forall x. JobConfig -> Rep JobConfig x
Generic, Int -> JobConfig -> ShowS
[JobConfig] -> ShowS
JobConfig -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobConfig] -> ShowS
$cshowList :: [JobConfig] -> ShowS
show :: JobConfig -> String
$cshow :: JobConfig -> String
showsPrec :: Int -> JobConfig -> ShowS
$cshowsPrec :: Int -> JobConfig -> ShowS
Show, JobConfig -> JobConfig -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobConfig -> JobConfig -> Bool
$c/= :: JobConfig -> JobConfig -> Bool
== :: JobConfig -> JobConfig -> Bool
$c== :: JobConfig -> JobConfig -> Bool
Eq, JobConfig -> ()
forall a. (a -> ()) -> NFData a
rnf :: JobConfig -> ()
$crnf :: JobConfig -> ()
NFData, [JobConfig] -> Encoding
[JobConfig] -> Value
JobConfig -> Encoding
JobConfig -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [JobConfig] -> Encoding
$ctoEncodingList :: [JobConfig] -> Encoding
toJSONList :: [JobConfig] -> Value
$ctoJSONList :: [JobConfig] -> Value
toEncoding :: JobConfig -> Encoding
$ctoEncoding :: JobConfig -> Encoding
toJSON :: JobConfig -> Value
$ctoJSON :: JobConfig -> Value
ToJSON, Value -> Parser [JobConfig]
Value -> Parser JobConfig
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [JobConfig]
$cparseJSONList :: Value -> Parser [JobConfig]
parseJSON :: Value -> Parser JobConfig
$cparseJSON :: Value -> Parser JobConfig
FromJSON)