generated/api/Models/ObjectStorePlanSchedule.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>Used to describe single plan schedule information</summary> public partial class ObjectStorePlanSchedule : Commvault.Powershell.Models.IObjectStorePlanSchedule, Commvault.Powershell.Models.IObjectStorePlanScheduleInternal { /// <summary>Internal Acessors for SchedulePattern</summary> Commvault.Powershell.Models.ISchedulePattern Commvault.Powershell.Models.IObjectStorePlanScheduleInternal.SchedulePattern { get => (this._schedulePattern = this._schedulePattern ?? new Commvault.Powershell.Models.SchedulePattern()); set { {_schedulePattern = value;} } } /// <summary>Internal Acessors for SchedulePatternTimezone</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IObjectStorePlanScheduleInternal.SchedulePatternTimezone { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).Timezone; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).Timezone = value; } /// <summary>Backing field for <see cref="PolicyId" /> property.</summary> private long? _policyId; /// <summary>Schedule policy Id to which the schedule belongs</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? PolicyId { get => this._policyId; set => this._policyId = value; } /// <summary>Backing field for <see cref="ScheduleId" /> property.</summary> private long? _scheduleId; /// <summary>Id of the schedule if available, required for modifying, deleting schedule</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? ScheduleId { get => this._scheduleId; set => this._scheduleId = value; } /// <summary>Backing field for <see cref="ScheduleName" /> property.</summary> private string _scheduleName; /// <summary>Name of the schedule, for modify</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ScheduleName { get => this._scheduleName; set => this._scheduleName = value; } /// <summary>Backing field for <see cref="ScheduleOperation" /> property.</summary> private string _scheduleOperation; /// <summary>Operation being performed on schedule</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ScheduleOperation { get => this._scheduleOperation; set => this._scheduleOperation = value; } /// <summary>Backing field for <see cref="SchedulePattern" /> property.</summary> private Commvault.Powershell.Models.ISchedulePattern _schedulePattern; /// <summary>Used to describe when the schedule runs</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ISchedulePattern SchedulePattern { get => (this._schedulePattern = this._schedulePattern ?? new Commvault.Powershell.Models.SchedulePattern()); set => this._schedulePattern = value; } /// <summary>Day on which to run the schedule, applicable for monthly, yearly</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternDayOfMonth { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).DayOfMonth; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).DayOfMonth = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SchedulePatternDayOfWeek { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).DayOfWeek; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).DayOfWeek = value ?? null; } /// <summary>No of days between two synthetic full jobs</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternDaysBetweenSyntheticFulls { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).DaysBetweenSyntheticFulls; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).DaysBetweenSyntheticFulls = value ?? default(long); } /// <summary>Schedule end date in epoch format</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternEndDate { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).EndDate; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).EndDate = value ?? default(long); } /// <summary> /// Exceptions to when a schedule should not run, either in dates or week of month and days /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<Commvault.Powershell.Models.IScheduleRunException> SchedulePatternExceptions { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).Exceptions; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).Exceptions = value ?? null /* arrayOf */; } /// <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? SchedulePatternFrequency { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).Frequency; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).Frequency = value ?? default(long); } /// <summary>The number of mins to force a backup on automatic schedule.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternMaxBackupIntervalInMins { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).MaxBackupIntervalInMins; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).MaxBackupIntervalInMins = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SchedulePatternMonthOfYear { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).MonthOfYear; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).MonthOfYear = value ?? null; } /// <summary>The number of times you want the schedule to run.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternNoOfTimes { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).NoOfTimes; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).NoOfTimes = value ?? default(long); } /// <summary> /// How often in minutes in a day the schedule runs, applicable for daily, weekly, monthly and yearly frequency types. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternRepeatIntervalInMinutes { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).RepeatIntervalInMinutes; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).RepeatIntervalInMinutes = value ?? default(long); } /// <summary> /// Until what time to repeat the schedule in a day, requires repeatIntervalInMinutes /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternRepeatUntilTime { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).RepeatUntilTime; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).RepeatUntilTime = value ?? default(long); } /// <summary>schedule frequency type</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SchedulePatternScheduleFrequencyType { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).ScheduleFrequencyType; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).ScheduleFrequencyType = value ; } /// <summary>start date of schedule in epoch format</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternStartDate { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).StartDate; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).StartDate = value ?? default(long); } /// <summary>start time of schedule in seconds</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SchedulePatternStartTime { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).StartTime; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).StartTime = value ?? default(long); } /// <summary>Specific week of a month</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SchedulePatternWeekOfMonth { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).WeekOfMonth; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).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> SchedulePatternWeeklyDays { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).WeeklyDays; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).WeeklyDays = value ?? null /* arrayOf */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? TimezoneId { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).TimezoneId; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).TimezoneId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string TimezoneName { get => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).TimezoneName; set => ((Commvault.Powershell.Models.ISchedulePatternInternal)SchedulePattern).TimezoneName = value ?? null; } /// <summary>Creates an new <see cref="ObjectStorePlanSchedule" /> instance.</summary> public ObjectStorePlanSchedule() { } } /// Used to describe single plan schedule information public partial interface IObjectStorePlanSchedule : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Schedule policy Id to which the schedule belongs</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Schedule policy Id to which the schedule belongs", SerializedName = @"policyId", PossibleTypes = new [] { typeof(long) })] long? PolicyId { get; set; } /// <summary>Id of the schedule if available, required for modifying, deleting schedule</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of the schedule if available, required for modifying, deleting schedule", SerializedName = @"scheduleId", PossibleTypes = new [] { typeof(long) })] long? ScheduleId { get; set; } /// <summary>Name of the schedule, for modify</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Name of the schedule, for modify", SerializedName = @"scheduleName", PossibleTypes = new [] { typeof(string) })] string ScheduleName { get; set; } /// <summary>Operation being performed on schedule</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Operation being performed on schedule", SerializedName = @"scheduleOperation", PossibleTypes = new [] { typeof(string) })] string ScheduleOperation { get; set; } /// <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? SchedulePatternDayOfMonth { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"dayOfWeek", PossibleTypes = new [] { typeof(string) })] string SchedulePatternDayOfWeek { get; set; } /// <summary>No of days between two synthetic full jobs</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"No of days between two synthetic full jobs", SerializedName = @"daysBetweenSyntheticFulls", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternDaysBetweenSyntheticFulls { get; set; } /// <summary>Schedule end date in epoch format</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Schedule end date in epoch format", SerializedName = @"endDate", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternEndDate { get; set; } /// <summary> /// Exceptions to when a schedule should not run, either in dates or week of month and days /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Exceptions to when a schedule should not run, either in dates or week of month and days", SerializedName = @"exceptions", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IScheduleRunException) })] System.Collections.Generic.List<Commvault.Powershell.Models.IScheduleRunException> SchedulePatternExceptions { 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? SchedulePatternFrequency { get; set; } /// <summary>The number of mins to force a backup on automatic schedule.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The number of mins to force a backup on automatic schedule.", SerializedName = @"maxBackupIntervalInMins", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternMaxBackupIntervalInMins { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"monthOfYear", PossibleTypes = new [] { typeof(string) })] string SchedulePatternMonthOfYear { get; set; } /// <summary>The number of times you want the schedule to run.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The number of times you want the schedule to run.", SerializedName = @"noOfTimes", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternNoOfTimes { get; set; } /// <summary> /// How often in minutes in a day the schedule runs, applicable for daily, weekly, monthly and yearly frequency types. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"How often in minutes in a day the schedule runs, applicable for daily, weekly, monthly and yearly frequency types.", SerializedName = @"repeatIntervalInMinutes", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternRepeatIntervalInMinutes { get; set; } /// <summary> /// Until what time to repeat the schedule in a day, requires repeatIntervalInMinutes /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Until what time to repeat the schedule in a day, requires repeatIntervalInMinutes", SerializedName = @"repeatUntilTime", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternRepeatUntilTime { get; set; } /// <summary>schedule frequency type</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"schedule frequency type", SerializedName = @"scheduleFrequencyType", PossibleTypes = new [] { typeof(string) })] string SchedulePatternScheduleFrequencyType { get; set; } /// <summary>start date of schedule in epoch format</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"start date of schedule in epoch format", SerializedName = @"startDate", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternStartDate { get; set; } /// <summary>start time of schedule in seconds</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"start time of schedule in seconds", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] long? SchedulePatternStartTime { 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 SchedulePatternWeekOfMonth { 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> SchedulePatternWeeklyDays { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? TimezoneId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string TimezoneName { get; set; } } /// Used to describe single plan schedule information internal partial interface IObjectStorePlanScheduleInternal { /// <summary>Schedule policy Id to which the schedule belongs</summary> long? PolicyId { get; set; } /// <summary>Id of the schedule if available, required for modifying, deleting schedule</summary> long? ScheduleId { get; set; } /// <summary>Name of the schedule, for modify</summary> string ScheduleName { get; set; } /// <summary>Operation being performed on schedule</summary> string ScheduleOperation { get; set; } /// <summary>Used to describe when the schedule runs</summary> Commvault.Powershell.Models.ISchedulePattern SchedulePattern { get; set; } /// <summary>Day on which to run the schedule, applicable for monthly, yearly</summary> long? SchedulePatternDayOfMonth { get; set; } string SchedulePatternDayOfWeek { get; set; } /// <summary>No of days between two synthetic full jobs</summary> long? SchedulePatternDaysBetweenSyntheticFulls { get; set; } /// <summary>Schedule end date in epoch format</summary> long? SchedulePatternEndDate { get; set; } /// <summary> /// Exceptions to when a schedule should not run, either in dates or week of month and days /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.IScheduleRunException> SchedulePatternExceptions { 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? SchedulePatternFrequency { get; set; } /// <summary>The number of mins to force a backup on automatic schedule.</summary> long? SchedulePatternMaxBackupIntervalInMins { get; set; } string SchedulePatternMonthOfYear { get; set; } /// <summary>The number of times you want the schedule to run.</summary> long? SchedulePatternNoOfTimes { get; set; } /// <summary> /// How often in minutes in a day the schedule runs, applicable for daily, weekly, monthly and yearly frequency types. /// </summary> long? SchedulePatternRepeatIntervalInMinutes { get; set; } /// <summary> /// Until what time to repeat the schedule in a day, requires repeatIntervalInMinutes /// </summary> long? SchedulePatternRepeatUntilTime { get; set; } /// <summary>schedule frequency type</summary> string SchedulePatternScheduleFrequencyType { get; set; } /// <summary>start date of schedule in epoch format</summary> long? SchedulePatternStartDate { get; set; } /// <summary>start time of schedule in seconds</summary> long? SchedulePatternStartTime { get; set; } Commvault.Powershell.Models.IIdName SchedulePatternTimezone { get; set; } /// <summary>Specific week of a month</summary> string SchedulePatternWeekOfMonth { get; set; } /// <summary>Days of the week for weekly frequency</summary> System.Collections.Generic.List<string> SchedulePatternWeeklyDays { get; set; } long? TimezoneId { get; set; } string TimezoneName { get; set; } } } |