Class: Google::Apis::ComputeAlpha::PacketMirroringFilter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PacketMirroringFilter

Returns a new instance of PacketMirroringFilter.



29710
29711
29712
# File 'lib/google/apis/compute_alpha/classes.rb', line 29710

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cidr_rangesArray<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

Returns:

  • (Array<String>)


29702
29703
29704
# File 'lib/google/apis/compute_alpha/classes.rb', line 29702

def cidr_ranges
  @cidr_ranges
end

#directionString

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. Corresponds to the JSON property direction

Returns:

  • (String)


29708
29709
29710
# File 'lib/google/apis/compute_alpha/classes.rb', line 29708

def direction
  @direction
end

#ip_protocolsArray<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

Returns:

  • (Array<String>)


29694
29695
29696
# File 'lib/google/apis/compute_alpha/classes.rb', line 29694

def ip_protocols
  @ip_protocols
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



29715
29716
29717
29718
29719
# File 'lib/google/apis/compute_alpha/classes.rb', line 29715

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