{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Agent.Evaluate.EvaluateTask.OnPush where

import Hercules.API.Agent.Evaluate.ImmutableInput (ImmutableInput)
import Hercules.API.Prelude

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