Skip to main content

UpdateService

Struct UpdateService 

Source
pub struct UpdateService {
Show 24 fields pub base: Resource, pub status: Option<Status>, pub service_enabled: Option<Option<Boolean>>, pub actions: Option<Actions>, pub http_push_uri: Option<String>, pub http_push_uri_targets: Option<Option<Vec<String>>>, pub http_push_uri_targets_busy: Option<Option<Boolean>>, pub http_push_uri_options: Option<HttpPushUriOptions>, pub http_push_uri_options_busy: Option<Option<Boolean>>, pub max_image_size_bytes: Option<Option<Int64>>, pub multipart_http_push_uri: Option<String>, pub verify_remote_server_certificate: Option<Option<Boolean>>, pub verify_remote_server_ssh_key: Option<Option<Boolean>>, pub supported_update_image_formats: Option<Option<Vec<SupportedUpdateImageFormatType>>>, pub local_image_store_available_capacity_bytes: Option<Option<Int64>>, pub local_image_store_total_capacity_bytes: Option<Option<Int64>>, pub firmware_inventory: Option<NavProperty<SoftwareInventoryCollection>>, pub software_inventory: Option<NavProperty<SoftwareInventoryCollection>>, pub remote_server_certificates: Option<ReferenceLeaf>, pub client_certificates: Option<ReferenceLeaf>, pub remote_server_ssh_keys: Option<ReferenceLeaf>, pub public_identity_ssh_key: Option<ReferenceLeaf>, pub update_service_capabilities: Option<ReferenceLeaf>, pub local_image_store: Option<NavProperty<SoftwareInventoryCollection>>,
}
Expand description

The UpdateService schema describes the update service and the properties for the service itself with links to collections of firmware and software inventory. The update service also provides methods for updating software and firmware of the resources in a Redfish service.

This resource shall represent an update service and the properties that affect the service itself for a Redfish implementation.

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.

§service_enabled: Option<Option<Boolean>>

An indication of whether this service is enabled.

This property shall indicate whether this service is enabled.

§actions: Option<Actions>

The available actions for this resource.

This property shall contain the available actions for this resource.

§http_push_uri: Option<String>

The URI used to perform an HTTP or HTTPS push update to the update service. The format of the message is vendor-specific.

This property shall contain a URI at which the update service supports an HTTP or HTTPS POST of a software image for the purpose of installing software contained within the image. Access to this URI shall require the same privilege as access to the update service. If the service requires the Content-Length header for POST requests to this URI, the service should return HTTP 411 Length Required status code if the client does not include this header in the POST request. The value of this property should not contain a URI of a Redfish resource. See the ‘Redfish-defined URIs and relative reference rules’ clause in the Redfish Specification.

§http_push_uri_targets: Option<Option<Vec<String>>>

An array of URIs that indicate where to apply the update image.

This property shall contain zero or more URIs that indicate where to apply the update image when using the URI specified by the HttpPushUri property to push a software image. These targets should correspond to software inventory instances or their related items. If this property is not present or contains no targets, the service shall apply the software image to all applicable targets, as determined by the service. If the target specifies a device resource, the software image file shall be applied to the specified device. If the target specifies a resource collection, the software image shall be applied to each applicable member of the specified collection. If the target resource specifies an Aggregate resource, the software image file shall be applied to each applicable element of the specified aggregate. If the target resource specifies a ComputerSystem resource, the software image file shall be applied to the applicable components within the specified computer system.

§http_push_uri_targets_busy: Option<Option<Boolean>>

An indication of whether any client has reserved the HttpPushUriTargets property.

This property shall indicate whether any client has reserved the HttpPushUriTargets property for firmware updates. A client should set this property to true when it uses HttpPushUriTargets for firmware updates. A client should set it to false when it no longer uses HttpPushUriTargets for updates. The property can provide multiple clients a way to negotiate ownership of HttpPushUriTargets and helps clients determine whether another client is using HttpPushUriTargets to make firmware updates. This property has no functional requirements for the service.

§http_push_uri_options: Option<HttpPushUriOptions>

The options for HttpPushUri-provided software updates.

This property shall contain options and requirements of the service for HttpPushUri-provided software updates.

§http_push_uri_options_busy: Option<Option<Boolean>>

An indication of whether a client has reserved the HttpPushUriOptions properties for software updates.

