Class: Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsThreshold
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsThreshold
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.
36299 36300 36301 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36299 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
36292 36293 36294 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36292 def count @count end |
#interval_sec ⇒ Fixnum
Interval over which the threshold is computed.
Corresponds to the JSON property intervalSec
36297 36298 36299 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36297 def interval_sec @interval_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
36304 36305 36306 36307 |
# File 'lib/google/apis/compute_v1/classes.rb', line 36304 def update!(**args) @count = args[:count] if args.key?(:count) @interval_sec = args[:interval_sec] if args.key?(:interval_sec) end |