RegionInstanceTemplateScheduling class
Constructors
-
RegionInstanceTemplateScheduling({Input<bool?>? automaticRestart, Input<int?>? availabilityDomain, Input<RegionInstanceTemplateSchedulingGracefulShutdown?>? gracefulShutdown, Input<int?>? hostErrorTimeoutSeconds, Input<String?>? instanceTerminationAction, Input<List<RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout>?>? localSsdRecoveryTimeouts, Input<String?>? maintenanceInterval, Input<RegionInstanceTemplateSchedulingMaxRunDuration?>? maxRunDuration, Input<int?>? minNodeCpus, Input<List<RegionInstanceTemplateSchedulingNodeAffinity>?>? nodeAffinities, Input<String?>? onHostMaintenance, Input<RegionInstanceTemplateSchedulingOnInstanceStopAction?>? onInstanceStopAction, Input<bool?>? preemptible, Input<RegionInstanceTemplateSchedulingPreemptionNoticeDuration?>? preemptionNoticeDuration, Input<String?>? provisioningModel, Input<bool?>? skipGuestOsShutdown, Input<String?>? terminationTime})
-
Creates a new RegionInstanceTemplateScheduling.
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 Settings for the instance to perform a graceful shutdown.
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 Specifies the maximum amount of time a Local Ssd Vm should wait while
maintenanceInterval 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. Only support DELETE instanceTerminationAction at this point. 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 Defines the behaviour for instances with the instance_termination_action.
preemptible Allows instance to be preempted. This defaults to
preemptionNoticeDuration The duration of the notice that the instance will receive before it is preempted.
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 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
-
RegionInstanceTemplateScheduling.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<RegionInstanceTemplateSchedulingGracefulShutdown?>?
-
Settings for the instance to perform a graceful shutdown.
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<RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout>?>?
-
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.
final
-
maintenanceInterval
→ Input<String?>?
-
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
final
-
maxRunDuration
→ Input<RegionInstanceTemplateSchedulingMaxRunDuration?>?
-
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in
instanceTerminationAction. Only support DELETE instanceTerminationAction at this point. Structure is documented below.
final
-
minNodeCpus
→ Input<int?>?
-
Minimum number of cpus for the instance.
final
-
nodeAffinities
→ Input<List<RegionInstanceTemplateSchedulingNodeAffinity>?>?
-
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<RegionInstanceTemplateSchedulingOnInstanceStopAction?>?
-
Defines the behaviour for instances with the instance_termination_action.
final
-
preemptible
→ Input<bool?>?
-
Allows instance to be preempted. This defaults to
false. Read more on this
here.
final
-
preemptionNoticeDuration
→ Input<RegionInstanceTemplateSchedulingPreemptionNoticeDuration?>?
-
The duration of the notice that the instance will receive before it is preempted.
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?>?
-
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