36 lines
682 B
C#
36 lines
682 B
C#
namespace PS.IPAM;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// Represents an IP address entry in phpIPAM.
|
|
/// </summary>
|
|
[Serializable]
|
|
public sealed record Address(
|
|
int Id,
|
|
int SubnetId,
|
|
string Ip,
|
|
bool IsGateway,
|
|
string Description,
|
|
string Hostname,
|
|
string MAC,
|
|
string Owner,
|
|
int TagId,
|
|
int DeviceId,
|
|
string Location,
|
|
string Port,
|
|
string Note,
|
|
DateTime? LastSeen,
|
|
bool ExcludePing,
|
|
bool PTRIgnore,
|
|
int PTR,
|
|
string FirewallAddressObject,
|
|
DateTime? EditDate,
|
|
int CustomerId,
|
|
Dictionary<string, object>? ExtendedData = null
|
|
)
|
|
{
|
|
public override string ToString() => Ip;
|
|
}
|