Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CloudflareAuth = CloudflareAuth {}
- data Account = Account {
- accountId :: Text
- accountName :: Text
- newtype ResultOnly a = ResultOnly {
- resultOnlyResult :: a
- data ResponseError = ResponseError {}
- data ResponseMessage = ResponseMessage {}
- data ResultInfo = ResultInfo {}
- data ResultResponse a = ResultResponse {
- resultErrors :: [ResponseError]
- resultMessages :: [ResponseMessage]
- resultSuccess :: Bool
- resultResult :: a
- data ResultWithInfo a = ResultWithInfo {}
Documentation
data CloudflareAuth Source #
Cloudflare API token see https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ for instructions on creating a token
Cloudflare account information
Account | |
|
Instances
FromJSON Account Source # | |
Defined in Network.Cloudflare.Types parseJSON :: Value -> Parser Account parseJSONList :: Value -> Parser [Account] | |
Show Account Source # | |
Eq Account Source # | |
Ord Account Source # | |
Defined in Network.Cloudflare.Types |
newtype ResultOnly a Source #
Result type for Cloudflare API calls that don't return any extra data and wrap the result in a "result" field
Instances
FromJSON a => FromJSON (ResultOnly a) Source # | |
Defined in Network.Cloudflare.Types parseJSON :: Value -> Parser (ResultOnly a) parseJSONList :: Value -> Parser [ResultOnly a] omittedField :: Maybe (ResultOnly a) | |
Show a => Show (ResultOnly a) Source # | |
Defined in Network.Cloudflare.Types | |
Eq a => Eq (ResultOnly a) Source # | |
Defined in Network.Cloudflare.Types (==) :: ResultOnly a -> ResultOnly a -> Bool Source # (/=) :: ResultOnly a -> ResultOnly a -> Bool Source # | |
Ord a => Ord (ResultOnly a) Source # | |
Defined in Network.Cloudflare.Types compare :: ResultOnly a -> ResultOnly a -> Ordering Source # (<) :: ResultOnly a -> ResultOnly a -> Bool Source # (<=) :: ResultOnly a -> ResultOnly a -> Bool Source # (>) :: ResultOnly a -> ResultOnly a -> Bool Source # (>=) :: ResultOnly a -> ResultOnly a -> Bool Source # max :: ResultOnly a -> ResultOnly a -> ResultOnly a Source # min :: ResultOnly a -> ResultOnly a -> ResultOnly a Source # |
data ResponseError Source #
Result type for Cloudflare API call errors
Instances
FromJSON ResponseError Source # | |
Defined in Network.Cloudflare.Types parseJSON :: Value -> Parser ResponseError parseJSONList :: Value -> Parser [ResponseError] | |
Show ResponseError Source # | |
Defined in Network.Cloudflare.Types | |
Eq ResponseError Source # | |
Defined in Network.Cloudflare.Types (==) :: ResponseError -> ResponseError -> Bool Source # (/=) :: ResponseError -> ResponseError -> Bool Source # | |
Ord ResponseError Source # | |
Defined in Network.Cloudflare.Types compare :: ResponseError -> ResponseError -> Ordering Source # (<) :: ResponseError -> ResponseError -> Bool Source # (<=) :: ResponseError -> ResponseError -> Bool Source # (>) :: ResponseError -> ResponseError -> Bool Source # (>=) :: ResponseError -> ResponseError -> Bool Source # max :: ResponseError -> ResponseError -> ResponseError Source # min :: ResponseError -> ResponseError -> ResponseError Source # |
data ResponseMessage Source #
Additional messages from Cloudflare API calls
Instances
FromJSON ResponseMessage Source # | |
Defined in Network.Cloudflare.Types parseJSON :: Value -> Parser ResponseMessage parseJSONList :: Value -> Parser [ResponseMessage] | |
Show ResponseMessage Source # | |
Defined in Network.Cloudflare.Types | |
Eq ResponseMessage Source # | |
Defined in Network.Cloudflare.Types (==) :: ResponseMessage -> ResponseMessage -> Bool Source # (/=) :: ResponseMessage -> ResponseMessage -> Bool Source # | |
Ord ResponseMessage Source # | |
Defined in Network.Cloudflare.Types compare :: ResponseMessage -> ResponseMessage -> Ordering Source # (<) :: ResponseMessage -> ResponseMessage -> Bool Source # (<=) :: ResponseMessage -> ResponseMessage -> Bool Source # (>) :: ResponseMessage -> ResponseMessage -> Bool Source # (>=) :: ResponseMessage -> ResponseMessage -> Bool Source # max :: ResponseMessage -> ResponseMessage -> ResponseMessage Source # min :: ResponseMessage -> ResponseMessage -> ResponseMessage Source # |
data ResultInfo Source #
Result information for Cloudflare API calls that return a list of results
Instances
FromJSON ResultInfo Source # | |
Defined in Network.Cloudflare.Types parseJSON :: Value -> Parser ResultInfo parseJSONList :: Value -> Parser [ResultInfo] | |
Show ResultInfo Source # | |
Defined in Network.Cloudflare.Types | |
Eq ResultInfo Source # | |
Defined in Network.Cloudflare.Types (==) :: ResultInfo -> ResultInfo -> Bool Source # (/=) :: ResultInfo -> ResultInfo -> Bool Source # | |
Ord ResultInfo Source # | |
Defined in Network.Cloudflare.Types compare :: ResultInfo -> ResultInfo -> Ordering Source # (<) :: ResultInfo -> ResultInfo -> Bool Source # (<=) :: ResultInfo -> ResultInfo -> Bool Source # (>) :: ResultInfo -> ResultInfo -> Bool Source # (>=) :: ResultInfo -> ResultInfo -> Bool Source # max :: ResultInfo -> ResultInfo -> ResultInfo Source # min :: ResultInfo -> ResultInfo -> ResultInfo Source # |
data ResultResponse a Source #
Result type for Cloudflare API calls that returns a result with a list of errors, a list of messages, and a success flag
ResultResponse | |
|
Instances
data ResultWithInfo a Source #
Result type for Cloudflare API calls that returns a result with meta information about the result, a list of errors, a list of messages, and a success flag