Class: Google::Apis::ComputeV1::PacketMirroringFilter

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PacketMirroringFilter

Returns a new instance of PacketMirroringFilter.



19067
19068
19069
# File 'generated/google/apis/compute_v1/classes.rb', line 19067

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>)


19065
19066
19067
# File 'generated/google/apis/compute_v1/classes.rb', line 19065

def cidr_ranges
  @cidr_ranges
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>)


19057
19058
19059
# File 'generated/google/apis/compute_v1/classes.rb', line 19057

def ip_protocols
  @ip_protocols
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19072
19073
19074
19075
# File 'generated/google/apis/compute_v1/classes.rb', line 19072

def update!(**args)
  @ip_protocols = args[:ip_protocols] if args.key?(:ip_protocols)
  @cidr_ranges = args[:cidr_ranges] if args.key?(:cidr_ranges)
end