class Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaMetric

Consumer quota settings for a quota metric.

Attributes

consumer_quota_limits[RW]

The consumer quota for each quota limit defined on the metric. Corresponds to the JSON property `consumerQuotaLimits` @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit>]

descendant_consumer_quota_limits[RW]

The quota limits targeting the descendant containers of the consumer in request. If the consumer in request is of type `organizations` or `folders`, the field will list per-project limits in the metric; if the consumer in request is of type `project`, the field will be empty. The `quota_buckets` field of each descendant consumer quota limit will not be populated. Corresponds to the JSON property `descendantConsumerQuotaLimits` @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit>]

display_name[RW]

The display name of the metric. An example name would be: “CPUs” Corresponds to the JSON property `displayName` @return [String]

metric[RW]

The name of the metric. An example name would be: `compute.googleapis.com/cpus` Corresponds to the JSON property `metric` @return [String]

name[RW]

The resource name of the quota settings on this metric for this consumer. An example name would be: `services/serviceconsumermanagement.googleapis.com/ projects/123/quota/metrics/compute.googleapis.com%2Fcpus 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` @return [String]

unit[RW]

The units in which the metric value is reported. Corresponds to the JSON property `unit` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb, line 2960
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb, line 2965
def update!(**args)
  @consumer_quota_limits = args[:consumer_quota_limits] if args.key?(:consumer_quota_limits)
  @descendant_consumer_quota_limits = args[:descendant_consumer_quota_limits] if args.key?(:descendant_consumer_quota_limits)
  @display_name = args[:display_name] if args.key?(:display_name)
  @metric = args[:metric] if args.key?(:metric)
  @name = args[:name] if args.key?(:name)
  @unit = args[:unit] if args.key?(:unit)
end