generated/api/Models/AlertRuleGenericResp.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>contains processing instruction information</summary>
    public partial class AlertRuleGenericResp :
        Commvault.Powershell.Models.IAlertRuleGenericResp,
        Commvault.Powershell.Models.IAlertRuleGenericRespInternal
    {

        /// <summary>Backing field for <see cref="Attributes" /> property.</summary>
        private System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> _attributes;

        /// <summary>list of attributes</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> Attributes { get => this._attributes; set => this._attributes = value; }

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

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

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

        }
    }
    /// contains processing instruction information
    public partial interface IAlertRuleGenericResp :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>list of attributes</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"list of attributes",
        SerializedName = @"attributes",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.INameValue) })]
        System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> Attributes { get; set; }
        /// <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(long) })]
        long? ErrorCode { get; set; }

    }
    /// contains processing instruction information
    internal partial interface IAlertRuleGenericRespInternal

    {
        /// <summary>list of attributes</summary>
        System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> Attributes { get; set; }
        /// <summary>error code value</summary>
        long? ErrorCode { get; set; }

    }
}