Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::SchedulingNodeAffinity (v2.7.2)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::SchedulingNodeAffinity.

Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#key

def key() -> ::String
Returns
  • (::String) — Corresponds to the label key of Node resource.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — Corresponds to the label key of Node resource.
Returns
  • (::String) — Corresponds to the label key of Node resource.

#operator

def operator() -> ::String
Returns
  • (::String) — Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.

#operator=

def operator=(value) -> ::String
Parameter
  • value (::String) — Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.
Returns
  • (::String) — Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity. Check the Operator enum for the list of possible values.

#values

def values() -> ::Array<::String>
Returns
  • (::Array<::String>) — Corresponds to the label values of Node resource.

#values=

def values=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Corresponds to the label values of Node resource.
Returns
  • (::Array<::String>) — Corresponds to the label values of Node resource.