Class Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::InstanceFilter (v0.2.2)

Message to represent the filters to select VMs for an assignment

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#all

def all() -> ::Boolean
Returns
  • (::Boolean) — Target all VMs in the project. If true, no other criteria is permitted.

#all=

def all=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Target all VMs in the project. If true, no other criteria is permitted.
Returns
  • (::Boolean) — Target all VMs in the project. If true, no other criteria is permitted.

#exclusion_labels

def exclusion_labels() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>
Returns
  • (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>) — List of label sets used for VM exclusion.

    If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.

    This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

#exclusion_labels=

def exclusion_labels=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>
Parameter
  • value (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>) — List of label sets used for VM exclusion.

    If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.

    This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

Returns
  • (::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>) — List of label sets used for VM exclusion.

    If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM.

    This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.

#inclusion_labels

def inclusion_labels() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>
Returns

#inclusion_labels=

def inclusion_labels=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>
Parameter
Returns

#os_short_names

def os_short_names() -> ::Array<::String>
Returns
  • (::Array<::String>) — A VM is included if it's OS short name matches with any of the values provided in this list.

#os_short_names=

def os_short_names=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A VM is included if it's OS short name matches with any of the values provided in this list.
Returns
  • (::Array<::String>) — A VM is included if it's OS short name matches with any of the values provided in this list.