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.



1070
1071
1072
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1070

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

Instance Attribute Details

#node_idGoogle::Apis::TrafficdirectorV3::StringMatcher

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



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

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



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

def node_metadatas
  @node_metadatas
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1075
1076
1077
1078
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1075

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