generated/api/Models/RepairSoftware.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 repair software</summary>
    public partial class RepairSoftware :
        Commvault.Powershell.Models.IRepairSoftware,
        Commvault.Powershell.Models.IRepairSoftwareInternal
    {

        /// <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 repair software 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="InvokedFrom" /> property.</summary>
        private string _invokedFrom;

        /// <summary>invokedFrom</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string InvokedFrom { get => this._invokedFrom; set => this._invokedFrom = value; }

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

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

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

        /// <summary>Corresponding password of the user</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Password { get => this._password; set => this._password = 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="Username" /> property.</summary>
        private string _username;

        /// <summary>If using system credentials, provide the user name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Username { get => this._username; set => this._username = value; }

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

        }
    }
    /// Request body for server and server group repair software
    public partial interface IRepairSoftware :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>List of all the client and client groups on which repair software should be run</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"List of all the client and client groups on which repair software should be run",
        SerializedName = @"entities",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdNameGuidType) })]
        Commvault.Powershell.Models.IIdNameGuidType[] Entities { get; set; }
        /// <summary>invokedFrom</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"invokedFrom",
        SerializedName = @"invokedFrom",
        PossibleTypes = new [] { typeof(string) })]
        string InvokedFrom { get; set; }
        /// <summary>Boolean which determines whether to notify when software is repaired.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Boolean which determines whether to notify when software is repaired.",
        SerializedName = @"notifyWhenJobCompletes",
        PossibleTypes = new [] { typeof(bool) })]
        bool? NotifyWhenJobCompletes { get; set; }
        /// <summary>Corresponding password of the user</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Corresponding password of the user",
        SerializedName = @"password",
        PossibleTypes = new [] { typeof(string) })]
        string Password { 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>If using system credentials, provide the user name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"If using system credentials, provide the user name",
        SerializedName = @"username",
        PossibleTypes = new [] { typeof(string) })]
        string Username { get; set; }

    }
    /// Request body for server and server group repair software
    internal partial interface IRepairSoftwareInternal

    {
        /// <summary>List of all the client and client groups on which repair software should be run</summary>
        Commvault.Powershell.Models.IIdNameGuidType[] Entities { get; set; }
        /// <summary>invokedFrom</summary>
        string InvokedFrom { get; set; }
        /// <summary>Boolean which determines whether to notify when software is repaired.</summary>
        bool? NotifyWhenJobCompletes { get; set; }
        /// <summary>Corresponding password of the user</summary>
        string Password { get; set; }
        /// <summary>Boolean which determines whether to reboot if required.</summary>
        bool? RebootIfRequired { get; set; }
        /// <summary>If using system credentials, provide the user name</summary>
        string Username { get; set; }

    }
}