defmodule GitHub.Actions.OrganizationPermissions do
@moduledoc """
Provides struct and type for a Actions.OrganizationPermissions
"""
use GitHub.Encoder
@type t :: %__MODULE__{
__info__: map,
allowed_actions: String.t() | nil,
enabled_repositories: String.t(),
selected_actions_url: String.t() | nil,
selected_repositories_url: String.t() | nil
}
defstruct [
:__info__,
:allowed_actions,
:enabled_repositories,
:selected_actions_url,
:selected_repositories_url
]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
allowed_actions: {:enum, ["all", "local_only", "selected"]},
enabled_repositories: {:enum, ["all", "none", "selected"]},
selected_actions_url: {:string, :generic},
selected_repositories_url: {:string, :generic}
]
end
end