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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAll()Target all VM instances in the project.PatchJobs.PatchInstanceFilter.GroupLabelgetGroupLabels(int index)Targets VM instances matching at least one of these label sets.intgetGroupLabelsCount()Targets VM instances matching at least one of these label sets.List<PatchJobs.PatchInstanceFilter.GroupLabel>getGroupLabelsList()Targets VM instances matching at least one of these label sets.PatchJobs.PatchInstanceFilter.GroupLabelOrBuildergetGroupLabelsOrBuilder(int index)Targets VM instances matching at least one of these label sets.List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder>getGroupLabelsOrBuilderList()Targets VM instances matching at least one of these label sets.StringgetInstanceNamePrefixes(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.intgetInstanceNamePrefixesCount()Targets VMs whose name starts with one of these prefixes.List<String>getInstanceNamePrefixesList()Targets VMs whose name starts with one of these prefixes.StringgetInstances(int index)Targets any of the VM instances specified.com.google.protobuf.ByteStringgetInstancesBytes(int index)Targets any of the VM instances specified.intgetInstancesCount()Targets any of the VM instances specified.List<String>getInstancesList()Targets any of the VM instances specified.StringgetZones(int index)Targets VM instances in ANY of these zones.com.google.protobuf.ByteStringgetZonesBytes(int index)Targets VM instances in ANY of these zones.intgetZonesCount()Targets VM instances in ANY of these zones.List<String>getZonesList()Targets VM instances in ANY of these zones.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
PatchJobs.PatchInstanceFilter.GroupLabel getGroupLabels(int index)
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
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder getGroupLabelsOrBuilder(int index)
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
List<String> 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
String getZones(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 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
List<String> 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
String getInstances(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 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
List<String> 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
String getInstanceNamePrefixes(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 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.
-
-