{-# LANGUAGE DeriveAnyClass #-}

module Cachix.Types.DeployResponse where

import Data.Aeson
  ( FromJSON,
    ToJSON,
  )
import Data.HashMap.Strict
import Data.Swagger (ToSchema)
import Protolude

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