Class: Google::Apis::ComputeBeta::SecurityPolicyRuleRateLimitOptionsThreshold

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

Returns a new instance of SecurityPolicyRuleRateLimitOptionsThreshold.



33130
33131
33132
# File 'lib/google/apis/compute_beta/classes.rb', line 33130

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

Instance Attribute Details

#countFixnum

Number of HTTP(S) requests for calculating the threshold. Corresponds to the JSON property count

Returns:

  • (Fixnum)


33123
33124
33125
# File 'lib/google/apis/compute_beta/classes.rb', line 33123

def count
  @count
end

#interval_secFixnum

Interval over which the threshold is computed. Corresponds to the JSON property intervalSec

Returns:

  • (Fixnum)


33128
33129
33130
# File 'lib/google/apis/compute_beta/classes.rb', line 33128

def interval_sec
  @interval_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



33135
33136
33137
33138
# File 'lib/google/apis/compute_beta/classes.rb', line 33135

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