Show / Hide Table of Contents

Class Scheduling

Sets the scheduling options for an Instance.

Inheritance
object
Scheduling
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.v1.Data
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class Scheduling : IDirectResponseSchema

Properties

AutomaticRestart

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.

Declaration
[JsonProperty("automaticRestart")]
public virtual bool? AutomaticRestart { get; set; }
Property Value
Type Description
bool?

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

InstanceTerminationAction

Specifies the termination action for the instance.

Declaration
[JsonProperty("instanceTerminationAction")]
public virtual string InstanceTerminationAction { get; set; }
Property Value
Type Description
string

LocationHint

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.

Declaration
[JsonProperty("locationHint")]
public virtual string LocationHint { get; set; }
Property Value
Type Description
string

MinNodeCpus

The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.

Declaration
[JsonProperty("minNodeCpus")]
public virtual int? MinNodeCpus { get; set; }
Property Value
Type Description
int?

NodeAffinities

A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity.

Declaration
[JsonProperty("nodeAffinities")]
public virtual IList<SchedulingNodeAffinity> NodeAffinities { get; set; }
Property Value
Type Description
IList<SchedulingNodeAffinity>

OnHostMaintenance

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.

Declaration
[JsonProperty("onHostMaintenance")]
public virtual string OnHostMaintenance { get; set; }
Property Value
Type Description
string

Preemptible

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.

Declaration
[JsonProperty("preemptible")]
public virtual bool? Preemptible { get; set; }
Property Value
Type Description
bool?

ProvisioningModel

Specifies the provisioning model of the instance.

Declaration
[JsonProperty("provisioningModel")]
public virtual string ProvisioningModel { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX