class Google::Apis::OsconfigV1beta::PatchInstanceFilter
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.
Attributes
Target all VM instances in the project. If true, no other criteria is permitted. Corresponds to the JSON property `all` @return [Boolean]
Target all VM instances in the project. If true, no other criteria is permitted. Corresponds to the JSON property `all` @return [Boolean]
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example “env=prod or env=staging”. Corresponds to the JSON property `groupLabels` @return [Array<Google::Apis::OsconfigV1beta::PatchInstanceFilterGroupLabel>]
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-”. Corresponds to the JSON property `instanceNamePrefixes` @return [Array<String>]
Targets any of the VM instances specified. Instances are specified by their URI in the form `zones//instances/`, `projects/[ PROJECT_ID]/zones//instances/`, or `www. googleapis.com/compute/v1/projects//zones//instances/[ INSTANCE_NAME]` Corresponds to the JSON property `instances` @return [Array<String>]
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone. Corresponds to the JSON property `zones` @return [Array<String>]
Public Class Methods
# File lib/google/apis/osconfig_v1beta/classes.rb, line 1202 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/osconfig_v1beta/classes.rb, line 1207 def update!(**args) @all = args[:all] if args.key?(:all) @group_labels = args[:group_labels] if args.key?(:group_labels) @instance_name_prefixes = args[:instance_name_prefixes] if args.key?(:instance_name_prefixes) @instances = args[:instances] if args.key?(:instances) @zones = args[:zones] if args.key?(:zones) end