# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IpRestriction do @moduledoc """ IPRestriction defines IP-based access controls for an API key. When allowed_cidrs is non-empty, only requests from IPs matching at least one CIDR range are permitted. Empty allowed_cidrs means no IP restriction (all IPs allowed). IP restrictions apply to root API key and imported key verification only; derived tokens (JWT/macaroon) are stateless and not subject to IP checks. """ @derive Jason.Encoder defstruct [ :allowed_cidrs ] @type t :: %__MODULE__{ :allowed_cidrs => [String.t] | nil } def decode(value) do value end end