generated/api/Models/DaysAndTimes.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>
    /// Days of the week along with the time on which the black out window will be in effect
    /// </summary>
    public partial class DaysAndTimes :
        Commvault.Powershell.Models.IDaysAndTimes,
        Commvault.Powershell.Models.IDaysAndTimesInternal
    {

        /// <summary>Internal Acessors for Time</summary>
        Commvault.Powershell.Models.IStartEnd Commvault.Powershell.Models.IDaysAndTimesInternal.Time { get => (this._time = this._time ?? new Commvault.Powershell.Models.StartEnd()); set { {_time = value;} } }

        /// <summary>Backing field for <see cref="Days" /> property.</summary>
        private string[] _days;

        /// <summary>Days of the week when the blackout window will be in effect.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string[] Days { get => this._days; set => this._days = value; }

        /// <summary>Backing field for <see cref="Time" /> property.</summary>
        private Commvault.Powershell.Models.IStartEnd _time;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IStartEnd Time { get => (this._time = this._time ?? new Commvault.Powershell.Models.StartEnd()); set => this._time = value; }

        /// <summary>the blackout window is no longer in effect from this point on.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? TimeEnd { get => ((Commvault.Powershell.Models.IStartEndInternal)Time).End; set => ((Commvault.Powershell.Models.IStartEndInternal)Time).End = value ?? default(long); }

        /// <summary>the blackout window comes into effect at this point.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? TimeStart { get => ((Commvault.Powershell.Models.IStartEndInternal)Time).Start; set => ((Commvault.Powershell.Models.IStartEndInternal)Time).Start = value ?? default(long); }

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

        }
    }
    /// Days of the week along with the time on which the black out window will be in effect
    public partial interface IDaysAndTimes :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Days of the week when the blackout window will be in effect.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Days of the week when the blackout window will be in effect.",
        SerializedName = @"days",
        PossibleTypes = new [] { typeof(string) })]
        string[] Days { get; set; }
        /// <summary>the blackout window is no longer in effect from this point on.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"the blackout window is no longer in effect from this point on.",
        SerializedName = @"end",
        PossibleTypes = new [] { typeof(long) })]
        long? TimeEnd { get; set; }
        /// <summary>the blackout window comes into effect at this point.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"the blackout window comes into effect at this point.",
        SerializedName = @"start",
        PossibleTypes = new [] { typeof(long) })]
        long? TimeStart { get; set; }

    }
    /// Days of the week along with the time on which the black out window will be in effect
    internal partial interface IDaysAndTimesInternal

    {
        /// <summary>Days of the week when the blackout window will be in effect.</summary>
        string[] Days { get; set; }

        Commvault.Powershell.Models.IStartEnd Time { get; set; }
        /// <summary>the blackout window is no longer in effect from this point on.</summary>
        long? TimeEnd { get; set; }
        /// <summary>the blackout window comes into effect at this point.</summary>
        long? TimeStart { get; set; }

    }
}