Class: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit

Inherits:
Object
  • Object
show all
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

Consumer quota settings for a quota limit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConsumerQuotaLimit

Returns a new instance of ConsumerQuotaLimit.



675
676
677
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 675

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

Instance Attribute Details

#allows_admin_overridesBoolean Also known as: allows_admin_overrides?

Whether admin overrides are allowed on this limit Corresponds to the JSON property allowsAdminOverrides

Returns:

  • (Boolean)


633
634
635
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 633

def allows_admin_overrides
  @allows_admin_overrides
end

#is_preciseBoolean Also known as: is_precise?

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

Returns:

  • (Boolean)


639
640
641
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 639

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)


647
648
649
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 647

def metric
  @metric
end

#nameString

The resource name of the quota limit. An example name would be: projects/123/services/compute.googleapis.com/consumerQuotaMetrics/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)


657
658
659
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 657

def name
  @name
end

#quota_bucketsArray<Google::Apis::ServiceusageV1beta1::QuotaBucket>

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



664
665
666
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 664

def quota_buckets
  @quota_buckets
end

#unitString

The limit unit. An example unit would be 1/project/region Note thatprojectandregionare not placeholders in this example; the literal charactersand`occur in the string. Corresponds to the JSON propertyunit`

Returns:

  • (String)


673
674
675
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 673

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



680
681
682
683
684
685
686
687
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 680

def update!(**args)
  @allows_admin_overrides = args[:allows_admin_overrides] if args.key?(:allows_admin_overrides)
  @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