def api_environment_get(auth_user=None, api_core=None, request=None): u"""Return an array containing the environments (with status) serialized to JSON.""" (environments, default) = api_core.get_environments(get_status=True) return ok_200({u'environments': environments, u'default': default}, include_properties=False)
def api_environment_name_get_head(name=None, auth_user=None, api_core=None, request=None): u"""Return an environment containing his status serialized to JSON.""" return ok_200(api_core.get_environments(name), include_properties=False)
def api_environment_count(auth_user=None, api_core=None, request=None): u"""Return the number of environments.""" (environments, default) = api_core.get_environments() return ok_200(len(environments), False)