InstanceTemplateScheduling class

Constructors

InstanceTemplateScheduling({Input<bool?>? automaticRestart, Input<int?>? availabilityDomain, Input<InstanceTemplateSchedulingGracefulShutdown?>? gracefulShutdown, Input<int?>? hostErrorTimeoutSeconds, Input<String?>? instanceTerminationAction, Input<List<InstanceTemplateSchedulingLocalSsdRecoveryTimeout>?>? localSsdRecoveryTimeouts, Input<String?>? maintenanceInterval, Input<InstanceTemplateSchedulingMaxRunDuration?>? maxRunDuration, Input<int?>? minNodeCpus, Input<List<InstanceTemplateSchedulingNodeAffinity>?>? nodeAffinities, Input<String?>? onHostMaintenance, Input<InstanceTemplateSchedulingOnInstanceStopAction?>? onInstanceStopAction, Input<bool?>? preemptible, Input<InstanceTemplateSchedulingPreemptionNoticeDuration?>? preemptionNoticeDuration, Input<String?>? provisioningModel, Input<bool?>? skipGuestOsShutdown, Input<String?>? terminationTime})
Creates a new InstanceTemplateScheduling. automaticRestart Specifies whether the instance should be availabilityDomain 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. gracefulShutdown Beta Settings for the instance to perform a graceful shutdown. Structure is documented below. hostErrorTimeoutSeconds Specifies 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. instanceTerminationAction Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here localSsdRecoveryTimeouts (../guides/provider_versions.html.markdown) 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. Structure is documented below. maintenanceInterval Beta Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC. maxRunDuration The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instanceTerminationAction. Structure is documented below. minNodeCpus Minimum number of cpus for the instance. nodeAffinities Specifies node affinities or anti-affinities onHostMaintenance Defines the maintenance behavior for this onInstanceStopAction Specifies the action to be performed when the instance is terminated using maxRunDuration and STOP instanceTerminationAction. Only support true discardLocalSsd at this point. Structure is documented below. preemptible Allows instance to be preempted. This defaults to preemptionNoticeDuration Beta Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 Soft Off signal is triggered. Structure is documented below. provisioningModel Describe the type of provisioning model for the instance. This field accepts the value STANDARD, SPOT, FLEX_START, or RESERVATION_BOUND. If the value is STANDARD, there will be no discount. If this is set to SPOT, skipGuestOsShutdown Beta Boolean parameter. 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. terminationTime 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.
const
InstanceTemplateScheduling.fromMap(Map<String, dynamic> map)
factory

Properties

automaticRestart → Input<bool?>?
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
final
availabilityDomain → Input<int?>?
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.
final
gracefulShutdown → Input<InstanceTemplateSchedulingGracefulShutdown?>?
Beta Settings for the instance to perform a graceful shutdown. Structure is documented below.
final
hashCode → int
The hash code for this object.
no setterinherited
hostErrorTimeoutSeconds → Input<int?>?
Specifies 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.
final
instanceTerminationAction → Input<String?>?
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
final
localSsdRecoveryTimeouts → Input<List<InstanceTemplateSchedulingLocalSsdRecoveryTimeout>?>?
(../guides/provider_versions.html.markdown) 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. Structure is documented below.
final
maintenanceInterval → Input<String?>?
Beta Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC.
final
maxRunDuration → Input<InstanceTemplateSchedulingMaxRunDuration?>?
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instanceTerminationAction. Structure is documented below.
final
minNodeCpus → Input<int?>?
Minimum number of cpus for the instance.
final
nodeAffinities → Input<List<InstanceTemplateSchedulingNodeAffinity>?>?
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
final
onHostMaintenance → Input<String?>?
Defines the maintenance behavior for this instance.
final
onInstanceStopAction → Input<InstanceTemplateSchedulingOnInstanceStopAction?>?
Specifies the action to be performed when the instance is terminated using maxRunDuration and STOP instanceTerminationAction. Only support true discardLocalSsd at this point. Structure is documented below.
final
preemptible → Input<bool?>?
Allows instance to be preempted. This defaults to false. Read more on this here.
final
preemptionNoticeDuration → Input<InstanceTemplateSchedulingPreemptionNoticeDuration?>?
Beta Specifies the Metadata Service preemption notice duration before the GCE ACPI G2 Soft Off signal is triggered for Spot VMs only. If not specified, there will be no wait before the G2 Soft Off signal is triggered. Structure is documented below.
final
provisioningModel → Input<String?>?
Describe the type of provisioning model for the instance. This field accepts the value STANDARD, SPOT, FLEX_START, or RESERVATION_BOUND. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automaticRestart should be false. For more info about SPOT, read here. If this is set to FLEX_START, automaticRestart should be false and instanceTerminationAction should be set to DELETE. A maxRunDuration must also be specified. For more info about FLEX_START, read here. If this is set to RESERVATION_BOUND, the instance is bound to a specific reservation and will only consume capacity from that reservation. A reservationAffinity block with type set to SPECIFIC_RESERVATION should also be configured.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipGuestOsShutdown → Input<bool?>?
Beta Boolean parameter. 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.
final
terminationTime → Input<String?>?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited