generated/api/Models/ServerPlanRpo.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>
    /// Recovery Point Objective (RPO) is the maximum amount of time that data can be lost during a service disruption. Your RPO
    /// determines the frequency of your backup jobs.
    /// </summary>
    public partial class ServerPlanRpo :
        Commvault.Powershell.Models.IServerPlanRpo,
        Commvault.Powershell.Models.IServerPlanRpoInternal
    {

        /// <summary>Backing field for <see cref="BackupFrequency" /> property.</summary>
        private Commvault.Powershell.Models.IPlanSchedules _backupFrequency;

        /// <summary>PlanSchedules</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IPlanSchedules BackupFrequency { get => (this._backupFrequency = this._backupFrequency ?? new Commvault.Powershell.Models.PlanSchedules()); set => this._backupFrequency = value; }

        /// <summary>Operation type for the list</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string BackupFrequencyOperationType { get => ((Commvault.Powershell.Models.IPlanSchedulesInternal)BackupFrequency).OperationType; set => ((Commvault.Powershell.Models.IPlanSchedulesInternal)BackupFrequency).OperationType = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public Commvault.Powershell.Models.IPlanSchedule[] BackupFrequencySchedules { get => ((Commvault.Powershell.Models.IPlanSchedulesInternal)BackupFrequency).Schedules; set => ((Commvault.Powershell.Models.IPlanSchedulesInternal)BackupFrequency).Schedules = value ?? null /* arrayOf */; }

        /// <summary>Backing field for <see cref="BackupWindow" /> property.</summary>
        private Commvault.Powershell.Models.IDayAndTime[] _backupWindow;

        /// <summary>Backup window for incremental backup</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IDayAndTime[] BackupWindow { get => this._backupWindow; set => this._backupWindow = value; }

        /// <summary>Internal Acessors for BackupFrequency</summary>
        Commvault.Powershell.Models.IPlanSchedules Commvault.Powershell.Models.IServerPlanRpoInternal.BackupFrequency { get => (this._backupFrequency = this._backupFrequency ?? new Commvault.Powershell.Models.PlanSchedules()); set { {_backupFrequency = value;} } }

        /// <summary>Internal Acessors for Sla</summary>
        Commvault.Powershell.Models.ISlaOptions Commvault.Powershell.Models.IServerPlanRpoInternal.Sla { get => (this._sla = this._sla ?? new Commvault.Powershell.Models.SlaOptions()); set { {_sla = value;} } }

        /// <summary>Internal Acessors for SynthfullCriteria</summary>
        Commvault.Powershell.Models.ISynthfullRetentionCriteria Commvault.Powershell.Models.IServerPlanRpoInternal.SynthfullCriteria { get => (this._synthfullCriteria = this._synthfullCriteria ?? new Commvault.Powershell.Models.SynthfullRetentionCriteria()); set { {_synthfullCriteria = value;} } }

        /// <summary>Backing field for <see cref="FullBackupWindow" /> property.</summary>
        private Commvault.Powershell.Models.IDayAndTime[] _fullBackupWindow;

        /// <summary>Backup window for full backup</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IDayAndTime[] FullBackupWindow { get => this._fullBackupWindow; set => this._fullBackupWindow = value; }

        /// <summary>Backing field for <see cref="Sla" /> property.</summary>
        private Commvault.Powershell.Models.ISlaOptions _sla;

        /// <summary>
        /// A server meets SLA (Service Level Agreement) when all of its subclients have at least one successful backup during the
        /// number of days specified at the CommCell, Server Group or plan level.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.ISlaOptions Sla { get => (this._sla = this._sla ?? new Commvault.Powershell.Models.SlaOptions()); set => this._sla = value; }

        /// <summary>Time provided in Unix format. Give 0 to reset any existing delay.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SlaEnableAfterDelay { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).EnableAfterDelay; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).EnableAfterDelay = value ?? default(long); }

        /// <summary>Flag to set to exclude plan from SLA</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public bool? SlaExcludeFromSla { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).ExcludeFromSla; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).ExcludeFromSla = value ?? default(bool); }

        /// <summary>Reason for exclusion from SLA</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SlaExclusionReason { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).ExclusionReason; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).ExclusionReason = value ?? null; }

        /// <summary>Tells us from where SLA Period was inherited</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SlaInheritedFrom { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).InheritedFrom; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).InheritedFrom = value ?? null; }

        /// <summary>Inherited SLA Period in Days</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SlaInheritedSlaPeriod { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).InheritedSlaPeriod; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).InheritedSlaPeriod = value ?? default(long); }

        /// <summary>Database log SLA period in Minutes</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SlaLogSlaMinutes { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).LogSlaMinutes; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).LogSlaMinutes = value ?? default(long); }

        /// <summary>SLA Period in Days</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SlaPeriod { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).SlaPeriod; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).SlaPeriod = value ?? default(long); }

        /// <summary>Flag to set to use System Default Service Level Agreement</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public bool? SlaUseSystemDefaultSla { get => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).UseSystemDefaultSla; set => ((Commvault.Powershell.Models.ISlaOptionsInternal)Sla).UseSystemDefaultSla = value ?? default(bool); }

        /// <summary>Backing field for <see cref="SynthfullCriteria" /> property.</summary>
        private Commvault.Powershell.Models.ISynthfullRetentionCriteria _synthfullCriteria;

        /// <summary>
        /// Server plan storage copies extended retention critera used for calculating synthfull schedule pattern
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.ISynthfullRetentionCriteria SynthfullCriteria { get => (this._synthfullCriteria = this._synthfullCriteria ?? new Commvault.Powershell.Models.SynthfullRetentionCriteria()); set => this._synthfullCriteria = value; }

        /// <summary>Tells us from where the rule was picked up</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SynthfullCriterionConfigType { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).ConfigType; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).ConfigType = value ?? null; }

        /// <summary>storage policy copy</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SynthfullCriterionCopyId { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).CopyId; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).CopyId = value ?? default(long); }

        /// <summary>storage policy copy name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SynthfullCriterionCopyName { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).CopyName; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).CopyName = value ?? null; }

        /// <summary>
        /// If set to true, will consider first full else will consider last full for the selective rule
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public bool? SynthfullCriterionFirstFull { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).FirstFull; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).FirstFull = value ?? default(bool); }

        /// <summary>Start Date in the month</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SynthfullCriterionMonthStart { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).MonthStart; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).MonthStart = value ?? default(long); }

        /// <summary>Tells us the retention duration</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SynthfullCriterionSelectiveRule { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).SelectiveRule; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).SelectiveRule = value ?? null; }

        /// <summary>storage Policy Id</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? SynthfullCriterionStoragePolicyId { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).StoragePolicyId; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).StoragePolicyId = value ?? default(long); }

        /// <summary>Storage Policy Name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SynthfullCriterionStoragePolicyName { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).StoragePolicyName; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).StoragePolicyName = value ?? null; }

        /// <summary>Start day of the week</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SynthfullCriterionWeekStart { get => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).WeekStart; set => ((Commvault.Powershell.Models.ISynthfullRetentionCriteriaInternal)SynthfullCriteria).WeekStart = value ?? null; }

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

        }
    }
    /// Recovery Point Objective (RPO) is the maximum amount of time that data can be lost during a service disruption. Your RPO
    /// determines the frequency of your backup jobs.
    public partial interface IServerPlanRpo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Operation type for the list</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Operation type for the list",
        SerializedName = @"operationType",
        PossibleTypes = new [] { typeof(string) })]
        string BackupFrequencyOperationType { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"schedules",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IPlanSchedule) })]
        Commvault.Powershell.Models.IPlanSchedule[] BackupFrequencySchedules { get; set; }
        /// <summary>Backup window for incremental backup</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Backup window for incremental backup",
        SerializedName = @"backupWindow",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDayAndTime) })]
        Commvault.Powershell.Models.IDayAndTime[] BackupWindow { get; set; }
        /// <summary>Backup window for full backup</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Backup window for full backup",
        SerializedName = @"fullBackupWindow",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDayAndTime) })]
        Commvault.Powershell.Models.IDayAndTime[] FullBackupWindow { get; set; }
        /// <summary>Time provided in Unix format. Give 0 to reset any existing delay.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Time provided in Unix format. Give 0 to reset any existing delay.",
        SerializedName = @"enableAfterDelay",
        PossibleTypes = new [] { typeof(long) })]
        long? SlaEnableAfterDelay { get; set; }
        /// <summary>Flag to set to exclude plan from SLA</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Flag to set to exclude plan from SLA",
        SerializedName = @"excludeFromSLA",
        PossibleTypes = new [] { typeof(bool) })]
        bool? SlaExcludeFromSla { get; set; }
        /// <summary>Reason for exclusion from SLA</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Reason for exclusion from SLA",
        SerializedName = @"exclusionReason",
        PossibleTypes = new [] { typeof(string) })]
        string SlaExclusionReason { get; set; }
        /// <summary>Tells us from where SLA Period was inherited</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Tells us from where SLA Period was inherited",
        SerializedName = @"inheritedFrom",
        PossibleTypes = new [] { typeof(string) })]
        string SlaInheritedFrom { get; set; }
        /// <summary>Inherited SLA Period in Days</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Inherited SLA Period in Days",
        SerializedName = @"inheritedSLAPeriod",
        PossibleTypes = new [] { typeof(long) })]
        long? SlaInheritedSlaPeriod { get; set; }
        /// <summary>Database log SLA period in Minutes</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Database log SLA period in Minutes",
        SerializedName = @"logSLAMinutes",
        PossibleTypes = new [] { typeof(long) })]
        long? SlaLogSlaMinutes { get; set; }
        /// <summary>SLA Period in Days</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"SLA Period in Days",
        SerializedName = @"SLAPeriod",
        PossibleTypes = new [] { typeof(long) })]
        long? SlaPeriod { get; set; }
        /// <summary>Flag to set to use System Default Service Level Agreement</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Flag to set to use System Default Service Level Agreement",
        SerializedName = @"useSystemDefaultSLA",
        PossibleTypes = new [] { typeof(bool) })]
        bool? SlaUseSystemDefaultSla { get; set; }
        /// <summary>Tells us from where the rule was picked up</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Tells us from where the rule was picked up",
        SerializedName = @"configType",
        PossibleTypes = new [] { typeof(string) })]
        string SynthfullCriterionConfigType { get; set; }
        /// <summary>storage policy copy</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"storage policy copy",
        SerializedName = @"copyId",
        PossibleTypes = new [] { typeof(long) })]
        long? SynthfullCriterionCopyId { get; set; }
        /// <summary>storage policy copy name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"storage policy copy name",
        SerializedName = @"copyName",
        PossibleTypes = new [] { typeof(string) })]
        string SynthfullCriterionCopyName { get; set; }
        /// <summary>
        /// If set to true, will consider first full else will consider last full for the selective rule
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"If set to true, will consider first full else will consider last full for the selective rule",
        SerializedName = @"firstFull",
        PossibleTypes = new [] { typeof(bool) })]
        bool? SynthfullCriterionFirstFull { get; set; }
        /// <summary>Start Date in the month</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Start Date in the month",
        SerializedName = @"monthStart",
        PossibleTypes = new [] { typeof(long) })]
        long? SynthfullCriterionMonthStart { get; set; }
        /// <summary>Tells us the retention duration</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Tells us the retention duration",
        SerializedName = @"selectiveRule",
        PossibleTypes = new [] { typeof(string) })]
        string SynthfullCriterionSelectiveRule { get; set; }
        /// <summary>storage Policy Id</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"storage Policy Id",
        SerializedName = @"storagePolicyId",
        PossibleTypes = new [] { typeof(long) })]
        long? SynthfullCriterionStoragePolicyId { get; set; }
        /// <summary>Storage Policy Name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Storage Policy Name",
        SerializedName = @"storagePolicyName",
        PossibleTypes = new [] { typeof(string) })]
        string SynthfullCriterionStoragePolicyName { get; set; }
        /// <summary>Start day of the week</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Start day of the week",
        SerializedName = @"weekStart",
        PossibleTypes = new [] { typeof(string) })]
        string SynthfullCriterionWeekStart { get; set; }

    }
    /// Recovery Point Objective (RPO) is the maximum amount of time that data can be lost during a service disruption. Your RPO
    /// determines the frequency of your backup jobs.
    internal partial interface IServerPlanRpoInternal

    {
        /// <summary>PlanSchedules</summary>
        Commvault.Powershell.Models.IPlanSchedules BackupFrequency { get; set; }
        /// <summary>Operation type for the list</summary>
        string BackupFrequencyOperationType { get; set; }

        Commvault.Powershell.Models.IPlanSchedule[] BackupFrequencySchedules { get; set; }
        /// <summary>Backup window for incremental backup</summary>
        Commvault.Powershell.Models.IDayAndTime[] BackupWindow { get; set; }
        /// <summary>Backup window for full backup</summary>
        Commvault.Powershell.Models.IDayAndTime[] FullBackupWindow { get; set; }
        /// <summary>
        /// A server meets SLA (Service Level Agreement) when all of its subclients have at least one successful backup during the
        /// number of days specified at the CommCell, Server Group or plan level.
        /// </summary>
        Commvault.Powershell.Models.ISlaOptions Sla { get; set; }
        /// <summary>Time provided in Unix format. Give 0 to reset any existing delay.</summary>
        long? SlaEnableAfterDelay { get; set; }
        /// <summary>Flag to set to exclude plan from SLA</summary>
        bool? SlaExcludeFromSla { get; set; }
        /// <summary>Reason for exclusion from SLA</summary>
        string SlaExclusionReason { get; set; }
        /// <summary>Tells us from where SLA Period was inherited</summary>
        string SlaInheritedFrom { get; set; }
        /// <summary>Inherited SLA Period in Days</summary>
        long? SlaInheritedSlaPeriod { get; set; }
        /// <summary>Database log SLA period in Minutes</summary>
        long? SlaLogSlaMinutes { get; set; }
        /// <summary>SLA Period in Days</summary>
        long? SlaPeriod { get; set; }
        /// <summary>Flag to set to use System Default Service Level Agreement</summary>
        bool? SlaUseSystemDefaultSla { get; set; }
        /// <summary>
        /// Server plan storage copies extended retention critera used for calculating synthfull schedule pattern
        /// </summary>
        Commvault.Powershell.Models.ISynthfullRetentionCriteria SynthfullCriteria { get; set; }
        /// <summary>Tells us from where the rule was picked up</summary>
        string SynthfullCriterionConfigType { get; set; }
        /// <summary>storage policy copy</summary>
        long? SynthfullCriterionCopyId { get; set; }
        /// <summary>storage policy copy name</summary>
        string SynthfullCriterionCopyName { get; set; }
        /// <summary>
        /// If set to true, will consider first full else will consider last full for the selective rule
        /// </summary>
        bool? SynthfullCriterionFirstFull { get; set; }
        /// <summary>Start Date in the month</summary>
        long? SynthfullCriterionMonthStart { get; set; }
        /// <summary>Tells us the retention duration</summary>
        string SynthfullCriterionSelectiveRule { get; set; }
        /// <summary>storage Policy Id</summary>
        long? SynthfullCriterionStoragePolicyId { get; set; }
        /// <summary>Storage Policy Name</summary>
        string SynthfullCriterionStoragePolicyName { get; set; }
        /// <summary>Start day of the week</summary>
        string SynthfullCriterionWeekStart { get; set; }

    }
}