{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingStrategies #-}

module Hercules.API.Accounts.CLIAuthorizationRequestCreateResponse where

import Data.OpenApi qualified as O3
import Hercules.API.Prelude

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