PatchInstanceFilter class

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.


PatchInstanceFilter.fromJson(Map _json)


all bool
Target all VM instances in the project. If true, no other criteria is permitted.
read / write
groupLabels List<PatchInstanceFilterGroupLabel>
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
instanceNamePrefixes List<String>
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-".
read / write
instances List<String>
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[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
zones List<String>
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.


operator ==(Object other) bool
The equality operator. [...]