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