Class: Google::Apis::ServiceusageV1beta1::QuotaBucket
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1beta1::QuotaBucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/serviceusage_v1beta1/classes.rb,
generated/google/apis/serviceusage_v1beta1/representations.rb,
generated/google/apis/serviceusage_v1beta1/representations.rb
Overview
A quota bucket is a quota provisioning unit for a specific set of dimensions.
Instance Attribute Summary collapse
-
#admin_override ⇒ Google::Apis::ServiceusageV1beta1::QuotaOverride
A quota override Corresponds to the JSON property
adminOverride
. -
#consumer_override ⇒ Google::Apis::ServiceusageV1beta1::QuotaOverride
A quota override Corresponds to the JSON property
consumerOverride
. -
#default_limit ⇒ Fixnum
The default limit of this quota bucket, as specified by the service configuration.
-
#dimensions ⇒ Hash<String,String>
The dimensions of this quota bucket.
-
#effective_limit ⇒ Fixnum
The effective limit of this quota bucket.
-
#producer_override ⇒ Google::Apis::ServiceusageV1beta1::QuotaOverride
A quota override Corresponds to the JSON property
producerOverride
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuotaBucket
constructor
A new instance of QuotaBucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QuotaBucket
Returns a new instance of QuotaBucket.
3789 3790 3791 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3789 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_override ⇒ Google::Apis::ServiceusageV1beta1::QuotaOverride
A quota override
Corresponds to the JSON property adminOverride
3753 3754 3755 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3753 def admin_override @admin_override end |
#consumer_override ⇒ Google::Apis::ServiceusageV1beta1::QuotaOverride
A quota override
Corresponds to the JSON property consumerOverride
3758 3759 3760 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3758 def consumer_override @consumer_override end |
#default_limit ⇒ Fixnum
The default limit of this quota bucket, as specified by the service
configuration.
Corresponds to the JSON property defaultLimit
3764 3765 3766 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3764 def default_limit @default_limit end |
#dimensions ⇒ Hash<String,String>
The dimensions of this quota bucket.
If this map is empty, this is the global bucket, which is the default quota
value applied to all requests that do not have a more specific override.
If this map is nonempty, the default limit, effective limit, and quota
overrides apply only to requests that have the dimensions given in the map.
For example, if the map has key "region" and value "us-east-1", then the
specified effective limit is only effective in that region, and the
specified overrides apply only in that region.
Corresponds to the JSON property dimensions
3776 3777 3778 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3776 def dimensions @dimensions end |
#effective_limit ⇒ Fixnum
The effective limit of this quota bucket. Equal to default_limit if there
are no overrides.
Corresponds to the JSON property effectiveLimit
3782 3783 3784 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3782 def effective_limit @effective_limit end |
#producer_override ⇒ Google::Apis::ServiceusageV1beta1::QuotaOverride
A quota override
Corresponds to the JSON property producerOverride
3787 3788 3789 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3787 def producer_override @producer_override end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3794 3795 3796 3797 3798 3799 3800 3801 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 3794 def update!(**args) @admin_override = args[:admin_override] if args.key?(:admin_override) @consumer_override = args[:consumer_override] if args.key?(:consumer_override) @default_limit = args[:default_limit] if args.key?(:default_limit) @dimensions = args[:dimensions] if args.key?(:dimensions) @effective_limit = args[:effective_limit] if args.key?(:effective_limit) @producer_override = args[:producer_override] if args.key?(:producer_override) end |