generated/api/Models/ValidationResult.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>Result from the script execution ran on entity during recovery</summary>
    public partial class ValidationResult :
        Commvault.Powershell.Models.IValidationResult,
        Commvault.Powershell.Models.IValidationResultInternal
    {

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

        /// <summary>Script validation failure reason</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string FailureReason { get => this._failureReason; set => this._failureReason = value; }

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

        /// <summary>Name of the script executed</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

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

        /// <summary>Output of the script executed</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Output { get => this._output; set => this._output = value; }

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

        /// <summary>Validation status of recovery entity</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ValidationStatus { get => this._validationStatus; set => this._validationStatus = value; }

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

        }
    }
    /// Result from the script execution ran on entity during recovery
    public partial interface IValidationResult :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Script validation failure reason</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Script validation failure reason",
        SerializedName = @"failureReason",
        PossibleTypes = new [] { typeof(string) })]
        string FailureReason { get; set; }
        /// <summary>Name of the script executed</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Name of the script executed",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>Output of the script executed</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Output of the script executed",
        SerializedName = @"output",
        PossibleTypes = new [] { typeof(string) })]
        string Output { get; set; }
        /// <summary>Validation status of recovery entity</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Validation status of recovery entity",
        SerializedName = @"validationStatus",
        PossibleTypes = new [] { typeof(string) })]
        string ValidationStatus { get; set; }

    }
    /// Result from the script execution ran on entity during recovery
    internal partial interface IValidationResultInternal

    {
        /// <summary>Script validation failure reason</summary>
        string FailureReason { get; set; }
        /// <summary>Name of the script executed</summary>
        string Name { get; set; }
        /// <summary>Output of the script executed</summary>
        string Output { get; set; }
        /// <summary>Validation status of recovery entity</summary>
        string ValidationStatus { get; set; }

    }
}