generated/api/Models/ServerPlanDatabaseOptions.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>This feature applies only to database agents</summary>
    public partial class ServerPlanDatabaseOptions :
        Commvault.Powershell.Models.IServerPlanDatabaseOptions,
        Commvault.Powershell.Models.IServerPlanDatabaseOptionsInternal
    {

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

        /// <summary>Commit frequency in hours</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? CommitFrequencyInHours { get => this._commitFrequencyInHours; set => this._commitFrequencyInHours = value; }

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

        /// <summary>Log backup RPO in minutes</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? LogBackupRpoMins { get => this._logBackupRpoMins; set => this._logBackupRpoMins = value; }

        /// <summary>Backing field for <see cref="UseDiskCacheForLogBackups" /> property.</summary>
        private bool? _useDiskCacheForLogBackups;

        /// <summary>Use disk cache for log backups</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? UseDiskCacheForLogBackups { get => this._useDiskCacheForLogBackups; set => this._useDiskCacheForLogBackups = value; }

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

        }
    }
    /// This feature applies only to database agents
    public partial interface IServerPlanDatabaseOptions :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Commit frequency in hours</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Commit frequency in hours",
        SerializedName = @"commitFrequencyInHours",
        PossibleTypes = new [] { typeof(long) })]
        long? CommitFrequencyInHours { get; set; }
        /// <summary>Log backup RPO in minutes</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Log backup RPO in minutes",
        SerializedName = @"logBackupRPOMins",
        PossibleTypes = new [] { typeof(long) })]
        long? LogBackupRpoMins { get; set; }
        /// <summary>Use disk cache for log backups</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Use disk cache for log backups",
        SerializedName = @"useDiskCacheForLogBackups",
        PossibleTypes = new [] { typeof(bool) })]
        bool? UseDiskCacheForLogBackups { get; set; }

    }
    /// This feature applies only to database agents
    internal partial interface IServerPlanDatabaseOptionsInternal

    {
        /// <summary>Commit frequency in hours</summary>
        long? CommitFrequencyInHours { get; set; }
        /// <summary>Log backup RPO in minutes</summary>
        long? LogBackupRpoMins { get; set; }
        /// <summary>Use disk cache for log backups</summary>
        bool? UseDiskCacheForLogBackups { get; set; }

    }
}