This property shall indicate whether a client uses the HttpPushUriOptions properties for software updates. When a client uses any HttpPushUriOptions properties for software updates, it should set this property to true. When a client no longer uses HttpPushUriOptions properties for software updates, it should set this property to false. This property can provide multiple clients a way to negotiate ownership of HttpPushUriOptions properties. Clients can use this property to determine whether another client uses HttpPushUriOptions properties for software updates. This property has no functional requirements for the service.

§max_image_size_bytes: Option<Option<Int64>>

The maximum size in bytes of the software update image that this service supports.

This property shall indicate the maximum size of the software update image that clients can send to this update service.

§multipart_http_push_uri: Option<String>

The URI used to perform a Redfish Specification-defined multipart HTTP or HTTPS push update to the update service.

This property shall contain a URI used to perform a Redfish Specification-defined multipart HTTP or HTTPS POST of a software image for the purpose of installing software contained within the image. The value of this property should not contain a URI of a Redfish resource. See the ‘Redfish-defined URIs and relative reference rules’ clause in the Redfish Specification.

§verify_remote_server_certificate: Option<Option<Boolean>>

An indication of whether the service will verify the certificate of the server referenced by the ImageURI parameter in SimpleUpdate prior to sending the transfer request.

This property shall indicate whether the service will verify the certificate of the server referenced by the ImageURI parameter in SimpleUpdate prior to sending the transfer request with the certificates found in the collection referenced by the RemoteServerCertificates property. If this property is not supported by the service, it shall be assumed to be false. This property should default to false in order to maintain compatibility with older clients. Regardless of the value of this property, services may perform additional verification based on other factors, such as the configuration of the SecurityPolicy resource.

§verify_remote_server_ssh_key: Option<Option<Boolean>>

An indication of whether the service will verify the SSH key of the server referenced by the ImageURI parameter in SimpleUpdate prior to sending the transfer request.

This property shall indicate whether the service will verify the SSH key of the server referenced by the ImageURI parameter in SimpleUpdate prior to sending the transfer request with the keys found in the collection referenced by the RemoteServerSSHKeys property. If this property is not supported by the service, it shall be assumed to be false. This property should default to false in order to maintain compatibility with older clients.

§supported_update_image_formats: Option<Option<Vec<SupportedUpdateImageFormatType>>>

The image format types supported by the service.

This property shall contain the image format types supported by the service.

§local_image_store_available_capacity_bytes: Option<Option<Int64>>

The number of bytes currently available in the local image store.

This property shall contain the number of bytes currently available in the local image store.

§local_image_store_total_capacity_bytes: Option<Option<Int64>>

The total number of bytes available to the local image store.

This property shall contain the total number of bytes available to the local image store.

§firmware_inventory: Option<NavProperty<SoftwareInventoryCollection>>

An inventory of firmware.

This property shall contain a link to a resource collection of type SoftwareInventoryCollection. The resource collection should contain the set of software components generally referred to as platform firmware or that does not execute within a host operating system. Software in this collection is generally updated using platform-specific methods or utilities.

§software_inventory: Option<NavProperty<SoftwareInventoryCollection>>

An inventory of software.

This property shall contain a link to a resource collection of type SoftwareInventoryCollection. The resource collection should contain the set of software components executed in the context of a host operating system. This can include device drivers, applications, or offload workloads. Software in this collection is generally updated using operating system-centric methods.

§remote_server_certificates: Option<ReferenceLeaf>§client_certificates: Option<ReferenceLeaf>§remote_server_ssh_keys: Option<ReferenceLeaf>§public_identity_ssh_key: Option<ReferenceLeaf>§update_service_capabilities: Option<ReferenceLeaf>§local_image_store: Option<NavProperty<SoftwareInventoryCollection>>

An inventory of locally stored images.

This property shall contain a link to a resource collection of type SoftwareInventoryCollection. The resource collection shall contain the set of images that are stored locally by the service. This may include operating system images, drivers, or other software components. These images may be referenced by other features of the service, such as virtual media.

Trait Implementations§

Source§

impl Debug for UpdateService

Source§

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

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

impl<'de> Deserialize<'de> for UpdateService

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 UpdateService

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 UpdateService

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<UpdateService> for UpdateService

Source§

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

Reference to the enity type object.
Source§

impl Updatable<UpdateServiceUpdate> for UpdateService

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 UpdateService

SAFETY: All generated data types are Send

Source§

impl Sync for UpdateService

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