Class: Google::Apis::TrafficdirectorV2::NodeMatcher

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/trafficdirector_v2/classes.rb,
generated/google/apis/trafficdirector_v2/representations.rb,
generated/google/apis/trafficdirector_v2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeMatcher

Returns a new instance of NodeMatcher.



758
759
760
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 758

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#node_idGoogle::Apis::TrafficdirectorV2::StringMatcher

Specifies the way to match a string. [#next-free-field: 7] Corresponds to the JSON property nodeId



751
752
753
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 751

def node_id
  @node_id
end

#node_metadatasArray<Google::Apis::TrafficdirectorV2::StructMatcher>

Specifies match criteria on the node metadata. Corresponds to the JSON property nodeMetadatas



756
757
758
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 756

def node_metadatas
  @node_metadatas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



763
764
765
766
# File 'generated/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