Пример #1
0
def get_queues(project_id=AZURE_PROJECT_ID):
    from vsts.task_agent.v4_0.task_agent_client import TaskAgentClient
    from vsts.task_agent.v4_0.models import TaskAgentQueue

    aclient = TaskAgentClient(AZURE_TEAM_INSTANCE, credentials)
    queues: typing.List[TaskAgentQueue] = aclient.get_agent_queues(project_id)
    return queues
Пример #2
0
def get_queues(
        config: AzureConfig = default_config) -> typing.List[TaskAgentQueue]:
    aclient = TaskAgentClient(config.instance_base_url, config.credentials)
    return aclient.get_agent_queues(config.project_name)
Пример #3
0
def get_queues(config: AzureConfig = default_config) -> typing.List[TaskAgentQueue]:
    aclient = TaskAgentClient(config.azure_team_instance, config.credentials)
    return aclient.get_agent_queues(config.project_name)