class Google::Apis::ComputeV1::PacketMirroringFilter
Attributes
IP CIDR ranges that apply as filter on the source (ingress) or destination ( egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. Corresponds to the JSON property `cidrRanges` @return [Array<String>]
Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Corresponds to the JSON property `direction` @return [String]
Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. Corresponds to the JSON property `IPProtocols` @return [Array<String>]
Public Class Methods
# File lib/google/apis/compute_v1/classes.rb, line 22568 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 22573 def update!(**args) @ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols) @cidr_ranges = args[:cidr_ranges] if args.key?(:cidr_ranges) @direction = args[:direction] if args.key?(:direction) end