public function approve($name, Google_Service_AccessApproval_ApproveApprovalRequestMessage $postBody, $optParams = array())
  {
    $params = array('name' => $name, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('approve', array($params), "Google_Service_AccessApproval_ApprovalRequest");
  }
public function approve($name, Google_Service_AccessApproval_ApproveApprovalRequestMessage $postBody, $optParams = array())
  {
    $params = array('name' => $name, 'postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('approve', array($params), "Google_Service_AccessApproval_ApprovalRequest");
  }
public function approve ( $ name , Google_Service_AccessApproval_ApproveApprovalRequestMessage $ postBody , $ optParams = array ( ) ) { $ params = array ( 'name' => $ name , 'postBody' => $ postBody ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'approve' , array ( $ params ) , "Google_Service_AccessApproval_ApprovalRequest" ) ; }
Approves a request and returns the updated ApprovalRequest.

Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION
if the request exists but is not in a pending state.
(approvalRequests.approve)

@param string $name Name of the approval request to approve.
@param Google_Service_AccessApproval_ApproveApprovalRequestMessage $postBody
@param array $optParams Optional parameters.
@return Google_Service_AccessApproval_ApprovalRequest
Approves a request and returns the updated ApprovalRequest .