generated/api/Models/UpdateEmailServerReq.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> /// None of the fields are mandatory. whichever field is specified should be updated. Rest should be untouched. /// </summary> public partial class UpdateEmailServerReq : Commvault.Powershell.Models.IUpdateEmailServerReq, Commvault.Powershell.Models.IUpdateEmailServerReqInternal { /// <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 base 64 encoded format. Password attribute can be left out to reuse the already saved password /// </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="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>when useAuthentication is true, username must be present</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Username { get => this._username; set => this._username = value; } /// <summary>Creates an new <see cref="UpdateEmailServerReq" /> instance.</summary> public UpdateEmailServerReq() { } } /// None of the fields are mandatory. whichever field is specified should be updated. Rest should be untouched. public partial interface IUpdateEmailServerReq : 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> /// Password must be in base 64 encoded format. Password attribute can be left out to reuse the already saved password /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Password must be in base 64 encoded format. Password attribute can be left out to reuse the already saved password", 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 = 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>when useAuthentication is true, username must be present</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"when useAuthentication is true, username must be present", SerializedName = @"username", PossibleTypes = new [] { typeof(string) })] string Username { get; set; } } /// None of the fields are mandatory. whichever field is specified should be updated. Rest should be untouched. internal partial interface IUpdateEmailServerReqInternal { string EncryptionAlgorithm { get; set; } /// <summary> /// Password must be in base 64 encoded format. Password attribute can be left out to reuse the already saved password /// </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> /// 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>when useAuthentication is true, username must be present</summary> string Username { get; set; } } } |