PatchInstanceFilterResponse

data class PatchInstanceFilterResponse(val all: Boolean, val groupLabels: List<PatchInstanceFilterGroupLabelResponse>, val instanceNamePrefixes: List<String>, val instances: List<String>, val zones: List<String>)

A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.

Constructors

Link copied to clipboard
fun PatchInstanceFilterResponse(all: Boolean, groupLabels: List<PatchInstanceFilterGroupLabelResponse>, instanceNamePrefixes: List<String>, instances: List<String>, zones: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Target all VM instances in the project. If true, no other criteria is permitted.

Link copied to clipboard

Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".

Link copied to clipboard

Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".

Link copied to clipboard

Targets any of the VM instances specified. Instances are specified by their URI in the form zones/[ZONE]/instances/[INSTANCE_NAME], projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME], or https://www&#46;googleapis&#46;com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]

Link copied to clipboard

Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.