#[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. [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. [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. [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. [Output Only] Reservation information that the instance is consuming from.
scheduling: Option<ResourceStatusScheduling>§upcoming_maintenance: Option<UpcomingMaintenance>Implementations§
Source§impl ResourceStatus
impl ResourceStatus
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.
§Example
use google_cloud_compute_v1::model::ResourceStatusEffectiveInstanceMetadata;
let x = ResourceStatus::new().set_effective_instance_metadata(ResourceStatusEffectiveInstanceMetadata::default()/* use setters */);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusEffectiveInstanceMetadata;
let x = ResourceStatus::new().set_or_clear_effective_instance_metadata(Some(ResourceStatusEffectiveInstanceMetadata::default()/* use setters */));
let x = ResourceStatus::new().set_or_clear_effective_instance_metadata(None::<ResourceStatusEffectiveInstanceMetadata>);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.
§Example
let x = ResourceStatus::new().set_physical_host("example");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.
§Example
let x = ResourceStatus::new().set_or_clear_physical_host(Some("example"));
let x = ResourceStatus::new().set_or_clear_physical_host(None::<String>);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusPhysicalHostTopology;
let x = ResourceStatus::new().set_physical_host_topology(ResourceStatusPhysicalHostTopology::default()/* use setters */);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusPhysicalHostTopology;
let x = ResourceStatus::new().set_or_clear_physical_host_topology(Some(ResourceStatusPhysicalHostTopology::default()/* use setters */));
let x = ResourceStatus::new().set_or_clear_physical_host_topology(None::<ResourceStatusPhysicalHostTopology>);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusReservationConsumptionInfo;
let x = ResourceStatus::new().set_reservation_consumption_info(ResourceStatusReservationConsumptionInfo::default()/* use setters */);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusReservationConsumptionInfo;
let x = ResourceStatus::new().set_or_clear_reservation_consumption_info(Some(ResourceStatusReservationConsumptionInfo::default()/* use setters */));
let x = ResourceStatus::new().set_or_clear_reservation_consumption_info(None::<ResourceStatusReservationConsumptionInfo>);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusScheduling;
let x = ResourceStatus::new().set_scheduling(ResourceStatusScheduling::default()/* use setters */);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.
§Example
use google_cloud_compute_v1::model::ResourceStatusScheduling;
let x = ResourceStatus::new().set_or_clear_scheduling(Some(ResourceStatusScheduling::default()/* use setters */));
let x = ResourceStatus::new().set_or_clear_scheduling(None::<ResourceStatusScheduling>);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.
§Example
use google_cloud_compute_v1::model::UpcomingMaintenance;
let x = ResourceStatus::new().set_upcoming_maintenance(UpcomingMaintenance::default()/* use setters */);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.
§Example
use google_cloud_compute_v1::model::UpcomingMaintenance;
let x = ResourceStatus::new().set_or_clear_upcoming_maintenance(Some(UpcomingMaintenance::default()/* use setters */));
let x = ResourceStatus::new().set_or_clear_upcoming_maintenance(None::<UpcomingMaintenance>);Trait Implementations§
Source§impl Clone for ResourceStatus
impl Clone for ResourceStatus
Source§fn clone(&self) -> ResourceStatus
fn clone(&self) -> ResourceStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceStatus
impl Debug for ResourceStatus
Source§impl Default for ResourceStatus
impl Default for ResourceStatus
Source§fn default() -> ResourceStatus
fn default() -> ResourceStatus
Source§impl Message for ResourceStatus
impl Message for ResourceStatus
Source§impl PartialEq for ResourceStatus
impl PartialEq for ResourceStatus
impl StructuralPartialEq for ResourceStatus
Auto Trait Implementations§
impl Freeze for ResourceStatus
impl RefUnwindSafe for ResourceStatus
impl Send for ResourceStatus
impl Sync for ResourceStatus
impl Unpin for ResourceStatus
impl UnsafeUnpin for ResourceStatus
impl UnwindSafe for ResourceStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request