Class: Google::Apis::ComputeAlpha::PacketMirroringFilter
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PacketMirroringFilter
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#cidr_ranges ⇒ Array<String>
One or more IPv4 or IPv6 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.
32929 32930 32931 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 32929 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr_ranges ⇒ Array<String>
One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (
ingress) or destination (egress) IP in the IP header. If no ranges are
specified, all IPv4 traffic that matches the specified IPProtocols is mirrored.
If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is
mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note:
Support for IPv6 traffic is in preview.
Corresponds to the JSON property cidrRanges
32921 32922 32923 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 32921 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
32927 32928 32929 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 32927 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 IPv4 traffic is mirrored.
Corresponds to the JSON property IPProtocols
32911 32912 32913 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 32911 def ip_protocols @ip_protocols end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32934 32935 32936 32937 32938 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 32934 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 |