generated/api/Models/LocalAuthenticationDetailsResponse.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 LocalAuthenticationDetailsResponse : Commvault.Powershell.Models.ILocalAuthenticationDetailsResponse, Commvault.Powershell.Models.ILocalAuthenticationDetailsResponseInternal { /// <summary>Internal Acessors for Error</summary> Commvault.Powershell.Models.IGenericResp Commvault.Powershell.Models.ILocalAuthenticationDetailsResponseInternal.Error { get => (this._error = this._error ?? new Commvault.Powershell.Models.GenericResp()); set { {_error = value;} } } /// <summary>Internal Acessors for LocalAuthenticationInfo</summary> Commvault.Powershell.Models.ILocalAuthenticationDetails Commvault.Powershell.Models.ILocalAuthenticationDetailsResponseInternal.LocalAuthenticationInfo { get => (this._localAuthenticationInfo = this._localAuthenticationInfo ?? new Commvault.Powershell.Models.LocalAuthenticationDetails()); set { {_localAuthenticationInfo = value;} } } /// <summary>Backing field for <see cref="Error" /> property.</summary> private Commvault.Powershell.Models.IGenericResp _error; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IGenericResp Error { get => (this._error = this._error ?? new Commvault.Powershell.Models.GenericResp()); set => this._error = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ErrorCode { get => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorCode; set => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorCode = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ErrorMessage { get => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorMessage; set => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorMessage = value ?? null; } /// <summary>Backing field for <see cref="LocalAuthenticationInfo" /> property.</summary> private Commvault.Powershell.Models.ILocalAuthenticationDetails _localAuthenticationInfo; /// <summary> /// Local authentication can be enabled for all users or specific user groups or completely disabled. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ILocalAuthenticationDetails LocalAuthenticationInfo { get => (this._localAuthenticationInfo = this._localAuthenticationInfo ?? new Commvault.Powershell.Models.LocalAuthenticationDetails()); set => this._localAuthenticationInfo = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LocalAuthenticationInfoMode { get => ((Commvault.Powershell.Models.ILocalAuthenticationDetailsInternal)LocalAuthenticationInfo).Mode; set => ((Commvault.Powershell.Models.ILocalAuthenticationDetailsInternal)LocalAuthenticationInfo).Mode = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> LocalAuthenticationInfoUserGroups { get => ((Commvault.Powershell.Models.ILocalAuthenticationDetailsInternal)LocalAuthenticationInfo).UserGroups; set => ((Commvault.Powershell.Models.ILocalAuthenticationDetailsInternal)LocalAuthenticationInfo).UserGroups = value ?? null /* arrayOf */; } /// <summary>Creates an new <see cref="LocalAuthenticationDetailsResponse" /> instance.</summary> public LocalAuthenticationDetailsResponse() { } } public partial interface ILocalAuthenticationDetailsResponse : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"errorCode", PossibleTypes = new [] { typeof(long) })] long? ErrorCode { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"errorMessage", PossibleTypes = new [] { typeof(string) })] string ErrorMessage { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"mode", PossibleTypes = new [] { typeof(string) })] string LocalAuthenticationInfoMode { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"userGroups", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> LocalAuthenticationInfoUserGroups { get; set; } } internal partial interface ILocalAuthenticationDetailsResponseInternal { Commvault.Powershell.Models.IGenericResp Error { get; set; } long? ErrorCode { get; set; } string ErrorMessage { get; set; } /// <summary> /// Local authentication can be enabled for all users or specific user groups or completely disabled. /// </summary> Commvault.Powershell.Models.ILocalAuthenticationDetails LocalAuthenticationInfo { get; set; } string LocalAuthenticationInfoMode { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> LocalAuthenticationInfoUserGroups { get; set; } } } |