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
- (::Boolean) — Target all VMs in the project. If true, no other criteria is permitted.
#all=
def all=(value) -> ::Boolean
- value (::Boolean) — Target all VMs in the project. If true, no other criteria is permitted.
- (::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>
-
(::Array<::Google::Cloud::OsConfig::V1::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.
#exclusion_labels=
def exclusion_labels=(value) -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet>
-
value (::Array<::Google::Cloud::OsConfig::V1::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.
-
(::Array<::Google::Cloud::OsConfig::V1::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.
#inclusion_labels
def inclusion_labels() -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet>
-
(::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet>) — List of label sets used for VM inclusion.
If the list has more than one
LabelSet
, the VM is included if any of the label sets are applicable for the VM.
#inclusion_labels=
def inclusion_labels=(value) -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet>
-
value (::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet>) — List of label sets used for VM inclusion.
If the list has more than one
LabelSet
, the VM is included if any of the label sets are applicable for the VM.
-
(::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::LabelSet>) — List of label sets used for VM inclusion.
If the list has more than one
LabelSet
, the VM is included if any of the label sets are applicable for the VM.
#inventories
def inventories() -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>
-
(::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>) — List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the following inventories.
#inventories=
def inventories=(value) -> ::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>
-
value (::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>) — List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the following inventories.
-
(::Array<::Google::Cloud::OsConfig::V1::OSPolicyAssignment::InstanceFilter::Inventory>) — List of inventories to select VMs.
A VM is selected if its inventory data matches at least one of the following inventories.