Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::Scheduling.
Sets the scheduling options for an Instance.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#automatic_restart
def automatic_restart() -> ::Boolean
Returns
- (::Boolean) — Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
#automatic_restart=
def automatic_restart=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
Returns
- (::Boolean) — Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
#instance_termination_action
def instance_termination_action() -> ::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction
Returns
- (::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction) — Optional. Specifies the termination action for the instance.
#instance_termination_action=
def instance_termination_action=(value) -> ::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction
Parameter
- value (::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction) — Optional. Specifies the termination action for the instance.
Returns
- (::Google::Cloud::BackupDR::V1::Scheduling::InstanceTerminationAction) — Optional. Specifies the termination action for the instance.
#local_ssd_recovery_timeout
def local_ssd_recovery_timeout() -> ::Google::Cloud::BackupDR::V1::SchedulingDuration
Returns
- (::Google::Cloud::BackupDR::V1::SchedulingDuration) — Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
#local_ssd_recovery_timeout=
def local_ssd_recovery_timeout=(value) -> ::Google::Cloud::BackupDR::V1::SchedulingDuration
Parameter
- value (::Google::Cloud::BackupDR::V1::SchedulingDuration) — Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
Returns
- (::Google::Cloud::BackupDR::V1::SchedulingDuration) — Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
#min_node_cpus
def min_node_cpus() -> ::Integer
Returns
- (::Integer) — Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
#min_node_cpus=
def min_node_cpus=(value) -> ::Integer
Parameter
- value (::Integer) — Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
Returns
- (::Integer) — Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
#node_affinities
def node_affinities() -> ::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>
Returns
- (::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>) — Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
#node_affinities=
def node_affinities=(value) -> ::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>
Parameter
- value (::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>) — Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
Returns
- (::Array<::Google::Cloud::BackupDR::V1::Scheduling::NodeAffinity>) — Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
#on_host_maintenance
def on_host_maintenance() -> ::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance
Returns
- (::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance) — Optional. Defines the maintenance behavior for this instance.
#on_host_maintenance=
def on_host_maintenance=(value) -> ::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance
Parameter
- value (::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance) — Optional. Defines the maintenance behavior for this instance.
Returns
- (::Google::Cloud::BackupDR::V1::Scheduling::OnHostMaintenance) — Optional. Defines the maintenance behavior for this instance.
#preemptible
def preemptible() -> ::Boolean
Returns
- (::Boolean) — Optional. Defines whether the instance is preemptible.
#preemptible=
def preemptible=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Defines whether the instance is preemptible.
Returns
- (::Boolean) — Optional. Defines whether the instance is preemptible.
#provisioning_model
def provisioning_model() -> ::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel
Returns
- (::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel) — Optional. Specifies the provisioning model of the instance.
#provisioning_model=
def provisioning_model=(value) -> ::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel
Parameter
- value (::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel) — Optional. Specifies the provisioning model of the instance.
Returns
- (::Google::Cloud::BackupDR::V1::Scheduling::ProvisioningModel) — Optional. Specifies the provisioning model of the instance.