{-# 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
$cto :: forall x. Rep OnPush x -> OnPush
$cfrom :: forall x. OnPush -> Rep OnPush x
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
showList :: [OnPush] -> ShowS
$cshowList :: [OnPush] -> ShowS
show :: OnPush -> String
$cshow :: OnPush -> String
showsPrec :: Int -> OnPush -> ShowS
$cshowsPrec :: Int -> OnPush -> ShowS
Show, OnPush -> OnPush -> Bool
(OnPush -> OnPush -> Bool)
-> (OnPush -> OnPush -> Bool) -> Eq OnPush
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OnPush -> OnPush -> Bool
$c/= :: OnPush -> OnPush -> Bool
== :: OnPush -> OnPush -> Bool
$c== :: OnPush -> OnPush -> Bool
Eq, OnPush -> ()
(OnPush -> ()) -> NFData OnPush
forall a. (a -> ()) -> NFData a
rnf :: OnPush -> ()
$crnf :: OnPush -> ()
NFData, [OnPush] -> Encoding
[OnPush] -> Value
OnPush -> Encoding
OnPush -> Value
(OnPush -> Value)
-> (OnPush -> Encoding)
-> ([OnPush] -> Value)
-> ([OnPush] -> Encoding)
-> ToJSON OnPush
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OnPush] -> Encoding
$ctoEncodingList :: [OnPush] -> Encoding
toJSONList :: [OnPush] -> Value
$ctoJSONList :: [OnPush] -> Value
toEncoding :: OnPush -> Encoding
$ctoEncoding :: OnPush -> Encoding
toJSON :: OnPush -> Value
$ctoJSON :: OnPush -> Value
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
parseJSONList :: Value -> Parser [OnPush]
$cparseJSONList :: Value -> Parser [OnPush]
parseJSON :: Value -> Parser OnPush
$cparseJSON :: Value -> Parser OnPush
FromJSON)