{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Inputs.ImmutableGitInput where

import Hercules.API.Prelude
import Hercules.API.Projects.SimpleJob (SimpleJob)
import Hercules.API.Repos.SimpleRepo (SimpleRepo)

data ImmutableGitInput = ImmutableGitInput
  { ImmutableGitInput -> Text
rev :: Text,
    ImmutableGitInput -> Text
ref :: Text,
    ImmutableGitInput -> Text
sshURL :: Text,
    ImmutableGitInput -> Text
httpURL :: Text,
    ImmutableGitInput -> Maybe SimpleRepo
repo :: Maybe SimpleRepo,
    ImmutableGitInput -> Maybe [SimpleJob]
jobs :: Maybe [SimpleJob],
    ImmutableGitInput -> Maybe Text
historyURL :: Maybe Text
  }
  deriving (forall x. Rep ImmutableGitInput x -> ImmutableGitInput
forall x. ImmutableGitInput -> Rep ImmutableGitInput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImmutableGitInput x -> ImmutableGitInput
$cfrom :: forall x. ImmutableGitInput -> Rep ImmutableGitInput x
Generic, Int -> ImmutableGitInput -> ShowS
[ImmutableGitInput] -> ShowS
ImmutableGitInput -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImmutableGitInput] -> ShowS
$cshowList :: [ImmutableGitInput] -> ShowS
show :: ImmutableGitInput -> String
$cshow :: ImmutableGitInput -> String
showsPrec :: Int -> ImmutableGitInput -> ShowS
$cshowsPrec :: Int -> ImmutableGitInput -> ShowS
Show, ImmutableGitInput -> ImmutableGitInput -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImmutableGitInput -> ImmutableGitInput -> Bool
$c/= :: ImmutableGitInput -> ImmutableGitInput -> Bool
== :: ImmutableGitInput -> ImmutableGitInput -> Bool
$c== :: ImmutableGitInput -> ImmutableGitInput -> Bool
Eq, ImmutableGitInput -> ()
forall a. (a -> ()) -> NFData a
rnf :: ImmutableGitInput -> ()
$crnf :: ImmutableGitInput -> ()
NFData, [ImmutableGitInput] -> Encoding
[ImmutableGitInput] -> Value
ImmutableGitInput -> Encoding
ImmutableGitInput -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImmutableGitInput] -> Encoding
$ctoEncodingList :: [ImmutableGitInput] -> Encoding
toJSONList :: [ImmutableGitInput] -> Value
$ctoJSONList :: [ImmutableGitInput] -> Value
toEncoding :: ImmutableGitInput -> Encoding
$ctoEncoding :: ImmutableGitInput -> Encoding
toJSON :: ImmutableGitInput -> Value
$ctoJSON :: ImmutableGitInput -> Value
ToJSON, Value -> Parser [ImmutableGitInput]
Value -> Parser ImmutableGitInput
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImmutableGitInput]
$cparseJSONList :: Value -> Parser [ImmutableGitInput]
parseJSON :: Value -> Parser ImmutableGitInput
$cparseJSON :: Value -> Parser ImmutableGitInput
FromJSON, Proxy ImmutableGitInput -> Declare (Definitions Schema) NamedSchema
forall a.
(Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a
declareNamedSchema :: Proxy ImmutableGitInput -> Declare (Definitions Schema) NamedSchema
$cdeclareNamedSchema :: Proxy ImmutableGitInput -> Declare (Definitions Schema) NamedSchema
ToSchema)