defmodule GitHub.SecretScanning.Alert do @moduledoc """ Provides struct and type for SecretScanningAlert """ @type t :: %__MODULE__{ created_at: String.t() | nil, html_url: String.t() | nil, locations_url: String.t() | nil, number: integer | nil, push_protection_bypassed: boolean | nil, push_protection_bypassed_at: String.t() | nil, push_protection_bypassed_by: GitHub.User.simple() | nil, resolution: String.t() | nil, resolution_comment: String.t() | nil, resolved_at: String.t() | nil, resolved_by: GitHub.User.simple() | nil, secret: String.t() | nil, secret_type: String.t() | nil, secret_type_display_name: String.t() | nil, state: String.t() | nil, updated_at: String.t() | nil, url: String.t() | nil } defstruct [ :created_at, :html_url, :locations_url, :number, :push_protection_bypassed, :push_protection_bypassed_at, :push_protection_bypassed_by, :resolution, :resolution_comment, :resolved_at, :resolved_by, :secret, :secret_type, :secret_type_display_name, :state, :updated_at, :url ] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [ created_at: :string, html_url: :string, locations_url: :string, number: :integer, push_protection_bypassed: :boolean, push_protection_bypassed_at: :string, push_protection_bypassed_by: {GitHub.User, :simple}, resolution: :string, resolution_comment: :string, resolved_at: :string, resolved_by: {GitHub.User, :simple}, secret: :string, secret_type: :string, secret_type_display_name: :string, state: :string, updated_at: :string, url: :string ] end end