SchedulingResponseComputeV1 class
Sets the scheduling options for an Instance.
Constructors
-
SchedulingResponseComputeV1({required Input<
bool> automaticRestart, required Input<String> instanceTerminationAction, required Input<DurationResponseComputeV1> localSsdRecoveryTimeout, required Input<String> locationHint, required Input<int> minNodeCpus, required Input<List< nodeAffinities, required Input<SchedulingNodeAffinityResponseComputeV1> >String> onHostMaintenance, required Input<bool> preemptible, required Input<String> provisioningModel}) -
Creates a new SchedulingResponseComputeV1.
automaticRestartSpecifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.instanceTerminationActionSpecifies the termination action for the instance.localSsdRecoveryTimeoutSpecifies 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.locationHintAn opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.minNodeCpusThe minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.nodeAffinitiesA set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.onHostMaintenanceDefines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.preemptibleDefines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in aTERMINATEDstate. See Instance Life Cycle for more information on the possible instance states.provisioningModelSpecifies the provisioning model of the instance.const -
SchedulingResponseComputeV1.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
automaticRestart
→ Input<
bool> -
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instanceTerminationAction
→ Input<
String> -
Specifies the termination action for the instance.
final
-
localSsdRecoveryTimeout
→ Input<
DurationResponseComputeV1> -
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.
final
-
locationHint
→ Input<
String> -
An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.
final
-
minNodeCpus
→ Input<
int> -
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
final
-
nodeAffinities
→ Input<
List< SchedulingNodeAffinityResponseComputeV1> > -
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
final
-
onHostMaintenance
→ Input<
String> -
Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM host maintenance policy.
final
-
preemptible
→ Input<
bool> -
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a
TERMINATEDstate. See Instance Life Cycle for more information on the possible instance states.final -
provisioningModel
→ Input<
String> -
Specifies the provisioning model of the instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited