Class: Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsThreshold

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleRateLimitOptionsThreshold

Returns a new instance of SecurityPolicyRuleRateLimitOptionsThreshold.



38217
38218
38219
# File 'lib/google/apis/compute_v1/classes.rb', line 38217

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)


38210
38211
38212
# File 'lib/google/apis/compute_v1/classes.rb', line 38210

def count
  @count
end

#interval_secFixnum

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

Returns:

  • (Fixnum)


38215
38216
38217
# File 'lib/google/apis/compute_v1/classes.rb', line 38215

def interval_sec
  @interval_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38222
38223
38224
38225
# File 'lib/google/apis/compute_v1/classes.rb', line 38222

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