class Google::Apis::ComputeV1::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::ComputeV1::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>]

src_secure_tags[RW]

List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256. Corresponds to the JSON property `srcSecureTags` @return [Array<Google::Apis::ComputeV1::FirewallPolicyRuleSecureTag>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 8506
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_v1/classes.rb, line 8511
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)
  @src_secure_tags = args[:src_secure_tags] if args.key?(:src_secure_tags)
end