generated/api/Models/VirtualServerGroupAssociationDetails.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; public partial class VirtualServerGroupAssociationDetails : Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails, Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal { /// <summary>Backing field for <see cref="ClientAssociation" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IClientAssociationServerGroupContent> _clientAssociation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<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 System.Collections.Generic.List<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 System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> _virtualServers; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<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, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"clientAssociation", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IClientAssociationServerGroupContent) })] System.Collections.Generic.List<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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"rules", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IRuleContent) })] System.Collections.Generic.List<Commvault.Powershell.Models.IRuleContent> RuleRules { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"virtualInstance", PossibleTypes = new [] { typeof(string) })] string VirtualInstance { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"virtualServers", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> VirtualServers { get; set; } } internal partial interface IVirtualServerGroupAssociationDetailsInternal { System.Collections.Generic.List<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; } System.Collections.Generic.List<Commvault.Powershell.Models.IRuleContent> RuleRules { get; set; } /// <summary>RuleContent</summary> Commvault.Powershell.Models.IRuleGroupContent Rules { get; set; } string VirtualInstance { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> VirtualServers { get; set; } } } |