generated/api/Models/AnomalousAudit.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; /// <summary>structure to hold audit details</summary> public partial class AnomalousAudit : Commvault.Powershell.Models.IAnomalousAudit, Commvault.Powershell.Models.IAnomalousAuditInternal { /// <summary>Internal Acessors for User</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IAnomalousAuditInternal.User { get => (this._user = this._user ?? new Commvault.Powershell.Models.IdName()); set { {_user = value;} } } /// <summary>Backing field for <see cref="Count" /> property.</summary> private long? _count; /// <summary>number of audit operations in the given time</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Count { get => this._count; set => this._count = value; } /// <summary>Backing field for <see cref="FromTime" /> property.</summary> private long? _fromTime; /// <summary>time from when the audit operation was anomalous</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? FromTime { get => this._fromTime; set => this._fromTime = value; } /// <summary>Backing field for <see cref="MessageId" /> property.</summary> private long? _messageId; /// <summary>messageid of the audit operation</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? MessageId { get => this._messageId; set => this._messageId = value; } /// <summary>Backing field for <see cref="Operation" /> property.</summary> private string _operation; /// <summary>Audit operation</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Operation { get => this._operation; set => this._operation = value; } /// <summary>Backing field for <see cref="ToTime" /> property.</summary> private long? _toTime; /// <summary>time till which the audit operaion was anomalous</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? ToTime { get => this._toTime; set => this._toTime = value; } /// <summary>Backing field for <see cref="User" /> property.</summary> private Commvault.Powershell.Models.IIdName _user; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName User { get => (this._user = this._user ?? new Commvault.Powershell.Models.IdName()); set => this._user = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? UserId { get => ((Commvault.Powershell.Models.IIdNameInternal)User).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)User).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string UserName { get => ((Commvault.Powershell.Models.IIdNameInternal)User).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)User).Name = value ?? null; } /// <summary>Creates an new <see cref="AnomalousAudit" /> instance.</summary> public AnomalousAudit() { } } /// structure to hold audit details public partial interface IAnomalousAudit : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>number of audit operations in the given time</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"number of audit operations in the given time", SerializedName = @"count", PossibleTypes = new [] { typeof(long) })] long? Count { get; set; } /// <summary>time from when the audit operation was anomalous</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"time from when the audit operation was anomalous", SerializedName = @"fromTime", PossibleTypes = new [] { typeof(long) })] long? FromTime { get; set; } /// <summary>messageid of the audit operation</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"messageid of the audit operation", SerializedName = @"messageId", PossibleTypes = new [] { typeof(long) })] long? MessageId { get; set; } /// <summary>Audit operation</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Audit operation", SerializedName = @"operation", PossibleTypes = new [] { typeof(string) })] string Operation { get; set; } /// <summary>time till which the audit operaion was anomalous</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"time till which the audit operaion was anomalous", SerializedName = @"toTime", PossibleTypes = new [] { typeof(long) })] long? ToTime { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? UserId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string UserName { get; set; } } /// structure to hold audit details internal partial interface IAnomalousAuditInternal { /// <summary>number of audit operations in the given time</summary> long? Count { get; set; } /// <summary>time from when the audit operation was anomalous</summary> long? FromTime { get; set; } /// <summary>messageid of the audit operation</summary> long? MessageId { get; set; } /// <summary>Audit operation</summary> string Operation { get; set; } /// <summary>time till which the audit operaion was anomalous</summary> long? ToTime { get; set; } Commvault.Powershell.Models.IIdName User { get; set; } long? UserId { get; set; } string UserName { get; set; } } } |