generated/api/Models/AlertDefinitionsTemplate.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>AlertDefinitionsTemplate</summary> public partial class AlertDefinitionsTemplate : Commvault.Powershell.Models.IAlertDefinitionsTemplate, Commvault.Powershell.Models.IAlertDefinitionsTemplateInternal { /// <summary>Internal Acessors for Locale</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IAlertDefinitionsTemplateInternal.Locale { get => (this._locale = this._locale ?? new Commvault.Powershell.Models.IdName()); set { {_locale = value;} } } /// <summary>Backing field for <see cref="Console" /> property.</summary> private string _console; /// <summary>the message template for the console notification</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Console { get => this._console; set => this._console = value; } /// <summary>Backing field for <see cref="Email" /> property.</summary> private string _email; /// <summary> /// the message template for the email notification. Contains both email subject as well as body /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Email { get => this._email; set => this._email = value; } /// <summary>Backing field for <see cref="EventViewer" /> property.</summary> private string _eventViewer; /// <summary>the message template for the event viewer notification</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string EventViewer { get => this._eventViewer; set => this._eventViewer = value; } /// <summary>Backing field for <see cref="Locale" /> property.</summary> private Commvault.Powershell.Models.IIdName _locale; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Locale { get => (this._locale = this._locale ?? new Commvault.Powershell.Models.IdName()); set => this._locale = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LocaleId { get => ((Commvault.Powershell.Models.IIdNameInternal)Locale).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Locale).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LocaleName { get => ((Commvault.Powershell.Models.IIdNameInternal)Locale).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Locale).Name = value ?? null; } /// <summary>Backing field for <see cref="Webhook" /> property.</summary> private string _webhook; /// <summary>the message template for the webhook notification</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Webhook { get => this._webhook; set => this._webhook = value; } /// <summary>Creates an new <see cref="AlertDefinitionsTemplate" /> instance.</summary> public AlertDefinitionsTemplate() { } } /// AlertDefinitionsTemplate public partial interface IAlertDefinitionsTemplate : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>the message template for the console notification</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"the message template for the console notification", SerializedName = @"console", PossibleTypes = new [] { typeof(string) })] string Console { get; set; } /// <summary> /// the message template for the email notification. Contains both email subject as well as body /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"the message template for the email notification. Contains both email subject as well as body", SerializedName = @"email", PossibleTypes = new [] { typeof(string) })] string Email { get; set; } /// <summary>the message template for the event viewer notification</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"the message template for the event viewer notification", SerializedName = @"eventViewer", PossibleTypes = new [] { typeof(string) })] string EventViewer { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? LocaleId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string LocaleName { get; set; } /// <summary>the message template for the webhook notification</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"the message template for the webhook notification", SerializedName = @"webhook", PossibleTypes = new [] { typeof(string) })] string Webhook { get; set; } } /// AlertDefinitionsTemplate internal partial interface IAlertDefinitionsTemplateInternal { /// <summary>the message template for the console notification</summary> string Console { get; set; } /// <summary> /// the message template for the email notification. Contains both email subject as well as body /// </summary> string Email { get; set; } /// <summary>the message template for the event viewer notification</summary> string EventViewer { get; set; } Commvault.Powershell.Models.IIdName Locale { get; set; } long? LocaleId { get; set; } string LocaleName { get; set; } /// <summary>the message template for the webhook notification</summary> string Webhook { get; set; } } } |