using ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections; namespace ZB.MOM.WW.OtOpcUa.Configuration.Entities; /// Origin-local export grant for a named authenticated peer principal. public sealed class DataExport { public Guid DataExportRowId { get; set; } public string DataExportId { get; set; } = ""; public string ClusterId { get; set; } = ""; public long Revision { get; set; } = 1; public bool Enabled { get; set; } public DataRealm Realm { get; set; } public string RootKind { get; set; } = ""; public string RootEntityId { get; set; } = ""; public string PrincipalId { get; set; } = ""; public DataOperations AllowedOperations { get; set; } public int MaxBatchItems { get; set; } = 1000; public int MaxPageItems { get; set; } = 500; public int MaxMonitoredItems { get; set; } = 10000; public int MaxStreams { get; set; } = 100; /// H2: concurrent remote HistoryRead requests admitted per principal (past it ⇒ BadTooManyOperations). public int MaxConcurrentHistoryReads { get; set; } = 4; /// H2: per-node page ceiling of a remote raw read (an uncapped read pages at this and returns a continuation). public int MaxHistoryValuesPerPage { get; set; } = 10000; /// H2: response-byte cap; a larger answer is split into bounded chunks (chunk_continues). public int MaxHistoryResponseBytes { get; set; } = 4 * 1024 * 1024; public byte[] RowVersion { get; set; } = []; }