{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Agent.Build.BuildTask where

import Hercules.API.Prelude
import Hercules.API.Task (Task)

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