public function allocateQuota($serviceName, Google_Service_ServiceControl_AllocateQuotaRequest $postBody, $optParams = array())
  {
    $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('allocateQuota', array($params), "Google_Service_ServiceControl_AllocateQuotaResponse");
  }
public function allocateQuota($serviceName, Google_Service_ServiceControl_AllocateQuotaRequest $postBody, $optParams = array())
  {
    $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('allocateQuota', array($params), "Google_Service_ServiceControl_AllocateQuotaResponse");
  }
public function allocateQuota ( $ serviceName , Google_Service_ServiceControl_AllocateQuotaRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'serviceName' => $ serviceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'allocateQuota' , array ( $ params ) , "Google_Service_ServiceControl_AllocateQuotaResponse" ) ; }
Attempts to allocate quota for the specified consumer. It should be called
before the operation is executed.

This method requires the `servicemanagement.services.quota` permission on the
specified service. For more information, see [Cloud
IAM](https://cloud.google.com/iam).

**NOTE:** The client **must** fail-open on server errors `INTERNAL`,
`UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system
reliability, the server may inject these errors to prohibit any hard
dependency on the quota functionality. (services.allocateQuota)

@param string $serviceName Name of the service as specified in the service
configuration. For example, `"pubsub.googleapis.com"`.

See google.api.Service for the definition of a service name.
@param Google_Service_ServiceControl_AllocateQuotaRequest $postBody
@param array $optParams Optional parameters.
@return Google_Service_ServiceControl_AllocateQuotaResponse
Attempts to allocate quota for the specified consumer . It should be called before the operation is executed .