class Google::Apis::TrafficdirectorV2::NodeMatcher

Specifies the way to match a Node. The match follows AND semantics.

Attributes

node_id[RW]

Specifies the way to match a string. [#next-free-field: 7] Corresponds to the JSON property `nodeId` @return [Google::Apis::TrafficdirectorV2::StringMatcher]

node_metadatas[RW]

Specifies match criteria on the node metadata. Corresponds to the JSON property `nodeMetadatas` @return [Array<Google::Apis::TrafficdirectorV2::StructMatcher>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/trafficdirector_v2/classes.rb, line 758
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/trafficdirector_v2/classes.rb, line 763
def update!(**args)
  @node_id = args[:node_id] if args.key?(:node_id)
  @node_metadatas = args[:node_metadatas] if args.key?(:node_metadatas)
end