generated/api/Models/GenericResponse.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>GenericResponse</summary>
    public partial class GenericResponse :
        Commvault.Powershell.Models.IGenericResponse,
        Commvault.Powershell.Models.IGenericResponseInternal
    {

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

        /// <summary>Error code value</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string 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>Creates an new <see cref="GenericResponse" /> instance.</summary>
        public GenericResponse()
        {

        }
    }
    /// GenericResponse
    public partial interface IGenericResponse :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Error code value</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Error code value",
        SerializedName = @"errorCode",
        PossibleTypes = new [] { typeof(string) })]
        string ErrorCode { get; set; }
        /// <summary>Tells about the error occured</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tells about the error occured",
        SerializedName = @"errorMessage",
        PossibleTypes = new [] { typeof(string) })]
        string ErrorMessage { get; set; }

    }
    /// GenericResponse
    internal partial interface IGenericResponseInternal

    {
        /// <summary>Error code value</summary>
        string ErrorCode { get; set; }
        /// <summary>Tells about the error occured</summary>
        string ErrorMessage { get; set; }

    }
}