Class: Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcher
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcher
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Overview
Represents a match condition that incoming network traffic is evaluated against.
Instance Attribute Summary collapse
-
#dest_ip_ranges ⇒ Array<String>
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
-
#dest_ports ⇒ Array<String>
Destination port numbers for TCP/UDP/SCTP.
-
#ip_protocols ⇒ Array<String>
IPv4 protocol / IPv6 next header (after extension headers).
-
#src_asns ⇒ Array<Fixnum>
BGP Autonomous System Number associated with the source IP address.
-
#src_ip_ranges ⇒ Array<String>
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
-
#src_ports ⇒ Array<String>
Source port numbers for TCP/UDP/SCTP.
-
#src_region_codes ⇒ Array<String>
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address.
-
#user_defined_fields ⇒ Array<Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
User-defined fields.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPolicyRuleNetworkMatcher
constructor
A new instance of SecurityPolicyRuleNetworkMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPolicyRuleNetworkMatcher
Returns a new instance of SecurityPolicyRuleNetworkMatcher.
37898 37899 37900 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37898 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dest_ip_ranges ⇒ Array<String>
Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
Corresponds to the JSON property destIpRanges
37854 37855 37856 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37854 def dest_ip_ranges @dest_ip_ranges end |
#dest_ports ⇒ Array<String>
Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit
unsigned decimal number (e.g. "80") or range (e.g. "0-1023").
Corresponds to the JSON property destPorts
37860 37861 37862 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37860 def dest_ports @dest_ports end |
#ip_protocols ⇒ Array<String>
IPv4 protocol / IPv6 next header (after extension headers). Each element can
be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one
of the following protocol names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or
"sctp".
Corresponds to the JSON property ipProtocols
37868 37869 37870 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37868 def ip_protocols @ip_protocols end |
#src_asns ⇒ Array<Fixnum>
BGP Autonomous System Number associated with the source IP address.
Corresponds to the JSON property srcAsns
37873 37874 37875 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37873 def src_asns @src_asns end |
#src_ip_ranges ⇒ Array<String>
Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format.
Corresponds to the JSON property srcIpRanges
37878 37879 37880 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37878 def src_ip_ranges @src_ip_ranges end |
#src_ports ⇒ Array<String>
Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned
decimal number (e.g. "80") or range (e.g. "0-1023").
Corresponds to the JSON property srcPorts
37884 37885 37886 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37884 def src_ports @src_ports end |
#src_region_codes ⇒ Array<String>
Two-letter ISO 3166-1 alpha-2 country code associated with the source IP
address.
Corresponds to the JSON property srcRegionCodes
37890 37891 37892 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37890 def src_region_codes @src_region_codes end |
#user_defined_fields ⇒ Array<Google::Apis::ComputeV1::SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch>
User-defined fields. Each element names a defined field and lists the matching
values for that field.
Corresponds to the JSON property userDefinedFields
37896 37897 37898 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37896 def user_defined_fields @user_defined_fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
37903 37904 37905 37906 37907 37908 37909 37910 37911 37912 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37903 def update!(**args) @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges) @dest_ports = args[:dest_ports] if args.key?(:dest_ports) @ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols) @src_asns = args[:src_asns] if args.key?(:src_asns) @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) @src_ports = args[:src_ports] if args.key?(:src_ports) @src_region_codes = args[:src_region_codes] if args.key?(:src_region_codes) @user_defined_fields = args[:user_defined_fields] if args.key?(:user_defined_fields) end |