Interface PatchJobs.PatchInstanceFilterOrBuilder (2.3.2)

public static interface PatchJobs.PatchInstanceFilterOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAll()

public abstract boolean getAll()

Target all VM instances in the project. If true, no other criteria is permitted.

bool all = 1;

Returns
TypeDescription
boolean

The all.

getGroupLabels(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabel

getGroupLabelsCount()

public abstract 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;

Returns
TypeDescription
int

getGroupLabelsList()

public abstract 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;

Returns
TypeDescription
List<GroupLabel>

getGroupLabelsOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder

getGroupLabelsOrBuilderList()

public abstract 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;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.PatchJobs.PatchInstanceFilter.GroupLabelOrBuilder>

getInstanceNamePrefixes(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The instanceNamePrefixes at the given index.

getInstanceNamePrefixesBytes(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the instanceNamePrefixes at the given index.

getInstanceNamePrefixesCount()

public abstract 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
TypeDescription
int

The count of instanceNamePrefixes.

getInstanceNamePrefixesList()

public abstract 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
TypeDescription
List<String>

A list containing the instanceNamePrefixes.

getInstances(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The instances at the given index.

getInstancesBytes(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the instances at the given index.

getInstancesCount()

public abstract 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
TypeDescription
int

The count of instances.

getInstancesList()

public abstract 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
TypeDescription
List<String>

A list containing the instances.

getZones(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The zones at the given index.

getZonesBytes(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the zones at the given index.

getZonesCount()

public abstract int getZonesCount()

Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.

repeated string zones = 3;

Returns
TypeDescription
int

The count of zones.

getZonesList()

public abstract 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
TypeDescription
List<String>

A list containing the zones.