pub struct ComputersService { /* private fields */ }Expand description
Jenkins computers/nodes (core) APIs.
Implementations§
Source§impl ComputersService
impl ComputersService
Sourcepub async fn create_from_xml(
&self,
name: impl Into<ComputerName>,
xml: impl Into<Vec<u8>>,
) -> Result<(), Error>
pub async fn create_from_xml( &self, name: impl Into<ComputerName>, xml: impl Into<Vec<u8>>, ) -> Result<(), Error>
POST /computer/doCreateItem?name=<name> with XML body.
Sourcepub async fn copy(
&self,
from: impl Into<ComputerName>,
to: impl Into<ComputerName>,
) -> Result<(), Error>
pub async fn copy( &self, from: impl Into<ComputerName>, to: impl Into<ComputerName>, ) -> Result<(), Error>
POST /computer/doCreateItem?name=<to>&mode=copy&from=<from>
Sourcepub async fn executors_info(&self) -> Result<ExecutorsInfo, Error>
pub async fn executors_info(&self) -> Result<ExecutorsInfo, Error>
GET /computer/api/json (typed subset).
Sourcepub async fn computer(
&self,
name: impl Into<ComputerName>,
tree: Option<&str>,
) -> Result<Value, Error>
pub async fn computer( &self, name: impl Into<ComputerName>, tree: Option<&str>, ) -> Result<Value, Error>
GET /computer/<name>/api/json
Sourcepub async fn toggle_offline(
&self,
name: impl Into<ComputerName>,
offline_message: Option<&str>,
) -> Result<(), Error>
pub async fn toggle_offline( &self, name: impl Into<ComputerName>, offline_message: Option<&str>, ) -> Result<(), Error>
POST /computer/<name>/toggleOffline
Sourcepub async fn delete(&self, name: impl Into<ComputerName>) -> Result<(), Error>
pub async fn delete(&self, name: impl Into<ComputerName>) -> Result<(), Error>
POST /computer/<name>/doDelete
Sourcepub async fn get_config_xml(
&self,
name: impl Into<ComputerName>,
) -> Result<Vec<u8>, Error>
pub async fn get_config_xml( &self, name: impl Into<ComputerName>, ) -> Result<Vec<u8>, Error>
GET /computer/<name>/config.xml
Sourcepub async fn update_config_xml(
&self,
name: impl Into<ComputerName>,
xml: impl Into<Vec<u8>>,
) -> Result<(), Error>
pub async fn update_config_xml( &self, name: impl Into<ComputerName>, xml: impl Into<Vec<u8>>, ) -> Result<(), Error>
POST /computer/<name>/config.xml with XML body.
Sourcepub async fn connect(&self, name: impl Into<ComputerName>) -> Result<(), Error>
pub async fn connect(&self, name: impl Into<ComputerName>) -> Result<(), Error>
POST /computer/<name>/connect
Sourcepub async fn disconnect(
&self,
name: impl Into<ComputerName>,
) -> Result<(), Error>
pub async fn disconnect( &self, name: impl Into<ComputerName>, ) -> Result<(), Error>
POST /computer/<name>/disconnect
Sourcepub async fn launch_slave_agent(
&self,
name: impl Into<ComputerName>,
) -> Result<(), Error>
pub async fn launch_slave_agent( &self, name: impl Into<ComputerName>, ) -> Result<(), Error>
POST /computer/<name>/launchSlaveAgent
Trait Implementations§
Source§impl Clone for ComputersService
impl Clone for ComputersService
Source§fn clone(&self) -> ComputersService
fn clone(&self) -> ComputersService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComputersService
impl !RefUnwindSafe for ComputersService
impl Send for ComputersService
impl Sync for ComputersService
impl Unpin for ComputersService
impl !UnwindSafe for ComputersService
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