Skip to main content

SystemResourceService

Struct SystemResourceService 

Source
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>

Source

pub async fn get(&self) -> Result<ComputerSystem>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}

Source

pub async fn patch( &self, request: &ComputerSystemUpdateRequest, ) -> Result<ActionResponse<Value>>

Available on crate feature _async only.

Patch a ComputerSystem.

Typical path: PATCH /redfish/v1/Systems/{id}

Source

pub async fn get_bios(&self) -> Result<Bios>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/Bios

Source

pub async fn get_bios_settings(&self) -> Result<BiosSettings>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/Bios/Settings

Source

pub async fn patch_bios_settings( &self, request: &BiosSettingsUpdateRequest, ) -> Result<ActionResponse<Value>>

Available on crate feature _async only.

Patch BIOS settings.

Typical path: PATCH /redfish/v1/Systems/{id}/Bios/Settings

Source

pub async fn list_ethernet_interfaces(&self) -> Result<Collection<OdataId>>

Available on crate feature _async only.

List system Ethernet interfaces.

GET /redfish/v1/Systems/{id}/EthernetInterfaces

Source

pub async fn get_ethernet_interface( &self, eth_id: &str, ) -> Result<EthernetInterface>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/EthernetInterfaces/{eth_id}

Source

pub async fn patch_ethernet_interface( &self, eth_id: &str, request: &EthernetInterfaceUpdateRequest, ) -> Result<ActionResponse<Value>>

Available on crate feature _async only.

Patch an Ethernet interface.

Source

pub async fn list_storage(&self) -> Result<Collection<OdataId>>

Available on crate feature _async only.

List system storages.

GET /redfish/v1/Systems/{id}/Storage

Source

pub async fn get_storage(&self, storage_id: &str) -> Result<Storage>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/Storage/{storage_id}

Source

pub async fn get_drive(&self, storage_id: &str, drive_id: &str) -> Result<Drive>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/Storage/{storage_id}/Drives/{drive_id}

Source

pub async fn list_log_services(&self) -> Result<Collection<OdataId>>

Available on crate feature _async only.

List log services for this system.

GET /redfish/v1/Systems/{id}/LogServices

Source

pub async fn get_log_service(&self, log_id: &str) -> Result<LogService>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/LogServices/{log_id}

Source

pub async fn list_log_entries( &self, log_id: &str, query: Option<&ODataQuery>, ) -> Result<Collection<LogEntry>>

Available on crate feature _async only.

List log entries.

GET /redfish/v1/Systems/{id}/LogServices/{log_id}/Entries

Source

pub async fn get_log_entry( &self, log_id: &str, entry_id: &str, ) -> Result<LogEntry>

Available on crate feature _async only.

GET /redfish/v1/Systems/{id}/LogServices/{log_id}/Entries/{entry_id}

Source

pub async fn clear_log(&self, log_id: &str) -> Result<ActionResponse<Value>>

Available on crate feature _async only.

Clear a log.

POST /redfish/v1/Systems/{id}/LogServices/{log_id}/Actions/LogService.ClearLog

Source§

impl<'a> SystemResourceService<'a, BlockingClient>

Source

pub fn get(&self) -> Result<ComputerSystem>

Available on crate feature _blocking only.
Source

pub fn patch( &self, request: &ComputerSystemUpdateRequest, ) -> Result<ActionResponse<Value>>

Available on crate feature _blocking only.
Source

pub fn get_bios(&self) -> Result<Bios>

Available on crate feature _blocking only.
Source

pub fn get_bios_settings(&self) -> Result<BiosSettings>

Available on crate feature _blocking only.
Source

pub fn patch_bios_settings( &self, request: &BiosSettingsUpdateRequest, ) -> Result<ActionResponse<Value>>

Available on crate feature _blocking only.
Source

pub fn list_ethernet_interfaces(&self) -> Result<Collection<OdataId>>

Available on crate feature _blocking only.
Source

pub fn get_ethernet_interface(&self, eth_id: &str) -> Result<EthernetInterface>

Available on crate feature _blocking only.
Source

pub fn patch_ethernet_interface( &self, eth_id: &str, request: &EthernetInterfaceUpdateRequest, ) -> Result<ActionResponse<Value>>

Available on crate feature _blocking only.
Source

pub fn list_storage(&self) -> Result<Collection<OdataId>>

Available on crate feature _blocking only.
Source

pub fn get_storage(&self, storage_id: &str) -> Result<Storage>

Available on crate feature _blocking only.
Source

pub fn get_drive(&self, storage_id: &str, drive_id: &str) -> Result<Drive>

Available on crate feature _blocking only.
Source

pub fn list_log_services(&self) -> Result<Collection<OdataId>>

Available on crate feature _blocking only.
Source

pub fn get_log_service(&self, log_id: &str) -> Result<LogService>

Available on crate feature _blocking only.
Source

pub fn list_log_entries( &self, log_id: &str, query: Option<&ODataQuery>, ) -> Result<Collection<LogEntry>>

Available on crate feature _blocking only.
Source

pub fn get_log_entry(&self, log_id: &str, entry_id: &str) -> Result<LogEntry>

Available on crate feature _blocking only.
Source

pub fn clear_log(&self, log_id: &str) -> Result<ActionResponse<Value>>

Available on crate feature _blocking only.

Trait Implementations§

Source§

impl<'a, C: Clone> Clone for SystemResourceService<'a, C>

Source§

fn clone(&self) -> SystemResourceService<'a, C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, C: Debug> Debug for SystemResourceService<'a, C>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, C> Freeze for SystemResourceService<'a, C>

§

impl<'a, C> RefUnwindSafe for SystemResourceService<'a, C>
where C: RefUnwindSafe,

§

impl<'a, C> Send for SystemResourceService<'a, C>
where C: Sync,

§

impl<'a, C> Sync for SystemResourceService<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for SystemResourceService<'a, C>

§

impl<'a, C> UnsafeUnpin for SystemResourceService<'a, C>

§

impl<'a, C> UnwindSafe for SystemResourceService<'a, C>
where C: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more