Class: Google::Apis::ServicemanagementV1::Quota
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::Quota
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_v1/representations.rb
Instance Attribute Summary collapse
-
#limits ⇒ Array<Google::Apis::ServicemanagementV1::QuotaLimit>
List of
QuotaLimit
definitions for the service. -
#metric_rules ⇒ Array<Google::Apis::ServicemanagementV1::MetricRule>
List of
MetricRule
definitions, each one mapping a selected method to one or more metrics.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Quota
constructor
A new instance of Quota.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Quota
Returns a new instance of Quota
3146 3147 3148 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3146 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limits ⇒ Array<Google::Apis::ServicemanagementV1::QuotaLimit>
List of QuotaLimit
definitions for the service.
Corresponds to the JSON property limits
3138 3139 3140 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3138 def limits @limits end |
#metric_rules ⇒ Array<Google::Apis::ServicemanagementV1::MetricRule>
List of MetricRule
definitions, each one mapping a selected method to one
or more metrics.
Corresponds to the JSON property metricRules
3144 3145 3146 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3144 def metric_rules @metric_rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3151 3152 3153 3154 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3151 def update!(**args) @limits = args[:limits] if args.key?(:limits) @metric_rules = args[:metric_rules] if args.key?(:metric_rules) end |