|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
| 5 | +using System.Threading.Tasks; |
| 6 | +using Newtonsoft.Json; |
| 7 | +namespace OpenStack.Networking.v2.Layer3 |
| 8 | +{ |
| 9 | + /// <summary> |
| 10 | + /// |
| 11 | + /// </summary> |
| 12 | + public class SecurityGroupRule |
| 13 | + { |
| 14 | + /// <summary> |
| 15 | + ///ngress or egress: the direction in which the security group rule is applied. |
| 16 | + ///For a compute instance, an ingress security group rule is applied to incoming (ingress) traffic for that instance. |
| 17 | + ///An egress rule is applied to traffic leaving the instance. |
| 18 | + /// </summary> |
| 19 | + [JsonProperty("direction")] |
| 20 | + public string Direction; |
| 21 | + |
| 22 | + /// <summary> |
| 23 | + ///Must be IPv4 or IPv6, and addresses represented in CIDR must match the ingress or egress rules. |
| 24 | + /// </summary> |
| 25 | + [JsonProperty("ethertype")] |
| 26 | + public string Ethertype; |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// The UUID of the security group rule. |
| 30 | + /// </summary> |
| 31 | + [JsonProperty("id")] |
| 32 | + public Identifier Id; |
| 33 | + |
| 34 | + /// <summary> |
| 35 | + ///The maximum port number in the range that is matched by the security group rule. |
| 36 | + ///The port_range_min attribute constrains the port_range_max attribute. |
| 37 | + ///If the protocol is ICMP, this value must be an ICMP type. |
| 38 | + /// </summary> |
| 39 | + [JsonProperty("port_range_max")] |
| 40 | + public int PortRangeMax; |
| 41 | + |
| 42 | + ///<summary> |
| 43 | + ///The minimum port number in the range that is matched by the security group rule. |
| 44 | + ///If the protocol is TCP or UDP, this value must be less than or equal to the port_range_max attribute value. |
| 45 | + ///If the protocol is ICMP, this value must be an ICMP type. |
| 46 | + /// </summary> |
| 47 | + [JsonProperty("port_range_min")] |
| 48 | + public int PortRangeMin; |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + ///The protocol that is matched by the security group rule. Value is null, icmp, icmpv6, tcp, or udp. |
| 52 | + /// </summary> |
| 53 | + [JsonProperty("protocol")] |
| 54 | + public string Protocol; |
| 55 | + |
| 56 | + ///<summary> |
| 57 | + ///The remote group UUID to associate with this security group rule. |
| 58 | + ///You can specify either the remote_group_id or remote_ip_prefix attribute in the request body. |
| 59 | + /// </summary> |
| 60 | + [JsonProperty("remote_group_id")] |
| 61 | + public string RemoteGroupId; |
| 62 | + |
| 63 | + /// <summary> |
| 64 | + ///The remote IP prefix to associate with this security group rule. |
| 65 | + ///You can specify either the remote_group_id or remote_ip_prefix attribute in the request body. |
| 66 | + ///This attribute value matches the IP prefix as the source IP address of the IP packet. |
| 67 | + /// </summary> |
| 68 | + [JsonProperty("remote_ip_prefix")] |
| 69 | + public string RemoteIpPrefix; |
| 70 | + |
| 71 | + /// <summary> |
| 72 | + ///The UUId of security group |
| 73 | + /// </summary> |
| 74 | + [JsonProperty("security_group_id")] |
| 75 | + public string SecurityGroupId; |
| 76 | + |
| 77 | + /// <summary> |
| 78 | + /// The UUID of the tenant who owns the security group rule. Only administrative users can specify a tenant UUID other than their own. |
| 79 | + /// </summary> |
| 80 | + [JsonProperty("tenant_id")] |
| 81 | + public string TenantId; |
| 82 | + } |
| 83 | +} |
0 commit comments