-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
DevTestLabNotificationChannelData.cs
73 lines (67 loc) · 4.08 KB
/
DevTestLabNotificationChannelData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.DevTestLabs.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.DevTestLabs
{
/// <summary>
/// A class representing the DevTestLabNotificationChannel data model.
/// A notification.
/// </summary>
public partial class DevTestLabNotificationChannelData : TrackedResourceData
{
/// <summary> Initializes a new instance of DevTestLabNotificationChannelData. </summary>
/// <param name="location"> The location. </param>
public DevTestLabNotificationChannelData(AzureLocation location) : base(location)
{
Events = new ChangeTrackingList<DevTestLabNotificationChannelEvent>();
}
/// <summary> Initializes a new instance of DevTestLabNotificationChannelData. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="webHookUri"> The webhook URL to send notifications to. </param>
/// <param name="emailRecipient"> The email recipient to send notifications to (can be a list of semi-colon separated email addresses). </param>
/// <param name="notificationLocale"> The locale to use when sending a notification (fallback for unsupported languages is EN). </param>
/// <param name="description"> Description of notification. </param>
/// <param name="events"> The list of event for which this notification is enabled. </param>
/// <param name="createdOn"> The creation date of the notification channel. </param>
/// <param name="provisioningState"> The provisioning status of the resource. </param>
/// <param name="uniqueIdentifier"> The unique immutable identifier of a resource (Guid). </param>
internal DevTestLabNotificationChannelData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, Uri webHookUri, string emailRecipient, string notificationLocale, string description, IList<DevTestLabNotificationChannelEvent> events, DateTimeOffset? createdOn, string provisioningState, Guid? uniqueIdentifier) : base(id, name, resourceType, systemData, tags, location)
{
WebHookUri = webHookUri;
EmailRecipient = emailRecipient;
NotificationLocale = notificationLocale;
Description = description;
Events = events;
CreatedOn = createdOn;
ProvisioningState = provisioningState;
UniqueIdentifier = uniqueIdentifier;
}
/// <summary> The webhook URL to send notifications to. </summary>
public Uri WebHookUri { get; set; }
/// <summary> The email recipient to send notifications to (can be a list of semi-colon separated email addresses). </summary>
public string EmailRecipient { get; set; }
/// <summary> The locale to use when sending a notification (fallback for unsupported languages is EN). </summary>
public string NotificationLocale { get; set; }
/// <summary> Description of notification. </summary>
public string Description { get; set; }
/// <summary> The list of event for which this notification is enabled. </summary>
public IList<DevTestLabNotificationChannelEvent> Events { get; }
/// <summary> The creation date of the notification channel. </summary>
public DateTimeOffset? CreatedOn { get; }
/// <summary> The provisioning status of the resource. </summary>
public string ProvisioningState { get; }
/// <summary> The unique immutable identifier of a resource (Guid). </summary>
public Guid? UniqueIdentifier { get; }
}
}