Compute Engine v1 API - Class Scheduling (2.9.0)

public sealed class Scheduling : IMessage<Scheduling>, IEquatable<Scheduling>, IDeepCloneable<Scheduling>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class Scheduling.

Sets the scheduling options for an Instance.

Inheritance

object > Scheduling

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

Scheduling()

public Scheduling()

Scheduling(Scheduling)

public Scheduling(Scheduling other)
Parameter
NameDescription
otherScheduling

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
TypeDescription
bool

HasAutomaticRestart

public bool HasAutomaticRestart { get; }

Gets whether the "automatic_restart" field is set

Property Value
TypeDescription
bool

HasInstanceTerminationAction

public bool HasInstanceTerminationAction { get; }

Gets whether the "instance_termination_action" field is set

Property Value
TypeDescription
bool

HasLocationHint

public bool HasLocationHint { get; }

Gets whether the "location_hint" field is set

Property Value
TypeDescription
bool

HasMinNodeCpus

public bool HasMinNodeCpus { get; }

Gets whether the "min_node_cpus" field is set

Property Value
TypeDescription
bool

HasOnHostMaintenance

public bool HasOnHostMaintenance { get; }

Gets whether the "on_host_maintenance" field is set

Property Value
TypeDescription
bool

HasPreemptible

public bool HasPreemptible { get; }

Gets whether the "preemptible" field is set

Property Value
TypeDescription
bool

HasProvisioningModel

public bool HasProvisioningModel { get; }

Gets whether the "provisioning_model" field is set

Property Value
TypeDescription
bool

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
TypeDescription
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
TypeDescription
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
TypeDescription
int

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
TypeDescription
RepeatedFieldSchedulingNodeAffinity

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 host maintenance policy. Check the OnHostMaintenance enum for the list of possible values.

Property Value
TypeDescription
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
TypeDescription
bool

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
TypeDescription
string