Class: Google::Apis::ServicecontrolV1::AllocateQuotaRequest
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::AllocateQuotaRequest
- 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
Request message for the AllocateQuota method.
Instance Attribute Summary collapse
-
#allocate_operation ⇒ Google::Apis::ServicecontrolV1::QuotaOperation
Represents information regarding a quota operation.
-
#allocation_mode ⇒ String
Allocation mode for this operation.
-
#service_config_id ⇒ String
Specifies which version of service configuration should be used to process the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocateQuotaRequest
constructor
A new instance of AllocateQuotaRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllocateQuotaRequest
Returns a new instance of AllocateQuotaRequest
1471 1472 1473 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1471 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allocate_operation ⇒ Google::Apis::ServicecontrolV1::QuotaOperation
Represents information regarding a quota operation.
Corresponds to the JSON property allocateOperation
1456 1457 1458 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1456 def allocate_operation @allocate_operation end |
#allocation_mode ⇒ String
Allocation mode for this operation.
Deprecated: use QuotaMode inside the QuotaOperation.
Corresponds to the JSON property allocationMode
1462 1463 1464 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1462 def allocation_mode @allocation_mode end |
#service_config_id ⇒ String
Specifies which version of service configuration should be used to process
the request. If unspecified or no matching version can be found, the latest
one will be used.
Corresponds to the JSON property serviceConfigId
1469 1470 1471 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1469 def service_config_id @service_config_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1476 1477 1478 1479 1480 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 1476 def update!(**args) @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation) @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode) @service_config_id = args[:service_config_id] if args.key?(:service_config_id) end |