{-# LANGUAGE DeriveAnyClass #-}

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

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

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