Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit
- Inherits:
-
Object
- Object
- Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb,
generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb,
generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb
Overview
Consumer quota settings for a quota limit.
Instance Attribute Summary collapse
-
#is_precise ⇒ Boolean
(also: #is_precise?)
Whether this limit is precise or imprecise.
-
#metric ⇒ String
The name of the parent metric of this limit.
-
#name ⇒ String
The resource name of the quota limit.
-
#quota_buckets ⇒ Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaBucket>
Summary of the enforced quota buckets, organized by quota dimension, ordered from least specific to most specific (for example, the global default bucket, with no quota dimensions, will always appear first).
-
#unit ⇒ String
The limit unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ V1Beta1ConsumerQuotaLimit
constructor
A new instance of V1Beta1ConsumerQuotaLimit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ V1Beta1ConsumerQuotaLimit
Returns a new instance of V1Beta1ConsumerQuotaLimit.
2895 2896 2897 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2895 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_precise ⇒ Boolean Also known as: is_precise?
Whether this limit is precise or imprecise.
Corresponds to the JSON property isPrecise
2863 2864 2865 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2863 def is_precise @is_precise end |
#metric ⇒ String
The name of the parent metric of this limit. An example name would be:
compute.googleapis.com/cpus
Corresponds to the JSON property metric
2870 2871 2872 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2870 def metric @metric end |
#name ⇒ String
The resource name of the quota limit. An example name would be: services/
compute.googleapis.com/projects/123/quotas/metrics/compute.googleapis.com%
2Fcpus/limits/%2Fproject%2Fregion
The resource name is intended to be opaque
and should not be parsed for its component strings, since its representation
could change in the future.
Corresponds to the JSON property name
2879 2880 2881 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2879 def name @name end |
#quota_buckets ⇒ Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaBucket>
Summary of the enforced quota buckets, organized by quota dimension, ordered
from least specific to most specific (for example, the global default bucket,
with no quota dimensions, will always appear first).
Corresponds to the JSON property quotaBuckets
2886 2887 2888 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2886 def quota_buckets @quota_buckets end |
#unit ⇒ String
The limit unit. An example unit would be: 1/
project/
regionNote that
projectand
regionare not placeholders in this example; the literal
characters
and
`occur in the string.
Corresponds to the JSON property
unit`
2893 2894 2895 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2893 def unit @unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2900 2901 2902 2903 2904 2905 2906 |
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2900 def update!(**args) @is_precise = args[:is_precise] if args.key?(:is_precise) @metric = args[:metric] if args.key?(:metric) @name = args[:name] if args.key?(:name) @quota_buckets = args[:quota_buckets] if args.key?(:quota_buckets) @unit = args[:unit] if args.key?(:unit) end |