/// <summary> /// Initializes a new instance of the <see cref="NetworkSecurityGroupRule"/> class. /// </summary> /// <param name='priority'>The priority for this rule.</param> /// <param name='access'>The action that should be taken for a specified IP address, subnet range or tag.</param> /// <param name='sourceAddressPrefix'>The source address prefix or tag to match for the rule.</param> public NetworkSecurityGroupRule( int priority, Common.NetworkSecurityGroupRuleAccess access, string sourceAddressPrefix) { this.Priority = priority; this.Access = access; this.SourceAddressPrefix = sourceAddressPrefix; }
/// <summary> /// Initializes a new instance of the <see cref="NetworkSecurityGroupRule"/> class. /// </summary> /// <param name='priority'>The priority for this rule.</param> /// <param name='access'>The action that should be taken for a specified IP address, subnet range or tag.</param> /// <param name='sourceAddressPrefix'>The source address prefix or tag to match for the rule.</param> /// <param name='sourcePortRanges'>The source port ranges to match for the rule.</param> public NetworkSecurityGroupRule( int priority, Common.NetworkSecurityGroupRuleAccess access, string sourceAddressPrefix, IReadOnlyList <string> sourcePortRanges = default(IReadOnlyList <string>)) { this.Priority = priority; this.Access = access; this.SourceAddressPrefix = sourceAddressPrefix; this.SourcePortRanges = sourcePortRanges; }