generated/api/Models/UpgradeSoftware.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>Request body for server and server group upgrade software</summary>
    public partial class UpgradeSoftware :
        Commvault.Powershell.Models.IUpgradeSoftware,
        Commvault.Powershell.Models.IUpgradeSoftwareInternal
    {

        /// <summary>Backing field for <see cref="Entities" /> property.</summary>
        private Commvault.Powershell.Models.IIdNameGuidType[] _entities;

        /// <summary>List of all the client and client groups on which UpgradeSoftware should be run</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IIdNameGuidType[] Entities { get => this._entities; set => this._entities = value; }

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

        /// <summary>Boolean which determines whether to install operating system updates.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? InstallOSUpdates { get => this._installOSUpdates; set => this._installOSUpdates = value; }

        /// <summary>Backing field for <see cref="InstallStorageUpdates" /> property.</summary>
        private string _installStorageUpdates;

        /// <summary>Enum which specifies the type of storage update</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string InstallStorageUpdates { get => this._installStorageUpdates; set => this._installStorageUpdates = value; }

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

        /// <summary>Boolean which determines whether to notify when software is upgraded.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? NotifyWhenJobCompletes { get => this._notifyWhenJobCompletes; set => this._notifyWhenJobCompletes = value; }

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

        /// <summary>Boolean which determines whether to reboot if required.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? RebootIfRequired { get => this._rebootIfRequired; set => this._rebootIfRequired = value; }

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

        /// <summary>Boolean which determines whether or not to run a database maintenance.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? RunDbMaintenance { get => this._runDbMaintenance; set => this._runDbMaintenance = value; }

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

        /// <summary>
        /// Boolean which determines whether to wait for Download software job to complete before software is upgraded.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? WaitForDownloadJobToComplete { get => this._waitForDownloadJobToComplete; set => this._waitForDownloadJobToComplete = value; }

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

        }
    }
    /// Request body for server and server group upgrade software
    public partial interface IUpgradeSoftware :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>List of all the client and client groups on which UpgradeSoftware should be run</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of all the client and client groups on which UpgradeSoftware should be run",
        SerializedName = @"entities",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdNameGuidType) })]
        Commvault.Powershell.Models.IIdNameGuidType[] Entities { get; set; }
        /// <summary>Boolean which determines whether to install operating system updates.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Boolean which determines whether to install operating system updates.",
        SerializedName = @"installOSUpdates",
        PossibleTypes = new [] { typeof(bool) })]
        bool? InstallOSUpdates { get; set; }
        /// <summary>Enum which specifies the type of storage update</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Enum which specifies the type of storage update",
        SerializedName = @"installStorageUpdates",
        PossibleTypes = new [] { typeof(string) })]
        string InstallStorageUpdates { get; set; }
        /// <summary>Boolean which determines whether to notify when software is upgraded.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Boolean which determines whether to notify when software is upgraded.",
        SerializedName = @"notifyWhenJobCompletes",
        PossibleTypes = new [] { typeof(bool) })]
        bool? NotifyWhenJobCompletes { get; set; }
        /// <summary>Boolean which determines whether to reboot if required.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Boolean which determines whether to reboot if required.",
        SerializedName = @"rebootIfRequired",
        PossibleTypes = new [] { typeof(bool) })]
        bool? RebootIfRequired { get; set; }
        /// <summary>Boolean which determines whether or not to run a database maintenance.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Boolean which determines whether or not to run a database maintenance.",
        SerializedName = @"runDBMaintenance",
        PossibleTypes = new [] { typeof(bool) })]
        bool? RunDbMaintenance { get; set; }
        /// <summary>
        /// Boolean which determines whether to wait for Download software job to complete before software is upgraded.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Boolean which determines whether to wait for Download software job to complete before software is upgraded.",
        SerializedName = @"waitForDownloadJobToComplete",
        PossibleTypes = new [] { typeof(bool) })]
        bool? WaitForDownloadJobToComplete { get; set; }

    }
    /// Request body for server and server group upgrade software
    internal partial interface IUpgradeSoftwareInternal

    {
        /// <summary>List of all the client and client groups on which UpgradeSoftware should be run</summary>
        Commvault.Powershell.Models.IIdNameGuidType[] Entities { get; set; }
        /// <summary>Boolean which determines whether to install operating system updates.</summary>
        bool? InstallOSUpdates { get; set; }
        /// <summary>Enum which specifies the type of storage update</summary>
        string InstallStorageUpdates { get; set; }
        /// <summary>Boolean which determines whether to notify when software is upgraded.</summary>
        bool? NotifyWhenJobCompletes { get; set; }
        /// <summary>Boolean which determines whether to reboot if required.</summary>
        bool? RebootIfRequired { get; set; }
        /// <summary>Boolean which determines whether or not to run a database maintenance.</summary>
        bool? RunDbMaintenance { get; set; }
        /// <summary>
        /// Boolean which determines whether to wait for Download software job to complete before software is upgraded.
        /// </summary>
        bool? WaitForDownloadJobToComplete { get; set; }

    }
}