lib/nomad_client/model/autopilot_configuration.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.

defmodule NomadClient.Model.AutopilotConfiguration do
  @moduledoc """

  """

  @derive [Poison.Encoder]
  defstruct [
    :CleanupDeadServers,
    :LastContactThreshold,
    :MaxTrailingLogs,
    :MinQuorum,
    :ServerStabilizationTime,
    :EnableRedundancyZones,
    :DisableUpgradeMigration,
    :EnableCustomUpgrades,
    :CreateIndex,
    :ModifyIndex
  ]

  @type t :: %__MODULE__{
          :CleanupDeadServers => boolean() | nil,
          :LastContactThreshold => integer() | nil,
          :MaxTrailingLogs => integer() | nil,
          :MinQuorum => integer() | nil,
          :ServerStabilizationTime => integer() | nil,
          :EnableRedundancyZones => boolean() | nil,
          :DisableUpgradeMigration => boolean() | nil,
          :EnableCustomUpgrades => boolean() | nil,
          :CreateIndex => integer() | nil,
          :ModifyIndex => integer() | nil
        }
end

defimpl Poison.Decoder, for: NomadClient.Model.AutopilotConfiguration do
  def decode(value, _options) do
    value
  end
end