Compute Engine v1 API - Class Scheduling (3.1.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

Google.Cloud.Compute.V1

Assembly

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
bool

AvailabilityDomain

public int AvailabilityDomain { get; set; }

Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.

Property Value
Type Description
int

HasAutomaticRestart

public bool HasAutomaticRestart { get; }

Gets whether the "automatic_restart" field is set

Property Value
Type Description
bool

HasAvailabilityDomain

public bool HasAvailabilityDomain { get; }

Gets whether the "availability_domain" field is set

Property Value
Type Description
bool

HasInstanceTerminationAction

public bool HasInstanceTerminationAction { get; }

Gets whether the "instance_termination_action" field is set

Property Value
Type Description
bool

HasLocationHint

public bool HasLocationHint { get; }

Gets whether the "location_hint" field is set

Property Value
Type Description
bool

HasMinNodeCpus

public bool HasMinNodeCpus { get; }

Gets whether the "min_node_cpus" field is set

Property Value
Type Description
bool

HasOnHostMaintenance

public bool HasOnHostMaintenance { get; }

Gets whether the "on_host_maintenance" field is set

Property Value
Type Description
bool

HasPreemptible

public bool HasPreemptible { get; }

Gets whether the "preemptible" field is set

Property Value
Type Description
bool

HasProvisioningModel

public bool HasProvisioningModel { get; }

Gets whether the "provisioning_model" field is set

Property Value
Type Description
bool

HasTerminationTime

public bool HasTerminationTime { get; }

Gets whether the "termination_time" field is set

Property Value
Type Description
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
Type Description
string

LocalSsdRecoveryTimeout

public Duration LocalSsdRecoveryTimeout { get; set; }

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.

Property Value
Type Description
Duration

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

MaxRunDuration

public Duration MaxRunDuration { get; set; }

Specifies the max run duration for the given instance. If specified, the instance termination action will be performed at the end of the run duration.

Property Value
Type Description
Duration

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
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
Type Description
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
Type Description
string

OnInstanceStopAction

public SchedulingOnInstanceStopAction OnInstanceStopAction { get; set; }
Property Value
Type Description
SchedulingOnInstanceStopAction

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
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
Type Description
string

TerminationTime

public string TerminationTime { get; set; }

Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.

Property Value
Type Description
string