############ AgentPools ############ Reference ======== + :class:`dohq_teamcity.custom.models.AgentPools` (and bases class) + Original swagger documentation by class :doc:`/swagger/models/AgentPools` + Some examples you can find in `tests directory `_ Examples ======== .. code-block:: python:: # Get enabled agents in the pool by name pool = "My Build Pool" _pool = teamcity.agent_pools.get("name:{}".format(pool)) agents = [agent.read() for agent in _pool.agents] agents = [agent.name for agent in agents if agent.enabled] print(agents)