cloudflare-api-0.1.0.0: Haskell bindings for the Cloudflare API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Cloudflare.Types

Synopsis

Documentation

data CloudflareAuth Source #

Cloudflare API token see https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ for instructions on creating a token

Constructors

CloudflareAuth 

data Account Source #

Cloudflare account information

Constructors

Account 

Fields

Instances

Instances details
FromJSON Account Source # 
Instance details

Defined in Network.Cloudflare.Types

Methods

parseJSON :: Value -> Parser Account

parseJSONList :: Value -> Parser [Account]

omittedField :: Maybe Account

Show Account Source # 
Instance details

Defined in Network.Cloudflare.Types

Eq Account Source # 
Instance details

Defined in Network.Cloudflare.Types

Ord Account Source # 
Instance details

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

Constructors

ResultOnly 

Fields

Instances

Instances details
FromJSON a => FromJSON (ResultOnly a) Source # 
Instance details

Defined in Network.Cloudflare.Types

Methods

parseJSON :: Value -> Parser (ResultOnly a)

parseJSONList :: Value -> Parser [ResultOnly a]

omittedField :: Maybe (ResultOnly a)

Show a => Show (ResultOnly a) Source # 
Instance details

Defined in Network.Cloudflare.Types

Eq a => Eq (ResultOnly a) Source # 
Instance details

Defined in Network.Cloudflare.Types

Ord a => Ord (ResultOnly a) Source # 
Instance details

Defined in Network.Cloudflare.Types

data ResultInfo Source #

Result information for Cloudflare API calls that return a list of results

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

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