generated/api/Models/GetEmailServerDetails.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 GetEmailServerDetails : Commvault.Powershell.Models.IGetEmailServerDetails, Commvault.Powershell.Models.IGetEmailServerDetailsInternal { /// <summary>Backing field for <see cref="EncryptionAlgorithm" /> property.</summary> private string _encryptionAlgorithm; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string EncryptionAlgorithm { get => this._encryptionAlgorithm; set => this._encryptionAlgorithm = value; } /// <summary>Backing field for <see cref="SenderEmail" /> property.</summary> private string _senderEmail; /// <summary>The sender email address used for emails sent from the software.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SenderEmail { get => this._senderEmail; set => this._senderEmail = value; } /// <summary>Backing field for <see cref="SenderName" /> property.</summary> private string _senderName; /// <summary>The sender name used for emails sent from the software.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SenderName { get => this._senderName; set => this._senderName = value; } /// <summary>Backing field for <see cref="SmtpPort" /> property.</summary> private long? _smtpPort; /// <summary>The port number that connects to the mail server.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? SmtpPort { get => this._smtpPort; set => this._smtpPort = value; } /// <summary>Backing field for <see cref="SmtpServerName" /> property.</summary> private string _smtpServerName; /// <summary> /// The name of the mail server that sends alerts, scheduled reports, log files, and additional information. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SmtpServerName { get => this._smtpServerName; set => this._smtpServerName = value; } /// <summary>Backing field for <see cref="UseAuthentication" /> property.</summary> private bool? _useAuthentication; /// <summary> /// The option to use authentication on the mail server. This is typically used in external or internet mail server configurations. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? UseAuthentication { get => this._useAuthentication; set => this._useAuthentication = value; } /// <summary>Backing field for <see cref="Username" /> property.</summary> private string _username; /// <summary>only when useAuthentication is true, username would be populated</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Username { get => this._username; set => this._username = value; } /// <summary>Creates an new <see cref="GetEmailServerDetails" /> instance.</summary> public GetEmailServerDetails() { } } public partial interface IGetEmailServerDetails : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"encryptionAlgorithm", PossibleTypes = new [] { typeof(string) })] string EncryptionAlgorithm { get; set; } /// <summary>The sender email address used for emails sent from the software.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The sender email address used for emails sent from the software.", SerializedName = @"senderEmail", PossibleTypes = new [] { typeof(string) })] string SenderEmail { get; set; } /// <summary>The sender name used for emails sent from the software.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The sender name used for emails sent from the software.", SerializedName = @"senderName", PossibleTypes = new [] { typeof(string) })] string SenderName { get; set; } /// <summary>The port number that connects to the mail server.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The port number that connects to the mail server.", SerializedName = @"SMTPPort", PossibleTypes = new [] { typeof(long) })] long? SmtpPort { get; set; } /// <summary> /// The name of the mail server that sends alerts, scheduled reports, log files, and additional information. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The name of the mail server that sends alerts, scheduled reports, log files, and additional information.", SerializedName = @"SMTPServerName", PossibleTypes = new [] { typeof(string) })] string SmtpServerName { get; set; } /// <summary> /// The option to use authentication on the mail server. This is typically used in external or internet mail server configurations. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The option to use authentication on the mail server. This is typically used in external or internet mail server configurations.", SerializedName = @"useAuthentication", PossibleTypes = new [] { typeof(bool) })] bool? UseAuthentication { get; set; } /// <summary>only when useAuthentication is true, username would be populated</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"only when useAuthentication is true, username would be populated", SerializedName = @"username", PossibleTypes = new [] { typeof(string) })] string Username { get; set; } } internal partial interface IGetEmailServerDetailsInternal { string EncryptionAlgorithm { get; set; } /// <summary>The sender email address used for emails sent from the software.</summary> string SenderEmail { get; set; } /// <summary>The sender name used for emails sent from the software.</summary> string SenderName { get; set; } /// <summary>The port number that connects to the mail server.</summary> long? SmtpPort { get; set; } /// <summary> /// The name of the mail server that sends alerts, scheduled reports, log files, and additional information. /// </summary> string SmtpServerName { get; set; } /// <summary> /// The option to use authentication on the mail server. This is typically used in external or internet mail server configurations. /// </summary> bool? UseAuthentication { get; set; } /// <summary>only when useAuthentication is true, username would be populated</summary> string Username { get; set; } } } |