class Google::Apis::ServicecontrolV1::AllocateQuotaResponse

Response message for the AllocateQuota method.

Attributes

allocate_errors[RW]

Indicates the decision of the allocate. Corresponds to the JSON property `allocateErrors` @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]

allocate_info[RW]

WARNING: DO NOT use this field until this warning message is removed. Corresponds to the JSON property `allocateInfo` @return [Google::Apis::ServicecontrolV1::AllocateInfo]

operation_id[RW]

The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes. Corresponds to the JSON property `operationId` @return [String]

quota_metrics[RW]

Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included: 1. Per quota group or per quota metric incremental usage will be specified using the following delta metric : “serviceruntime.googleapis.com/api/consumer/quota_used_count” 2. The quota limit reached condition will be specified using the following boolean metric : “serviceruntime.googleapis.com/quota/exceeded” Corresponds to the JSON property `quotaMetrics` @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]

service_config_id[RW]

ID of the actual config used to process the request. Corresponds to the JSON property `serviceConfigId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicecontrol_v1/classes.rb, line 110
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicecontrol_v1/classes.rb, line 115
def update!(**args)
  @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
  @allocate_info = args[:allocate_info] if args.key?(:allocate_info)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
end