Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::PatchInstanceFilter::GroupLabel (v0.10.0)

Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::PatchInstanceFilter::GroupLabel.

Targets a group of VM instances by using their assigned labels. Labels are key-value pairs. A GroupLabel is a combination of labels that is used to target VMs for a patch job.

For example, a patch job can target VMs that have the following GroupLabel: {"env":"test", "app":"web"}. This means that the patch job is applied to VMs that have both the labels env=test and app=web.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#labels

def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.

#labels=

def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — Compute Engine instance labels that must be present for a VM instance to be targeted by this filter.