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.
6906 6907 6908 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6906 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
6888 6889 6890 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6888 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
6893 6894 6895 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6893 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
6898 6899 6900 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6898 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
6904 6905 6906 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6904 def quota_usage @quota_usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6911 6912 6913 6914 6915 6916 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6911 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 |