public function check($serviceName, Google_Service_ServiceControl_CheckRequest $postBody, $optParams = array())
  {
    $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('check', array($params), "Google_Service_ServiceControl_CheckResponse");
  }
public function check($serviceName, Google_Service_ServiceControl_CheckRequest $postBody, $optParams = array())
  {
    $params = array('serviceName' => $serviceName, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('check', array($params), "Google_Service_ServiceControl_CheckResponse");
  }
public function check ( $ serviceName , Google_Service_ServiceControl_CheckRequest $ postBody , $ optParams = array ( ) ) { $ params = array ( 'serviceName' => $ serviceName , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'check' , array ( $ params ) , "Google_Service_ServiceControl_CheckResponse" ) ; }
Checks whether an operation on a service should be allowed to proceed based
on the configuration of the service and related policies. It must be called
before the operation is executed.

If feasible, the client should cache the check results and reuse them for 60
seconds. In case of any server errors, the client should rely on the cached
results for much longer time to avoid outage. WARNING: There is general 60s
delay for the configuration and policy propagation, therefore callers MUST
NOT depend on the `Check` method having the latest policy information.

NOTE: the CheckRequest has the size limit of 64KB.

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

@param string $serviceName The service name as specified in its service
configuration. For example, `"pubsub.googleapis.com"`.

See [google.api.Service](https://cloud.google.com/service-
management/reference/rpc/google.api#google.api.Service) for the definition of
a service name.
@param Google_Service_ServiceControl_CheckRequest $postBody
@param array $optParams Optional parameters.
@return Google_Service_ServiceControl_CheckResponse
Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies . It must be called before the operation is executed .