-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
NetworkFabricRoutePolicyData.cs
78 lines (71 loc) · 4.62 KB
/
NetworkFabricRoutePolicyData.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
// 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 NetworkFabricRoutePolicy data model.
/// The RoutePolicy resource definition.
/// </summary>
public partial class NetworkFabricRoutePolicyData : TrackedResourceData
{
/// <summary> Initializes a new instance of <see cref="NetworkFabricRoutePolicyData"/>. </summary>
/// <param name="location"> The location. </param>
/// <param name="networkFabricId"> Arm Resource ID of Network Fabric. </param>
/// <exception cref="ArgumentNullException"> <paramref name="networkFabricId"/> is null. </exception>
public NetworkFabricRoutePolicyData(AzureLocation location, ResourceIdentifier networkFabricId) : base(location)
{
Argument.AssertNotNull(networkFabricId, nameof(networkFabricId));
Statements = new ChangeTrackingList<RoutePolicyStatementProperties>();
NetworkFabricId = networkFabricId;
}
/// <summary> Initializes a new instance of <see cref="NetworkFabricRoutePolicyData"/>. </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="annotation"> Switch configuration description. </param>
/// <param name="defaultAction"> Default action that needs to be applied when no condition is matched. Example: Permit | Deny. </param>
/// <param name="statements"> Route Policy statements. </param>
/// <param name="networkFabricId"> Arm Resource ID of Network Fabric. </param>
/// <param name="addressFamilyType"> AddressFamilyType. This parameter decides whether the given ipv4 or ipv6 route policy. </param>
/// <param name="configurationState"> Configuration state of the resource. </param>
/// <param name="provisioningState"> Provisioning state of the resource. </param>
/// <param name="administrativeState"> Administrative state of the resource. </param>
internal NetworkFabricRoutePolicyData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, string annotation, CommunityActionType? defaultAction, IList<RoutePolicyStatementProperties> statements, ResourceIdentifier networkFabricId, AddressFamilyType? addressFamilyType, NetworkFabricConfigurationState? configurationState, NetworkFabricProvisioningState? provisioningState, NetworkFabricAdministrativeState? administrativeState) : base(id, name, resourceType, systemData, tags, location)
{
Annotation = annotation;
DefaultAction = defaultAction;
Statements = statements;
NetworkFabricId = networkFabricId;
AddressFamilyType = addressFamilyType;
ConfigurationState = configurationState;
ProvisioningState = provisioningState;
AdministrativeState = administrativeState;
}
/// <summary> Switch configuration description. </summary>
public string Annotation { get; set; }
/// <summary> Default action that needs to be applied when no condition is matched. Example: Permit | Deny. </summary>
public CommunityActionType? DefaultAction { get; set; }
/// <summary> Route Policy statements. </summary>
public IList<RoutePolicyStatementProperties> Statements { get; }
/// <summary> Arm Resource ID of Network Fabric. </summary>
public ResourceIdentifier NetworkFabricId { get; set; }
/// <summary> AddressFamilyType. This parameter decides whether the given ipv4 or ipv6 route policy. </summary>
public AddressFamilyType? AddressFamilyType { get; set; }
/// <summary> Configuration state of the resource. </summary>
public NetworkFabricConfigurationState? ConfigurationState { get; }
/// <summary> Provisioning state of the resource. </summary>
public NetworkFabricProvisioningState? ProvisioningState { get; }
/// <summary> Administrative state of the resource. </summary>
public NetworkFabricAdministrativeState? AdministrativeState { get; }
}
}