generated/api/Models/UserSummary.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 UserSummary : Commvault.Powershell.Models.IUserSummary, Commvault.Powershell.Models.IUserSummaryInternal { /// <summary>Backing field for <see cref="Commcell" /> property.</summary> private Commvault.Powershell.Models.ICommcellInfo _commcell; /// <summary>CommcellInfo</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ICommcellInfo Commcell { get => (this._commcell = this._commcell ?? new Commvault.Powershell.Models.CommcellInfo()); set => this._commcell = value; } /// <summary>Name of the commcell the entity belongs to.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CommcellName { get => ((Commvault.Powershell.Models.ICommcellInfoInternal)Commcell).Name; set => ((Commvault.Powershell.Models.ICommcellInfoInternal)Commcell).Name = value ?? null; } /// <summary>Internal Acessors for Commcell</summary> Commvault.Powershell.Models.ICommcellInfo Commvault.Powershell.Models.IUserSummaryInternal.Commcell { get => (this._commcell = this._commcell ?? new Commvault.Powershell.Models.CommcellInfo()); set { {_commcell = value;} } } /// <summary>Internal Acessors for Company</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IUserSummaryInternal.Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set { {_company = value;} } } /// <summary>Internal Acessors for LockInfo</summary> Commvault.Powershell.Models.ILockProperties Commvault.Powershell.Models.IUserSummaryInternal.LockInfo { get => (this._lockInfo = this._lockInfo ?? new Commvault.Powershell.Models.LockProperties()); set { {_lockInfo = value;} } } /// <summary>Internal Acessors for Plan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IUserSummaryInternal.Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdName()); set { {_plan = value;} } } /// <summary>Backing field for <see cref="Company" /> property.</summary> private Commvault.Powershell.Models.IIdName _company; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set => this._company = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CompanyId { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CompanyName { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name = value ?? null; } /// <summary>Backing field for <see cref="Email" /> property.</summary> private string _email; /// <summary>Email-id of the user. This email-id can be used for logging in the user.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Email { get => this._email; set => this._email = value; } /// <summary>Backing field for <see cref="Enabled" /> property.</summary> private bool? _enabled; /// <summary>Gives information on whether the user is enabled or disabled.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? Enabled { get => this._enabled; set => this._enabled = value; } /// <summary>Backing field for <see cref="FullName" /> property.</summary> private string _fullName; /// <summary>full name of the user</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string FullName { get => this._fullName; set => this._fullName = value; } /// <summary>Backing field for <see cref="Guid" /> property.</summary> private string _guid; /// <summary>globally unique identifier</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Guid { get => this._guid; set => this._guid = value; } /// <summary>Backing field for <see cref="Id" /> property.</summary> private long? _id; /// <summary>User id</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Id { get => this._id; set => this._id = value; } /// <summary>Backing field for <see cref="LockInfo" /> property.</summary> private Commvault.Powershell.Models.ILockProperties _lockInfo; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ILockProperties LockInfo { get => (this._lockInfo = this._lockInfo ?? new Commvault.Powershell.Models.LockProperties()); set => this._lockInfo = value; } /// <summary>If the user is locked, it returns user lock end time in unix time format.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LockInfoEndTime { get => ((Commvault.Powershell.Models.ILockPropertiesInternal)LockInfo).EndTime; set => ((Commvault.Powershell.Models.ILockPropertiesInternal)LockInfo).EndTime = value ?? default(long); } /// <summary>Returns if the user is locked or unlocked.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? LockInfoIsLocked { get => ((Commvault.Powershell.Models.ILockPropertiesInternal)LockInfo).IsLocked; set => ((Commvault.Powershell.Models.ILockPropertiesInternal)LockInfo).IsLocked = value ?? default(bool); } /// <summary>If the user is locked, it returns user lock start time in unix time format.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LockInfoStartTime { get => ((Commvault.Powershell.Models.ILockPropertiesInternal)LockInfo).StartTime; set => ((Commvault.Powershell.Models.ILockPropertiesInternal)LockInfo).StartTime = value ?? default(long); } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; /// <summary>The user name of the user.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <summary>Backing field for <see cref="NumberOfLaptops" /> property.</summary> private long? _numberOfLaptops; /// <summary>Returns the number of laptops associated with the user</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? NumberOfLaptops { get => this._numberOfLaptops; set => this._numberOfLaptops = value; } /// <summary>Backing field for <see cref="Plan" /> property.</summary> private Commvault.Powershell.Models.IIdName _plan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdName()); set => this._plan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? PlanId { get => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanName { get => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Plan).Name = value ?? null; } /// <summary>Backing field for <see cref="UserPrincipalName" /> property.</summary> private string _userPrincipalName; /// <summary> /// User Principal Name(UPN) of the user. This User Principal Name can be used for logging in the user. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UserPrincipalName { get => this._userPrincipalName; set => this._userPrincipalName = value; } /// <summary>Creates an new <see cref="UserSummary" /> instance.</summary> public UserSummary() { } } public partial interface IUserSummary : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Name of the commcell the entity belongs to.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Name of the commcell the entity belongs to.", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CommcellName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CompanyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CompanyName { get; set; } /// <summary>Email-id of the user. This email-id can be used for logging in the user.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Email-id of the user. This email-id can be used for logging in the user.", SerializedName = @"email", PossibleTypes = new [] { typeof(string) })] string Email { get; set; } /// <summary>Gives information on whether the user is enabled or disabled.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Gives information on whether the user is enabled or disabled.", SerializedName = @"enabled", PossibleTypes = new [] { typeof(bool) })] bool? Enabled { get; set; } /// <summary>full name of the user</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"full name of the user", SerializedName = @"fullName", PossibleTypes = new [] { typeof(string) })] string FullName { get; set; } /// <summary>globally unique identifier</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"globally unique identifier", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string Guid { get; set; } /// <summary>User id</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"User id", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } /// <summary>If the user is locked, it returns user lock end time in unix time format.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"If the user is locked, it returns user lock end time in unix time format.", SerializedName = @"endTime", PossibleTypes = new [] { typeof(long) })] long? LockInfoEndTime { get; set; } /// <summary>Returns if the user is locked or unlocked.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Returns if the user is locked or unlocked.", SerializedName = @"isLocked", PossibleTypes = new [] { typeof(bool) })] bool? LockInfoIsLocked { get; set; } /// <summary>If the user is locked, it returns user lock start time in unix time format.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"If the user is locked, it returns user lock start time in unix time format.", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] long? LockInfoStartTime { get; set; } /// <summary>The user name of the user.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The user name of the user.", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } /// <summary>Returns the number of laptops associated with the user</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Returns the number of laptops associated with the user", SerializedName = @"numberOfLaptops", PossibleTypes = new [] { typeof(long) })] long? NumberOfLaptops { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? PlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PlanName { get; set; } /// <summary> /// User Principal Name(UPN) of the user. This User Principal Name can be used for logging in the user. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"User Principal Name(UPN) of the user. This User Principal Name can be used for logging in the user.", SerializedName = @"userPrincipalName", PossibleTypes = new [] { typeof(string) })] string UserPrincipalName { get; set; } } internal partial interface IUserSummaryInternal { /// <summary>CommcellInfo</summary> Commvault.Powershell.Models.ICommcellInfo Commcell { get; set; } /// <summary>Name of the commcell the entity belongs to.</summary> string CommcellName { get; set; } Commvault.Powershell.Models.IIdName Company { get; set; } long? CompanyId { get; set; } string CompanyName { get; set; } /// <summary>Email-id of the user. This email-id can be used for logging in the user.</summary> string Email { get; set; } /// <summary>Gives information on whether the user is enabled or disabled.</summary> bool? Enabled { get; set; } /// <summary>full name of the user</summary> string FullName { get; set; } /// <summary>globally unique identifier</summary> string Guid { get; set; } /// <summary>User id</summary> long? Id { get; set; } Commvault.Powershell.Models.ILockProperties LockInfo { get; set; } /// <summary>If the user is locked, it returns user lock end time in unix time format.</summary> long? LockInfoEndTime { get; set; } /// <summary>Returns if the user is locked or unlocked.</summary> bool? LockInfoIsLocked { get; set; } /// <summary>If the user is locked, it returns user lock start time in unix time format.</summary> long? LockInfoStartTime { get; set; } /// <summary>The user name of the user.</summary> string Name { get; set; } /// <summary>Returns the number of laptops associated with the user</summary> long? NumberOfLaptops { get; set; } Commvault.Powershell.Models.IIdName Plan { get; set; } long? PlanId { get; set; } string PlanName { get; set; } /// <summary> /// User Principal Name(UPN) of the user. This User Principal Name can be used for logging in the user. /// </summary> string UserPrincipalName { get; set; } } } |