Class: Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1beta1::ConsumerQuotaMetric
- 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 metric.
Instance Attribute Summary collapse
-
#consumer_quota_limits ⇒ Array<Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit>
The consumer quota for each quota limit defined on the metric.
-
#display_name ⇒ String
The display name of the metric.
-
#metric ⇒ String
The name of the metric.
-
#name ⇒ String
The resource name of the quota settings on this metric for this consumer.
-
#unit ⇒ String
The units in which the metric value is reported.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsumerQuotaMetric
constructor
A new instance of ConsumerQuotaMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConsumerQuotaMetric
Returns a new instance of ConsumerQuotaMetric.
721 722 723 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 721 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_quota_limits ⇒ Array<Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit>
The consumer quota for each quota limit defined on the metric.
Corresponds to the JSON property consumerQuotaLimits
695 696 697 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 695 def consumer_quota_limits @consumer_quota_limits end |
#display_name ⇒ String
The display name of the metric. An example name would be: "CPUs"
Corresponds to the JSON property displayName
700 701 702 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 700 def display_name @display_name end |
#metric ⇒ String
The name of the metric. An example name would be: compute.googleapis.com/cpus
Corresponds to the JSON property metric
705 706 707 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 705 def metric @metric end |
#name ⇒ String
The resource name of the quota settings on this metric for this consumer. An
example name would be: projects/123/services/compute.googleapis.com/
consumerQuotaMetrics/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`
714 715 716 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 714 def name @name end |
#unit ⇒ String
The units in which the metric value is reported.
Corresponds to the JSON property unit
719 720 721 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 719 def unit @unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
726 727 728 729 730 731 732 |
# File 'generated/google/apis/serviceusage_v1beta1/classes.rb', line 726 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 |