generated/api/Models/VirtualServerGroupAssociationDetails.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 VirtualServerGroupAssociationDetails :
        Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails,
        Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal
    {

        /// <summary>Backing field for <see cref="ClientAssociation" /> property.</summary>
        private Commvault.Powershell.Models.IClientAssociationServerGroupContent[] _clientAssociation;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IClientAssociationServerGroupContent[] ClientAssociation { get => this._clientAssociation; set => this._clientAssociation = value; }

        /// <summary>Internal Acessors for Rules</summary>
        Commvault.Powershell.Models.IRuleGroupContent Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal.Rules { get => (this._rules = this._rules ?? new Commvault.Powershell.Models.RuleGroupContent()); set { {_rules = value;} } }

        /// <summary>Enum which specifies the whether to match all rules or any of the rules</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string RuleMatchRule { get => ((Commvault.Powershell.Models.IRuleGroupContentInternal)Rules).MatchRule; set => ((Commvault.Powershell.Models.IRuleGroupContentInternal)Rules).MatchRule = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public Commvault.Powershell.Models.IRuleContent[] RuleRules { get => ((Commvault.Powershell.Models.IRuleGroupContentInternal)Rules).Rules; set => ((Commvault.Powershell.Models.IRuleGroupContentInternal)Rules).Rules = value ?? null /* arrayOf */; }

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

        /// <summary>RuleContent</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IRuleGroupContent Rules { get => (this._rules = this._rules ?? new Commvault.Powershell.Models.RuleGroupContent()); set => this._rules = value; }

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

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

        /// <summary>Backing field for <see cref="VirtualServers" /> property.</summary>
        private Commvault.Powershell.Models.IIdName[] _virtualServers;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IIdName[] VirtualServers { get => this._virtualServers; set => this._virtualServers = value; }

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

        }
    }
    public partial interface IVirtualServerGroupAssociationDetails :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"clientAssociation",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IClientAssociationServerGroupContent) })]
        Commvault.Powershell.Models.IClientAssociationServerGroupContent[] ClientAssociation { get; set; }
        /// <summary>Enum which specifies the whether to match all rules or any of the rules</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Enum which specifies the whether to match all rules or any of the rules",
        SerializedName = @"matchRule",
        PossibleTypes = new [] { typeof(string) })]
        string RuleMatchRule { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"rules",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IRuleContent) })]
        Commvault.Powershell.Models.IRuleContent[] RuleRules { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"virtualInstance",
        PossibleTypes = new [] { typeof(string) })]
        string VirtualInstance { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"virtualServers",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })]
        Commvault.Powershell.Models.IIdName[] VirtualServers { get; set; }

    }
    internal partial interface IVirtualServerGroupAssociationDetailsInternal

    {
        Commvault.Powershell.Models.IClientAssociationServerGroupContent[] ClientAssociation { get; set; }
        /// <summary>Enum which specifies the whether to match all rules or any of the rules</summary>
        string RuleMatchRule { get; set; }

        Commvault.Powershell.Models.IRuleContent[] RuleRules { get; set; }
        /// <summary>RuleContent</summary>
        Commvault.Powershell.Models.IRuleGroupContent Rules { get; set; }

        string VirtualInstance { get; set; }

        Commvault.Powershell.Models.IIdName[] VirtualServers { get; set; }

    }
}