Runbox.Scenario.OutputAction.DeleteAssetAttributes (runbox v7.0.1)

Parameters for output action Delete Asset Attributes.

The resulting output action will delete attributes of the given asset. This action succeeds even if the attributes do not exist.

Link to this section Summary

Types

t()

Delete Asset Attributes

Link to this section Types

@type t() :: %Runbox.Scenario.OutputAction.DeleteAssetAttributes{
  attributes: map(),
  id: Runbox.Scenario.OutputAction.asset_id(),
  type: Runbox.Scenario.OutputAction.asset_type()
}

Delete Asset Attributes

  • :type - asset type
  • :id - asset ID
  • :attributes - a map of attributes to be deleted

The leaf attributes of the :attributes map are deleted. E.g., if asset has the following attributes

%{
  "a": 1,
  "b": %{"c" => 2}
}

and the following :attributes are provided in the output action

%{
  "b": %{"c" => true}
}

then b.c attribute will be deleted, resulting in

%{
  "a": 1
  "b": %{}
}