ExKeyCDN.ZoneAliasBehaviour behaviour (exkeycdn v0.0.1)

Zone Aliases Behaviour

Link to this section Summary

Link to this section Callbacks

Specs

add(ExKeyCDN.ZoneAlias) ::
  [
    limits: [rate_limit_remaining: binary(), rate_limit: binary()],
    zone_alias: ExKeyCDN.ZoneAlias
  ]
  | {:error, binary() | ExKeyCDN.ErrorResponse.t()}

Add

Link to this callback

delete(integer)

Specs

delete(integer()) ::
  [
    limits: [rate_limit_remaining: binary(), rate_limit: binary()],
    zone_alias: :deleted
  ]
  | {:error, binary() | ExKeyCDN.ErrorResponse.t()}

Delete

Link to this callback

edit(integer, map)

Specs

edit(integer(), map()) ::
  [
    limits: [rate_limit_remaining: binary(), rate_limit: binary()],
    zone_alias: ExKeyCDN.ZoneAlias
  ]
  | {:error, binary() | ExKeyCDN.ErrorResponse.t()}

Edit

Specs

list() ::
  [
    limits: [rate_limit_remaining: binary(), rate_limit: binary()],
    zone_aliases: [ExKeyCDN.ZoneAlias]
  ]
  | {:error, binary() | ExKeyCDN.ErrorResponse.t()}

List