google_api_os_config v0.3.0 GoogleApi.OSConfig.V1.Model.PatchInstanceFilter View Source

A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.

Attributes

  • all (type: boolean(), default: nil) - Target all VM instances in the project. If true, no other criteria is permitted.
  • groupLabels (type: list(GoogleApi.OSConfig.V1.Model.PatchInstanceFilterGroupLabel.t), default: nil) - Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
  • instanceNamePrefixes (type: list(String.t), default: nil) - 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-".
  • instances (type: list(String.t), default: nil) - 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], orhttps://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]`
  • zones (type: list(String.t), default: nil) - Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.OSConfig.V1.Model.PatchInstanceFilter{
  all: boolean(),
  groupLabels: [GoogleApi.OSConfig.V1.Model.PatchInstanceFilterGroupLabel.t()],
  instanceNamePrefixes: [String.t()],
  instances: [String.t()],
  zones: [String.t()]
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.