{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Agents.CreateClusterJoinToken where

import Hercules.API.Prelude

-- The owner account that the token applies to is in the path.
data CreateClusterJoinToken = CreateClusterJoinToken
  { CreateClusterJoinToken -> Text
description :: Text
  }
  deriving (forall x. Rep CreateClusterJoinToken x -> CreateClusterJoinToken
forall x. CreateClusterJoinToken -> Rep CreateClusterJoinToken x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateClusterJoinToken x -> CreateClusterJoinToken
$cfrom :: forall x. CreateClusterJoinToken -> Rep CreateClusterJoinToken x
Generic, Int -> CreateClusterJoinToken -> ShowS
[CreateClusterJoinToken] -> ShowS
CreateClusterJoinToken -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateClusterJoinToken] -> ShowS
$cshowList :: [CreateClusterJoinToken] -> ShowS
show :: CreateClusterJoinToken -> String
$cshow :: CreateClusterJoinToken -> String
showsPrec :: Int -> CreateClusterJoinToken -> ShowS
$cshowsPrec :: Int -> CreateClusterJoinToken -> ShowS
Show, CreateClusterJoinToken -> CreateClusterJoinToken -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateClusterJoinToken -> CreateClusterJoinToken -> Bool
$c/= :: CreateClusterJoinToken -> CreateClusterJoinToken -> Bool
== :: CreateClusterJoinToken -> CreateClusterJoinToken -> Bool
$c== :: CreateClusterJoinToken -> CreateClusterJoinToken -> Bool
Eq, CreateClusterJoinToken -> ()
forall a. (a -> ()) -> NFData a
rnf :: CreateClusterJoinToken -> ()
$crnf :: CreateClusterJoinToken -> ()
NFData, [CreateClusterJoinToken] -> Encoding
[CreateClusterJoinToken] -> Value
CreateClusterJoinToken -> Encoding
CreateClusterJoinToken -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CreateClusterJoinToken] -> Encoding
$ctoEncodingList :: [CreateClusterJoinToken] -> Encoding
toJSONList :: [CreateClusterJoinToken] -> Value
$ctoJSONList :: [CreateClusterJoinToken] -> Value
toEncoding :: CreateClusterJoinToken -> Encoding
$ctoEncoding :: CreateClusterJoinToken -> Encoding
toJSON :: CreateClusterJoinToken -> Value
$ctoJSON :: CreateClusterJoinToken -> Value
ToJSON, Value -> Parser [CreateClusterJoinToken]
Value -> Parser CreateClusterJoinToken
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CreateClusterJoinToken]
$cparseJSONList :: Value -> Parser [CreateClusterJoinToken]
parseJSON :: Value -> Parser CreateClusterJoinToken
$cparseJSON :: Value -> Parser CreateClusterJoinToken
FromJSON, Proxy CreateClusterJoinToken
-> Declare (Definitions Schema) NamedSchema
forall a.
(Proxy a -> Declare (Definitions Schema) NamedSchema) -> ToSchema a
declareNamedSchema :: Proxy CreateClusterJoinToken
-> Declare (Definitions Schema) NamedSchema
$cdeclareNamedSchema :: Proxy CreateClusterJoinToken
-> Declare (Definitions Schema) NamedSchema
ToSchema)