# Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::AllocateQuotaResponse (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.1 0.6.0 0.5.0 0.4.6 Reference documentation and code samples for the Service Control API V1 API class Google::Cloud::ServiceControl::V1::AllocateQuotaResponse.

Response message for the AllocateQuota method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #allocate_errors

    def allocate_errors() -> ::Array<::Google::Cloud::ServiceControl::V1::QuotaError>

**Returns**

- (::Array\<[::Google::Cloud::ServiceControl::V1::QuotaError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-QuotaError)\>) --- Indicates the decision of the allocate.

### #allocate_errors=

    def allocate_errors=(value) -> ::Array<::Google::Cloud::ServiceControl::V1::QuotaError>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ServiceControl::V1::QuotaError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-QuotaError)\>) --- Indicates the decision of the allocate.
**Returns**

- (::Array\<[::Google::Cloud::ServiceControl::V1::QuotaError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-QuotaError)\>) --- Indicates the decision of the allocate.

### #operation_id

    def operation_id() -> ::String

**Returns**

- (::String) --- The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.

### #operation_id=

    def operation_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.
**Returns**

- (::String) --- The same operation_id value used in the AllocateQuotaRequest. Used for logging and diagnostics purposes.

### #quota_metrics

    def quota_metrics() -> ::Array<::Google::Cloud::ServiceControl::V1::MetricValueSet>

**Returns**

- (::Array\<[::Google::Cloud::ServiceControl::V1::MetricValueSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-MetricValueSet)\>) ---

  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"

### #quota_metrics=

    def quota_metrics=(value) -> ::Array<::Google::Cloud::ServiceControl::V1::MetricValueSet>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ServiceControl::V1::MetricValueSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-MetricValueSet)\>) ---

  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"

**Returns**

- (::Array\<[::Google::Cloud::ServiceControl::V1::MetricValueSet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-MetricValueSet)\>) ---

  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"

### #service_config_id

    def service_config_id() -> ::String

**Returns**

- (::String) --- ID of the actual config used to process the request.

### #service_config_id=

    def service_config_id=(value) -> ::String

**Parameter**

- **value** (::String) --- ID of the actual config used to process the request.
**Returns**

- (::String) --- ID of the actual config used to process the request.