generated/api/Models/ArchivePlanUpdateRpo.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> /// 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 ArchivePlanUpdateRpo : Commvault.Powershell.Models.IArchivePlanUpdateRpo, Commvault.Powershell.Models.IArchivePlanUpdateRpoInternal { /// <summary>Backing field for <see cref="BackupFrequency" /> property.</summary> private Commvault.Powershell.Models.IBackupFrequencyPattern _backupFrequency; /// <summary>Used to describe the frequency of backup</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IBackupFrequencyPattern BackupFrequency { get => (this._backupFrequency = this._backupFrequency ?? new Commvault.Powershell.Models.BackupFrequencyPattern()); set => this._backupFrequency = value; } /// <summary>Day on which to run the schedule, applicable for monthly, yearly</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? BackupFrequencyDayOfMonth { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).DayOfMonth; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).DayOfMonth = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string BackupFrequencyDayOfWeek { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).DayOfWeek; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).DayOfWeek = value ?? null; } /// <summary> /// Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, /// for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? BackupFrequencyFrequency { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).Frequency; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).Frequency = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string BackupFrequencyMonthOfYear { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).MonthOfYear; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).MonthOfYear = value ?? null; } /// <summary>schedule frequency type</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string BackupFrequencyScheduleFrequencyType { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).ScheduleFrequencyType; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).ScheduleFrequencyType = value ?? null; } /// <summary>start time of schedule in seconds for daily, weekly, monthly, yearly frequency</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? BackupFrequencyStartTime { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).StartTime; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).StartTime = value ?? default(long); } /// <summary>Specific week of a month</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string BackupFrequencyWeekOfMonth { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).WeekOfMonth; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).WeekOfMonth = value ?? null; } /// <summary>Days of the week for weekly frequency</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<string> BackupFrequencyWeeklyDays { get => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).WeeklyDays; set => ((Commvault.Powershell.Models.IBackupFrequencyPatternInternal)BackupFrequency).WeeklyDays = value ?? null /* arrayOf */; } /// <summary>Backing field for <see cref="BackupWindow" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IDayAndTime> _backupWindow; /// <summary>Archive job will run only in the specified archive window</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IDayAndTime> BackupWindow { get => this._backupWindow; set => this._backupWindow = value; } /// <summary>Internal Acessors for BackupFrequency</summary> Commvault.Powershell.Models.IBackupFrequencyPattern Commvault.Powershell.Models.IArchivePlanUpdateRpoInternal.BackupFrequency { get => (this._backupFrequency = this._backupFrequency ?? new Commvault.Powershell.Models.BackupFrequencyPattern()); set { {_backupFrequency = value;} } } /// <summary>Internal Acessors for Sla</summary> Commvault.Powershell.Models.ISlaUpdateOptions Commvault.Powershell.Models.IArchivePlanUpdateRpoInternal.Sla { get => (this._sla = this._sla ?? new Commvault.Powershell.Models.SlaUpdateOptions()); set { {_sla = value;} } } /// <summary>Backing field for <see cref="Sla" /> property.</summary> private Commvault.Powershell.Models.ISlaUpdateOptions _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.ISlaUpdateOptions Sla { get => (this._sla = this._sla ?? new Commvault.Powershell.Models.SlaUpdateOptions()); 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.ISlaUpdateOptionsInternal)Sla).EnableAfterDelay; set => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)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.ISlaUpdateOptionsInternal)Sla).ExcludeFromSla; set => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)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.ISlaUpdateOptionsInternal)Sla).ExclusionReason; set => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)Sla).ExclusionReason = value ?? null; } /// <summary>Database log SLA period in Minutes</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SlaLogSlaMinutes { get => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)Sla).LogSlaMinutes; set => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)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.ISlaUpdateOptionsInternal)Sla).SlaPeriod; set => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)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.ISlaUpdateOptionsInternal)Sla).UseSystemDefaultSla; set => ((Commvault.Powershell.Models.ISlaUpdateOptionsInternal)Sla).UseSystemDefaultSla = value ?? default(bool); } /// <summary>Creates an new <see cref="ArchivePlanUpdateRpo" /> instance.</summary> public ArchivePlanUpdateRpo() { } } /// 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 IArchivePlanUpdateRpo : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Day on which to run the schedule, applicable for monthly, yearly</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Day on which to run the schedule, applicable for monthly, yearly", SerializedName = @"dayOfMonth", PossibleTypes = new [] { typeof(long) })] long? BackupFrequencyDayOfMonth { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"dayOfWeek", PossibleTypes = new [] { typeof(string) })] string BackupFrequencyDayOfWeek { get; set; } /// <summary> /// Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, /// for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months", SerializedName = @"frequency", PossibleTypes = new [] { typeof(long) })] long? BackupFrequencyFrequency { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"monthOfYear", PossibleTypes = new [] { typeof(string) })] string BackupFrequencyMonthOfYear { get; set; } /// <summary>schedule frequency type</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"schedule frequency type", SerializedName = @"scheduleFrequencyType", PossibleTypes = new [] { typeof(string) })] string BackupFrequencyScheduleFrequencyType { get; set; } /// <summary>start time of schedule in seconds for daily, weekly, monthly, yearly frequency</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"start time of schedule in seconds for daily, weekly, monthly, yearly frequency", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] long? BackupFrequencyStartTime { get; set; } /// <summary>Specific week of a month</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Specific week of a month", SerializedName = @"weekOfMonth", PossibleTypes = new [] { typeof(string) })] string BackupFrequencyWeekOfMonth { get; set; } /// <summary>Days of the week for weekly frequency</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Days of the week for weekly frequency", SerializedName = @"weeklyDays", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List<string> BackupFrequencyWeeklyDays { get; set; } /// <summary>Archive job will run only in the specified archive window</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Archive job will run only in the specified archive window", SerializedName = @"backupWindow", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDayAndTime) })] System.Collections.Generic.List<Commvault.Powershell.Models.IDayAndTime> BackupWindow { get; set; } /// <summary>Time provided in Unix format. Give 0 to reset any existing delay.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"Reason for exclusion from SLA", SerializedName = @"exclusionReason", PossibleTypes = new [] { typeof(string) })] string SlaExclusionReason { get; set; } /// <summary>Database log SLA period in Minutes</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"Flag to set to use System Default Service Level Agreement", SerializedName = @"useSystemDefaultSLA", PossibleTypes = new [] { typeof(bool) })] bool? SlaUseSystemDefaultSla { 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 IArchivePlanUpdateRpoInternal { /// <summary>Used to describe the frequency of backup</summary> Commvault.Powershell.Models.IBackupFrequencyPattern BackupFrequency { get; set; } /// <summary>Day on which to run the schedule, applicable for monthly, yearly</summary> long? BackupFrequencyDayOfMonth { get; set; } string BackupFrequencyDayOfWeek { get; set; } /// <summary> /// Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, /// for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months /// </summary> long? BackupFrequencyFrequency { get; set; } string BackupFrequencyMonthOfYear { get; set; } /// <summary>schedule frequency type</summary> string BackupFrequencyScheduleFrequencyType { get; set; } /// <summary>start time of schedule in seconds for daily, weekly, monthly, yearly frequency</summary> long? BackupFrequencyStartTime { get; set; } /// <summary>Specific week of a month</summary> string BackupFrequencyWeekOfMonth { get; set; } /// <summary>Days of the week for weekly frequency</summary> System.Collections.Generic.List<string> BackupFrequencyWeeklyDays { get; set; } /// <summary>Archive job will run only in the specified archive window</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IDayAndTime> BackupWindow { 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.ISlaUpdateOptions 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>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; } } } |