module TD.Query.GetLogTagVerbosityLevel
(GetLogTagVerbosityLevel(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
import qualified Data.Text as T
data GetLogTagVerbosityLevel
= GetLogTagVerbosityLevel
{ GetLogTagVerbosityLevel -> Maybe Text
tag :: Maybe T.Text
}
deriving (GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool
(GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool)
-> (GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool)
-> Eq GetLogTagVerbosityLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool
== :: GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool
$c/= :: GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool
/= :: GetLogTagVerbosityLevel -> GetLogTagVerbosityLevel -> Bool
Eq, Int -> GetLogTagVerbosityLevel -> ShowS
[GetLogTagVerbosityLevel] -> ShowS
GetLogTagVerbosityLevel -> String
(Int -> GetLogTagVerbosityLevel -> ShowS)
-> (GetLogTagVerbosityLevel -> String)
-> ([GetLogTagVerbosityLevel] -> ShowS)
-> Show GetLogTagVerbosityLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetLogTagVerbosityLevel -> ShowS
showsPrec :: Int -> GetLogTagVerbosityLevel -> ShowS
$cshow :: GetLogTagVerbosityLevel -> String
show :: GetLogTagVerbosityLevel -> String
$cshowList :: [GetLogTagVerbosityLevel] -> ShowS
showList :: [GetLogTagVerbosityLevel] -> ShowS
Show)
instance I.ShortShow GetLogTagVerbosityLevel where
shortShow :: GetLogTagVerbosityLevel -> String
shortShow
GetLogTagVerbosityLevel
{ tag :: GetLogTagVerbosityLevel -> Maybe Text
tag = Maybe Text
tag_
}
= String
"GetLogTagVerbosityLevel"
String -> ShowS
forall a. [a] -> [a] -> [a]
++ [String] -> String
I.cc
[ String
"tag" String -> Maybe Text -> String
forall a. ShortShow a => String -> Maybe a -> String
`I.p` Maybe Text
tag_
]
instance AT.ToJSON GetLogTagVerbosityLevel where
toJSON :: GetLogTagVerbosityLevel -> Value
toJSON
GetLogTagVerbosityLevel
{ tag :: GetLogTagVerbosityLevel -> Maybe Text
tag = Maybe Text
tag_
}
= [Pair] -> Value
A.object
[ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"getLogTagVerbosityLevel"
, Key
"tag" Key -> Maybe Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Maybe Text
tag_
]