Class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicyRuleRateLimitOptionsThreshold

Returns a new instance of SecurityPolicyRuleRateLimitOptionsThreshold.



44330
44331
44332
# File 'lib/google/apis/compute_alpha/classes.rb', line 44330

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)


44323
44324
44325
# File 'lib/google/apis/compute_alpha/classes.rb', line 44323

def count
  @count
end

#interval_secFixnum

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

Returns:

  • (Fixnum)


44328
44329
44330
# File 'lib/google/apis/compute_alpha/classes.rb', line 44328

def interval_sec
  @interval_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44335
44336
44337
44338
# File 'lib/google/apis/compute_alpha/classes.rb', line 44335

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