Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module implements the endpoints described at Metadata API
Synopsis
- data MetadataAPI f = MetadataAPI {
- apiListMetadata :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("metadata" :> Get '[JSON] [Metadata])))))
- apiCreateMetadata :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("metadata" :> (ReqBody '[JSON] Metadata :> PostNoContent))))))
- apiGetMetadata :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("metadata" :> (Capture "kind" Text :> Get '[JSON] Metadata))))))
- apiUpdateMetadata :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("metadata" :> (Capture "kind" Text :> (ReqBody '[JSON] Metadata :> Put '[JSON] Metadata)))))))
- apiDeleteMetadata :: f :- ("servers" :> (Capture "server_id" Text :> ("zones" :> (Capture "zone_id" Text :> ("metadata" :> (Capture "kind" Text :> DeleteNoContent))))))
- data Metadata = Metadata {
- md_kind :: Text
- md_metadata :: [Text]
API
data MetadataAPI f Source #
MetadataAPI | |
|
Instances
Data types
Metadata | |
|
Instances
Eq Metadata Source # | |
Data Metadata Source # | |
Defined in PowerDNS.API.Metadata gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Metadata -> c Metadata # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Metadata # toConstr :: Metadata -> Constr # dataTypeOf :: Metadata -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Metadata) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Metadata) # gmapT :: (forall b. Data b => b -> b) -> Metadata -> Metadata # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Metadata -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Metadata -> r # gmapQ :: (forall d. Data d => d -> u) -> Metadata -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Metadata -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Metadata -> m Metadata # | |
Ord Metadata Source # | |
Defined in PowerDNS.API.Metadata | |
Show Metadata Source # | |
Generic Metadata Source # | |
ToJSON Metadata Source # | |
Defined in PowerDNS.API.Metadata | |
FromJSON Metadata Source # | |
NFData Metadata Source # | |
Defined in PowerDNS.API.Metadata | |
type Rep Metadata Source # | |
Defined in PowerDNS.API.Metadata type Rep Metadata = D1 ('MetaData "Metadata" "PowerDNS.API.Metadata" "powerdns-0.4.1-7JamDv2LDIOEBr1WHWJeCq" 'False) (C1 ('MetaCons "Metadata" 'PrefixI 'True) (S1 ('MetaSel ('Just "md_kind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "md_metadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text]))) |