Packages

REST API Generated with swagger-codegen using the OpsGenie OpenAPI Specification.

Current section

Files

Jump to
ops_genie_restapi lib ops_genie_restapi model stackdriver_callback.ex
Raw

lib/ops_genie_restapi/model/stackdriver_callback.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 OpsGenieRESTAPI.Model.StackdriverCallback do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"alertFilter",
:"alertActions",
:"callback-type",
:"sendAlertActions",
:"bidirectional-callback-type",
:"stackdriverApiKey"
]
@type t :: %__MODULE__{
:"alertFilter" => AlertFilter,
:"alertActions" => [String.t],
:"callback-type" => String.t,
:"sendAlertActions" => boolean(),
:"bidirectional-callback-type" => String.t,
:"stackdriverApiKey" => String.t
}
end
defimpl Poison.Decoder, for: OpsGenieRESTAPI.Model.StackdriverCallback do
import OpsGenieRESTAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"alertFilter", :struct, OpsGenieRESTAPI.Model.AlertFilter, options)
end
end