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 codeship_integration.ex
Raw

lib/ops_genie_restapi/model/codeship_integration.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.CodeshipIntegration do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"suppressNotifications",
:"ignoreTeamsFromPayload",
:"ignoreRecipientsFromPayload",
:"recipients",
:"isAdvanced",
:"ignoreTagsFromPayload",
:"ignoreExtraPropertiesFromPayload",
:"priority",
:"customPriority",
:"tags",
:"extraProperties",
:"assignedTeam",
:"feature-type",
:"allowConfigurationAccess",
:"allowWriteAccess",
:"type",
:"id",
:"name",
:"enabled",
:"ownerTeam",
:"isGlobal",
:"_readOnly"
]
@type t :: %__MODULE__{
:"suppressNotifications" => boolean(),
:"ignoreTeamsFromPayload" => boolean(),
:"ignoreRecipientsFromPayload" => boolean(),
:"recipients" => [Recipient],
:"isAdvanced" => boolean(),
:"ignoreTagsFromPayload" => boolean(),
:"ignoreExtraPropertiesFromPayload" => boolean(),
:"priority" => String.t,
:"customPriority" => String.t,
:"tags" => [String.t],
:"extraProperties" => %{optional(String.t) => String.t},
:"assignedTeam" => TeamMeta,
:"feature-type" => String.t,
:"allowConfigurationAccess" => boolean(),
:"allowWriteAccess" => boolean(),
:"type" => String.t,
:"id" => String.t,
:"name" => String.t,
:"enabled" => boolean(),
:"ownerTeam" => TeamMeta,
:"isGlobal" => boolean(),
:"_readOnly" => [String.t]
}
end
defimpl Poison.Decoder, for: OpsGenieRESTAPI.Model.CodeshipIntegration do
import OpsGenieRESTAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"recipients", :list, OpsGenieRESTAPI.Model.Recipient, options)
|> deserialize(:"assignedTeam", :struct, OpsGenieRESTAPI.Model.TeamMeta, options)
|> deserialize(:"ownerTeam", :struct, OpsGenieRESTAPI.Model.TeamMeta, options)
end
end