public sealed class Scheduling : IMessage<Scheduling>, IEquatable<Scheduling>, IDeepCloneable<Scheduling>, IBufferMessage, IMessage
Sets the scheduling options for an Instance. NextID: 21
Implements
IMessage<Scheduling>, IEquatable<Scheduling>, IDeepCloneable<Scheduling>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
Scheduling()
public Scheduling()
Scheduling(Scheduling)
public Scheduling(Scheduling other)
Parameter | |
---|---|
Name | Description |
other | Scheduling |
Properties
AutomaticRestart
public bool AutomaticRestart { get; set; }
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.
Property Value | |
---|---|
Type | Description |
Boolean |
HasAutomaticRestart
public bool HasAutomaticRestart { get; }
Gets whether the "automatic_restart" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasInstanceTerminationAction
public bool HasInstanceTerminationAction { get; }
Gets whether the "instance_termination_action" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasLocationHint
public bool HasLocationHint { get; }
Gets whether the "location_hint" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasMinNodeCpus
public bool HasMinNodeCpus { get; }
Gets whether the "min_node_cpus" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasOnHostMaintenance
public bool HasOnHostMaintenance { get; }
Gets whether the "on_host_maintenance" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasPreemptible
public bool HasPreemptible { get; }
Gets whether the "preemptible" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
HasProvisioningModel
public bool HasProvisioningModel { get; }
Gets whether the "provisioning_model" field is set
Property Value | |
---|---|
Type | Description |
Boolean |
InstanceTerminationAction
public string InstanceTerminationAction { get; set; }
Specifies the termination action for the instance. Check the InstanceTerminationAction enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
LocationHint
public string LocationHint { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
MinNodeCpus
public int MinNodeCpus { get; set; }
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
Property Value | |
---|---|
Type | Description |
Int32 |
NodeAffinities
public RepeatedField<SchedulingNodeAffinity> NodeAffinities { get; }
A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.
Property Value | |
---|---|
Type | Description |
RepeatedField<SchedulingNodeAffinity> |
OnHostMaintenance
public string OnHostMaintenance { get; set; }
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 availability policies. Check the OnHostMaintenance enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |
Preemptible
public bool Preemptible { get; set; }
Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a TERMINATED
state. See Instance Life Cycle for more information on the possible instance states.
Property Value | |
---|---|
Type | Description |
Boolean |
ProvisioningModel
public string ProvisioningModel { get; set; }
Specifies the provisioning model of the instance. Check the ProvisioningModel enum for the list of possible values.
Property Value | |
---|---|
Type | Description |
String |