#[non_exhaustive]pub struct FutureReservation {Show 25 fields
pub aggregate_reservation: Option<AllocationAggregateReservation>,
pub auto_created_reservations_delete_time: Option<String>,
pub auto_created_reservations_duration: Option<Duration>,
pub auto_delete_auto_created_reservations: Option<bool>,
pub commitment_info: Option<FutureReservationCommitmentInfo>,
pub creation_timestamp: Option<String>,
pub deployment_type: Option<DeploymentType>,
pub description: Option<String>,
pub enable_emergent_maintenance: Option<bool>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub name_prefix: Option<String>,
pub planning_status: Option<PlanningStatus>,
pub reservation_mode: Option<ReservationMode>,
pub reservation_name: Option<String>,
pub scheduling_type: Option<SchedulingType>,
pub self_link: Option<String>,
pub self_link_with_id: Option<String>,
pub share_settings: Option<ShareSettings>,
pub specific_reservation_required: Option<bool>,
pub specific_sku_properties: Option<FutureReservationSpecificSKUProperties>,
pub status: Option<FutureReservationStatus>,
pub time_window: Option<FutureReservationTimeWindow>,
pub zone: Option<String>,
/* private fields */
}future-reservations only.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.aggregate_reservation: Option<AllocationAggregateReservation>Aggregate reservation details for the future reservation.
auto_created_reservations_delete_time: Option<String>Future timestamp when the FR auto-created reservations will be deleted by Compute Engine. Format of this field must be a valid href=“https://www.ietf.org/rfc/rfc3339.txt”>RFC3339 value.
auto_created_reservations_duration: Option<Duration>Specifies the duration of auto-created reservations. It represents relative time to future reservation start_time when auto-created reservations will be automatically deleted by Compute Engine. Duration time unit is represented as a count of seconds and fractions of seconds at nanosecond resolution.
auto_delete_auto_created_reservations: Option<bool>Setting for enabling or disabling automatic deletion for auto-created reservation. If set to true, auto-created reservations will be deleted at Future Reservation’s end time (default) or at user’s defined timestamp if any of the [auto_created_reservations_delete_time, auto_created_reservations_duration] values is specified. For keeping auto-created reservation indefinitely, this value should be set to false.
commitment_info: Option<FutureReservationCommitmentInfo>If not present, then FR will not deliver a new commitment or update an existing commitment.
creation_timestamp: Option<String>Output only. [Output Only] The creation timestamp for this future reservation inRFC3339 text format.
deployment_type: Option<DeploymentType>Type of the deployment requested as part of future reservation.
description: Option<String>An optional description of this resource. Provide this property when you create the future reservation.
enable_emergent_maintenance: Option<bool>Indicates if this group of VMs have emergent maintenance enabled.
id: Option<u64>Output only. [Output Only] A unique identifier for this future reservation. The server defines this identifier.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#futureReservation for future reservations.
name: Option<String>The name of the resource, provided by the client when initially creating
the resource. The resource name must be 1-63 characters long, and comply
withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must be
a dash, lowercase letter, or digit, except the last character, which cannot
be a dash.
name_prefix: Option<String>Name prefix for the reservations to be created at the time of delivery. The name prefix must comply with RFC1035. Maximum allowed length for name prefix is 20. Automatically created reservations name format will be -date-####.
planning_status: Option<PlanningStatus>Planning state before being submitted for evaluation
reservation_mode: Option<ReservationMode>The reservation mode which determines reservation-termination behavior and expected pricing.
reservation_name: Option<String>Name of reservations where the capacity is provisioned at the time of delivery of future reservations. If the reservation with the given name does not exist already, it is created automatically at the time of Approval with INACTIVE state till specified start-time. Either provide the reservation_name or a name_prefix.
scheduling_type: Option<SchedulingType>Maintenance information for this reservation
self_link: Option<String>Output only. [Output Only] Server-defined fully-qualified URL for this resource.
self_link_with_id: Option<String>Output only. [Output Only] Server-defined URL for this resource with the resource id.
List of Projects/Folders to share with.
specific_reservation_required: Option<bool>Indicates whether the auto-created reservation can be consumed by VMs with affinity for “any” reservation. If the field is set, then only VMs that target the reservation by name can consume from the delivered reservation.
specific_sku_properties: Option<FutureReservationSpecificSKUProperties>Future Reservation configuration to indicate instance properties and total count.
status: Option<FutureReservationStatus>Output only. [Output only] Status of the Future Reservation
time_window: Option<FutureReservationTimeWindow>Time window for this Future Reservation.
zone: Option<String>Output only. [Output Only] URL of the Zone where this future reservation resides.
Implementations§
Source§impl FutureReservation
impl FutureReservation
pub fn new() -> Self
Sourcepub fn set_aggregate_reservation<T>(self, v: T) -> Selfwhere
T: Into<AllocationAggregateReservation>,
pub fn set_aggregate_reservation<T>(self, v: T) -> Selfwhere
T: Into<AllocationAggregateReservation>,
Sets the value of aggregate_reservation.
§Example
use google_cloud_compute_v1::model::AllocationAggregateReservation;
let x = FutureReservation::new().set_aggregate_reservation(AllocationAggregateReservation::default()/* use setters */);Sourcepub fn set_or_clear_aggregate_reservation<T>(self, v: Option<T>) -> Selfwhere
T: Into<AllocationAggregateReservation>,
pub fn set_or_clear_aggregate_reservation<T>(self, v: Option<T>) -> Selfwhere
T: Into<AllocationAggregateReservation>,
Sets or clears the value of aggregate_reservation.
§Example
use google_cloud_compute_v1::model::AllocationAggregateReservation;
let x = FutureReservation::new().set_or_clear_aggregate_reservation(Some(AllocationAggregateReservation::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_aggregate_reservation(None::<AllocationAggregateReservation>);Sourcepub fn set_auto_created_reservations_delete_time<T>(self, v: T) -> Self
pub fn set_auto_created_reservations_delete_time<T>(self, v: T) -> Self
Sets the value of auto_created_reservations_delete_time.
§Example
let x = FutureReservation::new().set_auto_created_reservations_delete_time("example");Sourcepub fn set_or_clear_auto_created_reservations_delete_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_auto_created_reservations_delete_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of auto_created_reservations_delete_time.
§Example
let x = FutureReservation::new().set_or_clear_auto_created_reservations_delete_time(Some("example"));
let x = FutureReservation::new().set_or_clear_auto_created_reservations_delete_time(None::<String>);Sourcepub fn set_auto_created_reservations_duration<T>(self, v: T) -> Self
pub fn set_auto_created_reservations_duration<T>(self, v: T) -> Self
Sets the value of auto_created_reservations_duration.
§Example
use google_cloud_compute_v1::model::Duration;
let x = FutureReservation::new().set_auto_created_reservations_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_auto_created_reservations_duration<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_auto_created_reservations_duration<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of auto_created_reservations_duration.
§Example
use google_cloud_compute_v1::model::Duration;
let x = FutureReservation::new().set_or_clear_auto_created_reservations_duration(Some(Duration::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_auto_created_reservations_duration(None::<Duration>);Sourcepub fn set_auto_delete_auto_created_reservations<T>(self, v: T) -> Self
pub fn set_auto_delete_auto_created_reservations<T>(self, v: T) -> Self
Sets the value of auto_delete_auto_created_reservations.
§Example
let x = FutureReservation::new().set_auto_delete_auto_created_reservations(true);Sourcepub fn set_or_clear_auto_delete_auto_created_reservations<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_auto_delete_auto_created_reservations<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of auto_delete_auto_created_reservations.
§Example
let x = FutureReservation::new().set_or_clear_auto_delete_auto_created_reservations(Some(false));
let x = FutureReservation::new().set_or_clear_auto_delete_auto_created_reservations(None::<bool>);Sourcepub fn set_commitment_info<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationCommitmentInfo>,
pub fn set_commitment_info<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationCommitmentInfo>,
Sets the value of commitment_info.
§Example
use google_cloud_compute_v1::model::FutureReservationCommitmentInfo;
let x = FutureReservation::new().set_commitment_info(FutureReservationCommitmentInfo::default()/* use setters */);Sourcepub fn set_or_clear_commitment_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationCommitmentInfo>,
pub fn set_or_clear_commitment_info<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationCommitmentInfo>,
Sets or clears the value of commitment_info.
§Example
use google_cloud_compute_v1::model::FutureReservationCommitmentInfo;
let x = FutureReservation::new().set_or_clear_commitment_info(Some(FutureReservationCommitmentInfo::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_commitment_info(None::<FutureReservationCommitmentInfo>);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = FutureReservation::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = FutureReservation::new().set_or_clear_creation_timestamp(Some("example"));
let x = FutureReservation::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_deployment_type<T>(self, v: T) -> Selfwhere
T: Into<DeploymentType>,
pub fn set_deployment_type<T>(self, v: T) -> Selfwhere
T: Into<DeploymentType>,
Sets the value of deployment_type.
§Example
use google_cloud_compute_v1::model::future_reservation::DeploymentType;
let x0 = FutureReservation::new().set_deployment_type(DeploymentType::Unspecified);Sourcepub fn set_or_clear_deployment_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeploymentType>,
pub fn set_or_clear_deployment_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<DeploymentType>,
Sets or clears the value of deployment_type.
§Example
use google_cloud_compute_v1::model::future_reservation::DeploymentType;
let x0 = FutureReservation::new().set_or_clear_deployment_type(Some(DeploymentType::Unspecified));
let x_none = FutureReservation::new().set_or_clear_deployment_type(None::<DeploymentType>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
let x = FutureReservation::new().set_description("example");Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = FutureReservation::new().set_or_clear_description(Some("example"));
let x = FutureReservation::new().set_or_clear_description(None::<String>);Sourcepub fn set_enable_emergent_maintenance<T>(self, v: T) -> Self
pub fn set_enable_emergent_maintenance<T>(self, v: T) -> Self
Sets the value of enable_emergent_maintenance.
§Example
let x = FutureReservation::new().set_enable_emergent_maintenance(true);Sourcepub fn set_or_clear_enable_emergent_maintenance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enable_emergent_maintenance<T>(self, v: Option<T>) -> Self
Sets or clears the value of enable_emergent_maintenance.
§Example
let x = FutureReservation::new().set_or_clear_enable_emergent_maintenance(Some(false));
let x = FutureReservation::new().set_or_clear_enable_emergent_maintenance(None::<bool>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_name_prefix<T>(self, v: T) -> Self
pub fn set_name_prefix<T>(self, v: T) -> Self
Sets the value of name_prefix.
§Example
let x = FutureReservation::new().set_name_prefix("example");Sourcepub fn set_or_clear_name_prefix<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name_prefix<T>(self, v: Option<T>) -> Self
Sets or clears the value of name_prefix.
§Example
let x = FutureReservation::new().set_or_clear_name_prefix(Some("example"));
let x = FutureReservation::new().set_or_clear_name_prefix(None::<String>);Sourcepub fn set_planning_status<T>(self, v: T) -> Selfwhere
T: Into<PlanningStatus>,
pub fn set_planning_status<T>(self, v: T) -> Selfwhere
T: Into<PlanningStatus>,
Sets the value of planning_status.
§Example
use google_cloud_compute_v1::model::future_reservation::PlanningStatus;
let x0 = FutureReservation::new().set_planning_status(PlanningStatus::Unspecified);
let x1 = FutureReservation::new().set_planning_status(PlanningStatus::Submitted);Sourcepub fn set_or_clear_planning_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<PlanningStatus>,
pub fn set_or_clear_planning_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<PlanningStatus>,
Sets or clears the value of planning_status.
§Example
use google_cloud_compute_v1::model::future_reservation::PlanningStatus;
let x0 = FutureReservation::new().set_or_clear_planning_status(Some(PlanningStatus::Unspecified));
let x1 = FutureReservation::new().set_or_clear_planning_status(Some(PlanningStatus::Submitted));
let x_none = FutureReservation::new().set_or_clear_planning_status(None::<PlanningStatus>);Sourcepub fn set_reservation_mode<T>(self, v: T) -> Selfwhere
T: Into<ReservationMode>,
pub fn set_reservation_mode<T>(self, v: T) -> Selfwhere
T: Into<ReservationMode>,
Sets the value of reservation_mode.
§Example
use google_cloud_compute_v1::model::future_reservation::ReservationMode;
let x0 = FutureReservation::new().set_reservation_mode(ReservationMode::Default);
let x1 = FutureReservation::new().set_reservation_mode(ReservationMode::Unspecified);Sourcepub fn set_or_clear_reservation_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationMode>,
pub fn set_or_clear_reservation_mode<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationMode>,
Sets or clears the value of reservation_mode.
§Example
use google_cloud_compute_v1::model::future_reservation::ReservationMode;
let x0 = FutureReservation::new().set_or_clear_reservation_mode(Some(ReservationMode::Default));
let x1 = FutureReservation::new().set_or_clear_reservation_mode(Some(ReservationMode::Unspecified));
let x_none = FutureReservation::new().set_or_clear_reservation_mode(None::<ReservationMode>);Sourcepub fn set_reservation_name<T>(self, v: T) -> Self
pub fn set_reservation_name<T>(self, v: T) -> Self
Sets the value of reservation_name.
§Example
let x = FutureReservation::new().set_reservation_name("example");Sourcepub fn set_or_clear_reservation_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_reservation_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of reservation_name.
§Example
let x = FutureReservation::new().set_or_clear_reservation_name(Some("example"));
let x = FutureReservation::new().set_or_clear_reservation_name(None::<String>);Sourcepub fn set_scheduling_type<T>(self, v: T) -> Selfwhere
T: Into<SchedulingType>,
pub fn set_scheduling_type<T>(self, v: T) -> Selfwhere
T: Into<SchedulingType>,
Sets the value of scheduling_type.
§Example
use google_cloud_compute_v1::model::future_reservation::SchedulingType;
let x0 = FutureReservation::new().set_scheduling_type(SchedulingType::GroupMaintenanceTypeUnspecified);
let x1 = FutureReservation::new().set_scheduling_type(SchedulingType::Independent);Sourcepub fn set_or_clear_scheduling_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<SchedulingType>,
pub fn set_or_clear_scheduling_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<SchedulingType>,
Sets or clears the value of scheduling_type.
§Example
use google_cloud_compute_v1::model::future_reservation::SchedulingType;
let x0 = FutureReservation::new().set_or_clear_scheduling_type(Some(SchedulingType::GroupMaintenanceTypeUnspecified));
let x1 = FutureReservation::new().set_or_clear_scheduling_type(Some(SchedulingType::Independent));
let x_none = FutureReservation::new().set_or_clear_scheduling_type(None::<SchedulingType>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link_with_id<T>(self, v: T) -> Self
pub fn set_self_link_with_id<T>(self, v: T) -> Self
Sets the value of self_link_with_id.
§Example
let x = FutureReservation::new().set_self_link_with_id("example");Sourcepub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of self_link_with_id.
§Example
let x = FutureReservation::new().set_or_clear_self_link_with_id(Some("example"));
let x = FutureReservation::new().set_or_clear_self_link_with_id(None::<String>);Sets the value of share_settings.
§Example
use google_cloud_compute_v1::model::ShareSettings;
let x = FutureReservation::new().set_share_settings(ShareSettings::default()/* use setters */);Sets or clears the value of share_settings.
§Example
use google_cloud_compute_v1::model::ShareSettings;
let x = FutureReservation::new().set_or_clear_share_settings(Some(ShareSettings::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_share_settings(None::<ShareSettings>);Sourcepub fn set_specific_reservation_required<T>(self, v: T) -> Self
pub fn set_specific_reservation_required<T>(self, v: T) -> Self
Sets the value of specific_reservation_required.
§Example
let x = FutureReservation::new().set_specific_reservation_required(true);Sourcepub fn set_or_clear_specific_reservation_required<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_specific_reservation_required<T>(self, v: Option<T>) -> Self
Sets or clears the value of specific_reservation_required.
§Example
let x = FutureReservation::new().set_or_clear_specific_reservation_required(Some(false));
let x = FutureReservation::new().set_or_clear_specific_reservation_required(None::<bool>);Sourcepub fn set_specific_sku_properties<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationSpecificSKUProperties>,
pub fn set_specific_sku_properties<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationSpecificSKUProperties>,
Sets the value of specific_sku_properties.
§Example
use google_cloud_compute_v1::model::FutureReservationSpecificSKUProperties;
let x = FutureReservation::new().set_specific_sku_properties(FutureReservationSpecificSKUProperties::default()/* use setters */);Sourcepub fn set_or_clear_specific_sku_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationSpecificSKUProperties>,
pub fn set_or_clear_specific_sku_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationSpecificSKUProperties>,
Sets or clears the value of specific_sku_properties.
§Example
use google_cloud_compute_v1::model::FutureReservationSpecificSKUProperties;
let x = FutureReservation::new().set_or_clear_specific_sku_properties(Some(FutureReservationSpecificSKUProperties::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_specific_sku_properties(None::<FutureReservationSpecificSKUProperties>);Sourcepub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationStatus>,
pub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationStatus>,
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationStatus>,
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationStatus>,
Sets or clears the value of status.
§Example
use google_cloud_compute_v1::model::FutureReservationStatus;
let x = FutureReservation::new().set_or_clear_status(Some(FutureReservationStatus::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_status(None::<FutureReservationStatus>);Sourcepub fn set_time_window<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationTimeWindow>,
pub fn set_time_window<T>(self, v: T) -> Selfwhere
T: Into<FutureReservationTimeWindow>,
Sets the value of time_window.
§Example
use google_cloud_compute_v1::model::FutureReservationTimeWindow;
let x = FutureReservation::new().set_time_window(FutureReservationTimeWindow::default()/* use setters */);Sourcepub fn set_or_clear_time_window<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationTimeWindow>,
pub fn set_or_clear_time_window<T>(self, v: Option<T>) -> Selfwhere
T: Into<FutureReservationTimeWindow>,
Sets or clears the value of time_window.
§Example
use google_cloud_compute_v1::model::FutureReservationTimeWindow;
let x = FutureReservation::new().set_or_clear_time_window(Some(FutureReservationTimeWindow::default()/* use setters */));
let x = FutureReservation::new().set_or_clear_time_window(None::<FutureReservationTimeWindow>);Trait Implementations§
Source§impl Clone for FutureReservation
impl Clone for FutureReservation
Source§fn clone(&self) -> FutureReservation
fn clone(&self) -> FutureReservation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more