generated/api/Models/UpdateServerGroup.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> /// Update server group, operation supported for three ServerGroupTypes MANUAL, AUTOMATIC, VIRTUAL_MACHINE /// </summary> public partial class UpdateServerGroup : Commvault.Powershell.Models.IUpdateServerGroup, Commvault.Powershell.Models.IUpdateServerGroupInternal { /// <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.IUpdateServerGroupInternal.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.IUpdateServerGroupInternal.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.IUpdateServerGroupInternal.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.IUpdateServerGroupInternal.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.IUpdateServerGroupInternal.ManualAssociation { get => (this._manualAssociation = this._manualAssociation ?? new Commvault.Powershell.Models.ManualServerGroupAssociationDetails()); set { {_manualAssociation = value;} } } /// <summary>Internal Acessors for ServerGroup</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IUpdateServerGroupInternal.ServerGroup { get => (this._serverGroup = this._serverGroup ?? new Commvault.Powershell.Models.IdName()); set { {_serverGroup = value;} } } /// <summary>Internal Acessors for VirtualAssociation</summary> Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails Commvault.Powershell.Models.IUpdateServerGroupInternal.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.IUpdateServerGroupInternal.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 System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> ManualAssociationAssociatedservers { get => ((Commvault.Powershell.Models.IManualServerGroupAssociationDetailsInternal)ManualAssociation).Associatedservers; set => ((Commvault.Powershell.Models.IManualServerGroupAssociationDetailsInternal)ManualAssociation).Associatedservers = value ?? null /* arrayOf */; } /// <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 System.Collections.Generic.List<Commvault.Powershell.Models.IRuleContent> RuleRules { get => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).RuleRules; set => ((Commvault.Powershell.Models.IVirtualServerGroupAssociationDetailsInternal)VirtualAssociation).RuleRules = value ?? null /* arrayOf */; } /// <summary>Backing field for <see cref="ServerGroup" /> property.</summary> private Commvault.Powershell.Models.IIdName _serverGroup; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName ServerGroup { get => (this._serverGroup = this._serverGroup ?? new Commvault.Powershell.Models.IdName()); set => this._serverGroup = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ServerGroupId { get => ((Commvault.Powershell.Models.IIdNameInternal)ServerGroup).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)ServerGroup).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ServerGroupName { get => ((Commvault.Powershell.Models.IIdNameInternal)ServerGroup).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)ServerGroup).Name = value ?? null; } /// <summary>List of rule groups</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<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 System.Collections.Generic.List<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 System.Collections.Generic.List<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="UpdateServerGroup" /> instance.</summary> public UpdateServerGroup() { } } /// Update server group, operation supported for three ServerGroupTypes MANUAL, AUTOMATIC, VIRTUAL_MACHINE public partial interface IUpdateServerGroup : 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"clientScopeType", PossibleTypes = new [] { typeof(string) })] string ClientScopeType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string Description { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? EntityInfoId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"List of associated servers", SerializedName = @"associatedservers", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> ManualAssociationAssociatedservers { 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 = @"id", PossibleTypes = new [] { typeof(long) })] long? ServerGroupId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ServerGroupName { get; set; } /// <summary>List of rule groups</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"List of rule groups", SerializedName = @"ruleGroup", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IServerRuleGroup) })] System.Collections.Generic.List<Commvault.Powershell.Models.IServerRuleGroup> ServerGroupRuleGroup { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"match", PossibleTypes = new [] { typeof(string) })] string ServerGroupRuleMatch { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"serverGroupType", PossibleTypes = new [] { typeof(string) })] string ServerGroupType { get; set; } [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> VirtualAssociationClientAssociation { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"virtualInstance", PossibleTypes = new [] { typeof(string) })] string VirtualAssociationVirtualInstance { 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> VirtualAssociationVirtualServers { get; set; } } /// Update server group, operation supported for three ServerGroupTypes MANUAL, AUTOMATIC, VIRTUAL_MACHINE internal partial interface IUpdateServerGroupInternal { 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> System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> ManualAssociationAssociatedservers { 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; } Commvault.Powershell.Models.IIdName ServerGroup { get; set; } long? ServerGroupId { get; set; } string ServerGroupName { get; set; } /// <summary>List of rule groups</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IServerRuleGroup> ServerGroupRuleGroup { get; set; } string ServerGroupRuleMatch { get; set; } string ServerGroupType { get; set; } Commvault.Powershell.Models.IVirtualServerGroupAssociationDetails VirtualAssociation { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IClientAssociationServerGroupContent> VirtualAssociationClientAssociation { get; set; } /// <summary>RuleContent</summary> Commvault.Powershell.Models.IRuleGroupContent VirtualAssociationRules { get; set; } string VirtualAssociationVirtualInstance { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> VirtualAssociationVirtualServers { get; set; } } } |