/// <summary>
 /// Initializes a new instance of the EffectiveRoute class.
 /// </summary>
 /// <param name="name">The name of the user defined route. This is
 /// optional.</param>
 /// <param name="source">Who created the route. Possible values are:
 /// 'Unknown', 'User', 'VirtualNetworkGateway', and 'Default'. Possible
 /// values include: 'Unknown', 'User', 'VirtualNetworkGateway',
 /// 'Default'</param>
 /// <param name="state">The value of effective route. Possible values
 /// are: 'Active' and 'Invalid'. Possible values include: 'Active',
 /// 'Invalid'</param>
 /// <param name="addressPrefix">The address prefixes of the effective
 /// routes in CIDR notation.</param>
 /// <param name="nextHopIpAddress">The IP address of the next hop of
 /// the effective route.</param>
 /// <param name="nextHopType">The type of Azure hop the packet should
 /// be sent to. Possible values are: 'VirtualNetworkGateway',
 /// 'VnetLocal', 'Internet', 'VirtualAppliance', and 'None'. Possible
 /// values include: 'VirtualNetworkGateway', 'VnetLocal', 'Internet',
 /// 'VirtualAppliance', 'None'</param>
 public EffectiveRoute(string name = default(string), EffectiveRouteSource source = default(EffectiveRouteSource), EffectiveRouteState state = default(EffectiveRouteState), IList <string> addressPrefix = default(IList <string>), IList <string> nextHopIpAddress = default(IList <string>), RouteNextHopType nextHopType = default(RouteNextHopType))
 {
     Name             = name;
     Source           = source;
     State            = state;
     AddressPrefix    = addressPrefix;
     NextHopIpAddress = nextHopIpAddress;
     NextHopType      = nextHopType;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the RouteInner class.
 /// </summary>
 /// <param name="nextHopType">The type of Azure hop the packet should
 /// be sent to. Possible values include: 'VirtualNetworkGateway',
 /// 'VnetLocal', 'Internet', 'VirtualAppliance', 'None'</param>
 /// <param name="addressPrefix">The destination CIDR to which the route
 /// applies.</param>
 /// <param name="nextHopIpAddress">The IP address packets should be
 /// forwarded to. Next hop values are only allowed in routes where the
 /// next hop type is VirtualAppliance.</param>
 /// <param name="provisioningState">The provisioning state of the
 /// resource. Possible values are: 'Updating', 'Deleting', and
 /// 'Failed'.</param>
 /// <param name="name">The name of the resource that is unique within a
 /// resource group. This name can be used to access the
 /// resource.</param>
 /// <param name="etag">A unique read-only string that changes whenever
 /// the resource is updated.</param>
 public RouteInner(RouteNextHopType nextHopType, string id = default(string), string addressPrefix = default(string), string nextHopIpAddress = default(string), string provisioningState = default(string), string name = default(string), string etag = default(string))
     : base(id)
 {
     AddressPrefix     = addressPrefix;
     NextHopType       = nextHopType;
     NextHopIpAddress  = nextHopIpAddress;
     ProvisioningState = provisioningState;
     Name = name;
     Etag = etag;
     CustomInit();
 }