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

    public partial class GenericRespWithWarning :
        Commvault.Powershell.Models.IGenericRespWithWarning,
        Commvault.Powershell.Models.IGenericRespWithWarningInternal
    {

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? ErrorCode { get => this._errorCode; set => this._errorCode = value; }

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

        /// <summary>Tells about the error occured</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ErrorMessage { get => this._errorMessage; set => this._errorMessage = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? WarningCode { get => this._warningCode; set => this._warningCode = value; }

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

        /// <summary>Tells about the warning occured</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string WarningMessage { get => this._warningMessage; set => this._warningMessage = value; }

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

        }
    }
    public partial interface IGenericRespWithWarning :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"errorCode",
        PossibleTypes = new [] { typeof(long) })]
        long? ErrorCode { get; set; }
        /// <summary>Tells about the error occured</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Tells about the error occured",
        SerializedName = @"errorMessage",
        PossibleTypes = new [] { typeof(string) })]
        string ErrorMessage { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"warningCode",
        PossibleTypes = new [] { typeof(long) })]
        long? WarningCode { get; set; }
        /// <summary>Tells about the warning occured</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Tells about the warning occured",
        SerializedName = @"warningMessage",
        PossibleTypes = new [] { typeof(string) })]
        string WarningMessage { get; set; }

    }
    internal partial interface IGenericRespWithWarningInternal

    {
        long? ErrorCode { get; set; }
        /// <summary>Tells about the error occured</summary>
        string ErrorMessage { get; set; }

        long? WarningCode { get; set; }
        /// <summary>Tells about the warning occured</summary>
        string WarningMessage { get; set; }

    }
}