Class: Google::Apis::ComputeBeta::PacketMirroringFilter
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::PacketMirroringFilter
- 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.
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ PacketMirroringFilter
Returns a new instance of PacketMirroringFilter.
21276 21277 21278 |
# File 'generated/google/apis/compute_beta/classes.rb', line 21276 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
21274 21275 21276 |
# File 'generated/google/apis/compute_beta/classes.rb', line 21274 def cidr_ranges @cidr_ranges 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
21266 21267 21268 |
# File 'generated/google/apis/compute_beta/classes.rb', line 21266 def ip_protocols @ip_protocols end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21281 21282 21283 21284 |
# File 'generated/google/apis/compute_beta/classes.rb', line 21281 def update!(**args) @ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols) @cidr_ranges = args[:cidr_ranges] if args.key?(:cidr_ranges) end |