Package | Description |
---|---|
com.google.api.services.compute | |
com.google.api.services.compute.model |
Modifier and Type | Method and Description |
---|---|
Compute.Instances.SetScheduling |
Compute.Instances.setScheduling(String project,
String zone,
String instance,
Scheduling content)
Sets an instance's scheduling options.
|
Constructor and Description |
---|
SetScheduling(String project,
String zone,
String instance,
Scheduling content)
Sets an instance's scheduling options.
|
Modifier and Type | Method and Description |
---|---|
Scheduling |
Scheduling.clone() |
Scheduling |
SourceInstanceProperties.getScheduling()
Specifies the scheduling options for the instances that are created from this machine image.
|
Scheduling |
InstanceProperties.getScheduling()
Specifies the scheduling options for the instances that are created from these properties.
|
Scheduling |
Instance.getScheduling()
Sets the scheduling options for this instance.
|
Scheduling |
Scheduling.set(String fieldName,
Object value) |
Scheduling |
Scheduling.setAutomaticRestart(Boolean automaticRestart)
Specifies whether the instance should be automatically restarted if it is terminated by Compute
Engine (not terminated by a user).
|
Scheduling |
Scheduling.setAvailabilityDomain(Integer availabilityDomain)
Specifies the availability domain to place the instance in.
|
Scheduling |
Scheduling.setHostErrorTimeoutSeconds(Integer hostErrorTimeoutSeconds)
Specify the time in seconds for host error detection, the value must be within the range of
[90, 330] with the increment of 30, if unset, the default behavior of host error recovery will
be used.
|
Scheduling |
Scheduling.setInstanceTerminationAction(String instanceTerminationAction)
Specifies the termination action for the instance.
|
Scheduling |
Scheduling.setLocalSsdRecoveryTimeout(Duration localSsdRecoveryTimeout)
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd
state is attempted.
|
Scheduling |
Scheduling.setLocationHint(String locationHint)
An opaque location hint used to place the instance close to other resources.
|
Scheduling |
Scheduling.setMaxRunDuration(Duration maxRunDuration)
Specifies the max run duration for the given instance.
|
Scheduling |
Scheduling.setMinNodeCpus(Integer minNodeCpus)
The minimum number of virtual CPUs this instance will consume when running on a sole-tenant
node.
|
Scheduling |
Scheduling.setNodeAffinities(List<SchedulingNodeAffinity> nodeAffinities)
A set of node affinity and anti-affinity configurations.
|
Scheduling |
Scheduling.setOnHostMaintenance(String onHostMaintenance)
Defines the maintenance behavior for this instance.
|
Scheduling |
Scheduling.setOnInstanceStopAction(SchedulingOnInstanceStopAction onInstanceStopAction) |
Scheduling |
Scheduling.setPreemptible(Boolean preemptible)
Defines whether the instance is preemptible.
|
Scheduling |
Scheduling.setProvisioningModel(String provisioningModel)
Specifies the provisioning model of the instance.
|
Scheduling |
Scheduling.setSkipGuestOsShutdown(Boolean skipGuestOsShutdown)
Default is false and there will be 120 seconds between GCE ACPI G2 Soft Off and ACPI G3
Mechanical Off for Standard VMs and 30 seconds for Spot VMs.
|
Scheduling |
Scheduling.setTerminationTime(String terminationTime)
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format.
|
Modifier and Type | Method and Description |
---|---|
SourceInstanceProperties |
SourceInstanceProperties.setScheduling(Scheduling scheduling)
Specifies the scheduling options for the instances that are created from this machine image.
|
InstanceProperties |
InstanceProperties.setScheduling(Scheduling scheduling)
Specifies the scheduling options for the instances that are created from these properties.
|
Instance |
Instance.setScheduling(Scheduling scheduling)
Sets the scheduling options for this instance.
|
Copyright © 2011–2025 Google. All rights reserved.