Returns the permission ID for an email address. (permissions.getIdForEmail)

@param string $email The email address for which to return a permission ID
@param array $optParams Optional parameters.
@return Google_Service_Drive_PermissionId
343265
public function getIdForEmail($email, $optParams = array())
  {
    $params = array('email' => $email);
    $params = array_merge($params, $optParams);
    return $this->call('getIdForEmail', array($params), "Google_Service_Drive_PermissionId");
  }
753510
public function listDomains($customer, $optParams = array())
  {
    $params = array('customer' => $customer);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Directory_Domains2");
  }
1282580
public function getUserByEmail( $email )
    {
        if ( ! array_key_exists( $email, static::$userCache ) )
        {
            static::$userCache[$email] = $this->getUserMapper()
                                              ->findByEmail( $email );
        }

        return static::$userCache[$email];
    }
186568
protected function renderFromAddress(EmailInterface $email, array $parameters = array())
    {
        if (null === $email->getFromAddress()) {
            return $this->options['admin_email'];
        }

        return $this->renderTemplate('from_address', $parameters, $email->getChecksum());
    }
1175284
public function get($fileId, $permissionId, $optParams = array()) {
      $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new Permission($data);
      } else {
        return $data;
      }
    }
161524
public function ListTrustedApps($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('ListTrustedApps', array($params), "Google_Service_Directory_TrustedApps");
  }
796087
public function getModelForEmail($email)
    {
        $emailTemplates = $this->getEmailTemplates();

        foreach ($emailTemplates as $emailTemplate) {
            $emailRule = new Email($emailTemplate);

            if ($emailRule->check($email)) {
                return $this->bannedEmailsRepository->findByEmail($emailTemplate);
            }
        }

        return null;
    }
302275
public function listPrivileges($customer, $optParams = array())
  {
    $params = array('customer' => $customer);
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_Directory_Privileges");
  }
1238009
public function update($params, $optParams = [])
    {
        if (!$params instanceof AccessToken) {
            throw new InvalidParamException(AccessToken::class . ' is required!');
        }
        $class = get_class($params);

        return $this->sendRequest([], [
            'restAction' => 'update',
            'restId' => $params->id,
            'postParams' => $params->toArray(),
            'getParams' => $optParams,
        ], function ($response) use ($class) {
            return isset($response->data) ? new $class($response->data) : $response;
        });
    }
818117
public function hashClientId(Google_Service_Analytics_HashClientIdRequest $postBody, $optParams = array())
  {
    $params = array('postBody' => $postBody);
    $params = array_merge($params, $optParams);
    return $this->call('hashClientId', array($params), "Google_Service_Analytics_HashClientIdResponse");
  }
950491
public function listPermissions($fileId, $optParams = array()) {
      $params = array('fileId' => $fileId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new PermissionList($data);
      } else {
        return $data;
      }
    }
711517
public function listBucketAccessControls($bucket, $optParams = array()) {
      $params = array('bucket' => $bucket);
      $params = array_merge($params, $optParams);
      $data = $this->__call('list', array($params));
      if ($this->useObjects()) {
        return new Google_BucketAccessControls($data);
      } else {
        return $data;
      }
    }
434583
public function getGravatar($email = null)
    {
        if (isset($email)) {
            $this->setEmail((string)$email);
        }

        $url = self::BASE_URL;
        if ($this->secure) {
            $url = self::BASE_URL_SECURE;
        }

        $url .= $this->email;
        $url .= $this->extension;
        $url .= '?s=' . $this->size;
        $url .= '&d=' . $this->default;

        if ($this->forceDefault) {
            $url .= '&forcedefault=y';
        }

        $url .= '&rating=' . $this->rating;

        return $url;
    }
570804
public function view($params, $optParams = [])
    {
        if (!$params instanceof AccessToken) {
            throw new InvalidParamException(AccessToken::class . ' is required!');
        }
        $class = get_class($params);

        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => $params->id,
            'getParams' => $optParams,
        ], function ($response) use ($class) {
            return isset($response->data) ? new $class($response->data) : $response;
        });
    }
729423
public function delete($params, $optParams = [])
    {
        if (is_string($params)) {
            $params = ['publicId' => $params];
        }

        return $this->sendRequest(['cloudId', 'publicId'], [
            'restAction' => 'delete',
            'uri' => '/c/<cloudId>/o/<publicId>',
            'params' => $params,
            'getParams' => $optParams,
        ], function ($response) {
            return $response->success;
        });
    }
1200339
public function listThreatLists($optParams = array())
  {
    $params = array();
    $params = array_merge($params, $optParams);
    return $this->call('list', array($params), "Google_Service_Safebrowsing_ListThreatListsResponse");
  }
195220
public function delete($customer, $domainName, $optParams = array())
  {
    $params = array('customer' => $customer, 'domainName' => $domainName);
    $params = array_merge($params, $optParams);
    return $this->call('delete', array($params));
  }