{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.GitLab.CreateInstallationBuilderResponse where

import Hercules.API.GitLab.InstallationBuilder (InstallationBuilder)
import Hercules.API.Prelude

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