Class: Google::Apis::ServicecontrolV1::AllocateQuotaResponse
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ServicecontrolV1::AllocateQuotaResponse
 
- 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
Response message for the AllocateQuota method.
Instance Attribute Summary collapse
- 
  
    
      #allocate_errors  ⇒ Array<Google::Apis::ServicecontrolV1::QuotaError> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Indicates the decision of the allocate. 
- 
  
    
      #allocate_info  ⇒ Google::Apis::ServicecontrolV1::AllocateInfo 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    WARNING: DO NOT use this field until this warning message is removed. 
- 
  
    
      #operation_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The same operation_id value used in the AllocateQuotaRequest. 
- 
  
    
      #quota_metrics  ⇒ Array<Google::Apis::ServicecontrolV1::MetricValueSet> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Quota metrics to indicate the result of allocation. 
- 
  
    
      #service_config_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of the actual config used to process the request. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AllocateQuotaResponse 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AllocateQuotaResponse. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllocateQuotaResponse
Returns a new instance of AllocateQuotaResponse
| 111 112 113 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 111 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#allocate_errors ⇒ Array<Google::Apis::ServicecontrolV1::QuotaError>
Indicates the decision of the allocate.
Corresponds to the JSON property allocateErrors
| 81 82 83 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 81 def allocate_errors @allocate_errors end | 
#allocate_info ⇒ Google::Apis::ServicecontrolV1::AllocateInfo
WARNING: DO NOT use this field until this warning message is removed.
Corresponds to the JSON property allocateInfo
| 86 87 88 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 86 def allocate_info @allocate_info end | 
#operation_id ⇒ String
The same operation_id value used in the AllocateQuotaRequest. Used for
logging and diagnostics purposes.
Corresponds to the JSON property operationId
| 92 93 94 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 92 def operation_id @operation_id end | 
#quota_metrics ⇒ Array<Google::Apis::ServicecontrolV1::MetricValueSet>
Quota metrics to indicate the result of allocation. Depending on the request, one or more of the following metrics will be included:
- 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"
- The quota limit reached condition will be specified using the following
boolean metric :
"serviceruntime.googleapis.com/quota/exceeded"
Corresponds to the JSON property quotaMetrics
| 104 105 106 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 104 def quota_metrics @quota_metrics end | 
#service_config_id ⇒ String
ID of the actual config used to process the request.
Corresponds to the JSON property serviceConfigId
| 109 110 111 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 109 def service_config_id @service_config_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 116 117 118 119 120 121 122 | # File 'generated/google/apis/servicecontrol_v1/classes.rb', line 116 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 |