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
- (::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::V1alpha::OSPolicyAssignment::LabelSet>
-
(::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.
#exclusion_labels=
def exclusion_labels=(value) -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>
-
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.
-
(::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.
#inclusion_labels
def inclusion_labels() -> ::Array<::Google::Cloud::OsConfig::V1alpha::OSPolicyAssignment::LabelSet>
-
(::Array<::Google::Cloud::OsConfig::V1alpha::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::V1alpha::OSPolicyAssignment::LabelSet>
-
value (::Array<::Google::Cloud::OsConfig::V1alpha::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::V1alpha::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::V1alpha::OSPolicyAssignment::InstanceFilter::Inventory>
-
(::Array<::Google::Cloud::OsConfig::V1alpha::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::V1alpha::OSPolicyAssignment::InstanceFilter::Inventory>
-
value (::Array<::Google::Cloud::OsConfig::V1alpha::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::V1alpha::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.
#os_short_names
def os_short_names() -> ::Array<::String>
-
(::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>
-
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.
-
(::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.