Class: Google::Apis::MerchantapiQuotaV1beta::QuotaGroup
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiQuotaV1beta::QuotaGroup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_quota_v1beta/classes.rb,
lib/google/apis/merchantapi_quota_v1beta/representations.rb,
lib/google/apis/merchantapi_quota_v1beta/representations.rb
Overview
The group information for methods in the Merchant API. The quota is shared between all methods in the group. Even if none of the methods within the group have usage the information for the group is returned.
Instance Attribute Summary collapse
-
#method_details ⇒ Array<Google::Apis::MerchantapiQuotaV1beta::MethodDetails>
Output only.
-
#name ⇒ String
Identifier.
-
#quota_limit ⇒ Fixnum
Output only.
-
#quota_minute_limit ⇒ Fixnum
Output only.
-
#quota_usage ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuotaGroup
constructor
A new instance of QuotaGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuotaGroup
Returns a new instance of QuotaGroup.
222 223 224 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 222 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_details ⇒ Array<Google::Apis::MerchantapiQuotaV1beta::MethodDetails>
Output only. List of all methods group quota applies to.
Corresponds to the JSON property methodDetails
197 198 199 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 197 def method_details @method_details end |
#name ⇒ String
Identifier. The resource name of the quota group. Format: accounts/account
/
quotas/group
Note: There is no guarantee on the format of group
Corresponds to the JSON property name
203 204 205 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 203 def name @name end |
#quota_limit ⇒ Fixnum
Output only. The maximum number of calls allowed per day for the group.
Corresponds to the JSON property quotaLimit
208 209 210 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 208 def quota_limit @quota_limit end |
#quota_minute_limit ⇒ Fixnum
Output only. The maximum number of calls allowed per minute for the group.
Corresponds to the JSON property quotaMinuteLimit
213 214 215 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 213 def quota_minute_limit @quota_minute_limit end |
#quota_usage ⇒ Fixnum
Output only. The current quota usage, meaning the number of calls already made
on a given day to the methods in the group. The daily quota limits reset at at
12:00 PM midday UTC.
Corresponds to the JSON property quotaUsage
220 221 222 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 220 def quota_usage @quota_usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
227 228 229 230 231 232 233 |
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 227 def update!(**args) @method_details = args[:method_details] if args.key?(:method_details) @name = args[:name] if args.key?(:name) @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 |