class Google::Apis::ComputeBeta::FirewallPolicyRuleMatcher
Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.
Attributes
dest_ip_ranges[RW]
CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. Corresponds to the JSON property `destIpRanges` @return [Array<String>]
layer4_configs[RW]
Pairs of IP protocols and ports that the rule should match. Corresponds to the JSON property `layer4Configs` @return [Array<Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config>]
src_ip_ranges[RW]
CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. Corresponds to the JSON property `srcIpRanges` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 8331 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/compute_beta/classes.rb, line 8336 def update!(**args) @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges) @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs) @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges) end