generated/api/Models/ServerRuleGroup.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 ServerRuleGroup :
        Commvault.Powershell.Models.IServerRuleGroup,
        Commvault.Powershell.Models.IServerRuleGroupInternal
    {

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Match { get => this._match; set => this._match = value; }

        /// <summary>Backing field for <see cref="Rules" /> property.</summary>
        private Commvault.Powershell.Models.IServerRule[] _rules;

        /// <summary>List of rules</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IServerRule[] Rules { get => this._rules; set => this._rules = value; }

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

        }
    }
    public partial interface IServerRuleGroup :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"match",
        PossibleTypes = new [] { typeof(string) })]
        string Match { get; set; }
        /// <summary>List of rules</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of rules",
        SerializedName = @"rules",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IServerRule) })]
        Commvault.Powershell.Models.IServerRule[] Rules { get; set; }

    }
    internal partial interface IServerRuleGroupInternal

    {
        string Match { get; set; }
        /// <summary>List of rules</summary>
        Commvault.Powershell.Models.IServerRule[] Rules { get; set; }

    }
}