Skip to main content

manta_shared/shared/params/
hardware.rs

1//! Parameters for `GET /hardware-clusters` and `GET /hardware-nodes-list`.
2
3/// Typed parameters for fetching cluster hardware inventory.
4pub struct GetHardwareClusterParams {
5  /// Cluster (HSM group) name to inventory; `None` falls back to the
6  /// operator default.
7  pub hsm_group_name: Option<String>,
8  /// Operator default from `cli.toml`'s `parent_hsm_group`, used when
9  /// `hsm_group_name` is absent.
10  pub settings_hsm_group_name: Option<String>,
11}
12
13/// Typed parameters for fetching hardware inventory for a list of nodes.
14#[derive(Debug)]
15pub struct GetHardwareNodesListParams {
16  /// Comma-separated xnames.
17  pub xnames: String,
18}