Class: Google::Apis::TrafficdirectorV3::NodeMatcher

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/trafficdirector_v3/classes.rb,
lib/google/apis/trafficdirector_v3/representations.rb,
lib/google/apis/trafficdirector_v3/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.



1062
1063
1064
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1062

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

Instance Attribute Details

#node_idGoogle::Apis::TrafficdirectorV3::StringMatcher

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



1055
1056
1057
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1055

def node_id
  @node_id
end

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

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



1060
1061
1062
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1060

def node_metadatas
  @node_metadatas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1067
1068
1069
1070
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1067

def update!(**args)
  @node_id = args[:node_id] if args.key?(:node_id)
  @node_metadatas = args[:node_metadatas] if args.key?(:node_metadatas)
end