Packages

A client for [Stream](https://getstream.io) REST APIs in Elixir - auto generated from their [OpenAPI specification](https://github.com/GetStream/protocol).

Current section

Files

Jump to
ex_stream_client lib ex_stream_client model policy_request.ex
Raw

lib/ex_stream_client/model/policy_request.ex

defmodule ExStreamClient.Model.PolicyRequest do
@moduledoc "Schema representing a PolicyRequest"
use ExStreamClient.JSON
use ExStreamClient.TypeInterner
@enforce_keys [:action, :name, :owner, :priority, :resources, :roles]
defstruct [:action, :name, :owner, :priority, :resources, :roles]
@nested_components action: :enum
def nested_components do
@nested_components
end
@type t :: %__MODULE__{
action: :Allow | :Deny,
name: String.t(),
owner: boolean(),
priority: integer(),
resources: [String.t()],
roles: [String.t()]
}
end