/// <summary> /// Initializes a new instance of the EffectiveNetworkSecurityRule /// class. /// </summary> /// <param name="name">The name of the security rule specified by the /// user (if created by the user).</param> /// <param name="protocol">The network protocol this rule applies to. /// Possible values include: 'Tcp', 'Udp', 'All'</param> /// <param name="sourcePortRange">The source port or range.</param> /// <param name="destinationPortRange">The destination port or /// range.</param> /// <param name="sourcePortRanges">The source port ranges. Expected /// values include a single integer between 0 and 65535, a range using /// '-' as separator (e.g. 100-400), or an asterisk (*).</param> /// <param name="destinationPortRanges">The destination port ranges. /// Expected values include a single integer between 0 and 65535, a /// range using '-' as separator (e.g. 100-400), or an asterisk /// (*).</param> /// <param name="sourceAddressPrefix">The source address /// prefix.</param> /// <param name="destinationAddressPrefix">The destination address /// prefix.</param> /// <param name="sourceAddressPrefixes">The source address prefixes. /// Expected values include CIDR IP ranges, Default Tags /// (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the /// asterisk (*).</param> /// <param name="destinationAddressPrefixes">The destination address /// prefixes. Expected values include CIDR IP ranges, Default Tags /// (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the /// asterisk (*).</param> /// <param name="expandedSourceAddressPrefix">The expanded source /// address prefix.</param> /// <param name="expandedDestinationAddressPrefix">Expanded destination /// address prefix.</param> /// <param name="access">Whether network traffic is allowed or denied. /// Possible values include: 'Allow', 'Deny'</param> /// <param name="priority">The priority of the rule.</param> /// <param name="direction">The direction of the rule. Possible values /// include: 'Inbound', 'Outbound'</param> public EffectiveNetworkSecurityRule(string name = default(string), EffectiveSecurityRuleProtocol protocol = default(EffectiveSecurityRuleProtocol), string sourcePortRange = default(string), string destinationPortRange = default(string), IList <string> sourcePortRanges = default(IList <string>), IList <string> destinationPortRanges = default(IList <string>), string sourceAddressPrefix = default(string), string destinationAddressPrefix = default(string), IList <string> sourceAddressPrefixes = default(IList <string>), IList <string> destinationAddressPrefixes = default(IList <string>), IList <string> expandedSourceAddressPrefix = default(IList <string>), IList <string> expandedDestinationAddressPrefix = default(IList <string>), SecurityRuleAccess access = default(SecurityRuleAccess), int?priority = default(int?), SecurityRuleDirection direction = default(SecurityRuleDirection)) { Name = name; Protocol = protocol; SourcePortRange = sourcePortRange; DestinationPortRange = destinationPortRange; SourcePortRanges = sourcePortRanges; DestinationPortRanges = destinationPortRanges; SourceAddressPrefix = sourceAddressPrefix; DestinationAddressPrefix = destinationAddressPrefix; SourceAddressPrefixes = sourceAddressPrefixes; DestinationAddressPrefixes = destinationAddressPrefixes; ExpandedSourceAddressPrefix = expandedSourceAddressPrefix; ExpandedDestinationAddressPrefix = expandedDestinationAddressPrefix; Access = access; Priority = priority; Direction = direction; CustomInit(); }
/// <summary> /// Initializes a new instance of the SecurityRuleInner class. /// </summary> /// <param name="protocol">Network protocol this rule applies to. /// Possible values are 'Tcp', 'Udp', and '*'. Possible values include: /// 'Tcp', 'Udp', '*'</param> /// <param name="access">The network traffic is allowed or denied. /// Possible values are: 'Allow' and 'Deny'. Possible values include: /// 'Allow', 'Deny'</param> /// <param name="direction">The direction of the rule. The direction /// specifies if rule will be evaluated on incoming or outcoming /// traffic. Possible values are: 'Inbound' and 'Outbound'. Possible /// values include: 'Inbound', 'Outbound'</param> /// <param name="description">A description for this rule. Restricted /// to 140 chars.</param> /// <param name="sourcePortRange">The source port or range. Integer or /// range between 0 and 65535. Asterix '*' can also be used to match /// all ports.</param> /// <param name="destinationPortRange">The destination port or range. /// Integer or range between 0 and 65535. Asterix '*' can also be used /// to match all ports.</param> /// <param name="sourceAddressPrefix">The CIDR or source IP range. /// Asterix '*' can also be used to match all source IPs. Default tags /// such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can /// also be used. If this is an ingress rule, specifies where network /// traffic originates from. </param> /// <param name="sourceAddressPrefixes">The CIDR or source IP /// ranges.</param> /// <param name="sourceApplicationSecurityGroups">The application /// security group specified as source.</param> /// <param name="destinationAddressPrefix">The destination address /// prefix. CIDR or destination IP range. Asterix '*' can also be used /// to match all source IPs. Default tags such as 'VirtualNetwork', /// 'AzureLoadBalancer' and 'Internet' can also be used.</param> /// <param name="destinationAddressPrefixes">The destination address /// prefixes. CIDR or destination IP ranges.</param> /// <param name="destinationApplicationSecurityGroups">The application /// security group specified as destination.</param> /// <param name="sourcePortRanges">The source port ranges.</param> /// <param name="destinationPortRanges">The destination port /// ranges.</param> /// <param name="priority">The priority of the rule. The value can be /// between 100 and 4096. The priority number must be unique for each /// rule in the collection. The lower the priority number, the higher /// the priority of the rule.</param> /// <param name="provisioningState">The provisioning state of the /// public IP 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 SecurityRuleInner(SecurityRuleProtocol protocol, SecurityRuleAccess access, SecurityRuleDirection direction, string id = default(string), string description = default(string), string sourcePortRange = default(string), string destinationPortRange = default(string), string sourceAddressPrefix = default(string), IList <string> sourceAddressPrefixes = default(IList <string>), IList <ApplicationSecurityGroupInner> sourceApplicationSecurityGroups = default(IList <ApplicationSecurityGroupInner>), string destinationAddressPrefix = default(string), IList <string> destinationAddressPrefixes = default(IList <string>), IList <ApplicationSecurityGroupInner> destinationApplicationSecurityGroups = default(IList <ApplicationSecurityGroupInner>), IList <string> sourcePortRanges = default(IList <string>), IList <string> destinationPortRanges = default(IList <string>), int?priority = default(int?), string provisioningState = default(string), string name = default(string), string etag = default(string)) : base(id) { Description = description; Protocol = protocol; SourcePortRange = sourcePortRange; DestinationPortRange = destinationPortRange; SourceAddressPrefix = sourceAddressPrefix; SourceAddressPrefixes = sourceAddressPrefixes; SourceApplicationSecurityGroups = sourceApplicationSecurityGroups; DestinationAddressPrefix = destinationAddressPrefix; DestinationAddressPrefixes = destinationAddressPrefixes; DestinationApplicationSecurityGroups = destinationApplicationSecurityGroups; SourcePortRanges = sourcePortRanges; DestinationPortRanges = destinationPortRanges; Access = access; Priority = priority; Direction = direction; ProvisioningState = provisioningState; Name = name; Etag = etag; CustomInit(); }
/// <summary> /// Initializes a new instance of the NetworkSecurityGroupResult class. /// </summary> /// <param name="securityRuleAccessResult">The network traffic is /// allowed or denied. Possible values include: 'Allow', 'Deny'</param> /// <param name="evaluatedNetworkSecurityGroups">List of results /// network security groups diagnostic.</param> public NetworkSecurityGroupResult(SecurityRuleAccess securityRuleAccessResult = default(SecurityRuleAccess), IList <EvaluatedNetworkSecurityGroup> evaluatedNetworkSecurityGroups = default(IList <EvaluatedNetworkSecurityGroup>)) { SecurityRuleAccessResult = securityRuleAccessResult; EvaluatedNetworkSecurityGroups = evaluatedNetworkSecurityGroups; CustomInit(); }