{-# LANGUAGE DeriveAnyClass #-}

module Hercules.API.Accounts.CLIAuthorizationRequestCreateResponse where

import Hercules.API.Prelude

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