{-
   Alertmanager API
   API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)

   OpenAPI spec version: 0.0.1

   NOTE: This file is auto generated by the openapi-generator.
   https://github.com/openapitools/openapi-generator.git
   Do not edit this file manually.
-}


module Data.VersionInfo exposing (VersionInfo, decoder, encoder)

import Dict exposing (Dict)
import Json.Decode as Decode exposing (Decoder)
import Json.Decode.Pipeline exposing (optional, required)
import Json.Encode as Encode


type alias VersionInfo =
    { version : String
    , revision : String
    , branch : String
    , buildUser : String
    , buildDate : String
    , goVersion : String
    }


decoder : Decoder VersionInfo
decoder =
    Decode.succeed VersionInfo
        |> required "version" Decode.string
        |> required "revision" Decode.string
        |> required "branch" Decode.string
        |> required "buildUser" Decode.string
        |> required "buildDate" Decode.string
        |> required "goVersion" Decode.string


encoder : VersionInfo -> Encode.Value
encoder model =
    Encode.object
        [ ( "version", Encode.string model.version )
        , ( "revision", Encode.string model.revision )
        , ( "branch", Encode.string model.branch )
        , ( "buildUser", Encode.string model.buildUser )
        , ( "buildDate", Encode.string model.buildDate )
        , ( "goVersion", Encode.string model.goVersion )
        ]
