pub struct SystemResourceService<'a, C> { /* private fields */ }Expand description
Access a specific ComputerSystem and its common sub-resources.
This helper is a convenience wrapper around the Systems collection.
Implementations§
Source§impl<'a> SystemResourceService<'a, Client>
impl<'a> SystemResourceService<'a, Client>
Sourcepub async fn get(&self) -> Result<ComputerSystem>
Available on crate feature _async only.
pub async fn get(&self) -> Result<ComputerSystem>
_async only.GET /redfish/v1/Systems/{id}
Sourcepub async fn patch(
&self,
request: &ComputerSystemUpdateRequest,
) -> Result<ActionResponse<Value>>
Available on crate feature _async only.
pub async fn patch( &self, request: &ComputerSystemUpdateRequest, ) -> Result<ActionResponse<Value>>
_async only.Patch a ComputerSystem.
Typical path: PATCH /redfish/v1/Systems/{id}
Sourcepub async fn get_bios(&self) -> Result<Bios>
Available on crate feature _async only.
pub async fn get_bios(&self) -> Result<Bios>
_async only.GET /redfish/v1/Systems/{id}/Bios
Sourcepub async fn get_bios_settings(&self) -> Result<BiosSettings>
Available on crate feature _async only.
pub async fn get_bios_settings(&self) -> Result<BiosSettings>
_async only.GET /redfish/v1/Systems/{id}/Bios/Settings
Sourcepub async fn patch_bios_settings(
&self,
request: &BiosSettingsUpdateRequest,
) -> Result<ActionResponse<Value>>
Available on crate feature _async only.
pub async fn patch_bios_settings( &self, request: &BiosSettingsUpdateRequest, ) -> Result<ActionResponse<Value>>
_async only.Patch BIOS settings.
Typical path: PATCH /redfish/v1/Systems/{id}/Bios/Settings
Sourcepub async fn list_ethernet_interfaces(&self) -> Result<Collection<OdataId>>
Available on crate feature _async only.
pub async fn list_ethernet_interfaces(&self) -> Result<Collection<OdataId>>
_async only.List system Ethernet interfaces.
GET /redfish/v1/Systems/{id}/EthernetInterfaces
Sourcepub async fn get_ethernet_interface(
&self,
eth_id: &str,
) -> Result<EthernetInterface>
Available on crate feature _async only.
pub async fn get_ethernet_interface( &self, eth_id: &str, ) -> Result<EthernetInterface>
_async only.GET /redfish/v1/Systems/{id}/EthernetInterfaces/{eth_id}
Sourcepub async fn patch_ethernet_interface(
&self,
eth_id: &str,
request: &EthernetInterfaceUpdateRequest,
) -> Result<ActionResponse<Value>>
Available on crate feature _async only.
pub async fn patch_ethernet_interface( &self, eth_id: &str, request: &EthernetInterfaceUpdateRequest, ) -> Result<ActionResponse<Value>>
_async only.Patch an Ethernet interface.
Sourcepub async fn list_storage(&self) -> Result<Collection<OdataId>>
Available on crate feature _async only.
pub async fn list_storage(&self) -> Result<Collection<OdataId>>
_async only.List system storages.
GET /redfish/v1/Systems/{id}/Storage
Sourcepub async fn get_storage(&self, storage_id: &str) -> Result<Storage>
Available on crate feature _async only.
pub async fn get_storage(&self, storage_id: &str) -> Result<Storage>
_async only.GET /redfish/v1/Systems/{id}/Storage/{storage_id}
Sourcepub async fn get_drive(&self, storage_id: &str, drive_id: &str) -> Result<Drive>
Available on crate feature _async only.
pub async fn get_drive(&self, storage_id: &str, drive_id: &str) -> Result<Drive>
_async only.GET /redfish/v1/Systems/{id}/Storage/{storage_id}/Drives/{drive_id}
Sourcepub async fn list_log_services(&self) -> Result<Collection<OdataId>>
Available on crate feature _async only.
pub async fn list_log_services(&self) -> Result<Collection<OdataId>>
_async only.List log services for this system.
GET /redfish/v1/Systems/{id}/LogServices
Sourcepub async fn get_log_service(&self, log_id: &str) -> Result<LogService>
Available on crate feature _async only.
pub async fn get_log_service(&self, log_id: &str) -> Result<LogService>
_async only.GET /redfish/v1/Systems/{id}/LogServices/{log_id}
Sourcepub async fn list_log_entries(
&self,
log_id: &str,
query: Option<&ODataQuery>,
) -> Result<Collection<LogEntry>>
Available on crate feature _async only.
pub async fn list_log_entries( &self, log_id: &str, query: Option<&ODataQuery>, ) -> Result<Collection<LogEntry>>
_async only.List log entries.
GET /redfish/v1/Systems/{id}/LogServices/{log_id}/Entries
Source§impl<'a> SystemResourceService<'a, BlockingClient>
impl<'a> SystemResourceService<'a, BlockingClient>
pub fn get(&self) -> Result<ComputerSystem>
_blocking only.pub fn patch( &self, request: &ComputerSystemUpdateRequest, ) -> Result<ActionResponse<Value>>
_blocking only.pub fn get_bios(&self) -> Result<Bios>
_blocking only.pub fn get_bios_settings(&self) -> Result<BiosSettings>
_blocking only.pub fn patch_bios_settings( &self, request: &BiosSettingsUpdateRequest, ) -> Result<ActionResponse<Value>>
_blocking only.pub fn list_ethernet_interfaces(&self) -> Result<Collection<OdataId>>
_blocking only.pub fn get_ethernet_interface(&self, eth_id: &str) -> Result<EthernetInterface>
_blocking only.pub fn patch_ethernet_interface( &self, eth_id: &str, request: &EthernetInterfaceUpdateRequest, ) -> Result<ActionResponse<Value>>
_blocking only.pub fn list_storage(&self) -> Result<Collection<OdataId>>
_blocking only.pub fn get_storage(&self, storage_id: &str) -> Result<Storage>
_blocking only.pub fn get_drive(&self, storage_id: &str, drive_id: &str) -> Result<Drive>
_blocking only.pub fn list_log_services(&self) -> Result<Collection<OdataId>>
_blocking only.pub fn get_log_service(&self, log_id: &str) -> Result<LogService>
_blocking only.pub fn list_log_entries( &self, log_id: &str, query: Option<&ODataQuery>, ) -> Result<Collection<LogEntry>>
_blocking only.pub fn get_log_entry(&self, log_id: &str, entry_id: &str) -> Result<LogEntry>
_blocking only.pub fn clear_log(&self, log_id: &str) -> Result<ActionResponse<Value>>
_blocking only.Trait Implementations§
Source§impl<'a, C: Clone> Clone for SystemResourceService<'a, C>
impl<'a, C: Clone> Clone for SystemResourceService<'a, C>
Source§fn clone(&self) -> SystemResourceService<'a, C>
fn clone(&self) -> SystemResourceService<'a, C>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more