generated/api/Models/UserAuthenticationMethods.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>UserAuthenticationMethods</summary> public partial class UserAuthenticationMethods : Commvault.Powershell.Models.IUserAuthenticationMethods, Commvault.Powershell.Models.IUserAuthenticationMethodsInternal { /// <summary>Backing field for <see cref="AuthenticationMethod" /> property.</summary> private string _authenticationMethod; /// <summary>Specifies authentication method used by user.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string AuthenticationMethod { get => this._authenticationMethod; set => this._authenticationMethod = value; } /// <summary>Backing field for <see cref="Authenticators" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IAuthenticationServer> _authenticators; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IAuthenticationServer> Authenticators { get => this._authenticators; set => this._authenticators = value; } /// <summary>Internal Acessors for Error</summary> Commvault.Powershell.Models.IGenericResp Commvault.Powershell.Models.IUserAuthenticationMethodsInternal.Error { get => (this._error = this._error ?? new Commvault.Powershell.Models.GenericResp()); set { {_error = 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>Creates an new <see cref="UserAuthenticationMethods" /> instance.</summary> public UserAuthenticationMethods() { } } /// UserAuthenticationMethods public partial interface IUserAuthenticationMethods : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Specifies authentication method used by user.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Specifies authentication method used by user.", SerializedName = @"authenticationMethod", PossibleTypes = new [] { typeof(string) })] string AuthenticationMethod { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"authenticators", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAuthenticationServer) })] System.Collections.Generic.List<Commvault.Powershell.Models.IAuthenticationServer> Authenticators { get; set; } [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; } } /// UserAuthenticationMethods internal partial interface IUserAuthenticationMethodsInternal { /// <summary>Specifies authentication method used by user.</summary> string AuthenticationMethod { get; set; } System.Collections.Generic.List<Commvault.Powershell.Models.IAuthenticationServer> Authenticators { get; set; } Commvault.Powershell.Models.IGenericResp Error { get; set; } long? ErrorCode { get; set; } string ErrorMessage { get; set; } } } |