generated/api/Models/RecoveryExpirationOptions.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>RecoveryExpirationOptions</summary>
    public partial class RecoveryExpirationOptions :
        Commvault.Powershell.Models.IRecoveryExpirationOptions,
        Commvault.Powershell.Models.IRecoveryExpirationOptionsInternal
    {

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

        /// <summary>Number of days after which recovered VMs are automatically cleaned up</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? DaysToExpire { get => this._daysToExpire; set => this._daysToExpire = value; }

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

        /// <summary>If true, cleans up recovered VMs after the set daysToExpire value</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? EnableExpirationOption { get => this._enableExpirationOption; set => this._enableExpirationOption = value; }

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

        /// <summary>
        /// Timestamp when the clean up of all recovered VMs happens on the rescued CommServe. It happens 4 hours before the CommServe
        /// expiration time
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? ExpirationTime { get => this._expirationTime; set => this._expirationTime = value; }

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

        /// <summary>Whether the CommServe is rescued or not</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsRescuedCommServe { get => this._isRescuedCommServe; set => this._isRescuedCommServe = value; }

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

        }
    }
    /// RecoveryExpirationOptions
    public partial interface IRecoveryExpirationOptions :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Number of days after which recovered VMs are automatically cleaned up</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Number of days after which recovered VMs are automatically cleaned up",
        SerializedName = @"daysToExpire",
        PossibleTypes = new [] { typeof(long) })]
        long? DaysToExpire { get; set; }
        /// <summary>If true, cleans up recovered VMs after the set daysToExpire value</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"If true, cleans up recovered VMs after the set daysToExpire value",
        SerializedName = @"enableExpirationOption",
        PossibleTypes = new [] { typeof(bool) })]
        bool? EnableExpirationOption { get; set; }
        /// <summary>
        /// Timestamp when the clean up of all recovered VMs happens on the rescued CommServe. It happens 4 hours before the CommServe
        /// expiration time
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Timestamp when the clean up of all recovered VMs happens on the rescued CommServe. It happens 4 hours before the CommServe expiration time",
        SerializedName = @"expirationTime",
        PossibleTypes = new [] { typeof(long) })]
        long? ExpirationTime { get; set; }
        /// <summary>Whether the CommServe is rescued or not</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Whether the CommServe is rescued or not",
        SerializedName = @"isRescuedCommServe",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsRescuedCommServe { get; set; }

    }
    /// RecoveryExpirationOptions
    internal partial interface IRecoveryExpirationOptionsInternal

    {
        /// <summary>Number of days after which recovered VMs are automatically cleaned up</summary>
        long? DaysToExpire { get; set; }
        /// <summary>If true, cleans up recovered VMs after the set daysToExpire value</summary>
        bool? EnableExpirationOption { get; set; }
        /// <summary>
        /// Timestamp when the clean up of all recovered VMs happens on the rescued CommServe. It happens 4 hours before the CommServe
        /// expiration time
        /// </summary>
        long? ExpirationTime { get; set; }
        /// <summary>Whether the CommServe is rescued or not</summary>
        bool? IsRescuedCommServe { get; set; }

    }
}