C# Class NuGet.TeamCity.AgentAuthorizer.TeamCityClient

Exibir arquivo Open project: NuGet/Entropy Class Usage Examples

Public Methods

Method Description
AddAgentToAgentPoolAsync ( int agentPoolId, int agentId ) : System.Threading.Tasks.Task
GetAgentPoolAgentsAsync ( int agentPoolId ) : Task>
GetAgentPoolsAsync ( ) : Task>
GetAgentsAsync ( ) : Task>
SetAgentAuthorizationAsync ( int agentId, bool authorized ) : System.Threading.Tasks.Task
SetAgentEnabledAsync ( int agentId, bool enabled ) : System.Threading.Tasks.Task
TeamCityClient ( Uri serverUrl ) : System

Private Methods

Method Description
DeserializeResponseAsAgents ( JToken json ) : IReadOnlyList
SendAsync ( HttpMethod method, string endpoint, bool acceptJson = true, HttpContent content = null ) : Task

Method Details

AddAgentToAgentPoolAsync() public method

public AddAgentToAgentPoolAsync ( int agentPoolId, int agentId ) : System.Threading.Tasks.Task
agentPoolId int
agentId int
return System.Threading.Tasks.Task

GetAgentPoolAgentsAsync() public method

public GetAgentPoolAgentsAsync ( int agentPoolId ) : Task>
agentPoolId int
return Task>

GetAgentPoolsAsync() public method

public GetAgentPoolsAsync ( ) : Task>
return Task>

GetAgentsAsync() public method

public GetAgentsAsync ( ) : Task>
return Task>

SetAgentAuthorizationAsync() public method

public SetAgentAuthorizationAsync ( int agentId, bool authorized ) : System.Threading.Tasks.Task
agentId int
authorized bool
return System.Threading.Tasks.Task

SetAgentEnabledAsync() public method

public SetAgentEnabledAsync ( int agentId, bool enabled ) : System.Threading.Tasks.Task
agentId int
enabled bool
return System.Threading.Tasks.Task

TeamCityClient() public method

public TeamCityClient ( Uri serverUrl ) : System
serverUrl System.Uri
return System