Class: Google::Apis::ComputeBeta::PacketMirroringFilter
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::PacketMirroringFilter
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#cidr_ranges ⇒ Array<String>
IP CIDR ranges that apply as filter on the source (ingress) or destination ( egress) IP in the IP header.
-
#direction ⇒ String
Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH.
-
#ip_protocols ⇒ Array<String>
Protocols that apply as filter on mirrored traffic.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PacketMirroringFilter
constructor
A new instance of PacketMirroringFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PacketMirroringFilter
Returns a new instance of PacketMirroringFilter.
23346 23347 23348 |
# File 'generated/google/apis/compute_beta/classes.rb', line 23346 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr_ranges ⇒ Array<String>
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
23338 23339 23340 |
# File 'generated/google/apis/compute_beta/classes.rb', line 23338 def cidr_ranges @cidr_ranges end |
#direction ⇒ String
Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default
is BOTH.
Corresponds to the JSON property direction
23344 23345 23346 |
# File 'generated/google/apis/compute_beta/classes.rb', line 23344 def direction @direction end |
#ip_protocols ⇒ Array<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
23330 23331 23332 |
# File 'generated/google/apis/compute_beta/classes.rb', line 23330 def ip_protocols @ip_protocols end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
23351 23352 23353 23354 23355 |
# File 'generated/google/apis/compute_beta/classes.rb', line 23351 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 |