Class: Google::Apis::ServicecontrolV1::AllocateQuotaRequest

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AllocateQuotaRequest

Returns a new instance of AllocateQuotaRequest



47
48
49
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 47

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

Instance Attribute Details

#allocate_operationGoogle::Apis::ServicecontrolV1::QuotaOperation

Represents information regarding a quota operation. Corresponds to the JSON property allocateOperation



32
33
34
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 32

def allocate_operation
  @allocate_operation
end

#allocation_modeString

Allocation mode for this operation. Deprecated: use QuotaMode inside the QuotaOperation. Corresponds to the JSON property allocationMode

Returns:

  • (String)


38
39
40
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 38

def allocation_mode
  @allocation_mode
end

#service_config_idString

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

Returns:

  • (String)


45
46
47
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 45

def service_config_id
  @service_config_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52
53
54
55
56
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 52

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