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.
Constructors
-
PatchInstanceFilter({Input<
bool> ? all, Input<List< ? groupLabels, Input<PatchInstanceFilterGroupLabel> >List< ? instanceNamePrefixes, Input<String> >List< ? instances, Input<String> >List< ? zones})String> > -
Creates a new PatchInstanceFilter.
allTarget all VM instances in the project. If true, no other criteria is permitted.groupLabelsTargets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.instanceNamePrefixesTargets 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-".instancesTargets any of the VM instances specified. Instances are specified by their URI in the formzones/[ZONE]/instances/[INSTANCE_NAME],projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME], orhttps://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]zonesTargets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.const -
PatchInstanceFilter.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
all
→ Input<
bool> ? -
Target all VM instances in the project. If true, no other criteria is permitted.
final
-
groupLabels
→ Input<
List< ?PatchInstanceFilterGroupLabel> > -
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instanceNamePrefixes
→ Input<
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-".
final
-
instances
→ Input<
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], orhttps://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
zones
→ Input<
List< ?String> > -
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
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