Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold
- 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
-
#count ⇒ Fixnum
Number of HTTP(S) requests for calculating the threshold.
-
#interval_sec ⇒ Fixnum
Interval over which the threshold is computed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPolicyRuleRateLimitOptionsThreshold
constructor
A new instance of SecurityPolicyRuleRateLimitOptionsThreshold.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPolicyRuleRateLimitOptionsThreshold
Returns a new instance of SecurityPolicyRuleRateLimitOptionsThreshold.
41435 41436 41437 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41435 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Number of HTTP(S) requests for calculating the threshold.
Corresponds to the JSON property count
41428 41429 41430 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41428 def count @count end |
#interval_sec ⇒ Fixnum
Interval over which the threshold is computed.
Corresponds to the JSON property intervalSec
41433 41434 41435 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41433 def interval_sec @interval_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
41440 41441 41442 41443 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 41440 def update!(**args) @count = args[:count] if args.key?(:count) @interval_sec = args[:interval_sec] if args.key?(:interval_sec) end |