generated/api/Models/PlanBackupDestinationCopyPromotionInfo.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;

    public partial class PlanBackupDestinationCopyPromotionInfo :
        Commvault.Powershell.Models.IPlanBackupDestinationCopyPromotionInfo,
        Commvault.Powershell.Models.IPlanBackupDestinationCopyPromotionInfoInternal
    {

        /// <summary>Backing field for <see cref="ForceKill" /> property.</summary>
        private bool? _forceKill;

        /// <summary>Tells if we need to force kill jobs and promote copy after waiting.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? ForceKill { get => this._forceKill; set => this._forceKill = value; }

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

        /// <summary>
        /// Tells the number of hours to wait before failing/killing jobs for copy promotion
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Hours { get => this._hours; set => this._hours = value; }

        /// <summary>Backing field for <see cref="Immediate" /> property.</summary>
        private bool? _immediate;

        /// <summary>Tells if the copy has to be promoted immediately.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Immediate { get => this._immediate; set => this._immediate = value; }

        /// <summary>Backing field for <see cref="WaitForRunningJobs" /> property.</summary>
        private bool? _waitForRunningJobs;

        /// <summary>Tells if copy promotion needs to wait for running jobs</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? WaitForRunningJobs { get => this._waitForRunningJobs; set => this._waitForRunningJobs = value; }

        /// <summary>Backing field for <see cref="WaitForSynchronize" /> property.</summary>
        private bool? _waitForSynchronize;

        /// <summary>Tells if copy promotion needs to wait for synchronization of copies.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? WaitForSynchronize { get => this._waitForSynchronize; set => this._waitForSynchronize = value; }

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

        }
    }
    public partial interface IPlanBackupDestinationCopyPromotionInfo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Tells if we need to force kill jobs and promote copy after waiting.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tells if we need to force kill jobs and promote copy after waiting.",
        SerializedName = @"forceKill",
        PossibleTypes = new [] { typeof(bool) })]
        bool? ForceKill { get; set; }
        /// <summary>
        /// Tells the number of hours to wait before failing/killing jobs for copy promotion
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tells the number of hours to wait before failing/killing jobs for copy promotion",
        SerializedName = @"hours",
        PossibleTypes = new [] { typeof(long) })]
        long? Hours { get; set; }
        /// <summary>Tells if the copy has to be promoted immediately.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tells if the copy has to be promoted immediately.",
        SerializedName = @"immediate",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Immediate { get; set; }
        /// <summary>Tells if copy promotion needs to wait for running jobs</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tells if copy promotion needs to wait for running jobs",
        SerializedName = @"waitForRunningJobs",
        PossibleTypes = new [] { typeof(bool) })]
        bool? WaitForRunningJobs { get; set; }
        /// <summary>Tells if copy promotion needs to wait for synchronization of copies.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tells if copy promotion needs to wait for synchronization of copies.",
        SerializedName = @"waitForSynchronize",
        PossibleTypes = new [] { typeof(bool) })]
        bool? WaitForSynchronize { get; set; }

    }
    internal partial interface IPlanBackupDestinationCopyPromotionInfoInternal

    {
        /// <summary>Tells if we need to force kill jobs and promote copy after waiting.</summary>
        bool? ForceKill { get; set; }
        /// <summary>
        /// Tells the number of hours to wait before failing/killing jobs for copy promotion
        /// </summary>
        long? Hours { get; set; }
        /// <summary>Tells if the copy has to be promoted immediately.</summary>
        bool? Immediate { get; set; }
        /// <summary>Tells if copy promotion needs to wait for running jobs</summary>
        bool? WaitForRunningJobs { get; set; }
        /// <summary>Tells if copy promotion needs to wait for synchronization of copies.</summary>
        bool? WaitForSynchronize { get; set; }

    }
}