generated/api/Models/RecoveryEntityRpDetails.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>
    /// Contains the information regarding the recovery entity level recoveryPoint selection
    /// </summary>
    public partial class RecoveryEntityRpDetails :
        Commvault.Powershell.Models.IRecoveryEntityRpDetails,
        Commvault.Powershell.Models.IRecoveryEntityRpDetailsInternal
    {

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

        /// <summary>
        /// Timestamp for entity restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? EntityRecoveryPoint { get => this._entityRecoveryPoint; set => this._entityRecoveryPoint = value; }

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

        /// <summary>Type of recovery point category that can be selected. Default is Latest</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string EntityRecoveryPointCategory { get => this._entityRecoveryPointCategory; set => this._entityRecoveryPointCategory = value; }

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

        /// <summary>
        /// Describes from where the recovery point is inherited from. If not provided, recovery point will be used as if it is set
        /// at recovery group level
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string InheritedFrom { get => this._inheritedFrom; set => this._inheritedFrom = value; }

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

        }
    }
    /// Contains the information regarding the recovery entity level recoveryPoint selection
    public partial interface IRecoveryEntityRpDetails :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>
        /// Timestamp for entity restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Timestamp for entity restore in case of disaster, default value is 0 as latest recovery point",
        SerializedName = @"entityRecoveryPoint",
        PossibleTypes = new [] { typeof(long) })]
        long? EntityRecoveryPoint { get; set; }
        /// <summary>Type of recovery point category that can be selected. Default is Latest</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Type of recovery point category that can be selected. Default is Latest",
        SerializedName = @"entityRecoveryPointCategory",
        PossibleTypes = new [] { typeof(string) })]
        string EntityRecoveryPointCategory { get; set; }
        /// <summary>
        /// Describes from where the recovery point is inherited from. If not provided, recovery point will be used as if it is set
        /// at recovery group level
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Describes from where the recovery point is inherited from. If not provided, recovery point will be used as if it is set at recovery group level",
        SerializedName = @"inheritedFrom",
        PossibleTypes = new [] { typeof(string) })]
        string InheritedFrom { get; set; }

    }
    /// Contains the information regarding the recovery entity level recoveryPoint selection
    internal partial interface IRecoveryEntityRpDetailsInternal

    {
        /// <summary>
        /// Timestamp for entity restore in case of disaster, default value is 0 as latest recovery point
        /// </summary>
        long? EntityRecoveryPoint { get; set; }
        /// <summary>Type of recovery point category that can be selected. Default is Latest</summary>
        string EntityRecoveryPointCategory { get; set; }
        /// <summary>
        /// Describes from where the recovery point is inherited from. If not provided, recovery point will be used as if it is set
        /// at recovery group level
        /// </summary>
        string InheritedFrom { get; set; }

    }
}