Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb,
lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb,
lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb

Overview

Consumer quota settings for a quota limit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V1Beta1ConsumerQuotaLimit

Returns a new instance of V1Beta1ConsumerQuotaLimit.



2900
2901
2902
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2900

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_preciseBoolean Also known as: is_precise?

Whether this limit is precise or imprecise. Corresponds to the JSON property isPrecise

Returns:

  • (Boolean)


2868
2869
2870
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2868

def is_precise
  @is_precise
end

#metricString

The name of the parent metric of this limit. An example name would be: compute.googleapis.com/cpus Corresponds to the JSON property metric

Returns:

  • (String)


2875
2876
2877
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2875

def metric
  @metric
end

#nameString

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

Returns:

  • (String)


2884
2885
2886
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2884

def name
  @name
end

#quota_bucketsArray<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



2891
2892
2893
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2891

def quota_buckets
  @quota_buckets
end

#unitString

The limit unit. An example unit would be: 1/project/regionNote that projectandregionare not placeholders in this example; the literal charactersand`occur in the string. Corresponds to the JSON propertyunit`

Returns:

  • (String)


2898
2899
2900
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2898

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2905
2906
2907
2908
2909
2910
2911
# File 'lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2905

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