File: //lib/google-cloud-sdk/lib/googlecloudsdk/schemas/compute/beta/Scheduling.yaml
$schema: "http://json-schema.org/draft-06/schema#"
title: compute beta Scheduling export schema
description: A gcloud export/import command YAML validation schema.
type: object
additionalProperties: false
properties:
COMMENT:
type: object
description: User specified info ignored by gcloud import.
additionalProperties: false
properties:
template-id:
type: string
region:
type: string
description:
type: string
date:
type: string
version:
type: string
UNKNOWN:
type: array
description: Unknown API fields that cannot be imported.
items:
type: string
automaticRestart:
description: |-
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.
type: boolean
minNodeCpus:
description: |-
The minimum number of virtual CPUs this instance will consume when running
on a sole-tenant node.
type: integer
nodeAffinities:
description: |-
A set of node affinity and anti-affinity configurations. Refer to
Configuring node affinity for more information. Overrides
reservationAffinity.
type: array
items:
$ref: SchedulingNodeAffinity.yaml
onHostMaintenance:
description: |-
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 Setting Instance Scheduling Options.
type: string
enum:
- MIGRATE
- TERMINATE
preemptible:
description: |-
Defines whether the instance is preemptible. This can only be set
during instance creation, it cannot be set or changed after the
instance has been created.
type: boolean