Current section
Files
Jump to
Current section
Files
lib/docker_engine_api/model/swarm.ex
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule DockerEngineAPI.Model.Swarm do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:ID,
:Version,
:CreatedAt,
:UpdatedAt,
:Spec,
:TLSInfo,
:RootRotationInProgress,
:DataPathPort,
:DefaultAddrPool,
:SubnetSize,
:JoinTokens
]
@type t :: %__MODULE__{
:ID => String.t(),
:Version => ObjectVersion,
:CreatedAt => String.t(),
:UpdatedAt => String.t(),
:Spec => SwarmSpec,
:TLSInfo => TlsInfo,
:RootRotationInProgress => boolean(),
:DataPathPort => integer(),
:DefaultAddrPool => [String.t()],
:SubnetSize => integer(),
:JoinTokens => JoinTokens
}
end
defimpl Poison.Decoder, for: DockerEngineAPI.Model.Swarm do
import DockerEngineAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:Version, :struct, DockerEngineAPI.Model.ObjectVersion, options)
|> deserialize(:Spec, :struct, DockerEngineAPI.Model.SwarmSpec, options)
|> deserialize(:TLSInfo, :struct, DockerEngineAPI.Model.TlsInfo, options)
|> deserialize(:JoinTokens, :struct, DockerEngineAPI.Model.JoinTokens, options)
end
end