NetStorage.Operation (netstorage v0.2.2)

Operation struct defines an action to be perform against the Akamai NetStorage API.

Link to this section Summary

Functions

Returns a Operation struct with the specified fields.

Returns a Operation with the specified action.

Link to this section Types

@type action() :: atom() | binary() | keyword()
@type t() :: %NetStorage.Operation{
  action: action(),
  body: binary(),
  method: :get | :put | :post,
  opts: keyword(),
  parser: function(),
  path: binary(),
  version: integer()
}

Link to this section Functions

@spec new(fields :: keyword()) :: t()

Returns a Operation struct with the specified fields.

Link to this function

put_action(operation, action)

@spec put_action(operation :: t(), [{:action, action()}]) :: t()

Returns a Operation with the specified action.