Skip to main content

SoftwareInventory

Struct SoftwareInventory 

Source
pub struct SoftwareInventory {
Show 23 fields pub base: Resource, pub status: Option<Status>, pub version: Option<Option<String>>, pub updateable: Option<Option<Boolean>>, pub actions: Option<Actions>, pub software_id: Option<String>, pub lowest_supported_version: Option<Option<String>>, pub uefi_device_paths: Option<Option<Vec<String>>>, pub manufacturer: Option<Option<String>>, pub release_date: Option<Option<DateTimeOffset>>, pub write_protected: Option<Option<Boolean>>, pub measurement: Option<MeasurementBlock>, pub additional_versions: Option<AdditionalVersions>, pub version_scheme: Option<Option<VersionScheme>>, pub release_type: Option<Option<ReleaseType>>, pub associated_physical_context: Option<PhysicalContext>, pub active: Option<Option<Boolean>>, pub staged: Option<Option<Boolean>>, pub reset_required_on_update: Option<Option<Boolean>>, pub links: Option<Links>, pub image_data_uri: Option<Option<String>>, pub size_bytes: Option<Option<Int64>>, pub related_item: Option<Vec<ReferenceLeaf>>,
}
Expand description

The SoftwareInventory schema contains an inventory of software components. This can include software components such as BIOS, BMC firmware, firmware for other devices, system drivers, or provider software.

This resource contains a single software component that this Redfish service manages.

Fields§

§base: Resource

Base type

§status: Option<Status>

The status and health of the resource and its subordinate or dependent resources.

This property shall contain any status or health properties of the resource.

§version: Option<Option<String>>

The version of this software.

This property shall contain the version of this software.

§updateable: Option<Option<Boolean>>

An indication of whether the update service can update this software.

This property shall indicate whether the update service can update this software. If true, the service can update this software. If false, the service cannot update this software and the software is for reporting purposes only.

§actions: Option<Actions>

The available actions for this resource.

This property shall contain the available actions for this resource.

§software_id: Option<String>

The implementation-specific label that identifies this software.

This property shall represent an implementation-specific label that identifies this software. This string correlates with a component repository or database.

§lowest_supported_version: Option<Option<String>>

The lowest supported version of this software.

This property shall represent the lowest supported version of this software. This string is formatted using the same format used for the Version property.

§uefi_device_paths: Option<Option<Vec<String>>>

The list of UEFI device paths of the components associated with this software inventory item.

This property shall contain a list UEFI device paths of the components associated with this software inventory item. The UEFI device paths shall be formatted as defined by the UEFI Specification.

§manufacturer: Option<Option<String>>

The manufacturer or producer of this software.

This property shall represent the name of the manufacturer or producer of this software.

§release_date: Option<Option<DateTimeOffset>>

The release date of this software.

This property shall contain the date of release or production for this software. If the time of day is unknown, the time of day portion of the property shall contain 00:00:00Z.

§write_protected: Option<Option<Boolean>>

Indicates if the software is write-protected.

This property shall indicate whether the software image can be overwritten, where a value true shall indicate that the software cannot be altered or overwritten.

§measurement: Option<MeasurementBlock>

A DSP0274-defined measurement block.

This property shall contain a DSP0274-defined measurement block.

§additional_versions: Option<AdditionalVersions>

The additional versions of this software.

This property shall contain the additional versions of this software.

§version_scheme: Option<Option<VersionScheme>>

The format of the version.

This property shall describe the scheme used to format the value of the Version property.

§release_type: Option<Option<ReleaseType>>

The type of release.

This property shall describe the type of release for the software.

§associated_physical_context: Option<PhysicalContext>

The area or device to which the software applies. Used to distinguish when different parts of a device have different software components.

This property shall contain a description of the physical context for the software inventory data.

§active: Option<Option<Boolean>>

This image is active on one or more devices.

This property shall indicate that the software image is currently in use on one or more devices.

§staged: Option<Option<Boolean>>

This image is ready to be activated to one or more devices.

This property shall indicate that the software image is ready to be activated to one or more devices.

§reset_required_on_update: Option<Option<Boolean>>

An indication of whether a reset is required to apply an update to this software.

This property shall indicate whether a reset is required to apply an update to this software. If true, a reset is required and clients should expect a disruption in communication to targets utilizing this software while applying an update. If false, a reset is not required and communication can be maintained to targets utilizing this software throughout an update.

§links: Option<Links>

The links to other resources that are related to this resource.

This property shall contain links to resources that are related to but are not contained by, or subordinate to, this resource.

§image_data_uri: Option<Option<String>>

The URI at which to access the software inventory image.

This property shall contain the URI at which to access the image data for this software inventory, using the Redfish protocol and authentication methods. This image should be the original vendor-provided image suitable for update operations.

§size_bytes: Option<Option<Int64>>

The size of the software image in bytes.

This property shall contain the size of the software image in bytes.

§related_item: Option<Vec<ReferenceLeaf>>

Trait Implementations§

Source§

impl Debug for SoftwareInventory

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Deletable for SoftwareInventory

Source§

fn delete<B>( &self, bmc: &B, ) -> impl Future<Output = Result<ModificationResponse<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Delete current entity.
Source§

impl<'de> Deserialize<'de> for SoftwareInventory

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl EntityTypeRef for SoftwareInventory

Source§

fn odata_id(&self) -> &ODataId

Value of @odata.id field of the Entity.
Source§

fn etag(&self) -> Option<&ODataETag>

Value of @odata.etag field of the Entity.
Source§

fn refresh<B>( &self, bmc: &B, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc, Self: for<'de> Deserialize<'de> + 'static,

Refresh the entity by fetching it again from the BMC.
Source§

impl Expandable for SoftwareInventory

Source§

fn expand<B>( &self, bmc: &B, query: ExpandQuery, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Expand the entity according to the provided query.
Source§

impl RedfishSettings<SoftwareInventory> for SoftwareInventory

Source§

fn settings_object(&self) -> Option<NavProperty<Self>>

Reference to the enity type object.
Source§

impl Updatable<SoftwareInventoryUpdate> for SoftwareInventory

Source§

fn update<B>( &self, bmc: &B, update: &V, ) -> impl Future<Output = Result<ModificationResponse<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Update an entity using update as payload.
Source§

impl Send for SoftwareInventory

SAFETY: All generated data types are Send

Source§

impl Sync for SoftwareInventory

SAFETY: All generated data types are Sync

Auto Trait Implementations§

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,