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.
6858 6859 6860 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6858 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
6840 6841 6842 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6840 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
6845 6846 6847 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6845 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
6850 6851 6852 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6850 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
6856 6857 6858 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6856 def quota_usage @quota_usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6863 6864 6865 6866 6867 6868 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6863 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 |