Class: Google::Apis::OsconfigV1beta::PatchInstanceFilterGroupLabel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb

Overview

Represents a group of VMs that can be identified as having all these labels, for example "env=prod and app=web".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PatchInstanceFilterGroupLabel

Returns a new instance of PatchInstanceFilterGroupLabel.



1600
1601
1602
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1600

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#labelsHash<String,String>

Compute Engine instance labels that must be present for a VM instance to be targeted by this filter. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1598
1599
1600
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1598

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1605
1606
1607
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 1605

def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
end