Package com.google.cloud.osconfig.v1beta
Interface PatchJobs.PatchInstanceFilterOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PatchJobs.PatchInstanceFilter,PatchJobs.PatchInstanceFilter.Builder
- Enclosing class:
- PatchJobs
public static interface PatchJobs.PatchInstanceFilterOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetAll()Target all VM instances in the project.getGroupLabels(int index) Targets VM instances matching at least one of these label sets.intTargets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.getGroupLabelsOrBuilder(int index) Targets VM instances matching at least one of these label sets.Targets VM instances matching at least one of these label sets.getInstanceNamePrefixes(int index) Targets VMs whose name starts with one of these prefixes.com.google.protobuf.ByteStringgetInstanceNamePrefixesBytes(int index) Targets VMs whose name starts with one of these prefixes.intTargets VMs whose name starts with one of these prefixes.Targets VMs whose name starts with one of these prefixes.getInstances(int index) Targets any of the VM instances specified.com.google.protobuf.ByteStringgetInstancesBytes(int index) Targets any of the VM instances specified.intTargets any of the VM instances specified.Targets any of the VM instances specified.getZones(int index) Targets VM instances in ANY of these zones.com.google.protobuf.ByteStringgetZonesBytes(int index) Targets VM instances in ANY of these zones.intTargets VM instances in ANY of these zones.Targets VM instances in ANY of these zones.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAll
boolean getAll()Target all VM instances in the project. If true, no other criteria is permitted.
bool all = 1;- Returns:
- The all.
-
getGroupLabelsList
List<PatchJobs.PatchInstanceFilter.GroupLabel> getGroupLabelsList()Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2; -
getGroupLabels
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2; -
getGroupLabelsCount
int getGroupLabelsCount()Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2; -
getGroupLabelsOrBuilderList
List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder> getGroupLabelsOrBuilderList()Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2; -
getGroupLabelsOrBuilder
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
repeated .google.cloud.osconfig.v1beta.PatchInstanceFilter.GroupLabel group_labels = 2; -
getZonesList
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Returns:
- A list containing the zones.
-
getZonesCount
int getZonesCount()Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Returns:
- The count of zones.
-
getZones
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Parameters:
index- The index of the element to return.- Returns:
- The zones at the given index.
-
getZonesBytes
com.google.protobuf.ByteString getZonesBytes(int index) Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
repeated string zones = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the zones at the given index.
-
getInstancesList
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.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Returns:
- A list containing the instances.
-
getInstancesCount
int getInstancesCount()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.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Returns:
- The count of instances.
-
getInstances
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.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Parameters:
index- The index of the element to return.- Returns:
- The instances at the given index.
-
getInstancesBytes
com.google.protobuf.ByteString getInstancesBytes(int index) 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.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
repeated string instances = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instances at the given index.
-
getInstanceNamePrefixesList
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-".
repeated string instance_name_prefixes = 5;- Returns:
- A list containing the instanceNamePrefixes.
-
getInstanceNamePrefixesCount
int getInstanceNamePrefixesCount()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-".
repeated string instance_name_prefixes = 5;- Returns:
- The count of instanceNamePrefixes.
-
getInstanceNamePrefixes
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-".
repeated string instance_name_prefixes = 5;- Parameters:
index- The index of the element to return.- Returns:
- The instanceNamePrefixes at the given index.
-
getInstanceNamePrefixesBytes
com.google.protobuf.ByteString getInstanceNamePrefixesBytes(int index) 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-".
repeated string instance_name_prefixes = 5;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the instanceNamePrefixes at the given index.
-