Class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaMetric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V1Beta1ConsumerQuotaMetric

Returns a new instance of V1Beta1ConsumerQuotaMetric.



2942
2943
2944
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2942

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

Instance Attribute Details

#consumer_quota_limitsArray<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit>

The consumer quota for each quota limit defined on the metric. Corresponds to the JSON property consumerQuotaLimits



2916
2917
2918
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2916

def consumer_quota_limits
  @consumer_quota_limits
end

#display_nameString

The display name of the metric. An example name would be: "CPUs" Corresponds to the JSON property displayName

Returns:

  • (String)


2921
2922
2923
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2921

def display_name
  @display_name
end

#metricString

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

Returns:

  • (String)


2926
2927
2928
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2926

def metric
  @metric
end

#nameString

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 propertyname`

Returns:

  • (String)


2935
2936
2937
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2935

def name
  @name
end

#unitString

The units in which the metric value is reported. Corresponds to the JSON property unit

Returns:

  • (String)


2940
2941
2942
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2940

def unit
  @unit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2947
2948
2949
2950
2951
2952
2953
# File 'generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb', line 2947

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