def as_deployment(self):
        return self._deployment_state
Ensures a request has permission to access the given project.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/_clusterstate.py/ClusterStateService.as_deployment--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/context.py/authorize_project_context