'Retrieve the deployment identified by ``id``.
:param int id: (required), id for deployments.
:returns: :class:`~github3.repos.deployment.Deployment`'

def deployment(self, id):

    json = None
    if (int(id) > 0):
        url = self._build_url(u'deployments', str(id), base_url=self._api)
        json = self._json(self._get(url), 200)
    return self._instance_or_null(Deployment, json)
