#[non_exhaustive]pub struct ResourceStatus {
pub effective_instance_metadata: Option<ResourceStatusEffectiveInstanceMetadata>,
pub physical_host: Option<String>,
pub physical_host_topology: Option<ResourceStatusPhysicalHostTopology>,
pub reservation_consumption_info: Option<ResourceStatusReservationConsumptionInfo>,
pub scheduling: Option<ResourceStatusScheduling>,
pub upcoming_maintenance: Option<UpcomingMaintenance>,
/* private fields */
}instances only.Expand description
Contains output only fields. Use this sub-message for actual values set on Instance attributes as compared to the value requested by the user (intent) in their instance CRUD calls.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.effective_instance_metadata: Option<ResourceStatusEffectiveInstanceMetadata>[Output Only] Effective metadata is a field that consolidates project, zonal instance settings, and instance-level predefined metadata keys to provide the overridden value for those metadata keys at the instance level.
physical_host: Option<String>[Output Only] The precise location of your instance within the zone’s data center, including the block, sub-block, and host. The field is formatted as follows: blockId/subBlockId/hostId.
physical_host_topology: Option<ResourceStatusPhysicalHostTopology>[Output Only] A series of fields containing the global name of the Compute Engine cluster, as well as the ID of the block, sub-block, and host on which the running instance is located.
reservation_consumption_info: Option<ResourceStatusReservationConsumptionInfo>[Output Only] Reservation information that the instance is consuming from.
scheduling: Option<ResourceStatusScheduling>§upcoming_maintenance: Option<UpcomingMaintenance>Implementations§
Source§impl ResourceStatus
impl ResourceStatus
pub fn new() -> Self
Sourcepub fn set_effective_instance_metadata<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusEffectiveInstanceMetadata>,
pub fn set_effective_instance_metadata<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusEffectiveInstanceMetadata>,
Sets the value of effective_instance_metadata.
Sourcepub fn set_or_clear_effective_instance_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusEffectiveInstanceMetadata>,
pub fn set_or_clear_effective_instance_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusEffectiveInstanceMetadata>,
Sets or clears the value of effective_instance_metadata.
Sourcepub fn set_physical_host<T>(self, v: T) -> Self
pub fn set_physical_host<T>(self, v: T) -> Self
Sets the value of physical_host.
Sourcepub fn set_or_clear_physical_host<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_physical_host<T>(self, v: Option<T>) -> Self
Sets or clears the value of physical_host.
Sourcepub fn set_physical_host_topology<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusPhysicalHostTopology>,
pub fn set_physical_host_topology<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusPhysicalHostTopology>,
Sets the value of physical_host_topology.
Sourcepub fn set_or_clear_physical_host_topology<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusPhysicalHostTopology>,
pub fn set_or_clear_physical_host_topology<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusPhysicalHostTopology>,
Sets or clears the value of physical_host_topology.
Sourcepub fn set_reservation_consumption_info<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusReservationConsumptionInfo>,
pub fn set_reservation_consumption_info<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusReservationConsumptionInfo>,
Sets the value of reservation_consumption_info.
Sourcepub fn set_or_clear_reservation_consumption_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusReservationConsumptionInfo>,
pub fn set_or_clear_reservation_consumption_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusReservationConsumptionInfo>,
Sets or clears the value of reservation_consumption_info.
Sourcepub fn set_scheduling<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusScheduling>,
pub fn set_scheduling<T>(self, v: T) -> Selfwhere
T: Into<ResourceStatusScheduling>,
Sets the value of scheduling.
Sourcepub fn set_or_clear_scheduling<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusScheduling>,
pub fn set_or_clear_scheduling<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceStatusScheduling>,
Sets or clears the value of scheduling.
Sourcepub fn set_upcoming_maintenance<T>(self, v: T) -> Selfwhere
T: Into<UpcomingMaintenance>,
pub fn set_upcoming_maintenance<T>(self, v: T) -> Selfwhere
T: Into<UpcomingMaintenance>,
Sets the value of upcoming_maintenance.
Sourcepub fn set_or_clear_upcoming_maintenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpcomingMaintenance>,
pub fn set_or_clear_upcoming_maintenance<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpcomingMaintenance>,
Sets or clears the value of upcoming_maintenance.
Trait Implementations§
Source§impl Clone for ResourceStatus
impl Clone for ResourceStatus
Source§fn clone(&self) -> ResourceStatus
fn clone(&self) -> ResourceStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more