28 lines
542 B
C#
28 lines
542 B
C#
namespace PS.IPAM;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// Represents a VLAN in phpIPAM.
|
|
/// </summary>
|
|
[Serializable]
|
|
public sealed record Vlan(
|
|
int Id,
|
|
int DomainId,
|
|
string Name,
|
|
int Number,
|
|
string Description,
|
|
DateTime? EditDate,
|
|
int CustomerId,
|
|
Dictionary<string, object>? ExtendedData = null
|
|
)
|
|
{
|
|
/// <summary>
|
|
/// Alias for Id to maintain API compatibility.
|
|
/// </summary>
|
|
public int VlanId => Id;
|
|
|
|
public override string ToString() => Number.ToString();
|
|
}
|