Interface PatchJobs.PatchInstanceFilterOrBuilder

    • 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.