generated/api/Models/CreateServerGroup.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; /// <summary> /// Create a new server group, operation supported for three ServerGroupTypes MANUAL, AUTOMATIC, VIRTUAL_MACHINE /// </summary> public partial class CreateServerGroup : Commvault.Powershell.Models.ICreateServerGroup, Commvault.Powershell.Models.ICreateServerGroupInternal { /// <summary>Backing field for <see cref="AutomaticAssociation" /> property.</summary> private Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetails _automaticAssociation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetails AutomaticAssociation { get => (this._automaticAssociation = this._automaticAssociation ?? new Commvault.Powershell.Models.AutomaticServerGroupAssociationDetails()); set => this._automaticAssociation = value; } /// <summary> /// Confirm that server group rule impacts server of a specific company smart client group only /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? AutomaticAssociationConfirmRuleChange { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ConfirmRuleChange; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ConfirmRuleChange = value ?? default(bool); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ClientScopeType { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ClientScopeType; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ClientScopeType = value ?? null; } /// <summary>Internal Acessors for AutomaticAssociation</summary> Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetails Commvault.Powershell.Models.ICreateServerGroupInternal.AutomaticAssociation { get => (this._automaticAssociation = this._automaticAssociation ?? new Commvault.Powershell.Models.AutomaticServerGroupAssociationDetails()); set { {_automaticAssociation = value;} } } /// <summary>Internal Acessors for AutomaticAssociationClientScope</summary> Commvault.Powershell.Models.IClientScopeDetails Commvault.Powershell.Models.ICreateServerGroupInternal.AutomaticAssociationClientScope { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ClientScope; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ClientScope = value; } /// <summary>Internal Acessors for AutomaticAssociationServerGroupRule</summary> Commvault.Powershell.Models.IServerRuleGroups Commvault.Powershell.Models.ICreateServerGroupInternal.AutomaticAssociationServerGroupRule { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ServerGroupRule; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ServerGroupRule = value; } /// <summary>Internal Acessors for ClientScopeEntityInfo</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateServerGroupInternal.ClientScopeEntityInfo { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ClientScopeEntityInfo; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ClientScopeEntityInfo = value; } /// <summary>Internal Acessors for ManualAssociation</summary> Commvault.Powershell.Models.IManualServerGroupAssociationDetails Commvault.Powershell.Models.ICreateServerGroupInternal.ManualAssociation { get => (this._manualAssociation = this._manualAssociation ?? new Commvault.Powershell.Models.ManualServerGroupAssociationDetails()); set { {_manualAssociation = value;} } } /// <summary>Internal Acessors for VirtualAssociation</summary> Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails Commvault.Powershell.Models.ICreateServerGroupInternal.VirtualAssociation { get => (this._virtualAssociation = this._virtualAssociation ?? new Commvault.Powershell.Models.VirtualServerGroupAssociationDetails()); set { {_virtualAssociation = value;} } } /// <summary>Internal Acessors for VirtualAssociationRules</summary> Commvault.Powershell.Models.IRuleGroupContent Commvault.Powershell.Models.ICreateServerGroupInternal.VirtualAssociationRules { get => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).Rules; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).Rules = value; } /// <summary>Backing field for <see cref="Description" /> property.</summary> private string _description; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Description { get => this._description; set => this._description = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? EntityInfoId { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).EntityInfoId; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).EntityInfoId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string EntityInfoName { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).EntityInfoName; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).EntityInfoName = value ?? null; } /// <summary>Backing field for <see cref="ManualAssociation" /> property.</summary> private Commvault.Powershell.Models.IManualServerGroupAssociationDetails _manualAssociation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IManualServerGroupAssociationDetails ManualAssociation { get => (this._manualAssociation = this._manualAssociation ?? new Commvault.Powershell.Models.ManualServerGroupAssociationDetails()); set => this._manualAssociation = value; } /// <summary>List of associated servers</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public Commvault.Powershell.Models.IIdName[] ManualAssociationAssociatedservers { get => ((Commvault.Powershell.Models.IManualServerGroupAssociationDetailsInternal)ManualAssociation).Associatedservers; set => ((Commvault.Powershell.Models.IManualServerGroupAssociationDetailsInternal)ManualAssociation).Associatedservers = value ?? null /* arrayOf */; } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = 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.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).RuleMatchRule; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).RuleMatchRule = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public Commvault.Powershell.Models.IRuleContent[] RuleRules { get => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).RuleRules; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).RuleRules = value ?? null /* arrayOf */; } /// <summary>List of rule groups</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public Commvault.Powershell.Models.IServerRuleGroup[] ServerGroupRuleGroup { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ServerGroupRuleGroup; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ServerGroupRuleGroup = value ?? null /* arrayOf */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ServerGroupRuleMatch { get => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ServerGroupRuleMatch; set => ((Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetailsInternal)AutomaticAssociation).ServerGroupRuleMatch = value ?? null; } /// <summary>Backing field for <see cref="ServerGroupType" /> property.</summary> private string _serverGroupType; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ServerGroupType { get => this._serverGroupType; set => this._serverGroupType = value; } /// <summary>Backing field for <see cref="VirtualAssociation" /> property.</summary> private Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails _virtualAssociation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails VirtualAssociation { get => (this._virtualAssociation = this._virtualAssociation ?? new Commvault.Powershell.Models.VirtualServerGroupAssociationDetails()); set => this._virtualAssociation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public Commvault.Powershell.Models.IClientAssociationServerGroupContent[] VirtualAssociationClientAssociation { get => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).ClientAssociation; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).ClientAssociation = value ?? null /* arrayOf */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string VirtualAssociationVirtualInstance { get => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).VirtualInstance; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).VirtualInstance = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public Commvault.Powershell.Models.IIdName[] VirtualAssociationVirtualServers { get => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).VirtualServers; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).VirtualServers = value ?? null /* arrayOf */; } /// <summary>Creates an new <see cref="CreateServerGroup" /> instance.</summary> public CreateServerGroup() { } } /// Create a new server group, operation supported for three ServerGroupTypes MANUAL, AUTOMATIC, VIRTUAL_MACHINE public partial interface ICreateServerGroup : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary> /// Confirm that server group rule impacts server of a specific company smart client group only /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Confirm that server group rule impacts server of a specific company smart client group only", SerializedName = @"confirmRuleChange", PossibleTypes = new [] { typeof(bool) })] bool? AutomaticAssociationConfirmRuleChange { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"clientScopeType", PossibleTypes = new [] { typeof(string) })] string ClientScopeType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? EntityInfoId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string EntityInfoName { get; set; } /// <summary>List of associated servers</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"List of associated servers", SerializedName = @"associatedservers", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] Commvault.Powershell.Models.IIdName[] ManualAssociationAssociatedservers { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { 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; } /// <summary>List of rule groups</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"List of rule groups", SerializedName = @"ruleGroup", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IServerRuleGroup) })] Commvault.Powershell.Models.IServerRuleGroup[] ServerGroupRuleGroup { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"match", PossibleTypes = new [] { typeof(string) })] string ServerGroupRuleMatch { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"serverGroupType", PossibleTypes = new [] { typeof(string) })] string ServerGroupType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"clientAssociation", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IClientAssociationServerGroupContent) })] Commvault.Powershell.Models.IClientAssociationServerGroupContent[] VirtualAssociationClientAssociation { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"virtualInstance", PossibleTypes = new [] { typeof(string) })] string VirtualAssociationVirtualInstance { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"virtualServers", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] Commvault.Powershell.Models.IIdName[] VirtualAssociationVirtualServers { get; set; } } /// Create a new server group, operation supported for three ServerGroupTypes MANUAL, AUTOMATIC, VIRTUAL_MACHINE internal partial interface ICreateServerGroupInternal { Commvault.Powershell.Models.IAutomaticServerGroupAssociationDetails AutomaticAssociation { get; set; } Commvault.Powershell.Models.IClientScopeDetails AutomaticAssociationClientScope { get; set; } /// <summary> /// Confirm that server group rule impacts server of a specific company smart client group only /// </summary> bool? AutomaticAssociationConfirmRuleChange { get; set; } Commvault.Powershell.Models.IServerRuleGroups AutomaticAssociationServerGroupRule { get; set; } Commvault.Powershell.Models.IIdName ClientScopeEntityInfo { get; set; } string ClientScopeType { get; set; } string Description { get; set; } long? EntityInfoId { get; set; } string EntityInfoName { get; set; } Commvault.Powershell.Models.IManualServerGroupAssociationDetails ManualAssociation { get; set; } /// <summary>List of associated servers</summary> Commvault.Powershell.Models.IIdName[] ManualAssociationAssociatedservers { get; set; } string Name { 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>List of rule groups</summary> Commvault.Powershell.Models.IServerRuleGroup[] ServerGroupRuleGroup { get; set; } string ServerGroupRuleMatch { get; set; } string ServerGroupType { get; set; } Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails VirtualAssociation { get; set; } Commvault.Powershell.Models.IClientAssociationServerGroupContent[] VirtualAssociationClientAssociation { get; set; } /// <summary>RuleContent</summary> Commvault.Powershell.Models.IRuleGroupContent VirtualAssociationRules { get; set; } string VirtualAssociationVirtualInstance { get; set; } Commvault.Powershell.Models.IIdName[] VirtualAssociationVirtualServers { get; set; } } } |