Class: Google::Apis::ComputeBeta::PacketMirroringFilter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PacketMirroringFilter

Returns a new instance of PacketMirroringFilter.



32218
32219
32220
# File 'lib/google/apis/compute_beta/classes.rb', line 32218

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

Instance Attribute Details

#cidr_rangesArray<String>

One or more IPv4 or IPv6 CIDR ranges that apply as filters 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". Corresponds to the JSON property cidrRanges

Returns:

  • (Array<String>)


32210
32211
32212
# File 'lib/google/apis/compute_beta/classes.rb', line 32210

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)


32216
32217
32218
# File 'lib/google/apis/compute_beta/classes.rb', line 32216

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 IPv4 traffic is mirrored. Corresponds to the JSON property IPProtocols

Returns:

  • (Array<String>)


32201
32202
32203
# File 'lib/google/apis/compute_beta/classes.rb', line 32201

def ip_protocols
  @ip_protocols
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32223
32224
32225
32226
32227
# File 'lib/google/apis/compute_beta/classes.rb', line 32223

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