generated/api/Models/UpdateUserGroup.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 UpdateUserGroup : Commvault.Powershell.Models.IUpdateUserGroup, Commvault.Powershell.Models.IUpdateUserGroupInternal { /// <summary>Backing field for <see cref="AllowMultipleCompanyMembers" /> property.</summary> private bool? _allowMultipleCompanyMembers; /// <summary> /// This property can be used to allow addition of users/groups from child companies. Only applicable for commcell and reseller /// company group. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? AllowMultipleCompanyMembers { get => this._allowMultipleCompanyMembers; set => this._allowMultipleCompanyMembers = value; } /// <summary>Backing field for <see cref="AssociatedExternalGroups" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> _associatedExternalGroups; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> AssociatedExternalGroups { get => this._associatedExternalGroups; set => this._associatedExternalGroups = value; } /// <summary>Backing field for <see cref="AssociatedLocalGroups" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> _associatedLocalGroups; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> AssociatedLocalGroups { get => this._associatedLocalGroups; set => this._associatedLocalGroups = value; } /// <summary>Backing field for <see cref="AzureGuid" /> property.</summary> private string _azureGuid; /// <summary> /// Azure Object ID used to link this user group to Azure AD group and manage group membership of the user during SAML login /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string AzureGuid { get => this._azureGuid; set => this._azureGuid = value; } /// <summary>Internal Acessors for LaptopPlan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IUpdateUserGroupInternal.LaptopPlan { get => (this._laptopPlan = this._laptopPlan ?? new Commvault.Powershell.Models.IdName()); set { {_laptopPlan = value;} } } /// <summary>Internal Acessors for RestrictConsoleTypes</summary> Commvault.Powershell.Models.IRestrictConsoleTypes Commvault.Powershell.Models.IUpdateUserGroupInternal.RestrictConsoleTypes { get => (this._restrictConsoleTypes = this._restrictConsoleTypes ?? new Commvault.Powershell.Models.RestrictConsoleTypes()); set { {_restrictConsoleTypes = value;} } } /// <summary>Backing field for <see cref="ConsoleTypeOperationType" /> property.</summary> private string _consoleTypeOperationType; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ConsoleTypeOperationType { get => this._consoleTypeOperationType; set => this._consoleTypeOperationType = value; } /// <summary>Backing field for <see cref="DoNotInheritRestrictConsoleTypes" /> property.</summary> private bool? _doNotInheritRestrictConsoleTypes; /// <summary> /// Option to not inherit the RestrictConsoleTypes from the parent. By default the value is false, parent RestrictConsoleTypes /// will be inherited. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? DoNotInheritRestrictConsoleTypes { get => this._doNotInheritRestrictConsoleTypes; set => this._doNotInheritRestrictConsoleTypes = value; } /// <summary>Backing field for <see cref="EnableLocalAuthentication" /> property.</summary> private string _enableLocalAuthentication; /// <summary> /// Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based /// on user preferences. There will be usergroups that will not have this option. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string EnableLocalAuthentication { get => this._enableLocalAuthentication; set => this._enableLocalAuthentication = value; } /// <summary>Backing field for <see cref="EnableTwoFactorAuthentication" /> property.</summary> private string _enableTwoFactorAuthentication; /// <summary> /// Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based /// on user preferences. There will be usergroups that will not have this option. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string EnableTwoFactorAuthentication { get => this._enableTwoFactorAuthentication; set => this._enableTwoFactorAuthentication = value; } /// <summary>Backing field for <see cref="Enabled" /> property.</summary> private bool? _enabled; /// <summary>allows the enabling/disabling of the user group.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? Enabled { get => this._enabled; set => this._enabled = value; } /// <summary>Backing field for <see cref="EnforceFsQuota" /> property.</summary> private bool? _enforceFsQuota; /// <summary>determines if a data limit will be set for the user group.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? EnforceFsQuota { get => this._enforceFsQuota; set => this._enforceFsQuota = value; } /// <summary>Backing field for <see cref="ExternalUserGroupsOperationType" /> property.</summary> private string _externalUserGroupsOperationType; /// <summary> /// Allows adding, deleting or overwriting associated external user groups of a user group. Default is adding associated external /// user groups /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ExternalUserGroupsOperationType { get => this._externalUserGroupsOperationType; set => this._externalUserGroupsOperationType = value; } /// <summary>Backing field for <see cref="LaptopAdmins" /> property.</summary> private bool? _laptopAdmins; /// <summary>When set to true, users in this group cannot activate or be set as server owner</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? LaptopAdmins { get => this._laptopAdmins; set => this._laptopAdmins = value; } /// <summary>Backing field for <see cref="LaptopPlan" /> property.</summary> private Commvault.Powershell.Models.IIdName _laptopPlan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName LaptopPlan { get => (this._laptopPlan = this._laptopPlan ?? new Commvault.Powershell.Models.IdName()); set => this._laptopPlan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LaptopPlanId { get => ((Commvault.Powershell.Models.IIdNameInternal)LaptopPlan).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)LaptopPlan).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LaptopPlanName { get => ((Commvault.Powershell.Models.IIdNameInternal)LaptopPlan).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)LaptopPlan).Name = value ?? null; } /// <summary>Backing field for <see cref="LocalUserGroupsOperationType" /> property.</summary> private string _localUserGroupsOperationType; /// <summary> /// Allows adding, deleting or overwriting associated local user groups of a user group. Default is adding associated local /// user groups /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string LocalUserGroupsOperationType { get => this._localUserGroupsOperationType; set => this._localUserGroupsOperationType = value; } /// <summary>Backing field for <see cref="NewDescription" /> property.</summary> private string _newDescription; /// <summary>gives a new description to the user group.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NewDescription { get => this._newDescription; set => this._newDescription = value; } /// <summary>Backing field for <see cref="NewName" /> property.</summary> private string _newName; /// <summary>gives a new name to the user group.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NewName { get => this._newName; set => this._newName = value; } /// <summary>Backing field for <see cref="PlanOperationType" /> property.</summary> private string _planOperationType; /// <summary> /// determines if an existing user has to be added to the user group or removed from the user group /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string PlanOperationType { get => this._planOperationType; set => this._planOperationType = value; } /// <summary>Backing field for <see cref="QuotaLimitInGb" /> property.</summary> private long? _quotaLimitInGb; /// <summary>if enforceFSquota is enabled, the quota limit can be provided in GBs</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? QuotaLimitInGb { get => this._quotaLimitInGb; set => this._quotaLimitInGb = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<string> RestrictConsoleType { get => ((Commvault.Powershell.Models.IRestrictConsoleTypesInternal)RestrictConsoleTypes).ConsoleType; set => ((Commvault.Powershell.Models.IRestrictConsoleTypesInternal)RestrictConsoleTypes).ConsoleType = value ?? null /* arrayOf */; } /// <summary>Backing field for <see cref="RestrictConsoleTypes" /> property.</summary> private Commvault.Powershell.Models.IRestrictConsoleTypes _restrictConsoleTypes; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IRestrictConsoleTypes RestrictConsoleTypes { get => (this._restrictConsoleTypes = this._restrictConsoleTypes ?? new Commvault.Powershell.Models.RestrictConsoleTypes()); set => this._restrictConsoleTypes = value; } /// <summary>Backing field for <see cref="UserOperationType" /> property.</summary> private string _userOperationType; /// <summary> /// determines if an existing user has to be added to the user group or removed from the user group /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UserOperationType { get => this._userOperationType; set => this._userOperationType = value; } /// <summary>Backing field for <see cref="Users" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> _users; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Users { get => this._users; set => this._users = value; } /// <summary>Creates an new <see cref="UpdateUserGroup" /> instance.</summary> public UpdateUserGroup() { } } public partial interface IUpdateUserGroup : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary> /// This property can be used to allow addition of users/groups from child companies. Only applicable for commcell and reseller /// company group. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This property can be used to allow addition of users/groups from child companies. Only applicable for commcell and reseller company group.", SerializedName = @"allowMultipleCompanyMembers", PossibleTypes = new [] { typeof(bool) })] bool? AllowMultipleCompanyMembers { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"associatedExternalGroups", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> AssociatedExternalGroups { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"associatedLocalGroups", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> AssociatedLocalGroups { get; set; } /// <summary> /// Azure Object ID used to link this user group to Azure AD group and manage group membership of the user during SAML login /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Azure Object ID used to link this user group to Azure AD group and manage group membership of the user during SAML login", SerializedName = @"azureGUID", PossibleTypes = new [] { typeof(string) })] string AzureGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"consoleTypeOperationType", PossibleTypes = new [] { typeof(string) })] string ConsoleTypeOperationType { get; set; } /// <summary> /// Option to not inherit the RestrictConsoleTypes from the parent. By default the value is false, parent RestrictConsoleTypes /// will be inherited. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Option to not inherit the RestrictConsoleTypes from the parent. By default the value is false, parent RestrictConsoleTypes will be inherited.", SerializedName = @"doNotInheritRestrictConsoleTypes", PossibleTypes = new [] { typeof(bool) })] bool? DoNotInheritRestrictConsoleTypes { get; set; } /// <summary> /// Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based /// on user preferences. There will be usergroups that will not have this option. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based on user preferences. There will be usergroups that will not have this option.", SerializedName = @"enableLocalAuthentication", PossibleTypes = new [] { typeof(string) })] string EnableLocalAuthentication { get; set; } /// <summary> /// Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based /// on user preferences. There will be usergroups that will not have this option. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based on user preferences. There will be usergroups that will not have this option.", SerializedName = @"enableTwoFactorAuthentication", PossibleTypes = new [] { typeof(string) })] string EnableTwoFactorAuthentication { get; set; } /// <summary>allows the enabling/disabling of the user group.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"allows the enabling/disabling of the user group.", SerializedName = @"enabled", PossibleTypes = new [] { typeof(bool) })] bool? Enabled { get; set; } /// <summary>determines if a data limit will be set for the user group.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"determines if a data limit will be set for the user group.", SerializedName = @"enforceFSQuota", PossibleTypes = new [] { typeof(bool) })] bool? EnforceFsQuota { get; set; } /// <summary> /// Allows adding, deleting or overwriting associated external user groups of a user group. Default is adding associated external /// user groups /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Allows adding, deleting or overwriting associated external user groups of a user group. Default is adding associated external user groups", SerializedName = @"externalUserGroupsOperationType", PossibleTypes = new [] { typeof(string) })] string ExternalUserGroupsOperationType { get; set; } /// <summary>When set to true, users in this group cannot activate or be set as server owner</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"When set to true, users in this group cannot activate or be set as server owner", SerializedName = @"laptopAdmins", PossibleTypes = new [] { typeof(bool) })] bool? LaptopAdmins { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? LaptopPlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string LaptopPlanName { get; set; } /// <summary> /// Allows adding, deleting or overwriting associated local user groups of a user group. Default is adding associated local /// user groups /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Allows adding, deleting or overwriting associated local user groups of a user group. Default is adding associated local user groups", SerializedName = @"localUserGroupsOperationType", PossibleTypes = new [] { typeof(string) })] string LocalUserGroupsOperationType { get; set; } /// <summary>gives a new description to the user group.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"gives a new description to the user group.", SerializedName = @"newDescription", PossibleTypes = new [] { typeof(string) })] string NewDescription { get; set; } /// <summary>gives a new name to the user group.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"gives a new name to the user group.", SerializedName = @"newName", PossibleTypes = new [] { typeof(string) })] string NewName { get; set; } /// <summary> /// determines if an existing user has to be added to the user group or removed from the user group /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"determines if an existing user has to be added to the user group or removed from the user group", SerializedName = @"planOperationType", PossibleTypes = new [] { typeof(string) })] string PlanOperationType { get; set; } /// <summary>if enforceFSquota is enabled, the quota limit can be provided in GBs</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"if enforceFSquota is enabled, the quota limit can be provided in GBs", SerializedName = @"quotaLimitInGB", PossibleTypes = new [] { typeof(long) })] long? QuotaLimitInGb { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"consoleType", PossibleTypes = new [] { typeof(string) })] System.Collections.Generic.List<string> RestrictConsoleType { get; set; } /// <summary> /// determines if an existing user has to be added to the user group or removed from the user group /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"determines if an existing user has to be added to the user group or removed from the user group", SerializedName = @"userOperationType", PossibleTypes = new [] { typeof(string) })] string UserOperationType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"users", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Users { get; set; } } internal partial interface IUpdateUserGroupInternal { /// <summary> /// This property can be used to allow addition of users/groups from child companies. Only applicable for commcell and reseller /// company group. /// </summary> bool? AllowMultipleCompanyMembers { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> AssociatedExternalGroups { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> AssociatedLocalGroups { get; set; } /// <summary> /// Azure Object ID used to link this user group to Azure AD group and manage group membership of the user during SAML login /// </summary> string AzureGuid { get; set; } string ConsoleTypeOperationType { get; set; } /// <summary> /// Option to not inherit the RestrictConsoleTypes from the parent. By default the value is false, parent RestrictConsoleTypes /// will be inherited. /// </summary> bool? DoNotInheritRestrictConsoleTypes { get; set; } /// <summary> /// Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based /// on user preferences. There will be usergroups that will not have this option. /// </summary> string EnableLocalAuthentication { get; set; } /// <summary> /// Allows two-factor authentication to be enabled for the specific types of usergroups. it can be turned on or off based /// on user preferences. There will be usergroups that will not have this option. /// </summary> string EnableTwoFactorAuthentication { get; set; } /// <summary>allows the enabling/disabling of the user group.</summary> bool? Enabled { get; set; } /// <summary>determines if a data limit will be set for the user group.</summary> bool? EnforceFsQuota { get; set; } /// <summary> /// Allows adding, deleting or overwriting associated external user groups of a user group. Default is adding associated external /// user groups /// </summary> string ExternalUserGroupsOperationType { get; set; } /// <summary>When set to true, users in this group cannot activate or be set as server owner</summary> bool? LaptopAdmins { get; set; } Commvault.Powershell.Models.IIdName LaptopPlan { get; set; } long? LaptopPlanId { get; set; } string LaptopPlanName { get; set; } /// <summary> /// Allows adding, deleting or overwriting associated local user groups of a user group. Default is adding associated local /// user groups /// </summary> string LocalUserGroupsOperationType { get; set; } /// <summary>gives a new description to the user group.</summary> string NewDescription { get; set; } /// <summary>gives a new name to the user group.</summary> string NewName { get; set; } /// <summary> /// determines if an existing user has to be added to the user group or removed from the user group /// </summary> string PlanOperationType { get; set; } /// <summary>if enforceFSquota is enabled, the quota limit can be provided in GBs</summary> long? QuotaLimitInGb { get; set; } System.Collections.Generic.List<string> RestrictConsoleType { get; set; } Commvault.Powershell.Models.IRestrictConsoleTypes RestrictConsoleTypes { get; set; } /// <summary> /// determines if an existing user has to be added to the user group or removed from the user group /// </summary> string UserOperationType { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Users { get; set; } } } |