class Google::Apis::TestingV1::TrafficRule

Network emulation parameters.

Attributes

bandwidth[RW]

Bandwidth in kbits/second. Corresponds to the JSON property `bandwidth` @return [Float]

burst[RW]

Burst size in kbits. Corresponds to the JSON property `burst` @return [Float]

delay[RW]

Packet delay, must be >= 0. Corresponds to the JSON property `delay` @return [String]

packet_duplication_ratio[RW]

Packet duplication ratio (0.0 - 1.0). Corresponds to the JSON property `packetDuplicationRatio` @return [Float]

packet_loss_ratio[RW]

Packet loss ratio (0.0 - 1.0). Corresponds to the JSON property `packetLossRatio` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/testing_v1/classes.rb, line 2579
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/testing_v1/classes.rb, line 2584
def update!(**args)
  @bandwidth = args[:bandwidth] if args.key?(:bandwidth)
  @burst = args[:burst] if args.key?(:burst)
  @delay = args[:delay] if args.key?(:delay)
  @packet_duplication_ratio = args[:packet_duplication_ratio] if args.key?(:packet_duplication_ratio)
  @packet_loss_ratio = args[:packet_loss_ratio] if args.key?(:packet_loss_ratio)
end