generated/api/Models/ConfigureSmtpServerReq.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// 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>ConfigureSMTPServerReq</summary>
    public partial class ConfigureSmtpServerReq :
        Commvault.Powershell.Models.IConfigureSmtpServerReq,
        Commvault.Powershell.Models.IConfigureSmtpServerReqInternal
    {

        /// <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="Password" /> property.</summary>
        private string _password;

        /// <summary>
        /// Password must be in base64 encoded format. Similar to username, if authentication on the mail server is required, this
        /// option is required.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Password { get => this._password; set => this._password = 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="Username" /> property.</summary>
        private string _username;

        /// <summary>This option is used when authentication on the mail server is required</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Username { get => this._username; set => this._username = value; }

        /// <summary>Creates an new <see cref="ConfigureSmtpServerReq" /> instance.</summary>
        public ConfigureSmtpServerReq()
        {

        }
    }
    /// ConfigureSMTPServerReq
    public partial interface IConfigureSmtpServerReq :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"encryptionAlgorithm",
        PossibleTypes = new [] { typeof(string) })]
        string EncryptionAlgorithm { get; set; }
        /// <summary>
        /// Password must be in base64 encoded format. Similar to username, if authentication on the mail server is required, this
        /// option is required.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Password must be in base64 encoded format. Similar to username, if authentication on the mail server is required, this option is required.",
        SerializedName = @"password",
        PossibleTypes = new [] { typeof(string) })]
        string Password { get; set; }
        /// <summary>The sender email address used for emails sent from the software.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        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 = true,
        ReadOnly = false,
        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 = true,
        ReadOnly = false,
        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 = true,
        ReadOnly = false,
        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>This option is used when authentication on the mail server is required</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"This option is used when authentication on the mail server is required",
        SerializedName = @"username",
        PossibleTypes = new [] { typeof(string) })]
        string Username { get; set; }

    }
    /// ConfigureSMTPServerReq
    internal partial interface IConfigureSmtpServerReqInternal

    {
        string EncryptionAlgorithm { get; set; }
        /// <summary>
        /// Password must be in base64 encoded format. Similar to username, if authentication on the mail server is required, this
        /// option is required.
        /// </summary>
        string Password { 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>This option is used when authentication on the mail server is required</summary>
        string Username { get; set; }

    }
}