Package com.google.cloud.osconfig.v1
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 boolean
getAll()
Target all VM instances in the project.PatchJobs.PatchInstanceFilter.GroupLabel
getGroupLabels(int index)
Targets VM instances matching ANY of these GroupLabels.int
getGroupLabelsCount()
Targets VM instances matching ANY of these GroupLabels.List<PatchJobs.PatchInstanceFilter.GroupLabel>
getGroupLabelsList()
Targets VM instances matching ANY of these GroupLabels.PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder
getGroupLabelsOrBuilder(int index)
Targets VM instances matching ANY of these GroupLabels.List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder>
getGroupLabelsOrBuilderList()
Targets VM instances matching ANY of these GroupLabels.String
getInstanceNamePrefixes(int index)
Targets VMs whose name starts with one of these prefixes.com.google.protobuf.ByteString
getInstanceNamePrefixesBytes(int index)
Targets VMs whose name starts with one of these prefixes.int
getInstanceNamePrefixesCount()
Targets VMs whose name starts with one of these prefixes.List<String>
getInstanceNamePrefixesList()
Targets VMs whose name starts with one of these prefixes.String
getInstances(int index)
Targets any of the VM instances specified.com.google.protobuf.ByteString
getInstancesBytes(int index)
Targets any of the VM instances specified.int
getInstancesCount()
Targets any of the VM instances specified.List<String>
getInstancesList()
Targets any of the VM instances specified.String
getZones(int index)
Targets VM instances in ANY of these zones.com.google.protobuf.ByteString
getZonesBytes(int index)
Targets VM instances in ANY of these zones.int
getZonesCount()
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 ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
-
getGroupLabels
PatchJobs.PatchInstanceFilter.GroupLabel getGroupLabels(int index)
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
-
getGroupLabelsCount
int getGroupLabelsCount()
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
-
getGroupLabelsOrBuilderList
List<? extends PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder> getGroupLabelsOrBuilderList()
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.PatchInstanceFilter.GroupLabel group_labels = 2;
-
getGroupLabelsOrBuilder
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder getGroupLabelsOrBuilder(int index)
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
repeated .google.cloud.osconfig.v1.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.
-
-