Class: Google::Apis::ServicecontrolV1::QuotaProperties
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::QuotaProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb
Overview
Represents the properties needed for quota operations.
Instance Attribute Summary collapse
-
#limit_by_ids ⇒ Hash<String,String>
LimitType IDs that should be used for checking quota.
-
#quota_mode ⇒ String
Quota mode for this operation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuotaProperties
constructor
A new instance of QuotaProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QuotaProperties
Returns a new instance of QuotaProperties
1600 1601 1602 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limit_by_ids ⇒ Hash<String,String>
LimitType IDs that should be used for checking quota. Key in this map
should be a valid LimitType string, and the value is the ID to be used. For
example, an entry limitByIds
1593 1594 1595 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1593 def limit_by_ids @limit_by_ids end |
#quota_mode ⇒ String
Quota mode for this operation.
Corresponds to the JSON property quotaMode
1598 1599 1600 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1598 def quota_mode @quota_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1605 1606 1607 1608 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1605 def update!(**args) @limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids) @quota_mode = args[:quota_mode] if args.key?(:quota_mode) end |