Current section
Files
Jump to
Current section
Files
lib/hook_sniff_api/model/update_endpoint_request.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule HookSniffAPI.Model.UpdateEndpointRequest do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:url,
:description,
:is_active,
:allowed_ips,
:event_filter,
:custom_headers,
:retry_policy,
:routing_strategy,
:fallback_url,
:format
]
@type t :: %__MODULE__{
:url => Uri,
:description => String.t,
:is_active => boolean(),
:allowed_ips => [String.t],
:event_filter => [String.t],
:custom_headers => map() | nil,
:retry_policy => HookSniffAPI.Model.RetryPolicy.t,
:routing_strategy => String.t,
:fallback_url => Uri,
:format => String.t
}
alias HookSniffAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:url, :struct, HookSniffAPI.Model.Uri)
|> Deserializer.deserialize(:retry_policy, :struct, HookSniffAPI.Model.RetryPolicy)
|> Deserializer.deserialize(:fallback_url, :struct, HookSniffAPI.Model.Uri)
end
end