-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
NotificationHubData.cs
81 lines (75 loc) · 4.82 KB
/
NotificationHubData.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
74
75
76
77
78
79
80
81
// 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.Models;
using Azure.ResourceManager.NotificationHubs.Models;
namespace Azure.ResourceManager.NotificationHubs
{
/// <summary>
/// A class representing the NotificationHub data model.
/// Description of a NotificationHub Resource.
/// </summary>
public partial class NotificationHubData : TrackedResourceData
{
/// <summary> Initializes a new instance of NotificationHubData. </summary>
/// <param name="location"> The location. </param>
public NotificationHubData(AzureLocation location) : base(location)
{
AuthorizationRules = new ChangeTrackingList<SharedAccessAuthorizationRuleProperties>();
}
/// <summary> Initializes a new instance of NotificationHubData. </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="notificationHubName"> The NotificationHub name. </param>
/// <param name="registrationTtl"> The RegistrationTtl of the created NotificationHub. </param>
/// <param name="authorizationRules"> The AuthorizationRules of the created NotificationHub. </param>
/// <param name="apnsCredential"> The ApnsCredential of the created NotificationHub. </param>
/// <param name="wnsCredential"> The WnsCredential of the created NotificationHub. </param>
/// <param name="gcmCredential"> The GcmCredential of the created NotificationHub. </param>
/// <param name="mpnsCredential"> The MpnsCredential of the created NotificationHub. </param>
/// <param name="admCredential"> The AdmCredential of the created NotificationHub. </param>
/// <param name="baiduCredential"> The BaiduCredential of the created NotificationHub. </param>
/// <param name="sku"> The sku of the created namespace. </param>
internal NotificationHubData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, string notificationHubName, TimeSpan? registrationTtl, IList<SharedAccessAuthorizationRuleProperties> authorizationRules, NotificationHubApnsCredential apnsCredential, NotificationHubWnsCredential wnsCredential, NotificationHubGcmCredential gcmCredential, NotificationHubMpnsCredential mpnsCredential, NotificationHubAdmCredential admCredential, NotificationHubBaiduCredential baiduCredential, NotificationHubSku sku) : base(id, name, resourceType, systemData, tags, location)
{
NotificationHubName = notificationHubName;
RegistrationTtl = registrationTtl;
AuthorizationRules = authorizationRules;
ApnsCredential = apnsCredential;
WnsCredential = wnsCredential;
GcmCredential = gcmCredential;
MpnsCredential = mpnsCredential;
AdmCredential = admCredential;
BaiduCredential = baiduCredential;
Sku = sku;
}
/// <summary> The NotificationHub name. </summary>
public string NotificationHubName { get; set; }
/// <summary> The RegistrationTtl of the created NotificationHub. </summary>
public TimeSpan? RegistrationTtl { get; set; }
/// <summary> The AuthorizationRules of the created NotificationHub. </summary>
public IList<SharedAccessAuthorizationRuleProperties> AuthorizationRules { get; }
/// <summary> The ApnsCredential of the created NotificationHub. </summary>
public NotificationHubApnsCredential ApnsCredential { get; set; }
/// <summary> The WnsCredential of the created NotificationHub. </summary>
public NotificationHubWnsCredential WnsCredential { get; set; }
/// <summary> The GcmCredential of the created NotificationHub. </summary>
public NotificationHubGcmCredential GcmCredential { get; set; }
/// <summary> The MpnsCredential of the created NotificationHub. </summary>
public NotificationHubMpnsCredential MpnsCredential { get; set; }
/// <summary> The AdmCredential of the created NotificationHub. </summary>
public NotificationHubAdmCredential AdmCredential { get; set; }
/// <summary> The BaiduCredential of the created NotificationHub. </summary>
public NotificationHubBaiduCredential BaiduCredential { get; set; }
/// <summary> The sku of the created namespace. </summary>
public NotificationHubSku Sku { get; set; }
}
}