Class: Google::Apis::ContentV2_1::MethodQuota
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::MethodQuota
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
The quota information per method in the Content API.
Instance Attribute Summary collapse
-
#method_prop ⇒ String
Output only.
-
#quota_limit ⇒ Fixnum
Output only.
-
#quota_minute_limit ⇒ Fixnum
Output only.
-
#quota_usage ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MethodQuota
constructor
A new instance of MethodQuota.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MethodQuota
Returns a new instance of MethodQuota.
6849 6850 6851 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6849 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_prop ⇒ String
Output only. The method name, for example products.list
. Method name does
not contain version because quota can be shared between different API versions
of the same method.
Corresponds to the JSON property method
6831 6832 6833 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6831 def method_prop @method_prop end |
#quota_limit ⇒ Fixnum
Output only. The maximum number of calls allowed per day for the method.
Corresponds to the JSON property quotaLimit
6836 6837 6838 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6836 def quota_limit @quota_limit end |
#quota_minute_limit ⇒ Fixnum
Output only. The maximum number of calls allowed per minute for the method.
Corresponds to the JSON property quotaMinuteLimit
6841 6842 6843 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6841 def quota_minute_limit @quota_minute_limit end |
#quota_usage ⇒ Fixnum
Output only. The current quota usage, meaning the number of calls already made
to the method per day. Usage is reset every day at 12 PM midday UTC.
Corresponds to the JSON property quotaUsage
6847 6848 6849 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6847 def quota_usage @quota_usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6854 6855 6856 6857 6858 6859 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6854 def update!(**args) @method_prop = args[:method_prop] if args.key?(:method_prop) @quota_limit = args[:quota_limit] if args.key?(:quota_limit) @quota_minute_limit = args[:quota_minute_limit] if args.key?(:quota_minute_limit) @quota_usage = args[:quota_usage] if args.key?(:quota_usage) end |