Struct azure_devops_rust_api::distributed_task::pools::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn get_agent_pools(&self, organization: impl Into<String>) -> RequestBuilder
pub fn get_agent_pools(&self, organization: impl Into<String>) -> RequestBuilder
Get a list of agent pools.
Arguments:
organization
: The name of the Azure DevOps organization.
sourcepub fn get_agent_pools_by_ids(
&self,
organization: impl Into<String>,
pool_ids: impl Into<String>
) -> RequestBuilder
pub fn get_agent_pools_by_ids( &self, organization: impl Into<String>, pool_ids: impl Into<String> ) -> RequestBuilder
Get a list of agent pools.
Arguments:
organization
: The name of the Azure DevOps organization.pool_ids
: pool Ids to fetch
sourcepub fn add(
&self,
organization: impl Into<String>,
body: impl Into<TaskAgentPool>
) -> RequestBuilder
pub fn add( &self, organization: impl Into<String>, body: impl Into<TaskAgentPool> ) -> RequestBuilder
Create an agent pool.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Details about the new agent pool
sourcepub fn get(
&self,
organization: impl Into<String>,
pool_id: i32
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, pool_id: i32 ) -> RequestBuilder
Get information about an agent pool.
Arguments:
organization
: The name of the Azure DevOps organization.pool_id
: An agent pool ID
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<TaskAgentPool>,
pool_id: i32
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<TaskAgentPool>, pool_id: i32 ) -> RequestBuilder
Update properties on an agent pool
Arguments:
organization
: The name of the Azure DevOps organization.body
: Updated agent pool detailspool_id
: The agent pool to update
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more