Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::InstanceFilter (v0.10.0)

Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::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::V1alpha::OSPolicyAssignment::LabelSet>
Returns

#exclusion_labels=

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

#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

#inventories

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

#inventories=

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

#os_short_names

def os_short_names() -> ::Array<::String>
Returns
  • (::Array<::String>) — Deprecated. Use the inventories field instead. A VM is selected 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>) — Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.
Returns
  • (::Array<::String>) — Deprecated. Use the inventories field instead. A VM is selected if it's OS short name matches with any of the values provided in this list.