Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter (v1.1.0)

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

Filters to select target VMs for an assignment.

If more than one filter criteria is specified below, a VM will be selected if and only if it satisfies all of them.

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::V1::OSPolicyAssignment::LabelSet>
Returns

#exclusion_labels=

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

#inclusion_labels

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

#inclusion_labels=

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

#inventories

def inventories() -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>
Returns

#inventories=

def inventories=(value) -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>
Parameter
Returns