    def get(self, name: str, cluster: str | None = None) -> Deployment:
        """
        Get a deployment.

        Args:
            name: The name of the deployment.
            cluster: The name of the cluster.

        Returns:
            The DeploymentInfo object.
        """
        res = self._client.v2.get_deployment(name, cluster)
        return self._generate_deployment_info_(res, res.urls)
Get a deployment.

Args:
name: The name of the deployment.
cluster: The name of the cluster.

Returns:
The DeploymentInfo object.
src/bentoml/_internal/cloud/deployment.py