-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
NetworkPacketBrokerData.cs
73 lines (66 loc) · 4.27 KB
/
NetworkPacketBrokerData.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.ManagedNetworkFabric.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ManagedNetworkFabric
{
/// <summary>
/// A class representing the NetworkPacketBroker data model.
/// The NetworkPacketBroker resource definition.
/// </summary>
public partial class NetworkPacketBrokerData : TrackedResourceData
{
/// <summary> Initializes a new instance of <see cref="NetworkPacketBrokerData"/>. </summary>
/// <param name="location"> The location. </param>
/// <param name="networkFabricId"> ARM resource ID of the Network Fabric. </param>
/// <exception cref="ArgumentNullException"> <paramref name="networkFabricId"/> is null. </exception>
public NetworkPacketBrokerData(AzureLocation location, ResourceIdentifier networkFabricId) : base(location)
{
Argument.AssertNotNull(networkFabricId, nameof(networkFabricId));
NetworkFabricId = networkFabricId;
NetworkDeviceIds = new ChangeTrackingList<ResourceIdentifier>();
SourceInterfaceIds = new ChangeTrackingList<ResourceIdentifier>();
NetworkTapIds = new ChangeTrackingList<ResourceIdentifier>();
NeighborGroupIds = new ChangeTrackingList<ResourceIdentifier>();
}
/// <summary> Initializes a new instance of <see cref="NetworkPacketBrokerData"/>. </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="networkFabricId"> ARM resource ID of the Network Fabric. </param>
/// <param name="networkDeviceIds"> List of ARM resource IDs of Network Devices [NPB]. </param>
/// <param name="sourceInterfaceIds"> List of network interfaces across NPB devices that are used to mirror source traffic. </param>
/// <param name="networkTapIds"> List of network Tap IDs configured on NPB. </param>
/// <param name="neighborGroupIds"> List of neighbor group IDs configured on NPB. </param>
/// <param name="provisioningState"> Provisioning state of the resource. </param>
internal NetworkPacketBrokerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, ResourceIdentifier networkFabricId, IReadOnlyList<ResourceIdentifier> networkDeviceIds, IReadOnlyList<ResourceIdentifier> sourceInterfaceIds, IReadOnlyList<ResourceIdentifier> networkTapIds, IReadOnlyList<ResourceIdentifier> neighborGroupIds, NetworkFabricProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location)
{
NetworkFabricId = networkFabricId;
NetworkDeviceIds = networkDeviceIds;
SourceInterfaceIds = sourceInterfaceIds;
NetworkTapIds = networkTapIds;
NeighborGroupIds = neighborGroupIds;
ProvisioningState = provisioningState;
}
/// <summary> ARM resource ID of the Network Fabric. </summary>
public ResourceIdentifier NetworkFabricId { get; set; }
/// <summary> List of ARM resource IDs of Network Devices [NPB]. </summary>
public IReadOnlyList<ResourceIdentifier> NetworkDeviceIds { get; }
/// <summary> List of network interfaces across NPB devices that are used to mirror source traffic. </summary>
public IReadOnlyList<ResourceIdentifier> SourceInterfaceIds { get; }
/// <summary> List of network Tap IDs configured on NPB. </summary>
public IReadOnlyList<ResourceIdentifier> NetworkTapIds { get; }
/// <summary> List of neighbor group IDs configured on NPB. </summary>
public IReadOnlyList<ResourceIdentifier> NeighborGroupIds { get; }
/// <summary> Provisioning state of the resource. </summary>
public NetworkFabricProvisioningState? ProvisioningState { get; }
}
}