Current section

Files

Jump to
diffo_example lib nbn resources characteristic_values nni_group_value.ex
Raw

lib/nbn/resources/characteristic_values/nni_group_value.ex

# SPDX-FileCopyrightText: 2025 diffo_example contributors <https://github.com/diffo-dev/diffo_example/graphs.contributors>
#
# SPDX-License-Identifier: MIT
defmodule DiffoExample.Nbn.NniGroupValue do
@moduledoc """
Diffo - TMF Service and Resource Management with a difference
NniGroupValue - AshTyped Struct for NNI Group Characteristic Value
"""
use Ash.TypedStruct, extensions: [AshJason.TypedStruct, AshOutstanding.TypedStruct]
jason do
pick [:name, :location]
compact(true)
end
outstanding do
expect [:name, :location]
end
typed_struct do
field :name, :string, description: "the NNI group name"
field :location, :string, description: "the Point of Interconnect (PoI) location"
end
end