#[non_exhaustive]pub struct FutureReservationStatus {
pub amendment_status: Option<AmendmentStatus>,
pub auto_created_reservations: Vec<String>,
pub existing_matching_usage_info: Option<FutureReservationStatusExistingMatchingUsageInfo>,
pub fulfilled_count: Option<i64>,
pub last_known_good_state: Option<FutureReservationStatusLastKnownGoodState>,
pub lock_time: Option<String>,
pub procurement_status: Option<ProcurementStatus>,
pub specific_sku_properties: Option<FutureReservationStatusSpecificSKUProperties>,
/* private fields */
}future-reservations only.Expand description
[Output only] Represents status related to the future reservation.
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.amendment_status: Option<AmendmentStatus>Output only. [Output Only] The current status of the requested amendment.
auto_created_reservations: Vec<String>Output only. Fully qualified urls of the automatically created reservations at start_time.
existing_matching_usage_info: Option<FutureReservationStatusExistingMatchingUsageInfo>Output only. [Output Only] Represents the existing matching usage for the future reservation.
fulfilled_count: Option<i64>Output only. This count indicates the fulfilled capacity so far. This is set during “PROVISIONING” state. This count also includes capacity delivered as part of existing matching reservations.
last_known_good_state: Option<FutureReservationStatusLastKnownGoodState>Output only. [Output Only] This field represents the future reservation before an amendment was requested. If the amendment is declined, the Future Reservation will be reverted to the last known good state. The last known good state is not set when updating a future reservation whose Procurement Status is DRAFTING.
lock_time: Option<String>Output only. Time when Future Reservation would become LOCKED, after which no modifications to Future Reservation will be allowed. Applicable only after the Future Reservation is in the APPROVED state. The lock_time is an RFC3339 string. The procurement_status will transition to PROCURING state at this time.
procurement_status: Option<ProcurementStatus>Output only. Current state of this Future Reservation
specific_sku_properties: Option<FutureReservationStatusSpecificSKUProperties>Implementations§
Source§impl FutureReservationStatus
impl FutureReservationStatus
pub fn new() -> Self
Sourcepub fn set_amendment_status<T>(self, v: T) -> Selfwhere
T: Into<AmendmentStatus>,
pub fn set_amendment_status<T>(self, v: T) -> Selfwhere
T: Into<AmendmentStatus>,
Sets the value of amendment_status.
§Example
use google_cloud_compute_v1::model::future_reservation_status::AmendmentStatus;
let x0 = FutureReservationStatus::new().set_amendment_status(AmendmentStatus::AmendmentDeclined);
let x1 = FutureReservationStatus::new().set_amendment_status(AmendmentStatus::AmendmentInReview);
let x2 = FutureReservationStatus::new().set_amendment_status(AmendmentStatus::Unspecified);Sourcepub fn set_or_clear_amendment_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<AmendmentStatus>,
pub fn set_or_clear_amendment_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<AmendmentStatus>,
Sets or clears the value of amendment_status.
§Example
use google_cloud_compute_v1::model::future_reservation_status::AmendmentStatus;
let x0 = FutureReservationStatus::new().set_or_clear_amendment_status(Some(AmendmentStatus::AmendmentDeclined));
let x1 = FutureReservationStatus::new().set_or_clear_amendment_status(Some(AmendmentStatus::AmendmentInReview));
let x2 = FutureReservationStatus::new().set_or_clear_amendment_status(Some(AmendmentStatus::Unspecified));
let x_none = FutureReservationStatus::new().set_or_clear_amendment_status(None::<AmendmentStatus>);Sourcepub fn set_auto_created_reservations<T, V>(self, v: T) -> Self
pub fn set_auto_created_reservations<T, V>(self, v: T) -> Self
Sets the value of auto_created_reservations.
§Example
let x = FutureReservationStatus::new().set_auto_created_reservations(["a", "b", "c"]);Sourcepub fn set_existing_matching_usage_info<T>(self, v: T) -> Self
pub fn set_existing_matching_usage_info<T>(self, v: T) -> Self
Sets the value of existing_matching_usage_info.
§Example
use google_cloud_compute_v1::model::FutureReservationStatusExistingMatchingUsageInfo;
let x = FutureReservationStatus::new().set_existing_matching_usage_info(FutureReservationStatusExistingMatchingUsageInfo::default()/* use setters */);Sourcepub fn set_or_clear_existing_matching_usage_info<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_existing_matching_usage_info<T>(self, v: Option<T>) -> Self
Sets or clears the value of existing_matching_usage_info.
§Example
use google_cloud_compute_v1::model::FutureReservationStatusExistingMatchingUsageInfo;
let x = FutureReservationStatus::new().set_or_clear_existing_matching_usage_info(Some(FutureReservationStatusExistingMatchingUsageInfo::default()/* use setters */));
let x = FutureReservationStatus::new().set_or_clear_existing_matching_usage_info(None::<FutureReservationStatusExistingMatchingUsageInfo>);Sourcepub fn set_fulfilled_count<T>(self, v: T) -> Self
pub fn set_fulfilled_count<T>(self, v: T) -> Self
Sets the value of fulfilled_count.
§Example
let x = FutureReservationStatus::new().set_fulfilled_count(42);Sourcepub fn set_or_clear_fulfilled_count<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_fulfilled_count<T>(self, v: Option<T>) -> Self
Sets or clears the value of fulfilled_count.
§Example
let x = FutureReservationStatus::new().set_or_clear_fulfilled_count(Some(42));
let x = FutureReservationStatus::new().set_or_clear_fulfilled_count(None::<i32>);Sourcepub fn set_last_known_good_state<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationStatusLastKnownGoodState>,
pub fn set_last_known_good_state<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationStatusLastKnownGoodState>,
Sets the value of last_known_good_state.
§Example
use google_cloud_compute_v1::model::FutureReservationStatusLastKnownGoodState;
let x = FutureReservationStatus::new().set_last_known_good_state(FutureReservationStatusLastKnownGoodState::default()/* use setters */);Sourcepub fn set_or_clear_last_known_good_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationStatusLastKnownGoodState>,
pub fn set_or_clear_last_known_good_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationStatusLastKnownGoodState>,
Sets or clears the value of last_known_good_state.
§Example
use google_cloud_compute_v1::model::FutureReservationStatusLastKnownGoodState;
let x = FutureReservationStatus::new().set_or_clear_last_known_good_state(Some(FutureReservationStatusLastKnownGoodState::default()/* use setters */));
let x = FutureReservationStatus::new().set_or_clear_last_known_good_state(None::<FutureReservationStatusLastKnownGoodState>);Sourcepub fn set_lock_time<T>(self, v: T) -> Self
pub fn set_lock_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_lock_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_lock_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_procurement_status<T>(self, v: T) -> Selfwhere
T: Into<ProcurementStatus>,
pub fn set_procurement_status<T>(self, v: T) -> Selfwhere
T: Into<ProcurementStatus>,
Sets the value of procurement_status.
§Example
use google_cloud_compute_v1::model::future_reservation_status::ProcurementStatus;
let x0 = FutureReservationStatus::new().set_procurement_status(ProcurementStatus::Cancelled);
let x1 = FutureReservationStatus::new().set_procurement_status(ProcurementStatus::Committed);
let x2 = FutureReservationStatus::new().set_procurement_status(ProcurementStatus::Declined);Sourcepub fn set_or_clear_procurement_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcurementStatus>,
pub fn set_or_clear_procurement_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcurementStatus>,
Sets or clears the value of procurement_status.
§Example
use google_cloud_compute_v1::model::future_reservation_status::ProcurementStatus;
let x0 = FutureReservationStatus::new().set_or_clear_procurement_status(Some(ProcurementStatus::Cancelled));
let x1 = FutureReservationStatus::new().set_or_clear_procurement_status(Some(ProcurementStatus::Committed));
let x2 = FutureReservationStatus::new().set_or_clear_procurement_status(Some(ProcurementStatus::Declined));
let x_none = FutureReservationStatus::new().set_or_clear_procurement_status(None::<ProcurementStatus>);Sourcepub fn set_specific_sku_properties<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationStatusSpecificSKUProperties>,
pub fn set_specific_sku_properties<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationStatusSpecificSKUProperties>,
Sets the value of specific_sku_properties.
§Example
use google_cloud_compute_v1::model::FutureReservationStatusSpecificSKUProperties;
let x = FutureReservationStatus::new().set_specific_sku_properties(FutureReservationStatusSpecificSKUProperties::default()/* use setters */);Sourcepub fn set_or_clear_specific_sku_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationStatusSpecificSKUProperties>,
pub fn set_or_clear_specific_sku_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationStatusSpecificSKUProperties>,
Sets or clears the value of specific_sku_properties.
§Example
use google_cloud_compute_v1::model::FutureReservationStatusSpecificSKUProperties;
let x = FutureReservationStatus::new().set_or_clear_specific_sku_properties(Some(FutureReservationStatusSpecificSKUProperties::default()/* use setters */));
let x = FutureReservationStatus::new().set_or_clear_specific_sku_properties(None::<FutureReservationStatusSpecificSKUProperties>);Trait Implementations§
Source§impl Clone for FutureReservationStatus
impl Clone for FutureReservationStatus
Source§fn clone(&self) -> FutureReservationStatus
fn clone(&self) -> FutureReservationStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more