/// <summary>
 /// Initializes a new instance of the AlertSettings class.
 /// </summary>
 /// <param name="emailNotification">Indicates whether email
 /// notification enabled or not. Possible values include: 'Enabled',
 /// 'Disabled'</param>
 /// <param name="id">The path ID that uniquely identifies the
 /// object.</param>
 /// <param name="name">The name of the object.</param>
 /// <param name="type">The hierarchical type of the object.</param>
 /// <param name="kind">The Kind of the object. Currently only
 /// Series8000 is supported. Possible values include:
 /// 'Series8000'</param>
 /// <param name="alertNotificationCulture">The alert notification
 /// culture.</param>
 /// <param name="notificationToServiceOwners">The value indicating
 /// whether alert notification enabled for admin or not. Possible
 /// values include: 'Enabled', 'Disabled'</param>
 /// <param name="additionalRecipientEmailList">The alert notification
 /// email list.</param>
 public AlertSettings(AlertEmailNotificationStatus emailNotification, string id = default(string), string name = default(string), string type = default(string), Kind?kind = default(Kind?), string alertNotificationCulture = default(string), AlertEmailNotificationStatus?notificationToServiceOwners = default(AlertEmailNotificationStatus?), IList <string> additionalRecipientEmailList = default(IList <string>))
     : base(id, name, type, kind)
 {
     EmailNotification            = emailNotification;
     AlertNotificationCulture     = alertNotificationCulture;
     NotificationToServiceOwners  = notificationToServiceOwners;
     AdditionalRecipientEmailList = additionalRecipientEmailList;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the AlertSettings class.
 /// </summary>
 /// <param name="emailNotification">Value indicating whether
 /// user/admins will receive emails when an alert condition occurs on
 /// the system. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="notificationToServiceOwners">Value indicating whether
 /// service owners will receive emails when an alert condition occurs
 /// on the system. Applicable only if emailNotification flag is
 /// Enabled. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="alertNotificationCulture">Culture setting to be used
 /// while building alert emails. For eg: "en-US"</param>
 /// <param name="id">The identifier.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 /// <param name="additionalRecipientEmailList">List of email addresses
 /// (apart from admin/coadmin of subscription) to whom the alert emails
 /// need to be sent</param>
 public AlertSettings(AlertEmailNotificationStatus emailNotification, ServiceOwnersAlertNotificationStatus notificationToServiceOwners, string alertNotificationCulture, string id = default(string), string name = default(string), string type = default(string), IList <string> additionalRecipientEmailList = default(IList <string>))
     : base(id, name, type)
 {
     EmailNotification            = emailNotification;
     NotificationToServiceOwners  = notificationToServiceOwners;
     AlertNotificationCulture     = alertNotificationCulture;
     AdditionalRecipientEmailList = additionalRecipientEmailList;
     CustomInit();
 }
        internal static string ToSerializedValue(this AlertEmailNotificationStatus value)
        {
            switch (value)
            {
            case AlertEmailNotificationStatus.Enabled:
                return("Enabled");

            case AlertEmailNotificationStatus.Disabled:
                return("Disabled");
            }
            return(null);
        }