generated/api/Models/EntityAuditInformation.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// 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>EntityAuditInformation</summary>
    public partial class EntityAuditInformation :
        Commvault.Powershell.Models.IEntityAuditInformation,
        Commvault.Powershell.Models.IEntityAuditInformationInternal
    {

        /// <summary>Backing field for <see cref="Messages" /> property.</summary>
        private string[] _messages;

        /// <summary>All the audit messages for this entry</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string[] Messages { get => this._messages; set => this._messages = value; }

        /// <summary>Backing field for <see cref="Operation" /> property.</summary>
        private string _operation;

        /// <summary>Operation performed</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Operation { get => this._operation; set => this._operation = value; }

        /// <summary>Backing field for <see cref="Severity" /> property.</summary>
        private string _severity;

        /// <summary>Defines the serverity of the audit entry</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Severity { get => this._severity; set => this._severity = value; }

        /// <summary>Backing field for <see cref="Time" /> property.</summary>
        private long? _time;

        /// <summary>Unix epoch time representation of audit entry</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Time { get => this._time; set => this._time = value; }

        /// <summary>Backing field for <see cref="User" /> property.</summary>
        private string _user;

        /// <summary>Name of the user</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string User { get => this._user; set => this._user = value; }

        /// <summary>Creates an new <see cref="EntityAuditInformation" /> instance.</summary>
        public EntityAuditInformation()
        {

        }
    }
    /// EntityAuditInformation
    public partial interface IEntityAuditInformation :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>All the audit messages for this entry</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"All the audit messages for this entry",
        SerializedName = @"messages",
        PossibleTypes = new [] { typeof(string) })]
        string[] Messages { get; set; }
        /// <summary>Operation performed</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Operation performed",
        SerializedName = @"operation",
        PossibleTypes = new [] { typeof(string) })]
        string Operation { get; set; }
        /// <summary>Defines the serverity of the audit entry</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Defines the serverity of the audit entry",
        SerializedName = @"severity",
        PossibleTypes = new [] { typeof(string) })]
        string Severity { get; set; }
        /// <summary>Unix epoch time representation of audit entry</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Unix epoch time representation of audit entry",
        SerializedName = @"time",
        PossibleTypes = new [] { typeof(long) })]
        long? Time { get; set; }
        /// <summary>Name of the user</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Name of the user",
        SerializedName = @"user",
        PossibleTypes = new [] { typeof(string) })]
        string User { get; set; }

    }
    /// EntityAuditInformation
    internal partial interface IEntityAuditInformationInternal

    {
        /// <summary>All the audit messages for this entry</summary>
        string[] Messages { get; set; }
        /// <summary>Operation performed</summary>
        string Operation { get; set; }
        /// <summary>Defines the serverity of the audit entry</summary>
        string Severity { get; set; }
        /// <summary>Unix epoch time representation of audit entry</summary>
        long? Time { get; set; }
        /// <summary>Name of the user</summary>
        string User { get; set; }

    }
}